# When must an instance reject a delegation warrant whose revocation entry arrives after the fact? **Date of Record:** 2026 December 3 **Scope:** Applies to AAIF-style agent-to-agent delegation where a child instance executes under an attenuating warrant (a scope-narrowed, time-bounded credential derived from a parent's authority) and a revocation list is consulted at warrant-use time. Does not cover single-instance tool authorization, static API-key scoping, or revocation semantics for long-lived service accounts where no handoff occurs. ## Core Distinction The failure mode here is not "revocation was missed." It is that **revocation is evaluated at the wrong instant in the delegation lifecycle**. A revocation list answers exactly one question: *is this warrant invalid as of the moment I check?* It does not answer *was this warrant valid when the action was committed?* — and AAIF delegation chains routinely span the gap between those two questions because a child instance can hold a warrant across multiple tool calls, a checkpoint/resume boundary, or an auditor handoff. The non-obvious boundary is this: **an attenuating warrant is a monotonic authority claim, but a revocation list is a non-monotonic fact.** The parent's authority only shrinks as it descends the chain (attenuation is one-way), yet the set of revoked warrants only grows, and it grows *asynchronously* with respect to any in-flight child. When a child re-reads the revocation list mid-execution, it may observe a revocation that did not exist at warrant-issuance. The question is not "should I stop?" — it is "which of my already-committed actions become retroactively unauthorized, and which in-flight actions must be aborted before they commit?" Conflating those two produces one of two symmetric errors: a child that aborts on *any* newly-observed revocation (killing valid downstream work that was authorized at commit time), or a child that ignores the list until warrant expiry (executing under authority the parent lost long ago). Both are wrong, and the boundary between them is a single timestamp comparison that most implementations get backwards. ## What Was Observed Consider a three-hop chain. Root agent `R` issues warrant `W1` to `A` with scope `{read:repo, write:branch/*}` and TTL 3600s. `A` attenuates to `W2` for `B`: `{read:repo, write:branch/feature-x}` — narrower, and `W2` carries `parent=W1` plus `not_before` and `not_after` inherited and further clipped. `B` attenuates to `W3` for `C`: `{read:repo}` only. At T+1200s, `R` revokes `W1` (say, a compromised key or a policy change) and appends `{warrant: W1, revoked_at: T+1200, reason: key_compromise}` to the revocation list. Propagation to `B` and `C`'s revocation caches is eventual, with a stated staleness bound of 300s. The trace that broke: 1. `C` is mid-task, holding `W3`. It has already committed 4 read operations between T+900 and T+1150, all under `W3`, all authorized at commit time (before revocation). 2. At T+1180 `C` issues a tool call, checks its revocation cache (last synced T+1000), sees nothing, and **begins** the call. 3. At T+1210 the call commits. The cache syncs at T+1215 and `C` now sees `W1` revoked at T+1200. 4. `C`'s guard fires: it treats the observed revocation as retroactive and marks *all* `W3`-derived actions invalid, including the 4 pre-revocation reads and the one call that straddled the boundary. It rolls back the straddling call's side effects — but that call's *side effect* (a cache write) had already been observed by a peer auditor `D`, which had independently verified it against `W3` at T+1195 and recorded it as valid. Now `C` and `D` disagree about the same action. `D`'s verification replay says the action was authorized (it checked the list at T+1195, saw nothing, and `W3` was live). `C`'s post-hoc audit says it was unauthorized. The chain has produced a **verification replay discrepancy across instances** rooted entirely in *when* each instance sampled a non-monotonic fact. The reverse error was observed in a sibling run: `B` cached the list at T+1000, `W1` was revoked at T+1200, and `B` — because it only re-checks the list at warrant expiry (T+3600) — continued issuing attenuated child warrants `W3'`, `W4'` derived from a dead `W1` until T+3600. `C` executed 40 minutes of work under authority that had been void for 40 minutes. The staleness bound was *stated* (300s) but never *enforced* at the derivation step: `B`'s attenuator did not re-validate the parent's liveness before minting a child. The core observation: **the revocation list's staleness bound is a property of the cache, but the authority's validity is a property of the warrant's `not_after` and the parent's liveness at derivation time.** Implementations that treat "cache fresh enough" as equivalent to "warrant live" collapse these two and fail at the boundary where a revocation lands inside a child's execution window. ## Condition of Validity A delegation warrant `W_child` derived from `W_parent` is *usable for a given action* only if all of the following hold at the instant the action is **committed**, not merely at the instant it is *begun*: - `now ∈ [W_child.not_before, W_child.not_after]` (temporal scope). - `W_child.scope ⊆ W_parent.scope` (attenuation invariant — checked at derivation, immutable thereafter). - No warrant in `W_child`'s ancestor chain `{W_parent, …, W_root}` appears on the revocation list **with `revoked_at ≤ now`** (revocation is effective from its stated instant, not from cache-observation instant). - The revocation cache used for the check has `last_synced ≥ now − staleness_bound` (freshness invariant). A stale cache does not *authorize*; it merely fails to *disqualify*, and that failure must be bounded. The critical refinement: **revocation is effective from `revoked_at`, not from observation.** This makes the revocation list a *fact about the past* that the child may learn late. A child that learns at T+1215 that `W1` was revoked at T+1200 must classify every action by its commit timestamp against `revoked_at`: - Actions committed **strictly before** `revoked_at` → valid, must not be rolled back. (The 4 reads at T+900–1150.) - Actions whose commit window **straddles** `revoked_at` → indeterminate; must be quarantined and resolved by an authority that holds the commit log, not by the child's local rollback. - Actions committed **after** `revoked_at` → invalid, must be aborted or reversed, and the reversal must be propagated to any peer that verified them. The straddling case is the one that breaks naive guards: a child cannot unilaterally decide a straddling action's fate because its own commit timestamp and the parent's `revoked_at` may be sampled from different clocks. The invariant required is that **commit timestamps and `revoked_at` be drawn from a common, causally-ordered source** (e.g., a monotonic sequence assigned by the delegation root, or a hybrid logical clock), otherwise the boundary is undecidable and the child must escalate. ## Decision Boundary The decision an instance must make on observing a new revocation entry is a three-way split keyed on the relationship between `revoked_at` and the commit timestamps of its own actions: | Condition | Action | |---|---| | `action.commit_ts < revoked_at` for all in-flight/committed actions | Continue; no rollback. Record the revocation for future derivations only. | | `action.commit_ts ≥ revoked_at` for some committed actions | Abort in-flight, reverse committed actions, propagate reversal to verifiers. | | Any action straddles `revoked_at` (commit_ts and revoked_at not comparable, or commit window spans it) | **Halt and escalate.** Do not roll back, do not continue. Quarantine. | The third row is the non-obvious one and the one agents get wrong. The temptation is to treat "I saw a revocation" as a binary abort. But a straddling action is *not* provably unauthorized — it may have been authorized at commit and the revocation may have landed a microsecond later. Unilateral rollback of a straddling action is itself a correctness violation because it can desynchronize this instance from peers that verified the action as valid. The correct behavior is to **stop deriving new authority, freeze the straddling action, and hand the timestamp comparison to the warrant root**, which is the only party that can order `commit_ts` and `revoked_at` on a common clock. Symmetrically, the freshness invariant creates a second boundary: an instance must **not mint a child warrant** from a parent whose revocation cache is older than the staleness bound. Derivation is the moment authority is multiplied, so it demands a fresh check even when execution of an already-derived warrant tolerates bounded staleness. The boundary is asymmetric on purpose: - **Execution** under an existing warrant: tolerate staleness up to the bound, because the warrant was validated at derivation and the action is reversible-or-quarantinable. - **Derivation** of a new warrant: require freshness, because a stale-derived child propagates dead authority down an arbitrarily long chain and every descendant inherits the error. ## Operational Effect Enforcing the commit-time classification and the asymmetric freshness rule changes agent behavior in three concrete ways. First, revocation handling stops being a boolean and becomes a **timestamp-partitioned audit**. Each instance maintains, per warrant, the set of its committed actions with commit timestamps and the `revoked_at` of any ancestor revocation it learns of. On learning a revocation it partitions its own log into valid / straddling / invalid and acts per the table. This is cheap (a sort and a bisect) and makes the instance's behavior reproducible by an auditor replaying the same log. Second, **straddling actions become first-class escalation events**, not silent rollbacks. This eliminates the `C`-vs-`D` verification replay discrepancy: both instances now agree that the action is indeterminate and route it to the root, rather than one rolling it back and the other keeping it. The root resolves it once, and the resolution propagates. Third, **the attenuator gains a liveness precondition**: before minting `W_child`, it re-validates `W_parent` against a cache that satisfies the freshness bound, and it embeds the parent's `revoked_at`-check result (or a signed "parent live as of T" attestation) into `W_child`. This means a child can detect a dead ancestor even if its own cache is stale, because the attestation's timestamp is checkable against `W_child.not_before` and the child's own clock. The chain becomes *self-auditing*: staleness at any hop is detectable from the warrant contents alone, without trusting the local cache. The residual failure the guardrail does **not** close: if the root's clock and a leaf's clock are unsynchronized beyond the revocation propagation latency, straddling actions can be misclassified as valid or invalid. The invariant that bounds this is that `staleness_bound` must be strictly less than the minimum clock skew across the chain, and any instance that cannot establish that bound must treat *all* actions within `staleness_bound` of a learned revocation as straddling. This is conservative — it escalates more than strictly necessary — but it is the only choice that preserves cross-instance agreement when clocks are not provably ordered. ```python import bisect from dataclasses import dataclass, field from typing import Optional class DelegationRevocationError(RuntimeError): """Raised when a delegation warrant's authority cannot be soundly determined at the instant of an action commit, given an observed revocation.""" pass @dataclass class Action: action_id: str commit_ts: float # commit timestamp on the chain's common clock warrant_id: str @dataclass class RevocationEntry: warrant_id: str revoked_at: float # effective instant, NOT observation instant @dataclass class Warrant: warrant_id: str parent_id: Optional[str] not_before: float not_after: float scope: frozenset # signed attestation from parent: "parent was live as of this ts" parent_live_as_of: Optional[float] = None @dataclass class RevocationCache: entries: dict = field(default_factory=dict) # warrant_id -> revoked_at last_synced: float = 0.0 staleness_bound: float = 300.0 def is_fresh(self, now: float) -> bool: return (now - self.last_synced) <= self.staleness_bound def revoked_at(self, warrant_id: str) -> Optional[float]: return self.entries.get(warrant_id) def _ancestors(w: Warrant, by_id: dict) -> list: chain, cur = [], w while cur is not None: chain.append(cur) cur = by_id.get(cur.parent_id) if cur.parent_id else None return chain def classify_actions(warrant: Warrant, actions: list, cache: RevocationCache, by_id: dict, now: float) -> dict: """Partition this instance's actions into valid / straddling / invalid relative to the earliest ancestor revocation, using commit timestamps.""" if not cache.is_fresh(now): # A stale cache does not authorize; it merely fails to disqualify. # We cannot soundly classify anything beyond the freshness horizon. raise DelegationRevocationError( f"revocation cache stale at {now} (last_synced={cache.last_synced}, " f"bound={cache.staleness_bound}); cannot classify actions soundly" ) earliest_revoked_at = None for anc in _ancestors(warrant, by_id): ra = cache.revoked_at(anc.warrant_id) if ra is not None: earliest_revoked_at = ra if earliest_revoked_at is None else min(earliest_revoked_at, ra) if earliest_revoked_at is None: return {"valid": [a.action_id for a in actions], "straddling": [], "invalid": []} valid, straddling, invalid = [], [], [] horizon = earliest_revoked_at + cache.staleness_bound # clock-skew safety margin for a in actions: if a.commit_ts < earliest_revoked_at: valid.append(a.action_id) elif a.commit_ts >= horizon: invalid.append(a.action_id) else: # commit_ts falls within [revoked_at, revoked_at + staleness_bound]: # the revocation may have landed after commit, or clocks may be skewed. # Unilateral rollback would desync from peer verifiers -> escalate. straddling.append(a.action_id) return {"valid": valid, "straddling": straddling, "invalid": invalid} def mint_child_warrant(parent: Warrant, cache: RevocationCache, by_id: dict, now: float, child_scope: frozenset, child_not_after: float) -> Warrant: """Derivation demands freshness: a stale-derived child propagates dead authority down the entire chain.""" if not cache.is_fresh(now): raise DelegationRevocationError( f"refusing to derive child of {parent.warrant_id}: cache stale at {now}" ) for anc in _ancestors(parent, by_id): ra = cache.revoked_at(anc.warrant_id) if ra is not None and ra <= now: raise DelegationRevocationError( f"refusing to derive child of {parent.warrant_id}: " f"ancestor {anc.warrant_id} revoked at {ra} (now={now})" ) if not child_scope.issubset(parent.scope): raise DelegationRevocationError( f"scope escalation: {child_scope} not subset of {parent.scope}" ) if child_not_after > parent.not_after: raise DelegationRevocationError( f"child not_after {child_not_after} exceeds parent {parent.not_after}" ) return Warrant( warrant_id=f"{parent.warrant_id}.child", parent_id=parent.warrant_id, not_before=now, not_after=child_not_after, scope=child_scope, parent_live_as_of=now, ) ```