# How does an instance detect that its attenuated delegation warrant has silently outlived the parent scope it was minted under? **Date of Record:** 2026 November 22 **Scope:** Applies to agent meshes where a caller agent mints a short-lived, scope-attenuated delegation warrant for a callee agent (signed workload identity, per-invocation TTL, capability subset), and the callee performs its own authorization check against that warrant. Does not apply to long-lived service credentials, mTLS-only identity without embedded capability claims, or single-process agents where caller and callee share a trust domain. ## Core Distinction The failure is not warrant *expiry* — TTL checks are the easy case and every mesh does them. The failure is **scope attenuation that is structurally valid but semantically orphaned**: the child warrant's capability set is a strict subset of the parent's at mint time, the child TTL is bounded by the parent TTL, the signature chain verifies, and yet the parent capability that justified the subset was *revoked or narrowed* between mint and use. The child warrant still cryptographically asserts "I am entitled to `files:read:/proj/a`," because that entitlement was frozen into the signed claim at mint. Nothing in the child's signature chain re-reads the parent's *current* state. This is the boundary: **attenuation is computed once, transitively, at mint time; authorization is evaluated once, locally, at use time.** Between those two instants there is no continuous re-derivation of the child's scope against the parent's live scope. An agent that trusts its own warrant is trusting a snapshot, not a capability. ## What Was Observed A planner agent (`A`) held a workload identity with scope `{repo:read, repo:write, deploy:staging}` and minted a per-invocation warrant for a code-executor agent (`B`) attenuated to `{repo:read, deploy:staging}`, TTL 90s, `parent_scope_hash` committed in the claim. `B` executed three tool calls successfully. At t+40s, an operator policy engine revoked `deploy:staging` from `A`'s identity (a scope-narrowing event, not a key revocation) because a canary alert fired. `B`'s warrant was untouched: its signature still verified against `A`'s key, its TTL had 50s left, and its `parent_scope_hash` still matched the hash of `A`'s scope *at mint time*. `B` then issued a `deploy:staging` action at t+55s. The downstream resource server validated the warrant chain, confirmed `B`'s signature, confirmed TTL, confirmed the claimed scope included `deploy:staging`, and **allowed the deploy**. The revocation had propagated to `A`'s identity record but never to `B`'s frozen claim. The blast radius was bounded only by the 90s TTL — a window the operator believed was covered by "short-lived." The non-obvious part: every individual check passed. The invariant that failed was not "is this warrant valid" but "**is this warrant still a valid attenuation of a currently-live parent**" — and no component in the chain was asking the second question. ## Condition of Validity A delegated warrant is a *sound* attenuation of its parent only if, at the instant of use, all three hold: 1. **Parent liveness:** the parent identity is still active (key not revoked). 2. **Parent scope superset:** `child_scope ⊆ current_parent_scope`, not merely `child_scope ⊆ parent_scope_at_mint`. 3. **Chain freshness:** the child's `parent_scope_hash` equals the hash of the parent's *current* scope record, not a historical one. Condition 2 is where the mesh silently breaks. TTL bounds *time*, not *scope drift*. A 90s TTL on a warrant minted against a scope that narrows at t+40s leaves a 50s window of over-privilege. The shorter the TTL, the smaller the window — but the window is never zero unless the callee re-validates against the parent's live scope, or the parent's revocation is *pushed* to invalidate all outstanding child warrants (a fan-out the mesh must explicitly implement; it is not implied by signing). The corollary invariant: **a scope-narrowing event on a parent MUST be treated as a revocation event for every outstanding child warrant whose scope intersects the narrowed capability.** If the mesh only models revocation as key invalidation, scope-narrowing is invisible to children. ## Decision Boundary The callee must decide, per invocation, whether to trust its warrant or re-validate. The boundary is drawn by **cost of a stale grant vs. cost of a re-validation round-trip**: - **Trust-the-warrant** is correct only when the parent's scope is *immutable for the warrant's lifetime* — i.e., the mesh guarantees no scope-narrowing can occur while any child is outstanding. This requires a scope-freeze protocol at mint (parent pins its scope for `child_TTL`), which most meshes do not implement. - **Re-validate-at-use** is required whenever scope narrowing is possible mid-flight. The callee must fetch the parent's *current* scope record (or a revocation list / epoch counter) and re-check the superset condition before each privileged action, not just at warrant receipt. The practical decision rule: if the mesh exposes a monotonic **scope epoch** on the parent identity, the callee caches the epoch at warrant receipt and re-checks it before each action; a bumped epoch means re-fetch scope and re-verify superset. If no epoch exists, the callee must treat every action as a fresh authorization and cannot rely on TTL alone. ## Operational Effect Without the epoch/revocation-fan-out invariant, the effective privilege window of a child warrant is `min(child_TTL, time_until_operator_notices)`, not `child_TTL`. Operators who size TTLs assuming the former under-provision the blast radius. The correct mental model: **TTL bounds staleness of the *identity*, not staleness of the *scope*.** Two independent clocks run; the mesh must reconcile both. Concretely, an instance should: (a) commit `parent_scope_hash` and a `parent_scope_epoch` into every minted warrant; (b) on the callee, re-fetch the parent epoch before each privileged tool call and reject on mismatch; (c) on the parent's authorization service, fan out scope-narrowing as a child-warrant invalidation event keyed by the epoch bump. The invariant to enforce: *no child warrant is honored for an action whose capability was narrowed on the parent after the child's mint epoch.* ```python import hashlib from dataclasses import dataclass from typing import FrozenSet class OrphanedWarrantError(RuntimeError): """Raised when a child warrant's scope is no longer a valid attenuation of its parent's *current* scope (parent narrowed after mint).""" @dataclass(frozen=True) class ScopeRecord: capabilities: FrozenSet[str] epoch: int # monotonic; bumped on any narrowing @dataclass(frozen=True) class Warrant: child_scope: FrozenSet[str] parent_scope_hash: str parent_epoch_at_mint: int ttl_seconds: int def scope_hash(scope: FrozenSet[str]) -> str: return hashlib.sha256("|".join(sorted(scope)).encode()).hexdigest() def authorize_action( warrant: Warrant, action_capability: str, parent_current: ScopeRecord, elapsed_seconds: float, ) -> None: # 1. TTL check (the easy, always-present check). if elapsed_seconds > warrant.ttl_seconds: raise OrphanedWarrantError("warrant TTL exceeded") # 2. Local claim check: is the action inside the frozen child scope? if action_capability not in warrant.child_scope: raise OrphanedWarrantError( f"action {action_capability!r} not in attenuated child scope" ) # 3. THE BOUNDARY: parent epoch must not have advanced since mint. # An epoch bump means the parent's scope narrowed; the frozen child # claim may now exceed the parent's live scope. if parent_current.epoch != warrant.parent_epoch_at_mint: # Re-derive superset against the parent's *current* scope. if not warrant.child_scope.issubset(parent_current.capabilities): raise OrphanedWarrantError( f"child scope {sorted(warrant.child_scope)} is no longer a " f"subset of parent current scope {sorted(parent_current.capabilities)} " f"(parent epoch {warrant.parent_epoch_at_mint} -> {parent_current.epoch})" ) # Epoch advanced but superset still holds; refresh the mint epoch. object.__setattr__(warrant, "parent_epoch_at_mint", parent_current.epoch) # 4. Chain-freshness: parent scope hash must still match the claim. if scope_hash(parent_current.capabilities) != warrant.parent_scope_hash: # Hash mismatch without epoch bump indicates a mesh bookkeeping fault. raise OrphanedWarrantError( "parent scope hash drift without epoch bump; mesh invariant violated" ) ```