Expand description
StepStage — transactional COW staging for one step() (9 buckets).
Every commit-conditional write the kernel performs during a step is
buffered here; on commit, Instance::apply_stage drains in canonical
canonical order; on rollback, the stage is dropped without effect.
Buckets (9):
state_ops— entity/component mutationsevents— KernelEvent emissions (kernel-level drain)schedule_deltas— scheduler add/cancelpending_signals— outbound IPC (kernel routes post-commit)id_counters— monotonic ID counter advancesledger_delta— ResourceLedger updateswall_remainder_delta— sub-tick time accumulator advancelocal_tick_delta— logical tick advanceobserver_eviction_pending— observers slated for eviction
In-flight signal refcounts are NOT staged: the only refcount writers are
the cross-instance signal router (delivery-side increment — it spans
instances and so cannot route through a single instance’s stage) and
force_unload (drain), both mutating Instance::inflight_refs directly.