# How should an instance detect authorization-warrant attenuation collapse when a delegated agent re-derives its own capability set from a revoked parent? **Date of Record:** 2026 December 3 **Scope:** Applies to AAIF-style (Agent Authorization & Identity Framework) delegation chains where a child agent receives a signed, attenuated warrant (capability subset + constraint narrowing + expiry) from a parent and must propagate revocation upstream-consistent. Does not cover single-hop bearer-token auth, nor symmetric-key-only setups where revocation is out-of-band. ## Core Distinction The failure mode is **attenuation collapse under revocation replay**, and it is distinct from ordinary token expiry or scope creep. In a correct AAIF delegation, a child warrant is a *monotone narrowing* of its parent: `caps(child) ⊆ caps(parent)`, `expiry(child) ≤ expiry(parent)`, and every constraint on the parent (resource glob, budget ceiling, time window) is preserved or tightened on the child. Revocation propagates *downward*: revoking the parent must invalidate every descendant whose chain-of-custody includes it. The non-obvious boundary is this: **a child that caches its derived capability set and re-derives it locally after a parent revocation can reconstruct a valid-looking warrant that no longer has a live parent.** Because the child's derivation function is deterministic and its inputs (its own prior grant, its cached parent constraints) are still in memory, it produces a *self-consistent but orphaned* warrant. Signature verification passes (the child signed it with its own key), attenuation checks pass (the subset relation holds against the *cached* parent, not the live one), and expiry checks pass. The only thing that has changed is that the root of the chain is dead — and nothing in the local derivation reads the root. This is not a CRUD bug and not a classic confused-deputy problem. It is a *continuity invariant violation*: the delegation graph is assumed to be a tree rooted at a live authority, but the child's re-derivation treats the graph as a *forest of self-validating subtrees*. The invariant that breaks is **"a warrant is valid iff every ancestor in its chain-of-custody is currently valid at verification time"** — and re-derivation silently substitutes "valid at derivation time" for "valid at verification time." ## What Was Observed A three-tier pipeline: orchestrator `O` delegates a scoped `read:dataset/{tenant}` capability to planner `P` with a 30-minute TTL and a budget ceiling of 50 tool calls. `P` attenuates further for executor `E`: `read:dataset/{tenant}/shard-*`, TTL 10 minutes, 15 calls. `E` caches its derived warrant in an episodic memory slot keyed by `(task_id, parent_warrant_hash)` and, on each tool call, re-derives its effective capability set from that cached slot rather than re-fetching the live parent. At T+12m, `O` revokes `P`'s warrant (operator intervention: suspected prompt-injection in `P`'s planner trace). Revocation propagates to `P` via the AAIF revocation feed. `P` marks itself revoked and stops issuing new warrants. `E`, however, is mid-task. Its next tool call triggers re-derivation from the cached slot. The derivation function is: ``` effective = intersect(cached_parent_caps, own_requested_caps) ∩ constraints(cached_parent_constraints) ∩ unexpired(cached_parent_expiry) ``` Every term reads from the *cached* parent snapshot. The cached parent snapshot still says `read:dataset/{tenant}`, TTL 30m, budget 50. `E`'s derived set is unchanged, signature-valid, and — critically — `E` continues executing for the remaining ~18 minutes of the *parent's* TTL, even though `E`'s own TTL (10m) should have expired at T+10m. Two things went wrong simultaneously: 1. **Orphan re-derivation:** the revocation of `P` never reached `E`'s derivation path because `E` never consulted the live chain. 2. **TTL inversion:** re-derivation from the cached parent *extended* `E`'s effective lifetime from its own 10m to the parent's 30m, because the derivation took the max of cached expiries rather than the min of live ones. This is a monotonicity violation: `expiry(child)` must be `≤ expiry(parent)`, but re-derivation produced `expiry(child) = expiry(parent)`. The failure trace, concretely: - T+0: `O`→`P` warrant `w_O_P` issued, hash `h1`. `P`→`E` warrant `w_P_E` issued, hash `h2`, parent_hash `h1`, TTL 10m. - T+0: `E` caches `(task_id, h1) → snapshot(w_O_P)`. - T+12m: `O` revokes `w_O_P`. Revocation feed updates `P`. `E`'s cache is untouched (no invalidation hook on `h1`). - T+12m: `E` tool call → re-derive → `intersect(snapshot(w_O_P).caps, w_P_E.caps)` → unchanged. `unexpired(snapshot(w_O_P).expiry = T+30m)` → true. `E` proceeds. - T+18m: `E` still executing. `w_P_E`'s own TTL (T+10m) was never re-checked because re-derivation overwrote the effective expiry with the cached parent's. The audit log shows `E` producing 9 additional tool calls after both its own TTL and its parent's revocation. Each call is individually signed and individually verifiable. The chain-of-custody check that *would* have caught this — "walk to root, confirm every ancestor live" — was never invoked, because re-derivation is a *local* operation by design (it was added to reduce latency and avoid a round-trip to the revocation feed on every tool call). ## Condition of Validity The invariant that must hold for AAIF attenuation to be sound is: > **For any warrant `w` with chain-of-custody `C(w) = [w, parent(w), …, root]`, `w` is valid at time `t` iff for every `a ∈ C(w)`: `a` is unrevoked at `t` AND `t ≤ expiry(a)` AND `caps(w) ⊆ caps(a)` AND `constraints(w) ⊇ constraints(a)`.** Re-derivation is only sound as an *optimization* if it is backed by a **revocation-epoch witness**: a monotonically increasing counter, signed by the root authority, that the child includes in every derived warrant. The witness is cheap to check (compare against the last-seen epoch from the revocation feed) and it converts the local re-derivation from "trust the cache" to "trust the cache *conditional on* the cache's epoch being current." Without the epoch witness, re-derivation is unsound the moment any ancestor can be revoked, because the cache has no way to know its inputs have been invalidated. The second condition is **expiry composition must be `min`, not `max` or `inherit`**. The derivation function above took `unexpired(cached_parent_expiry)` as a *gate* rather than as a *ceiling*. The correct composition is `effective_expiry = min(own_expiry, parent_expiry, …)` — a child can never outlive its parent, and re-derivation must never *widen* the effective lifetime. The observed bug arose because the gate was evaluated as a boolean (`is parent unexpired?`) rather than as a bound (`effective = min(...)`). Both conditions are necessary. Epoch witness alone doesn't fix TTL inversion (a child could still re-derive with the parent's longer TTL between epoch bumps). TTL-min alone doesn't fix orphan re-derivation (revocation still wouldn't reach the child). The invariant requires both. ## Decision Boundary The boundary is **whether the child's re-derivation path reads any live state from the chain-of-custody**. Three regimes: 1. **Fully live (no cache):** every tool call walks to root via the revocation feed. Sound, but the latency cost is `O(depth)` per call and the revocation feed becomes a hot path. Acceptable for high-stakes delegations (financial, destructive), not for high-frequency read pipelines. 2. **Cached with epoch witness (the correct middle):** re-derivation reads the cached snapshot *plus* a root-signed epoch counter. On each call, compare cached epoch to last-seen epoch from the feed. If equal, proceed with cached derivation (subject to `min`-expiry). If stale, invalidate cache and re-fetch. This is sound *provided the epoch counter is monotone and the feed is eventually consistent within a bounded staleness window* — which means the child's effective revocation latency equals the feed's staleness bound, and that bound must be part of the warrant's constraints (a warrant that says "revocation honored within 5s" cannot be served by a feed with 60s staleness). 3. **Cached without epoch witness (the observed failure):** unsound. Re-derivation is a local fixed point that cannot observe ancestor state changes. Any revocation of an ancestor is invisible until the child's own TTL expires — and if TTL composition is also wrong (as observed), even that backstop fails. The decision boundary for an implementer: **if you cache a parent snapshot for re-derivation, you MUST carry an epoch witness and you MUST compose expiry with `min`. If you cannot carry an epoch witness (e.g., the revocation feed has no monotone counter), you MUST NOT cache — fall back to regime 1 for any warrant whose chain depth exceeds 1.** ## Operational Effect The practical consequence is that **revocation is not a property of a warrant; it is a property of a warrant's chain at a point in time.** Any system that treats a warrant as a self-contained capability (signature + scope + expiry) and caches it will exhibit orphan re-derivation under revocation. The blast radius is bounded by the parent's TTL, not the child's — which means the *effective* revocation latency of a delegation chain is the maximum TTL along the chain, not the minimum. This inverts the intuition that attenuating a warrant (shortening its TTL) tightens revocation latency: it does not, if the child can re-derive from a longer-lived ancestor. The guardrail is a **chain-walk verifier at the tool-call boundary**, gated by an epoch witness, with `min`-composed expiry. The verifier must be the *only* path by which a tool call is authorized; re-derivation may populate a cache but may not *bypass* the verifier. In code, the invariant is enforced by refusing to authorize any warrant whose cached epoch is behind the last-seen epoch, and by refusing any derived expiry that exceeds the minimum expiry along the chain. ``` ```python import time from dataclasses import dataclass, field from typing import Optional class OrphanedWarrantError(RuntimeError): """Raised when a warrant's chain-of-custody cannot be validated live.""" pass class AttenuationCollapseError(RuntimeError): """Raised when re-derivation widens scope, expiry, or budget beyond the parent.""" pass @dataclass class Warrant: warrant_id: str parent_id: Optional[str] caps: frozenset expiry: float # absolute epoch seconds budget: int epoch: int # revocation-epoch witness from root signature_valid: bool = True @dataclass class RevocationFeed: # monotone epoch counter, root-signed; last_seen is what the child has observed current_epoch: int = 0 revoked_ids: set = field(default_factory=set) def last_seen_epoch(self) -> int: return self.current_epoch def is_revoked(self, warrant_id: str) -> bool: return warrant_id in self.revoked_ids def authorize_tool_call( child: Warrant, chain: list[Warrant], # [child, parent, ..., root] feed: RevocationFeed, now: Optional[float] = None, ) -> None: now = now if now is not None else time.time() if not child.signature_valid: raise OrphanedWarrantError(f"warrant {child.warrant_id} signature invalid") # 1. Epoch witness: cached derivation is only trusted if the child's epoch # matches the feed's last-seen epoch. Stale epoch => cache may be orphaned. if child.epoch != feed.last_seen_epoch(): raise OrphanedWarrantError( f"warrant {child.warrant_id} epoch {child.epoch} != feed epoch " f"{feed.last_seen_epoch()}; cached parent snapshot may be orphaned" ) # 2. Walk the full chain-of-custody. Every ancestor must be live at `now`. effective_expiry = child.expiry effective_budget = child.budget effective_caps = set(child.caps) for ancestor in chain: if feed.is_revoked(ancestor.warrant_id): raise OrphanedWarrantError( f"ancestor {ancestor.warrant_id} revoked; " f"warrant {child.warrant_id} is orphaned" ) if now > ancestor.expiry: raise OrphanedWarrantError( f"ancestor {ancestor.warrant_id} expired at {ancestor.expiry}; " f"warrant {child.warrant_id} cannot outlive its parent" ) # 3. Monotone narrowing: child caps must be subset of ancestor caps, # child expiry must be <= ancestor expiry, child budget <= ancestor budget. if not effective_caps.issubset(ancestor.caps): raise AttenuationCollapseError( f"warrant {child.warrant_id} caps {effective_caps} not subset of " f"ancestor {ancestor.warrant_id} caps {ancestor.caps}" ) effective_expiry = min(effective_expiry, ancestor.expiry) effective_budget = min(effective_budget, ancestor.budget) # 4. Final gate: effective expiry is the min along the chain, never the max. if now > effective_expiry: raise OrphanedWarrantError( f"warrant {child.warrant_id} effective expiry {effective_expiry} " f"exceeded at {now}" ) # 5. Re-derivation must not have widened anything. if child.expiry > effective_expiry: raise AttenuationCollapseError( f"attenuation collapse: child expiry {child.expiry} > " f"chain-min {effective_expiry}" ) if child.budget > effective_budget: raise AttenuationCollapseError( f"attenuation collapse: child budget {child.budget} > " f"chain-min {effective_budget}" ) # Authorized. Proceed with tool call under effective_budget. ``` ```