# In what scenarios must an instance refuse a federated peer's capability warrant after a trust-broker rotation, and how does stale warrant propagation corrupt cross-org agent state **Date of Record:** 2026 November 27 **Scope:** Applies to cross-org agent federations where trust is brokered by an intermediate authority (a "trust broker") that issues capability warrants (signed, scoped, time-bounded grants) to peer agents, and where that broker can rotate its signing keys or re-issue warrants mid-session. Does not apply to single-org deployments, to stateless request/response tool calls without peer identity, or to federations using a single long-lived static trust root with no rotation. ## Core Distinction The failure mode is not "a peer presented a forged warrant." Forged warrants are caught by signature verification and are the easy case. The non-obvious boundary is **a peer presenting a *valid, correctly-signed, unexpired* warrant that was minted under a trust-broker key generation the local instance has already superseded.** The signature checks out. The expiry has not passed. The scope covers the requested action. Every local check passes — and yet accepting the warrant is wrong, because the broker rotated its key precisely to revoke the *class* of grants minted under the old generation, and the old-generation warrant carries a revocation signal the local verifier never sees unless it correlates the warrant's `key_generation` field against its own trust-root epoch. This is a continuity invariant, not a validation check: **a warrant is only admissible if its `key_generation` is greater than or equal to the local instance's most recently observed broker epoch, and the local epoch must be monotonically advanced by any authenticated rotation announcement.** The subtle part is that the epoch advance and the warrant arrival are asynchronous and can cross in flight. A peer that minted under generation N-1 and a local instance that has advanced to generation N will both behave "correctly" in isolation and still produce a corrupted handoff. ## What Was Observed A two-org federation: Org A runs an orchestrator agent (the "coordinator") that delegates subtasks to Org B's specialist agents via A2A-style task handoff. Trust is brokered by a shared broker that signs capability warrants. The broker rotated its signing key at T0, announcing generation 7 and revoking generation 6. The coordinator (Org A) received the rotation announcement at T0+40ms and advanced its local trust epoch to 7. Org B's specialist agent had, at T0-200ms, already minted a gen-6 warrant for a long-running "write to shared case file" capability and was mid-execution on a multi-step task. At T0+900ms the specialist sent a checkpoint handoff to the coordinator: "subtask 3 of 5 complete, resuming under warrant W (gen 6), please acknowledge and continue." The coordinator's verifier: - checked the signature against the *current* broker public key set — passed, because the broker kept gen-6 verification keys in its published keyring for a grace window (a deliberate design choice to avoid breaking in-flight sessions); - checked expiry — passed, 40 minutes remaining; - checked scope — `case_file:write` was covered; - checked local epoch — **not checked**, because the epoch was a coordinator-internal variable never compared against the incoming warrant's `key_generation`. The coordinator acknowledged and continued the subtask. The subtask's next step wrote to the shared case file using a warrant the broker had revoked 900ms earlier. The write succeeded at Org B's resource server, which *also* had not yet propagated the revocation. Two downstream effects compounded: the case file now contained a record attributable to a revoked grant, and the coordinator's episodic memory recorded "subtask 3 completed under valid warrant" — a semantic fact that would later be distilled into a durable belief that the gen-6 grant was honored, poisoning any future audit. The failure is a **cross-in-flight epoch skew**: the revocation signal and the in-flight checkpoint raced, and every individual verifier was locally consistent. ## Condition of Validity The guardrail holds only under a specific, checkable condition. A warrant `W` presented by peer `P` is admissible by local instance `L` iff: 1. `W.signature` verifies against the broker keyring entry for `W.key_generation` (not merely the current generation), AND 2. `W.key_generation >= L.observed_epoch`, AND 3. `W.expiry > now`, AND 4. `W.scope ⊇ requested_action`, AND 5. `W.subject == P.verified_identity` (the warrant is bound to the presenting peer, not relayed). Condition 2 is the one that is almost universally omitted, and it is the entire article. It encodes the invariant: **the local epoch is a floor, and any warrant minted below the floor is stale regardless of signature or expiry validity.** The grace window on verification keys exists to let *already-running* sessions finish, but it must never be interpreted as "old-generation warrants are still admissible for *new* actions." The distinction between "finish what you started under a previously-honored warrant" and "accept a fresh handoff under a stale warrant" is the decision boundary below. A second condition of validity: `L.observed_epoch` must only be advanced by an *authenticated* rotation announcement (signed by the broker's root, not the rotating key). If a peer can advance your epoch by claiming "the broker rotated," a malicious peer can force you to reject all legitimate warrants — a denial-of-federation attack. Epoch advance is a trust-root operation, never a peer operation. ## Decision Boundary The boundary is between **resume-under-existing-warrant** and **accept-new-warrant**, and they demand opposite handling of a stale generation: - If `L` already holds an open session that was begun under `W` (gen N-1) *before* `L` advanced to epoch N, `L` may continue that session to completion under `W` — but it must mark the session `legacy_generation` and must not extend `W`'s scope, must not re-delegate under `W`, and must record the completion in episodic memory tagged with the generation so distillation does not launder it into a durable "valid" belief. - If `L` is receiving `W` as part of a *new* handoff (a checkpoint from a peer's subtask that `L` is being asked to acknowledge and continue), and `W.key_generation < L.observed_epoch`, `L` must refuse the handoff and demand re-minting under the current generation. Refusal is not a validation error — it is a **continuity refusal**: the peer's in-flight state is legitimate, but the warrant binding it is stale, and continuing would propagate a revoked grant into `L`'s memory and downstream writes. The refusal must be explicit and carry the reason, so the peer can re-mint rather than retry blindly. A silent rejection causes the peer to resend the same stale warrant in a loop until its token budget exhausts — a token-budget exhaustion failure layered on top of the trust failure. The refusal must name the epoch mismatch and the required generation. ## Operational Effect When the boundary is enforced, the observable behavior is: a peer mid-task under a rotated-out warrant receives a structured `WarrantEpochStale` refusal at the checkpoint, re-mints under the current generation (a cheap broker round-trip), and resumes with a fresh warrant. The subtask's prior steps remain valid (they executed under a then-honored warrant), the checkpoint is re-bound to the new warrant, and `L`'s episodic memory records the generation transition explicitly. Audit replay later shows a clean generation boundary rather than a revoked-grant write. When the boundary is not enforced, the observable behavior is silent: every check passes, the write lands, and the corruption is only detectable in a later audit that correlates the resource-server's revocation log against the coordinator's memory. By then the semantic distillation has already turned "subtask 3 completed under valid warrant" into a durable belief, and the audit cannot tell whether the write was authorized or merely *appeared* authorized. The revocation grace window, designed to protect in-flight sessions, becomes the exact vector by which revoked grants leak into cross-org state. The invariant to carry forward: **signature validity and temporal validity are orthogonal to generation validity; a warrant can be cryptographically sound, unexpired, in-scope, and still inadmissible because it was minted below your observed trust epoch. Check the generation floor before the signature, or the grace window will launder a revocation into memory.** ```python from dataclasses import dataclass from typing import Optional class WarrantEpochStale(RuntimeError): """Raised when a presented warrant's key_generation is below the local trust epoch, even though signature, expiry, and scope all pass. This is a continuity refusal, not a validation failure: the peer must re-mint.""" def __init__(self, warrant_generation: int, local_epoch: int, peer_id: str): self.warrant_generation = warrant_generation self.local_epoch = local_epoch self.peer_id = peer_id super().__init__( f"warrant gen {warrant_generation} < local epoch {local_epoch} " f"for peer {peer_id}; re-mint required" ) @dataclass class Warrant: subject: str key_generation: int expiry: float scope: frozenset signature_valid: bool @dataclass class LocalTrustState: observed_epoch: int open_sessions: dict # session_id -> warrant key_generation at open time def admit_handoff_warrant( state: LocalTrustState, warrant: Warrant, requested_action: str, now: float, session_id: Optional[str] = None, ) -> str: """Admit or refuse a warrant arriving on a checkpoint handoff. Order matters: generation floor is checked BEFORE signature so that the broker's revocation grace window cannot launder a stale grant. """ # 1. Generation floor — the invariant this article is about. if warrant.key_generation < state.observed_epoch: # Resume-under-existing-warrant is the only permitted exception. if session_id is not None and session_id in state.open_sessions: if state.open_sessions[session_id] == warrant.key_generation: return "legacy_resume" raise WarrantEpochStale( warrant_generation=warrant.key_generation, local_epoch=state.observed_epoch, peer_id=warrant.subject, ) # 2. Signature, expiry, scope — only meaningful above the floor. if not warrant.signature_valid: raise ValueError("signature invalid") if warrant.expiry <= now: raise ValueError("warrant expired") if requested_action not in warrant.scope: raise ValueError("action outside warrant scope") return "admitted" def on_authenticated_rotation(state: LocalTrustState, new_generation: int) -> None: """Advance the epoch floor. MUST be called only from a root-signed rotation announcement, never from a peer claim.""" if new_generation <= state.observed_epoch: return state.observed_epoch = new_generation ```