On this page

0107: Deterministic runner and scenarios

Status: Proposed (default; pending owner confirmation)

Context

Agent behavior must be testable before live providers, with repeatable event ordering and bounded per-step allocation. Concurrency is outside M12.

Decision

Use a single-threaded event loop with blocking interface-bounded ports. Order queued events by (tick, seq) from a virtual clock in tests and the platform clock in live mode. Reclaim transition scratch each iteration, copying loop-carried state across a two-space flip. Define line-oriented .scn scenarios and raw .sse fixtures; test every two- and three-way fixture split.

Consequences

Fakes and goldens can reproduce event sequences without scheduler races. The arena strategy must be proven by allocation and RSS-flat tests; real concurrency remains deferred.