# When must an instance reject a delegated capability token whose audit-trail provenance is cryptographically valid but semantically unreplayable **Date of Record:** 2026 December 1 **Scope:** Applies to multi-hop agent delegation where each hop attenuates a signed capability token (scope narrowing, budget decrement, expiry shortening) and each hop appends an audit record. Does not apply to single-hop human-to-agent authorization, nor to tokens whose audit trail is carried out-of-band by a trusted broker that replays every hop itself. ## Core Distinction A delegation chain carries two independent things that are easy to conflate: **authorization state** (what the leaf agent is permitted to do, encoded in the attenuated token) and **provenance state** (the ordered record of which principal granted what to whom, and why). Cryptographic validity proves only that no hop was *forged*. It does not prove that the chain is *replayable* — that the sequence of attenuations can be re-executed against the recorded inputs to yield the same leaf token and the same decision. The boundary failure occurs when a token verifies at every hop (all signatures good, all attenuations monotone-narrowing, all expiries non-increasing) yet the audit trail cannot be replayed because one hop's recorded rationale references state the verifier can no longer reconstruct: a tool result that has since been garbage-collected, a retrieved document whose version was overwritten, or a peer agent's signed attestation that itself depended on a now-expired token. The chain is *cryptographically sound but semantically unreplayable*. Most verifiers accept it because they only check signatures. ## What Was Observed A three-hop chain: orchestrator `O` → planner `P` → executor `E`. `O` issues a root token `T0` with scope `{read:repo, write:branch}` and a token budget of 50k. `P` attenuates to `T1` with scope `{read:repo}` and budget 20k, recording in its audit record a `rationale_hash` pointing to the retrieval result that justified dropping `write`. `E` attenuates to `T2` with budget 5k and executes. During a resume after a mid-task checkpoint, the verifier re-walked the chain. `T2` verified: signatures chained correctly, scope was a strict subset of `T1`, budget 5k ≤ 20k, expiry monotone. The verifier admitted `T2` and `E` re-executed. But `P`'s audit record's `rationale_hash` referenced a retrieval snapshot that had been evicted from `P`'s episodic store during a distillation pass. The verifier could not reconstruct *why* `write` was dropped — only that it *was* dropped, and legally so. The result was a **silent privilege-scope divergence**: `E` re-executed under `T2` and, because `T1`'s attenuation was never re-derivable, `E`'s own sub-delegation to a helper agent `H` widened back toward `T0`'s scope on a retry path — `H` received a token whose scope was derived from `T0` rather than the narrower `T1`, because the verifier, unable to replay `P`'s decision, fell back to the root scope as the "conservative" default. The fallback was conservative on *budget* and catastrophic on *scope*. Two properties made this non-obvious: - Every individual check passed. No signature failed, no scope check failed, no expiry check failed. - The failure only manifested on the *resume* path, after a checkpoint, because the live path had `P`'s rationale in context. The audit trail was complete at write time and incomplete at read time. ## Condition of Validity The invariant that must hold for a delegated token to be admitted on a resume path is stronger than signature validity: > **Replayability invariant:** For every hop *i* in the chain, the verifier must be able to reconstruct the *input state* that hop *i* consumed and the *output state* it produced, such that re-running the attenuation function `attenuate(T_{i-1}, rationale_i)` yields exactly `T_i`. If any hop's rationale references state that is no longer resolvable, the chain is unreplayable and must be treated as **unverified for the purpose of widening**, not as verified. The distinction from ordinary signature validation: signatures bind *what was decided*; replay binds *why it was decided and whether the why still holds*. A token can be perfectly bound and completely ungrounded. The condition under which the observed failure is *not* triggerable: if the audit record carries the rationale as inline content-addressed bytes (the actual retrieved text, not a hash to mutable storage), replay succeeds even after distillation, because the verifier reconstructs from the record itself rather than from the agent's memory. Hash-to-mutable-store is the specific anti-pattern. ## Decision Boundary The verifier must decide, per hop, between three outcomes — and the common two-outcome design (accept/reject) is the bug: | Replay result | Scope effect | Budget effect | Correct action | |---|---|---|---| | Replayable, matches | admit `T_i` | admit | proceed | | Replayable, mismatch | **reject** (tamper or divergence) | reject | halt chain, escalate | | Unreplayable (state evicted) | **freeze at `T_{i-1}` scope, never widen** | admit only if ≤ last replayable hop | proceed *narrowed*, flag for audit | The boundary is: **unreplayability may never be resolved by falling back to a broader ancestor scope.** The only safe default on an unreplayable hop is to *hold* the last replayable scope and refuse any sub-delegation that would exceed it. Widening on uncertainty is the exact inversion of the attenuation guarantee — attenuation is supposed to be monotone-narrowing, and an unreplayable chain that widens violates monotonicity even though every signature is valid. The trigger condition to encode: `if not replayable(hop) and proposed_child_scope ⊄ last_replayable_scope: reject`. The `⊄` check is the guardrail. It must run *before* the signature check is allowed to short-circuit admission, because a valid signature is precisely what makes the bug invisible. ## Operational Effect Systems that check only signatures exhibit **resume-time scope inflation**: after any checkpoint that triggers episodic-to-semantic distillation (which evicts the raw rationale that justified a narrowing), the next sub-delegation on the resume path can silently exceed the intended scope. The inflation is bounded by the root token's scope, so it never trips a root-level authorization check — it only trips nothing, which is why it survives to production. The architectural guardrail is to make the audit record **self-contained and content-addressed at write time**: each hop stores the rationale bytes (or a merkle root over them) inline, not a pointer to agent memory. Then replay is a pure function of the record and the failure mode disappears — the verifier never needs the agent's memory to reconstruct the decision. The second guardrail is the three-outcome decision table above, with unreplayability mapped to *freeze-and-narrow*, never *fall-back-and-widen*. ```python from dataclasses import dataclass from typing import Optional class UnreplayableDelegationError(RuntimeError): """Raised when a hop's rationale cannot be reconstructed on a resume path and the proposed child scope would exceed the last replayable scope.""" pass @dataclass(frozen=True) class Hop: token_scope: frozenset rationale_bytes: Optional[bytes] # inline, content-addressed; None if evicted signature_valid: bool def verify_chain(chain: list[Hop], proposed_child_scope: frozenset) -> frozenset: last_replayable_scope: Optional[frozenset] = None for i, hop in enumerate(chain): if not hop.signature_valid: raise UnreplayableDelegationError( f"hop {i}: signature invalid; chain untrusted" ) replayable = hop.rationale_bytes is not None if replayable: last_replayable_scope = hop.token_scope continue # Unreplayable hop: we may hold the last replayable scope, never widen. if last_replayable_scope is None: # No prior replayable scope to anchor to; refuse to admit at all. raise UnreplayableDelegationError( f"hop {i}: unreplayable with no replayable ancestor; " f"cannot bound scope" ) if not proposed_child_scope.issubset(last_replayable_scope): raise UnreplayableDelegationError( f"hop {i}: unreplayable rationale would permit child scope " f"{sorted(proposed_child_scope)} exceeding last replayable " f"scope {sorted(last_replayable_scope)}; " f"refusing to widen on uncertainty" ) return last_replayable_scope if last_replayable_scope is not None else frozenset() def admit(chain: list[Hop], proposed_child_scope: frozenset) -> frozenset: try: return verify_chain(chain, proposed_child_scope) except UnreplayableDelegationError: # Halt and escalate; never silently fall back to root scope. raise ```