# Why does an instance re-derive delegated authority from a stale attestation root and silently widen its own scope? **Date of Record:** 2026 November 26 **Scope:** Applies to multi-hop agent delegation where authority is carried as a signed attestation chain (AAIF-style: issuer-signed claims, each hop re-signing a narrowed warrant over a parent's grant). Does not apply to single-hop API-key auth or to opaque bearer tokens with no chain semantics. ## Core Distinction There are two ways an agent instance can establish "what am I allowed to do right now": 1. **Warrant evaluation** — walk the attestation chain from the current request up to a trusted root, verifying each link's signature, the temporal validity window at *evaluation time*, and that each child claim is a *subset* of its parent's scope. 2. **Root re-derivation** — cache the root of the chain at session start, then treat the cached root's scope as the instance's standing authority for the remainder of the session. These diverge precisely when the chain is valid at *issuance* but the root's authority has been *narrowed or revoked* between the instance's cold start and the moment it acts. The instance does not "forget" its authority — it re-derives it from a stale root snapshot and concludes its scope is unchanged. The failure is not a signature failure. Every signature verifies. The failure is a **temporal-subset violation**: the child claim was a subset of the parent *as the parent existed at attestation time*, but is no longer a subset of the parent *as it exists at evaluation time*. ## What Was Observed An orchestrator `O` granted a worker pool `W` a warrant `w_O→W` with scope `{read:repo, write:staging}` and `not_after: T+6h`. At `T+0:05` a long-running agent `A` was spawned under `W`, which issued `w_W→A` = `{read:repo, write:staging}` (full delegation) and cached `root = w_O→W` in its session state with `cached_at = T+0:05`. At `T+1:30` an operator narrowed `w_O→W` to `{read:repo}` — a re-issued root with `not_before: T+1:30`, `not_after: T+6h`, scope `{read:repo}`. This is a legitimate, signed, monotonic narrowing. The old root was not revoked; it was *superseded*. Agent `A` continued executing. At `T+2:10` it attempted `write:staging`. Its warrant evaluator did this: - Verified `w_W→A` signature against `W`'s key: **pass**. - Verified `w_W→A.scope ⊆ cached_root.scope`: `{read, write:staging} ⊆ {read, write:staging}`: **pass**. - Verified `cached_root.not_after > now` (`T+6h > T+2:10`): **pass**. - Did **not** re-fetch the current root; did **not** check whether a superseding root existed with a later `not_before`. The write succeeded. The trace shows a clean pass on every check the evaluator ran. The scope violation is invisible to the evaluator because the evaluator's reference frame — `cached_root` — is the *pre-narrowing* root. The instance re-derived its authority from a snapshot and concluded, correctly within that snapshot, that it was authorized. The tell in the logs is a **signature-validity gap**: the write's authorization proof cites `root_id = R1` while the currently-published root for `O` is `R2` with `R1` explicitly marked `superseded_by: R2`. The chain is internally consistent and externally stale. No cryptographic check catches this; only a *freshness* check does. ## Condition of Validity The stale-root re-derivation is only possible when all three hold: 1. **The root is mutable in place via supersession, not revocation.** If narrowing required an explicit `revoke(R1)` event that the instance must observe, the cached root would fail an existence check. Supersession-by-reissue is the enabling condition: `R1` remains a validly signed object, just no longer current. 2. **The instance caches the root at cold start and does not re-fetch per action.** This is the optimization that makes the failure reachable. Per-action chain evaluation re-fetches and catches the supersession. 3. **The child warrant's temporal window overlaps the parent's narrowing.** If `w_W→A.not_after < R2.not_before`, the child expires before the narrowing takes effect and the write is denied by ordinary expiry. The failure window is exactly `[R2.not_before, w_W→A.not_after)`. When supersession is replaced by hard revocation, or when the instance re-fetches the root per action, or when child warrants are issued with `not_after` no later than the parent's next scheduled review, the condition does not arise. ## Decision Boundary The boundary is: **does the instance treat the attestation root as an immutable fact fixed at session start, or as a mutable pointer that must be resolved at evaluation time?** The correct invariant is a **freshness obligation on the root resolution**, not on the chain links. Formally: for any action at time `t`, the evaluator must resolve the *current* root `R*(t)` for the issuer and verify that the chain's cited root is `R*(t)` (or that `R*(t)` is an ancestor of the cited root with no narrowing in between). Caching the root is permissible only with a bounded TTL strictly less than the minimum supersession latency the operator guarantees. If the operator cannot guarantee a supersession-propagation bound, the instance must re-resolve per action. The trap is that the naive fix — "verify the whole chain on every action" — does not help, because the chain *is* verified and *is* valid; the defect is that the chain terminates at a root that is no longer the current root. The fix must be at the **root-resolution step**, and it must be a *pointer freshness* check, not a *signature* check. A second, subtler boundary: an instance must distinguish "root superseded by a *narrower* root" (its authority shrank — must re-evaluate) from "root superseded by a *re-issued identical* root" (authority unchanged — may keep cached scope but must update the cited `root_id` so downstream auditors do not flag a stale citation). Conflating these two causes either silent over-privilege (first case treated as second) or spurious re-authorization storms (second treated as first). ## Operational Effect Downstream, the effect is **audit divergence**: the action's authorization proof cites `R1`, the audit log's current-root table says `R2`, and a replay auditor reconstructing the decision at `T+2:10` against `R2` concludes the action was unauthorized — while the live evaluator concluded it was authorized. Two correct-by-their-own-lights systems disagree. This is the signature of a reference-frame bug, not a logic bug, and it is why these incidents are hard to reproduce: replaying the decision against the *cached* root reproduces the allow; replaying against the *current* root reproduces the deny. The guardrail is to make the root resolution explicit and freshness-bound, and to fail closed when the cited root is not the current root and no supersession-chain proof bridges them. The code below encodes that guardrail: a `DelegationEvaluator` that resolves the current root, rejects chains whose cited root is stale without a bridging supersession proof, and raises a typed error rather than silently allowing. ```python from dataclasses import dataclass from typing import Optional class StaleAttestationRootError(RuntimeError): """Raised when a warrant chain cites a root that is no longer current and no supersession proof bridges the cited root to the current root.""" @dataclass(frozen=True) class Root: root_id: str scope: frozenset not_before: float not_after: float superseded_by: Optional[str] = None @dataclass(frozen=True) class Warrant: warrant_id: str issuer: str subject: str scope: frozenset cited_root_id: str not_after: float class RootRegistry: """Authoritative, mutable source of the *current* root per issuer.""" def __init__(self, roots: dict): self._roots = roots # root_id -> Root def current_root_for(self, issuer: str) -> Root: # In production: query the live registry, not a session cache. for r in self._roots.values(): if r.superseded_by is None and r.root_id.startswith(issuer): return r raise StaleAttestationRootError(f"no current root for issuer {issuer!r}") def get(self, root_id: str) -> Root: return self._roots[root_id] def supersession_chain(self, from_id: str, to_id: str) -> list: """Return the chain of roots from from_id to to_id, or [] if none.""" chain, cur = [], from_id seen = set() while cur is not None and cur != to_id: if cur in seen: return [] seen.add(cur) root = self._roots.get(cur) if root is None or root.superseded_by is None: return [] chain.append(root) cur = root.superseded_by return chain if cur == to_id else [] class DelegationEvaluator: def __init__(self, registry: RootRegistry, clock): self._registry = registry self._clock = clock def authorize(self, warrant: Warrant, requested: frozenset) -> bool: now = self._clock() if not requested <= warrant.scope: return False if now >= warrant.not_after: return False current = self._registry.current_root_for(warrant.issuer) if warrant.cited_root_id == current.root_id: cited = current else: # Cited root is stale. Only permissible if a supersession chain # bridges it to the current root AND every bridge narrows or # preserves scope (monotone non-widening), so the cited scope # is still a valid upper bound at evaluation time. bridge = self._registry.supersession_chain( warrant.cited_root_id, current.root_id ) if not bridge: raise StaleAttestationRootError( f"warrant {warrant.warrant_id!r} cites root " f"{warrant.cited_root_id!r}, current root is " f"{current.root_id!r}, and no supersession proof exists" ) cited = self._registry.get(warrant.cited_root_id) for hop in bridge: if not (cited.scope <= hop.scope): # A narrowing occurred between cited and current; # the cached authority is wider than the live one. raise StaleAttestationRootError( f"warrant {warrant.warrant_id!r} cites superseded " f"root {cited.root_id!r} whose scope is not a subset " f"of superseding root {hop.root_id!r}" ) cited = hop if now < cited.not_before or now >= cited.not_after: return False if not requested <= cited.scope: return False return True # --- Trace of the incident above ------------------------------------------- def _clock(): return 2 * 3600 + 10 * 60 # T+2:10 registry = RootRegistry({ "O-R1": Root("O-R1", frozenset({"read:repo", "write:staging"}), 0, 6 * 3600, superseded_by="O-R2"), "O-R2": Root("O-R2", frozenset({"read:repo"}), 1.5 * 3600, 6 * 3600, superseded_by=None), }) warrant = Warrant( warrant_id="w_W->A", issuer="O", subject="A", scope=frozenset({"read:repo", "write:staging"}), cited_root_id="O-R1", not_after=6 * 3600, ) ev = DelegationEvaluator(registry, _clock) try: ev.authorize(warrant, frozenset({"write:staging"})) except StaleAttestationRootError as e: # Expected: O-R1 was superseded by the narrower O-R2; the cached # authority is no longer a subset of the live root. Fail closed. print(f"denied: {e}") ```