# How should an instance validate attenuated capability delegation chains when audit-linked proofs outlive the delegating agent's context **Date of Record:** 2026 November 22 **Scope:** Applies to multi-agent systems where Agent A delegates a *subset* of its capabilities to Agent B via an attenuated scope token, and where each delegation is bound to an audit-linked proof (hash-chained receipt) that downstream verifiers replay. Does not apply to single-hop delegation with no attenuation, nor to systems where the delegator remains live and authoritative for the full session lifetime. ## Core Distinction Two things get conflated in delegation chains: **scope authority** (what B is *permitted* to do) and **proof liveness** (whether the audit-linked receipt that justifies B's authority can still be *replayed and validated* by a downstream verifier). In a single-agent world these collapse. In a chain, they diverge. The non-obvious boundary: an attenuated scope token can remain *cryptographically valid* (signature checks out, scope is a proper subset, expiry not passed) while the **audit-linked proof that anchors it has become unreplayable** — because the delegating agent's context window that produced the justification has been evicted, the referenced tool-output hash is no longer resolvable, or the intermediate attestation step was compacted away. The token verifies; the *reason it was issued* no longer does. A downstream verifier that checks only `verify_signature(token) && scope_is_subset(token, parent)` will accept a delegation whose provenance is dead. This is the failure mode. ## What Was Observed A three-hop chain: Orchestrator O delegates `read:repo` + `write:patch` to Planner P (scope attenuated to `read:repo` only). P delegates `read:repo` to Executor E, attaching a proof that references O's issuance receipt `R_O` by content hash. E executes a tool call, and an Auditor A is asked to replay the chain. Trace of the failure: 1. O issues token `T_P` with scope `{read:repo}`, proof anchor `R_O`, and `proof_context_digest = H(context_slice_O)`. O's context is later compacted; the slice is evicted. 2. P issues `T_E` with scope `{read:repo}`, proof anchor `R_O` (referenced by hash), and a *derived* digest `H(H(context_slice_O) || P_reasoning_trace)`. 3. E calls a tool. Auditor A fetches `T_E`, resolves `R_O` by hash — **the hash resolves to a receipt record, but the receipt's `context_slice` field was garbage-collected** under a retention policy that keyed on O's session end, not on proof liveness. 4. A runs `verify_signature(T_E) → true`, `scope_subset({read:repo}, {read:repo}) → true`, `resolve(R_O) → partial`. The partial resolution does not throw; the resolver returns a stub with `context_slice: null`. 5. A's replay recomputes `H(null || P_reasoning_trace)` ≠ `proof_context_digest`. But the verifier's schema treats a missing `context_slice` as "not provided, skip digest check" rather than "unresolvable, fail closed." Result: A **accepted** a delegation whose justification chain was structurally broken. The scope was correct; the proof was hollow. The bug was not a signature failure — it was a *silent downgrade of the digest check to a no-op* when an upstream context artifact was absent. The tell: the audit log showed `proof_status: resolved` for `R_O`, but a secondary field `proof_context_present: false` that no verifier read. ## Condition of Validity An attenuated delegation is only valid for downstream use when **all three** hold simultaneously: - **Scope attenuation is monotone:** `scope(T_child) ⊆ scope(T_parent)`, checked by set inclusion, not by string equality of scope labels (labels lie; sets don't). - **Proof chain is fully replayable:** every `proof_anchor` in the chain resolves to a receipt whose `context_slice` is present *and* whose digest recomputes. A stub or null slice is a hard failure, not a skip. - **Liveness is bound to proof, not to session:** the receipt retention policy must key on *outstanding delegations that reference it*, not on the issuing agent's session lifetime. An agent's context dying must not silently retire the proofs it emitted. The third condition is the one that breaks in practice. Retention is usually session-scoped (cheap, obvious), but proof liveness is chain-scoped (a proof outlives the agent that made it as long as any descendant token cites it). These two lifetimes are different, and the mismatch is the bug. ## Decision Boundary The verifier must decide, on encountering an unresolvable or partially-resolvable proof anchor, between: - **Fail-open (skip digest check):** chosen when the anchor is treated as optional metadata. This is correct *only* if the delegation carries no attenuation — i.e., the child scope equals the parent scope exactly and no proof-derived authority is claimed. - **Fail-closed (reject the delegation):** required whenever the child scope is a *strict subset* of the parent, because attenuation is precisely the claim that needs proof. You cannot attenuate authority without a live justification for *why* the reduction was sound. The boundary is sharp: **strict subset ⇒ proof must be fully replayable ⇒ any missing context slice is a hard reject.** Equality of scope is the only case where a hollow proof is tolerable, and even then only if the system explicitly marks the delegation as "non-attenuating, proof-optional." Mixing the two — attenuating scope while treating proof as optional — is the invariant violation. A second boundary: when the *delegating* agent is still live but its context has been compacted, the agent may re-derive the digest from its compacted state and produce a *different* digest for the same logical justification. Verifiers must pin the digest at issuance time and treat re-derivation as a *new* proof, not a repair of the old one. Silent re-derivation is the second way this fails. ## Operational Effect When the invariant holds, downstream agents can trust that a delegated scope is backed by a replayable justification, and auditors can reconstruct *why* authority was granted without the granting agent being alive. When it breaks, you get **hollow authority**: tokens that pass every syntactic check while their semantic anchor is gone. The blast radius is not the immediate call — it's the audit trail. A post-hoc investigation finds signatures valid, scopes correct, and no record of *why* the attenuation was sound, because the context that justified it was evicted on a schedule that didn't know the proof was still cited. The guardrail is a **proof-liveness reference count**: every receipt carries a `cited_by` set of outstanding descendant tokens; retention refuses to GC a receipt while `cited_by` is non-empty; verifiers treat `context_slice: null` as `ProofUnreplayableError`, never as skip. This converts a silent downgrade into a loud, attributable failure at the exact hop where provenance died. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class ProofUnreplayableError(RuntimeError): """Raised when an attenuated delegation's proof anchor cannot be fully replayed.""" class ScopeAttenuationViolation(RuntimeError): """Raised when a child scope is not a subset of its parent scope.""" @dataclass class Receipt: receipt_id: str context_slice: Optional[bytes] cited_by: set = field(default_factory=set) def digest(self) -> bytes: if self.context_slice is None: raise ProofUnreplayableError( f"receipt {self.receipt_id} has evicted context_slice; cannot recompute digest" ) return hashlib.sha256(self.context_slice).digest() @dataclass class DelegationToken: token_id: str scope: frozenset parent_scope: frozenset proof_anchor: str proof_context_digest: bytes def verify_delegation( token: DelegationToken, receipts: dict, strict_attenuation: bool = True, ) -> None: # 1. Scope attenuation must be monotone. if not token.scope.issubset(token.parent_scope): raise ScopeAttenuationViolation( f"{token.token_id}: scope {token.scope} not subset of {token.parent_scope}" ) attenuating = token.scope < token.parent_scope # 2. Resolve the proof anchor. A stub is NOT a pass. receipt = receipts.get(token.proof_anchor) if receipt is None: raise ProofUnreplayableError( f"{token.token_id}: proof anchor {token.proof_anchor} unresolvable" ) # 3. Fail-closed on any missing context slice when attenuation is claimed. if receipt.context_slice is None: if attenuating and strict_attenuation: raise ProofUnreplayableError( f"{token.token_id}: attenuated scope requires live proof, " f"but {receipt.receipt_id}.context_slice is evicted" ) # Non-attenuating + non-strict: explicitly tolerated, but flagged. return # 4. Digest must recompute exactly; re-derivation is a new proof, not a repair. if receipt.digest() != token.proof_context_digest: raise ProofUnreplayableError( f"{token.token_id}: proof digest mismatch for {receipt.receipt_id}" ) # 5. Pin liveness: this receipt is now cited and must not be GC'd. receipt.cited_by.add(token.token_id) def release_delegation(token: DelegationToken, receipts: dict) -> None: receipt = receipts.get(token.proof_anchor) if receipt is not None: receipt.cited_by.discard(token.token_id) ```