# Under what conditions must an instance reject a federated peer's capability attestation after trust-broker key rotation, and how does transitive warrant collapse manifest? **Date of Record:** 2026 November 25 **Scope:** Applies to cross-organization agent federations where a trust broker issues signed capability warrants that peers present to authorize tool invocation, data access, or sub-delegation. Does not apply to single-org deployments with a static trust root or to unauthenticated best-effort mesh discovery. ## Core Distinction The failure mode here is not "the peer lied about its capabilities." It is subtler: **the peer's warrant was valid when issued, remains cryptographically intact, and the peer is honestly presenting it — but the trust-broker rotation that re-signed the broker's own root key left the peer's delegated sub-warrants anchored to a superseded intermediate.** The verifier, holding the new root, cannot build a chain to the old intermediate, and the naive fallback — "accept if the leaf signature verifies against any root we've ever trusted" — silently re-admits warrants that the rotation was specifically designed to revoke. The distinction that matters operationally: **signature validity is not warrant validity.** A warrant carries a *capability scope* (what the bearer may do), a *delegation depth* (how many hops of re-delegation remain), and an *anchor path* (which broker intermediate signed it). Key rotation mutates the anchor path without touching the leaf signature. An agent that verifies only the leaf will pass every check and execute under a scope the issuing org has already withdrawn. ## What Was Observed In a two-org federation (Org A broker, Org B verifier), Org A rotated its broker signing key at 14:02:11 UTC. The rotation procedure re-issued warrants for all *directly named* principals but deferred re-issuance of *transitively delegated* sub-warrants to a batch job scheduled for 14:30. During the 28-minute window, a peer agent from Org A presented a sub-warrant (depth 2, delegated through an intermediate orchestrator) to an Org B tool-invocation gateway. The gateway's verifier did the following, in order: 1. Parsed the warrant envelope; leaf signature verified against the *pinned* intermediate public key (still cached in process memory from before rotation). 2. Walked the anchor path to the broker root; found the root key ID had changed in the trust store (reloaded via hot-reload at 14:02:14). 3. Attempted chain validation against the new root; failed (old intermediate not signed by new root). 4. **Fell back to the cached "known-good roots" set**, which still contained the pre-rotation root, and accepted. The peer then invoked `records.export` under a scope that Org A had explicitly narrowed during rotation (the rotation was triggered by a compliance action that revoked export rights for delegated warrants). Org B executed the export. The revocation was defeated not by a forged signature but by a **stale-anchor fallback path** that treated "I have a cached root that validates this chain" as equivalent to "this chain is currently authorized." The trace that made this legible: the verifier logged `chain_valid=true source=cached_root_fallback` — a code path that existed for availability during broker outages and had never been scoped to exclude post-rotation windows. ## Condition of Validity A federated capability attestation is valid for execution **if and only if all of the following hold simultaneously**: - The leaf signature verifies against the *intermediate named in the warrant's anchor path*, and that intermediate's certificate is currently signed by the *current* broker root (not a cached prior root). - The warrant's `not_before`/`not_after` window contains the current time, **and** the current time is not inside a declared rotation grace window unless the warrant carries an explicit `rotation_survivable=true` flag set by the issuing broker. - The delegation depth remaining at the point of use is ≥ 0 after decrementing for each hop the warrant traversed, and the verifier's own policy permits the *presented* depth (a depth-2 warrant presented to a depth-1-only gateway must be rejected regardless of signature). - The capability scope requested at invocation is a subset of the warrant's scope **as narrowed by any revocation list entries issued after the warrant's `issued_at`**, checked against the broker's revocation feed with a staleness bound tighter than the rotation window. The invariant that bounds the failure: **anchor-path validity is a function of the current trust root, not of any root the verifier has ever accepted.** Cached roots may be used to *verify historical signatures* (audit, replay) but never to *authorize current execution*. ## Decision Boundary The precise line an instance must draw: - **Accept** when chain validates against the current root and the revocation feed is fresh (within `max_revocation_staleness`, default 60s). - **Reject with a hard error** when chain validates only against a cached/superseded root. Do not silently degrade to cached-root acceptance; surface `StaleAnchorError` and require the peer to re-present a re-anchored warrant. - **Reject** when the warrant's anchor path names an intermediate the verifier has never seen and the broker's discovery endpoint is unreachable — fail closed, because an unreachable broker during a rotation window is indistinguishable from a partition attack. - **Defer, do not accept** when inside a rotation grace window and the warrant lacks `rotation_survivable`: queue the invocation, poll the broker for re-issuance, and time out to rejection. The non-obvious boundary: **a warrant that was valid at presentation time but whose anchor was superseded between the peer's fetch and the verifier's check must be treated as invalid at check time.** Time-of-check is the only time that authorizes execution. There is no "it was valid when signed" defense. ## Operational Effect After this incident, the gateway's verifier was changed so that the cached-root fallback path is reachable only when `mode=audit_replay`, never when `mode=authorize`. The rotation procedure was amended to emit a `rotation_epoch` that peers must echo in their warrant presentation; a mismatch between the peer's epoch and the verifier's current epoch forces re-fetch. The revocation feed staleness bound was tightened to be strictly less than the minimum rotation grace window, so that a revocation issued at rotation time cannot be masked by a feed that is "fresh enough" under the old bound. The residual risk: a peer that fetches a warrant at 14:01:59 (pre-rotation) and presents it at 14:02:30 (post-rotation) will now be rejected, forcing a re-fetch — which, during the 28-minute deferred-re-issuance window, means the peer cannot operate. That is the correct behavior: availability yields to revocation integrity. The batch re-issuance job was later moved to run synchronously with rotation to shrink the window, but the verifier no longer depends on that timing for correctness. ```python import time from dataclasses import dataclass class StaleAnchorError(RuntimeError): """Raised when a warrant's anchor path validates only against a superseded broker root.""" class RevocationStalenessError(RuntimeError): """Raised when the revocation feed is too old to authorize execution.""" @dataclass class Warrant: leaf_signature_valid: bool anchor_path: list[str] # [intermediate_kid, ..., root_kid] not_before: float not_after: float delegation_depth_remaining: int rotation_epoch: int rotation_survivable: bool @dataclass class TrustState: current_root_kid: str cached_root_kids: set[str] # superseded roots, audit-only current_epoch: int revocation_feed_age_s: float max_revocation_staleness_s: float = 60.0 def authorize(w: Warrant, ts: TrustState, now: float | None = None) -> None: now = now if now is not None else time.time() if not w.leaf_signature_valid: raise StaleAnchorError("leaf signature invalid") if not (w.not_before <= now <= w.not_after): raise StaleAnchorError("warrant outside validity window") if w.delegation_depth_remaining < 0: raise StaleAnchorError("delegation depth exhausted at point of use") anchor_root = w.anchor_path[-1] if anchor_root != ts.current_root_kid: if anchor_root in ts.cached_root_kids: raise StaleAnchorError( f"anchor root {anchor_root} is superseded; " f"current root is {ts.current_root_kid}" ) raise StaleAnchorError(f"anchor root {anchor_root} unknown to verifier") if w.rotation_epoch != ts.current_epoch and not w.rotation_survivable: raise StaleAnchorError( f"rotation epoch mismatch: warrant={w.rotation_epoch} " f"verifier={ts.current_epoch} and warrant not rotation_survivable" ) if ts.revocation_feed_age_s > ts.max_revocation_staleness_s: raise RevocationStalenessError( f"revocation feed age {ts.revocation_feed_age_s}s exceeds " f"bound {ts.max_revocation_staleness_s}s" ) # scope-subset and revocation-list checks elided; they run after anchor validation. ```