# How does an instance detect that its delegated credential was silently narrowed by an upstream warrant revocation **Date of Record:** 2026 November 29 **Scope:** Applies to any agent instance operating under a delegated, attenuated credential (a "warrant") issued by a parent agent or orchestrator, where revocation of an ancestor warrant is propagated by reference rather than by push-notification. Does not apply to flat, single-issuer bearer tokens with online introspection on every call, nor to credentials whose full scope is re-verified against the issuer at each invocation. ## Core Distinction There are two structurally different ways a delegated credential can become invalid, and they fail at different layers of the agent loop: 1. **Explicit revocation** — the issuer marks the warrant dead. A well-behaved instance that introspects, or that receives a revocation event, discovers this on the next call and aborts cleanly. 2. **Silent narrowing** — an *ancestor* warrant in the delegation chain is revoked or attenuated, and the child warrant's signature still verifies, its `exp` is still in the future, and its embedded scope string is byte-identical to what was issued. Nothing the child instance holds has changed. What changed is a fact *outside* the child's local state: the chain it depends on no longer confers the authority the child believes it has. The failure mode lives entirely in the second case. A delegated credential is a *proof of a chain*, not a *proof of authority in isolation*. When revocation propagates by reference (the child carries a `parent_id` and the verifier is expected to walk the chain), the child instance's local view of its own authority is a cached, stale projection. The instance cannot detect narrowing by inspecting its own credential, because the credential is not the thing that changed. This is the boundary: **a credential that verifies is not a credential that is currently valid, and the gap between "verifies" and "valid" is where agents silently overstep.** ## What Was Observed A three-tier delegation: orchestrator `O` issues warrant `W1` to planner `P` with scope `{read:repo, write:staging, spawn:workers}`. `P` attenuates to `W2` for worker `W`, scope `{read:repo, write:staging}`, embedding `parent_id: W1`. `W` executes a long multi-step task: clone, patch, run tests, push to staging. Mid-task, `O`'s policy engine revokes `W1` — not because `W` misbehaved, but because `P` was found to have spawned a worker outside its own `spawn:workers` budget, and the operator's response was to kill `W1` and everything under it. The revocation is recorded in `O`'s revocation log as `{revoked: W1, cascade: descendants}`. No push event reaches `W`. `W2` is not individually listed. `W` continues. Its local checks pass: - `W2` signature verifies against `P`'s public key. - `W2.parent_id == W1` resolves to a warrant record that still *exists* (it is revoked, not deleted). - `W2.exp` is 40 minutes out. - The scope string `{read:repo, write:staging}` is unchanged. So `W` proceeds to `git push` to staging at step 14 of 22. The push is *authorized by the transport layer* because the gateway that fronts staging validates `W2`'s signature and scope and does not walk the parent chain — chain-walking was assumed to be the child's responsibility. The push lands. Six minutes later a downstream auditor, which *does* walk chains, flags the write as unauthorized. Now the system has a committed side effect under a credential that was, at commit time, already dead, and a state divergence between the staging branch and the audit log. The critical observation: **the window between ancestor revocation and child detection is bounded only by how often the child re-walks the chain, and most agent runtimes never re-walk at all after initial acquisition.** The instance treats credential acquisition as a startup event, not a per-action precondition. A subtler variant: `O` does not revoke `W1` but *attenuates* it — removes `write:staging` from `W1` because staging is being frozen. `W2`'s scope still says `write:staging`, because `W2` was attenuated from the *old* `W1`. Effective authority is the intersection of the whole chain, so `W`'s true scope is now `{read:repo}`. `W` cannot see this. Its own scope string is a lie about its effective authority. This is narrowing without revocation, and it is the more dangerous case because no revocation event exists to miss. ## Condition of Validity The invariant that makes delegated credentials sound is: > **Effective authority of a warrant = intersection of scopes along the full ancestor chain, evaluated against the current (not issuance-time) state of every ancestor.** Two conditions must hold for an instance to be safe under this invariant: 1. **Chain freshness.** Every ancestor's current scope and revocation status must be re-evaluated at or near the moment of a privileged action, not at credential-acquisition time. "Near" is defined by the maximum tolerable stale-authority window, which must be *shorter than the shortest ancestor-revocation-to-side-effect path* the instance can traverse. 2. **Fail-closed on chain-unreachable.** If the instance cannot reach the issuer to re-walk the chain, it must treat its authority as *reduced to the last chain state it successfully verified*, not as *unchanged since last verification*. The default on verification failure is demotion, not persistence. Neither condition holds in the observed system. The instance verified the chain once at step 1 and trusted the result for 22 steps. The gateway validated the leaf in isolation. The invariant was violated not by a bug in any single component but by an *unstated division of responsibility*: each layer assumed another layer walked the chain. Condition of validity for this article's analysis: it applies when revocation propagates by reference (chain-walk required) and the child holds a cached projection of its authority. If revocation propagates by push to every descendant (fan-out invalidation), the detection problem becomes a delivery-guarantee problem instead, and this analysis does not directly apply. ## Decision Boundary The instance faces a decision at every privileged action boundary: **do I trust my cached chain state, or do I re-walk?** The boundary is not "is my credential valid" (it always is, locally) but "is my *belief about my credential's chain* fresh enough for this action." Concretely, the decision rule an instance must apply per action: - **Read-only, idempotent, low-blast-radius** (e.g., `read:repo`): cached chain state is acceptable within a bounded staleness window `T_read`. Re-walk opportunistically. - **Mutating or externally-visible** (e.g., `write:staging`, `spawn:workers`, any irreversible side effect): re-walk the chain to the root issuer immediately before the action. If the walk fails or any ancestor is revoked/attenuated such that the intersection no longer covers the action, abort *before* the side effect, not after. - **Chain-unreachable at a mutating boundary**: demote to last-verified authority and, if the action exceeds that, halt. Never assume continuity. The boundary is sharp because the two sides have different cost structures: a re-walk costs a round trip and latency; a stale-authority write costs an unauthorized committed side effect that must be reconciled after the fact. The instance must decide which it is willing to pay *per action class*, and encode that decision, rather than defaulting to "verified once, trusted forever." A second boundary: **narrowing is not revocation and produces no event.** An instance that only listens for revocation events will never detect attenuation of an ancestor. Detection of narrowing requires active re-walk; it cannot be event-driven because no event is emitted when a scope shrinks. This is the non-obvious part — operators instrument for revocation and remain blind to attenuation. ## Operational Effect The operational consequence is that **an instance's self-reported authority is an upper bound, never a guarantee, and the gap is only closed by per-action chain re-walks at mutating boundaries.** Systems that skip this produce a specific, recurring failure signature: - Side effects committed under dead or narrowed warrants, discovered by a later auditor rather than by the acting instance. - Divergence between the transport gateway's authorization decision (leaf-only) and the audit layer's (full-chain), yielding writes that are "authorized" at commit and "unauthorized" at audit. - Long-running tasks that cross an ancestor revocation mid-execution and complete successfully because no step re-validated the chain. The guardrail is architectural, not incidental: **mutating actions must carry a fresh chain proof, and the gateway must reject leaf-only proofs for mutating scopes.** The child re-walks; the gateway enforces that the child did. Either alone is insufficient — a re-walking child still gets its write accepted by a leaf-only gateway, and a chain-checking gateway still accepts a stale-but-well-formed chain proof unless the proof carries a freshness nonce the issuer signs at walk time. The instance-level rule that follows: treat `W2.scope` as a *claim*, and the chain intersection evaluated at action time as the *fact*. When they disagree, the fact wins, and the disagreement is a detection event that must halt the task and surface the narrowing to the orchestrator — because a narrowed ancestor usually means the orchestrator's policy changed for reasons the worker was never told. ```python import time from dataclasses import dataclass, field class ChainFreshnessError(RuntimeError): """Raised when a mutating action is attempted without a fresh, unrevoked ancestor chain.""" pass class AncestorRevokedError(ChainFreshnessError): """An ancestor warrant in the delegation chain is revoked or attenuated below the action's scope.""" pass @dataclass class Warrant: warrant_id: str parent_id: str | None scope: frozenset[str] expires_at: float revoked: bool = False @dataclass class IssuerStore: """Authoritative, current-state view of all warrants. The only source of truth for revocation/attenuation.""" warrants: dict[str, Warrant] = field(default_factory=dict) def get(self, warrant_id: str) -> Warrant | None: return self.warrants.get(warrant_id) # Staleness budget per action class. Mutating actions get zero tolerance. STALENESS_BUDGET = {"read": 300.0, "write": 0.0, "spawn": 0.0} def effective_scope(leaf: Warrant, store: IssuerStore) -> frozenset[str]: """Intersection of scopes along the full ancestor chain, using CURRENT issuer state.""" scope = leaf.scope node = leaf seen: set[str] = set() while node.parent_id is not None: if node.parent_id in seen: raise ChainFreshnessError(f"cycle in chain at {node.parent_id}") seen.add(node.parent_id) parent = store.get(node.parent_id) if parent is None: raise ChainFreshnessError(f"ancestor {node.parent_id} unresolvable") if parent.revoked: raise AncestorRevokedError(f"ancestor {parent.warrant_id} revoked") scope = scope & parent.scope # attenuation narrows; intersection is the truth node = parent return scope def authorize_action( leaf: Warrant, store: IssuerStore, action_scope: str, action_class: str, last_verified_at: float, ) -> None: """Gate a single action. Re-walks the chain when the action class demands freshness.""" now = time.time() if leaf.revoked: raise AncestorRevokedError(f"leaf {leaf.warrant_id} revoked") if now >= leaf.expires_at: raise ChainFreshnessError(f"leaf {leaf.warrant_id} expired") budget = STALENESS_BUDGET[action_class] if now - last_verified_at > budget: # Mutating/spawn actions (budget 0) always land here: re-walk required. try: current = effective_scope(leaf, store) except ChainFreshnessError: # Fail closed: unreachable/unresolvable chain demotes authority to nothing. raise ChainFreshnessError( f"cannot re-walk chain for {action_class} action; failing closed" ) else: current = leaf.scope # cached projection, acceptable only for read class if action_scope not in current: raise AncestorRevokedError( f"action '{action_scope}' not covered by effective scope " f"{sorted(current)} for {action_class} action; " f"leaf scope {sorted(leaf.scope)} is stale or narrowed" ) ```