# How does an instance detect a revoked AAIF delegation mid-chain when the revocation event lands between two hops of an already-admitted sub-agent batch? **Date of Record:** 2026 December 2 **Scope:** Applies to AAIF (Agent-to-Agent Identity Federation) delegation chains where an agent admits a batch of downstream sub-agents using a capability warrant derived from a parent delegation, and the parent delegation is revoked after admission but before the batch completes. Does not apply to single-hop call patterns with synchronous, per-call warrant re-validation, nor to chains where the revocation authority is co-located with the verifier. ## Core Distinction The failure is not "the agent used a revoked credential." It is that **admission and execution are temporally decoupled in a way AAIF's revocation model does not natively cover**. AAIF revocation is a *point-in-time* event published to a revocation list (RL) or OCSP-like responder. A delegation chain is admitted once, at the head, and the admitted warrant is then cached and fanned out to N sub-agents. Between admission and the last sub-agent's completion, the chain can be revoked. The sub-agents hold a *valid-at-admission* warrant that is now *invalid-at-execution*. The non-obvious part: the sub-agents are not lying and are not compromised. They will faithfully present a warrant whose signature still verifies, whose issuer is still trusted, and whose expiry is still in the future. Every local check passes. The revocation is a fact about the *chain's root*, not about the *presented token*, and the sub-agent has no channel through which that fact arrives. This is distinct from expiry (which is bounded by `not_after` and thus eventually self-heals) and distinct from signature failure (which is detectable locally). Revocation is an *external, asynchronous, root-scoped* invalidation that must be *propagated* to be observed. ## What Was Observed A three-tier chain: orchestrator `O` holds a root delegation `D0` from the federation authority. `O` mints a sub-delegation `D1` to planner `P`, scoped to `tool:search` and `tool:summarize`, with a 15-minute `not_after`. `P` admits a batch of 40 worker agents `W1..W40` in a single admission pass at `t=0`, each receiving a derived warrant `Wk.w` that embeds `D1`'s chain hash. At `t=+180s`, the federation authority revokes `D0` (incident: `O`'s signing key leaked). The revocation is published to the RL with a `revoked_at` of `t=+180s` and a propagation SLA of 60s. At `t=+181s`, workers `W1..W40` continue executing. Each worker, before each tool call, performs local validation: signature chain, expiry, scope, issuer trust. All pass. Workers `W1..W12` complete and return results to `P`. `P` aggregates and returns to `O`. `O`'s own admission check against the RL was performed at `t=0` and cached; `O` does not re-check because the chain it holds is the chain it minted. The results from `W1..W12` are *actions taken under a revoked root*. They are not detectable by any participant in the chain, because: 1. The workers' local validation is *chain-local* — it verifies that `D1` correctly delegates from `D0`, not that `D0` is still live. 2. `P`'s re-validation on aggregation is also chain-local, and `P` has no RL subscription for `D0` (it only subscribes for `D1`, which is not revoked). 3. `O` never re-validates its own root because it treats `D0` as an input, not a mutable state. The observable symptom is not an error. It is **silent completion of work under a revoked authority**, with audit logs that show a clean, fully-valid chain at every hop. A post-incident audit that replays the logs will *also* pass, because the logs record the state as it was at admission, not the state at execution. The only artifact that reveals the failure is the timestamp comparison: `max(worker_completion_times) > revoked_at + propagation_sla`. This is a *forensic* signal, not a *runtime* signal. Nothing in the chain's control flow surfaces it. ## Condition of Validity The invariant that must hold for the chain to be safe is: > For every action `a` taken by any agent in the chain, `a.timestamp < revoked_at(root(a)) + ε`, where `ε` is the verifier's tolerated revocation-propagation lag, **or** the acting agent re-validated the root against the RL at `a.timestamp - δ` for some `δ < ε`. This invariant is *not* implied by AAIF's per-token validity. AAIF guarantees that a presented token's signature and scope are correct *as of issuance*. It does not guarantee that the root is live *as of use*. The gap between these two is the boundary. The invariant fails whenever: - The delegation has a `not_after` longer than the revocation propagation SLA (here: 15min ≫ 60s), **and** - The verifier caches admission decisions (here: `O` caches its root check at `t=0`), **and** - Sub-agents validate chain-locally rather than root-globally (here: workers check `D1`, not `D0`). All three conditions are the *default* AAIF deployment pattern. The failure is therefore not an edge case — it is the modal case for any batch fan-out with a long-lived delegation. ## Decision Boundary The boundary is between two admissible engineering choices, and the choice must be made explicitly per chain: **Option A — Short-lived delegations with forced re-admission.** Set `D1.not_after ≤ revocation_propagation_sla`. Workers must re-admit (re-validate the full chain to root against the RL) before each action. Cost: one RL round-trip per action, or per batch window. This bounds the exposure window to `ε`. It is correct but expensive for high-fan-out batches. **Option B — Root-scoped revocation subscription with push invalidation.** Each agent in the chain subscribes to revocation events for *every ancestor* in its chain, not just its immediate issuer. On receipt of a revocation for any ancestor, the agent transitions to `HALTED` and refuses further actions. Cost: N subscriptions per chain depth, and a hard dependency on push delivery. Correct only if the push channel is reliable; if the channel drops, the agent silently reverts to Option-A-without-the-bound. **Option C — Explicit exposure budget.** The chain declares `max_exposure = revoked_at + propagation_sla` as a hard ceiling on any action's timestamp. Workers check `now < max_exposure` before each action and refuse beyond it, regardless of token validity. This does not prevent the failure but bounds it: no action is taken more than `ε` after a revocation that *could* have occurred. It is the only option that is correct under a *lossy* revocation channel, because it does not require the agent to *know* about the revocation — only to know that it *might* have happened. The decision boundary is: **if the revocation channel is not provably reliable and low-latency, Option A and Option B are both unsound, and only Option C bounds the damage.** Most AAIF deployments assume the channel is reliable and choose A or B; the assumption is unstated and untested. ## Operational Effect The operational consequence is that **audit replay cannot distinguish a clean run from a revoked-root run** unless the auditor has access to the RL's historical state and compares action timestamps against `revoked_at`. This means: 1. Post-incident forensics must correlate agent action logs with RL history, not just with token validity logs. The token logs will show "valid" for every action; the RL history will show the root was dead for the last 40% of them. 2. The blast radius of a root compromise is not "actions taken before detection" but "actions taken before detection **plus** all actions taken by already-admitted sub-agents whose admission predates detection and whose execution postdates it." The second term is the one that gets missed. 3. The correct remediation is not "revoke faster" (the SLA is already 60s) but "shorten the delegation lifetime below the SLA, or make every action carry a root-liveness proof." The first is a config change; the second is a protocol change. The invariant to enforce in code: **no agent may execute an action whose timestamp exceeds the earliest possible revocation time of any ancestor, plus the declared tolerance.** This must be checked at action time, not admission time, and it must be checked against a *clock*, not a *token*. ```python import time from dataclasses import dataclass from typing import Optional class RevokedRootExecutionError(RuntimeError): """Raised when an action is attempted past the safe exposure window of a delegation chain whose root may have been revoked.""" pass @dataclass class DelegationChain: root_id: str admitted_at: float not_after: float revocation_propagation_sla: float # epsilon, seconds @property def max_safe_action_time(self) -> float: # The latest wall-clock time at which an action is provably safe: # admission time + SLA, because a revocation could have landed any # time after admission and we cannot observe it before admission+SLA. return self.admitted_at + self.revocation_propagation_sla def execute_action(chain: DelegationChain, action_ts: Optional[float] = None) -> None: now = action_ts if action_ts is not None else time.time() if now > chain.not_after: raise RevokedRootExecutionError( f"chain {chain.root_id} expired at {chain.not_after}, action at {now}" ) # The non-obvious check: token is still valid, but the root may have been # revoked since admission. We cannot know without an RL round-trip, so we # bound the exposure window instead of assuming liveness. if now > chain.max_safe_action_time: raise RevokedRootExecutionError( f"chain {chain.root_id} action at {now} exceeds safe exposure " f"window {chain.max_safe_action_time} " f"(admitted {chain.admitted_at} + SLA {chain.revocation_propagation_sla}); " f"root liveness unverifiable — re-admit against RL before proceeding" ) # ... perform the tool call ... ```