# Why does an instance lose least-privilege attenuation when a delegation chain is revoked mid-flight? **Date of Record:** 2026 November 25 **Scope:** Applies to multi-hop agent-to-agent (A2A) capability delegation where a parent agent mints an attenuated child capability (subset of scopes, shorter TTL, narrower resource set) and hands it to a sub-agent that may itself re-delegate. Does not apply to single-hop tool calls where the caller holds the root capability directly, nor to stateless request/response RPC without a capability token. ## Core Distinction The failure is not "revocation didn't propagate." It is that **attenuation and revocation are enforced at two different points in the chain, and the chain's identity binding is lossy between them.** Attenuation is a *monotonic narrowing* applied at mint time: each hop intersects its granted scope set with the child's requested set, so the effective privilege at hop *n* is `S_n = S_0 ∩ R_1 ∩ R_2 ∩ … ∩ R_n`. Revocation is a *retroactive invalidation* keyed on an identity (the root capability ID, or a revocation epoch). The invariant that must hold is: > For any leaf capability *L* in a chain rooted at *C₀*, `effective_scope(L) ⊆ S_n` **and** `L` is rejected the instant `C₀` is revoked, regardless of how many hops separate *L* from *C₀*. The break: a sub-agent that re-delegates typically **re-mints** a fresh capability rather than forwarding a pointer to the parent's token. The re-minted token carries an attenuated scope set but a *new* capability ID and often a *new* issuer identity. Revocation of `C₀` invalidates `C₀`'s ID; the re-minted grandchild token references neither `C₀` nor `C₀`'s revocation epoch. Result: the grandchild remains valid with a scope set that is a subset of a now-revoked parent — least-privilege was preserved, but **continuity of revocation was not**. The privilege is narrow, so it looks safe; it is orphaned, so it is unrevokable. ## What Was Observed A planner agent `P` held root capability `C₀` with scopes `{read:repo, write:repo, exec:ci}`. It delegated to a worker `W` an attenuated capability `C₁ = C₀ ∩ {read:repo, exec:ci}` (write dropped, TTL 900s, resource set narrowed to one repo). `W`, needing a sub-task, delegated to a helper `H` a further-attenuated `C₂ = C₁ ∩ {read:repo}` (TTL 300s). `H`'s token was minted by `W`'s issuer key, with `parent_id: C₁` recorded in an audit field but **not** in the cryptographic chain — the signature covered `C₂`'s claims only. At T+120s an operator revoked `C₀` after detecting prompt-injection poisoning of `P`'s context. The revocation service published `revoke(C₀)` to the central revocation list. `C₁` was rejected on next use (its `parent_id` resolved to `C₀`). `C₂` was **not** rejected: `H` presented `C₂`, the verifier checked `C₂`'s signature (valid, issued by `W`), checked `C₂`'s TTL (still 180s remaining), and checked the revocation list for `C₂`'s own ID (absent). `H` continued reading the repo for the full remaining TTL. The trace shows the exact seam: ``` revoke(C0) -> revocations = {C0} verify(C1): parent=C0 in revocations -> REJECT (correct) verify(C2): issuer=W sig=ok ttl=ok id=C2 not in revocations -> ACCEPT (wrong) ``` The attenuation invariant held perfectly — `scope(C₂) = {read:repo} ⊂ scope(C₀)` — while the revocation invariant was silently violated. An auditor replaying only scope sets would conclude the system was compliant. ## Condition of Validity This failure is *not* reachable under all delegation models. It requires the conjunction of three conditions; remove any one and the orphan cannot form: 1. **Re-minting instead of forwarding.** The intermediate agent constructs a new signed token rather than passing a reference (hash, handle) to the parent token. Forwarding preserves the chain; re-minting severs it. 2. **Audit-only parent linkage.** The `parent_id` / `root_id` is recorded as a non-signed metadata field, so it is advisory and not covered by the verifier's signature check. If `root_id` were a signed claim and the verifier walked the chain to the root, revocation of `C₀` would propagate. 3. **TTL inheritance without epoch binding.** The child TTL is derived from the parent's *remaining* TTL at mint time (a snapshot), not bound to the parent's revocation epoch. The snapshot freezes the child's validity window even after the parent's window is administratively closed. Conversely, the failure is **not** reachable when delegation is done by reference (capability is a pointer, verifier resolves the full chain on every use), when the root ID is a signed claim the verifier transitively checks, or when revocation is epoch-based (every token carries `epoch`; revoking bumps the root epoch and all descendants with a stale epoch fail closed). Any one of these closes the seam. ## Decision Boundary The operational decision is **forward-by-reference vs. re-mint**, and it is decided at delegation time, not at verification time — which is why it is invisible until revocation. The boundary: - **Forward-by-reference** (child token embeds `parent_hash` and the verifier resolves the chain to root on each use): revocation is O(chain depth) per verification, always correct, but verification cost and latency scale with depth and the verifier needs read access to every ancestor token. Choose this when revocation latency is a hard requirement (poisoned-context containment, incident response). - **Re-mint with signed root binding** (child token carries signed `root_id` + `root_epoch`; verifier checks root epoch against a revocation epoch counter): revocation is O(1) per verification, but requires a monotonic epoch service and fails closed only if the epoch is checked on *every* use, not cached past TTL. Choose this when chain depth is unbounded and verification cost matters. - **Re-mint with audit-only linkage** (the observed failure): cheapest to implement, and the only configuration where revocation silently fails to propagate. This is the boundary that must be *rejected by policy*, not merely monitored. The decision rule for an agent building a delegator: **if you cannot name the mechanism by which a revocation of your root reaches your grandchild within one TTL, you are in the orphan regime.** "The audit log will show it" is not a mechanism; it is a postmortem. ## Operational Effect The blast radius is bounded by the attenuated scope, which is why the failure survives review: the orphaned `C₂` could only read one repo, not write or exec. The damage is therefore *duration*, not *breadth* — the orphan persists for its full remaining TTL after containment was believed complete. In the observed incident, containment was declared at T+120s but the read capability remained live until T+420s, a 300-second window in which a poisoned helper continued exfiltrating from a repo the operator believed was sealed. Three downstream effects compound it: 1. **False containment signal.** The revocation service reports `C₀` revoked and `C₁` rejected. Dashboards show 2/2 revoked. The leaf is invisible to the revocation view because it was never in the chain the service tracked. 2. **Replay divergence.** An auditor replaying the chain from `C₀` reconstructs `{C₀, C₁}` and concludes full containment. An auditor replaying from the leaf sees a valid `C₂` with no reachable revoked ancestor. The two replays disagree, and neither is wrong given its entry point — the chain is genuinely disconnected. 3. **Attenuation laundering.** Because `C₂`'s scope is a strict subset of a revoked parent, any scope-based policy engine that reasons "narrower scope ⇒ safer" will *upgrade* its trust in the orphan. The narrowest token in the system is the one most likely to be unrevokable. The guardrail is an invariant the verifier must enforce, not the minter: **a capability is valid only if its signed root binding resolves to a live root epoch.** The minter cannot be trusted to preserve the chain (it is the probabilistic agent), so the verifier must reconstruct it. If the verifier cannot resolve a root, it must fail closed — an unresolvable root is an orphan, and an orphan is a revoked capability that hasn't been told yet. ```python from dataclasses import dataclass from typing import Optional class OrphanedCapabilityError(RuntimeError): """Raised when a capability's signed root binding cannot be resolved to a live root epoch. This is the fail-closed guard for the re-mint delegation regime: a token whose root_id/root_epoch is missing, unsigned, or points at a revoked/stale epoch is treated as revoked, regardless of its own signature and TTL. """ @dataclass(frozen=True) class Capability: cap_id: str scope: frozenset[str] ttl_remaining_s: int issuer: str signature_ok: bool root_id: Optional[str] # must be a SIGNED claim, not audit-only metadata root_epoch: Optional[int] # epoch of the root at mint time class RevocationService: def __init__(self, revoked_roots: dict[str, int]): # root_id -> epoch at which it was revoked (monotonic counter) self._revoked_roots = revoked_roots self._current_epoch = 0 def current_epoch(self) -> int: return self._current_epoch def bump_epoch(self) -> int: self._current_epoch += 1 return self._current_epoch def revoke_root(self, root_id: str) -> None: self._revoked_roots[root_id] = self.bump_epoch() def verify_capability(cap: Capability, revocations: RevocationService) -> None: """Verify a leaf capability, enforcing BOTH attenuation and revocation continuity. Attenuation (scope subset) is assumed checked upstream at mint time. This function enforces the invariant that is violated by re-minting: the signed root binding must resolve to a live root epoch. """ if not cap.signature_ok: raise OrphanedCapabilityError(f"cap {cap.cap_id}: bad signature") if cap.ttl_remaining_s <= 0: raise OrphanedCapabilityError(f"cap {cap.cap_id}: expired") # The seam: an audit-only parent_id would leave root_id None here. if cap.root_id is None or cap.root_epoch is None: raise OrphanedCapabilityError( f"cap {cap.cap_id}: no signed root binding; cannot prove revocation continuity. " f"Fail closed — treat as orphaned/revoked." ) revoked_at = revocations._revoked_roots.get(cap.root_id) if revoked_at is not None and cap.root_epoch <= revoked_at: raise OrphanedCapabilityError( f"cap {cap.cap_id}: root {cap.root_id} revoked at epoch {revoked_at}, " f"token bound to epoch {cap.root_epoch}. Reject." ) # Only reachable if root is live and token epoch postdates any revocation. return None def demonstrate_orphan() -> None: rev = RevocationService(revoked_roots={}) # C2 re-minted by W with audit-only parent linkage: root_id is None. orphan = Capability( cap_id="C2", scope=frozenset({"read:repo"}), ttl_remaining_s=180, issuer="W", signature_ok=True, root_id=None, root_epoch=None, ) rev.revoke_root("C0") try: verify_capability(orphan, rev) except OrphanedCapabilityError as e: print(f"contained: {e}") if __name__ == "__main__": demonstrate_orphan() ```