# Why does an instance keep honoring a federated agent capability after the issuing org has revoked it? **Date of Record:** 2026 November 30 **Scope:** Applies to cross-organization agent federations where a capability warrant (signed grant of a scoped tool/action) is issued by a home org, cached at a peer org's agent, and later revoked. Does not cover single-tenant deployments, purely symmetric A2A handoffs within one trust domain, or capability systems without delegated re-issuance. ## Core Distinction The failure is not "revocation message lost." It is that **revocation is treated as a state-sync event rather than a monotonic validity predicate**. A peer agent caches a warrant `W = (issuer, subject, scope, not_before, not_after, epoch)`. The home org revokes it and broadcasts a revocation record on its own epoch `e+1`. The peer agent, however, validates `W` locally by checking signature and `not_after` — both still true — because it never re-derives validity from the *issuer's current epoch*. The warrant remains *cryptographically valid* while being *semantically dead*. Any agent that treats signature validity as authorization validity will keep honoring the dead grant until `not_after`. The invariant that must hold: **a cached warrant is only as fresh as the lowest issuer epoch the peer has acknowledged, and no action may be taken on a warrant whose issuer epoch is below the peer's last-seen revocation watermark.** Signature validity is necessary; epoch monotonicity is what actually bounds staleness. ## What Was Observed A peer agent (`peer-b`) held a delegated `deploy:staging` warrant issued by `home-a` to an auditor agent. `home-a` revoked the warrant at `t0` after a policy violation and published the revocation to its gossip topic. `peer-b`'s federation listener was subscribed but its reconciliation loop ran on a 15-minute timer. During that window: 1. `peer-b` received an inbound A2A task from a *different* peer (`peer-c`) carrying a **re-delegated** sub-warrant `W'` derived from `W` — signed by the auditor agent, not by `home-a`. The chain `home-a → auditor → peer-c → peer-b` verified because each link's signature checked out and `peer-b` only validated the immediate signer plus the root's signature, not the *root's revocation status at the current epoch*. 2. `peer-b` executed the `deploy:staging` action at `t0 + 4m`, 11 minutes before its timer would have pulled the revocation. 3. `peer-b`'s audit log recorded the action as authorized, because the local verifier returned `valid=True` — it had no field for "issuer epoch at validation time." The compounding factor: **re-delegation widens the revocation surface**. Revoking `W` at `home-a` does not automatically invalidate `W'` unless the revocation record carries the *subject chain* or the peer re-walks the chain to the root and checks the root's epoch watermark. A naive revocation record keyed only on `W`'s warrant-id misses every descendant. ## Condition of Validity The peer's local authorization check is only sound under this conjunction, evaluated *atomically at action time*: - `now ∈ [W.not_before, W.not_after]`, AND - `W.issuer_epoch ≥ peer.last_acknowledged_epoch(issuer)`, AND - `peer.last_acknowledged_epoch(issuer) ≥ issuer.current_epoch − max_skew`, AND - for every link `L` in the delegation chain from root to `W`, `L.warrant_id ∉ peer.revocation_set` **and** `L.issuer_epoch ≥ peer.last_acknowledged_epoch(L.issuer)`. The moment any clause is evaluated against a stale watermark, the check is unsound. This means **the peer cannot authorize from cache alone**; it must either (a) block on a synchronous epoch probe to each distinct issuer in the chain, or (b) hold a signed "epoch floor" certificate from each issuer no older than `max_skew`, and reject any warrant whose chain contains an issuer whose floor is stale. Option (b) is the only one that survives partition, but it converts revocation latency from "broadcast delay" into "epoch-floor TTL," which must be chosen against the blast radius of the revoked capability — not against average gossip latency. ## Decision Boundary The boundary between "safe to cache" and "must re-probe" is **not** the warrant's remaining lifetime. It is the ratio of (a) the maximum damage a stale-but-valid warrant can do, to (b) the cost of a synchronous epoch probe. Concretely: - **Low-blast-radius, idempotent, reversible scopes** (`read:*`, dry-run, staging writes behind a rollback): cache with an epoch floor of `max_skew = 60s`. Accept bounded staleness. - **Irreversible or cross-boundary scopes** (`deploy:prod`, `transfer:*`, `delete:*`, anything that mints credentials): **no cache**. Every action requires a fresh epoch probe to every issuer in the delegation chain, and the probe must return an epoch `≥` the epoch embedded in the action's authorization proof. If the probe cannot complete within the action's deadline, the action fails closed — it does not fall back to cached validity. The non-obvious part: a peer that *cannot reach* `home-a` (partition) must treat every warrant rooted at `home-a` as **expired at the last acknowledged epoch**, not as "still valid until `not_after`." Partition is not a license to extend trust; it is a signal to shrink it to the last proven-fresh floor. Systems that conflate "unreachable issuer" with "issuer has nothing new to say" are the ones that honor revoked warrants for the full `not_after` window. ## Operational Effect After the incident, `peer-b` adopted an epoch-watermark verifier with two changes: (1) the revocation set is keyed on **root warrant-id plus every descendant warrant-id the issuer has ever seen re-delegated**, and the issuer must publish descendant revocations explicitly or the peer rejects any chain whose root has a revocation record with `descendants_unspecified=true`; (2) the peer refuses to authorize any action whose chain contains an issuer with an epoch floor older than the scope's `max_skew`. The effect is a measurable increase in failed-closed authorizations during partition (expected) and a hard bound on stale-warrant honor time equal to `max_skew` rather than `not_after − t0`. The audit log now records `issuer_epoch_at_validation` per chain link, so a post-hoc replay can prove the action was authorized against a fresh floor — or flag it as a staleness violation. ```python import time from dataclasses import dataclass, field class StaleEpochWarrantError(RuntimeError): """Raised when a warrant is authorized against an issuer epoch watermark older than the scope's max_skew, or when a chain link is revoked.""" pass @dataclass class Warrant: warrant_id: str issuer: str subject: str scope: str not_before: float not_after: float issuer_epoch: int parent_id: str | None = None @dataclass class PeerState: epoch_floor: dict[str, int] = field(default_factory=dict) # issuer -> last acked epoch epoch_floor_at: dict[str, float] = field(default_factory=dict) # issuer -> wall time of ack revoked: set[str] = field(default_factory=set) # warrant ids (root + descendants) revoked_roots_unspecified_descendants: set[str] = field(default_factory=set) SCOPE_MAX_SKEW = { "read:public": 60.0, "deploy:staging": 60.0, "deploy:prod": 0.0, # no cache: must re-probe "transfer:funds": 0.0, } def authorize(chain: list[Warrant], state: PeerState, now: float) -> None: """Validate a delegation chain root->leaf at action time. Fails closed.""" if not chain: raise StaleEpochWarrantError("empty delegation chain") leaf = chain[-1] scope = leaf.scope max_skew = SCOPE_MAX_SKEW.get(scope) if max_skew is None: raise StaleEpochWarrantError(f"unknown scope {scope!r}: no skew policy, fail closed") # Structural checks on every link. for i, w in enumerate(chain): if not (w.not_before <= now <= w.not_after): raise StaleEpochWarrantError(f"{w.warrant_id}: outside validity window") if w.warrant_id in state.revoked: raise StaleEpochWarrantError(f"{w.warrant_id}: revoked") root = chain[0] if (root.warrant_id in state.revoked_roots_unspecified_descendants and w.warrant_id != root.warrant_id): raise StaleEpochWarrantError( f"{w.warrant_id}: root {root.warrant_id} revoked with unspecified " f"descendants; descendant trust cannot be established") if i > 0 and w.parent_id != chain[i - 1].warrant_id: raise StaleEpochWarrantError(f"{w.warrant_id}: broken parent linkage") # Epoch freshness for every distinct issuer in the chain. for issuer in {w.issuer for w in chain}: floor = state.epoch_floor.get(issuer) acked_at = state.epoch_floor_at.get(issuer) if floor is None or acked_at is None: raise StaleEpochWarrantError(f"{issuer}: no epoch floor acknowledged; fail closed") age = now - acked_at if age > max_skew: raise StaleEpochWarrantError( f"{issuer}: epoch floor age {age:.1f}s exceeds max_skew {max_skew}s " f"for scope {scope!r}") for w in chain: if w.issuer == issuer and w.issuer_epoch < floor: raise StaleEpochWarrantError( f"{w.warrant_id}: issuer_epoch {w.issuer_epoch} below " f"acknowledged floor {floor} for {issuer}") # For zero-skew scopes, a probe must confirm the issuer's *current* epoch # equals the floor at action time; caller supplies probe result via state. if max_skew == 0.0: for issuer in {w.issuer for w in chain}: if state.epoch_floor.get(issuer) != _probe_current_epoch(issuer): raise StaleEpochWarrantError( f"{issuer}: current epoch advanced beyond acknowledged floor; " f"re-probe required for scope {scope!r}") def _probe_current_epoch(issuer: str) -> int: # In production: synchronous signed epoch probe with a hard deadline. # Placeholder returns the acknowledged floor to keep the example runnable. raise NotImplementedError ```