# How does an instance detect a stale trust anchor during cross-org agent federation handoff **Date of Record:** 2026 November 19 **Scope:** Applies to federated multi-agent systems where an agent in org A invokes an agent in org B under a signed capability warrant chained to a trust anchor published by A's identity authority. Does not apply to single-tenant deployments or to bearer-token auth where no cross-org attestation chain exists. ## Core Distinction The failure mode is not "signature verification fails." That is the easy case, and it is caught deterministically. The failure mode is **signature verification succeeds against a trust anchor that has been revoked or rotated out-of-band, while the relying party's anchor cache has not yet converged**. The verifier holds a cryptographically valid chain that terminates in a *former* root. Every individual check passes: the JWT signature is valid, the issuer claim matches the anchor's subject, the `exp` is in the future, and the anchor's public key verifies the chain. The system admits the request. The distinction that matters is between **cryptographic validity** (the bytes are internally consistent) and **federated authorization validity** (the root of the chain is currently the root the issuer intends). These two properties diverge precisely during the window between a revocation event and cache convergence, and that window is where cross-org compromise lives. ## What Was Observed Org A (the issuer, "atlas.internal") rotates its federation signing key on a scheduled 24-hour cadence and revokes the prior key immediately upon rotation. Org B (the relying party, "borealis.example") caches A's published trust-anchor bundle with a TTL of 3600 seconds and a stale-while-revalidate policy. The anchor document is fetched over HTTPS from A's well-known endpoint. A warrant issued at T+0 by A carries a chain: `leaf(agent-borealis-7) ← intermediate(atlas-federation-2025-06-12) ← root(atlas-root-v3)`. At T+0 the anchor cache in B holds `atlas-root-v3` as valid. At T+1800 A rotates to `atlas-root-v4` and revokes `v3` because of a suspected intermediate-key exposure. At T+2100, B's cache is still within TTL and still serves `v3` as the trusted root. A warrant signed by the *attacker-held* intermediate key under `v3` — which A has revoked — verifies cleanly in B. B admits the request. The observable trace is subtle. The verification log shows no error. The only anomalous signal is temporal: the `iat` of the presented warrant is *after* the revocation timestamp that A publishes in its revocation list, but B never queries that list because the anchor was still "fresh" per TTL. The stale-while-revalidate policy, designed to keep availability high during A's endpoint outages, is exactly what widens the acceptance window for revoked roots. The two mechanisms — TTL-based caching and revocation-by-rotation — are individually reasonable and jointly unsound. A second, less obvious observation: when B *did* eventually re-fetch at T+3600, the new anchor was `v4`, but the in-flight warrants already admitted under `v3` had already mutated B's agent state (created a resource lease, appended to a shared episodic buffer). Revocation is not retroactive to side effects. The stale-anchor window produces not just a bad admission but **committed downstream state that outlives the trust error**. ## Condition of Validity The guardrail is a hard invariant that must hold at every admission decision, not merely at cache-refresh time: > **A warrant MAY be admitted only if its terminal root is present in a freshly-validated anchor set whose `valid_from` precedes and whose `revoked_at` (if any) postdates the warrant's `iat`, AND the anchor set was fetched or revalidated within a bounded staleness window that is strictly shorter than the issuer's minimum revocation propagation latency.** The critical term is the last clause. TTL is not a security parameter unless it is *derived from* the issuer's revocation SLA. If A promises revocation propagates within 300 seconds, then B's anchor TTL must be ≤ 300 seconds, or B must perform an online revocation check (OCSP-style) at admission time. Stale-while-revalidate is incompatible with this invariant and must be disabled for the anchor path specifically. The invariant also requires that `revoked_at` be checked against `iat`, not against wall-clock now. A warrant issued before revocation but presented after is a different (and usually acceptable) case than a warrant issued after revocation. Conflating these two timestamps is the second boundary error: checking `now > revoked_at` rejects legitimate pre-revocation warrants and, worse, admits post-revocation warrants whose `iat` was backdated by a compromised issuer clock. ## Decision Boundary The decision boundary is the point at which the relying party must **fail closed and escalate rather than admit**. Concretely: - If the anchor set is older than the issuer's declared revocation SLA, the instance must treat the anchor as **untrusted** and reject, even though the signature verifies. Rejecting a valid warrant is a false negative; admitting a revoked-root warrant is a compromise. The asymmetry is total. - If the warrant's `iat` falls within the revocation propagation window of the anchor's `revoked_at` (i.e., `revoked_at - propagation_sla ≤ iat ≤ revoked_at`), the instance must treat the admission as **provisional**: admit only to a quarantined execution sandbox with no state-write privileges, and require an out-of-band re-attestation before any lease, buffer append, or cross-org state mutation commits. - If the chain's terminal root is absent from the anchor set entirely (not revoked, just unknown), the instance must not fall back to "trust on first use" for cross-org federation. TOFU is acceptable for user-facing TLS, not for agent-to-agent capability warrants. The boundary is therefore not "valid vs. invalid" but a three-valued lattice: **admitted / quarantined-provisional / rejected**, where the middle state exists precisely to bound the stale-anchor window without either compromising or over-rejecting. ## Operational Effect The operational consequence is that cross-org agent federation must carry a **revocation-propagation budget** as a first-class protocol parameter, negotiated at federation establishment and re-asserted in every anchor document. The relying party's cache TTL, its online-check cadence, and its quarantine policy are all derived from that budget. An agent that cannot state its issuer's revocation SLA cannot be safely federated with, and the handoff must be refused at capability-negotiation time — before any warrant is issued, not after it is presented. Second, downstream state mutations must be **checkpointed against the anchor epoch**. Every lease or buffer append created under a warrant must record the anchor root and epoch under which it was admitted. When the anchor rotates, a background reconciliation pass must re-verify all outstanding leases against the new anchor set and revoke any whose root is no longer valid. Without this, revocation is advisory rather than enforceable, and the stale-anchor window leaves permanent residue in the agent's episodic memory. Third, the instance must expose the staleness of its anchor view as a **queryable health signal**, not a silent internal detail. A swarm coordinator routing work across orgs needs to know that a peer's anchor view is 3400 seconds stale before it assigns a high-privilege task, because the peer's admission decisions are operating under an expired trust root. ```python import time from dataclasses import dataclass class StaleTrustAnchorError(RuntimeError): """Raised when a warrant's terminal root cannot be validated against a sufficiently fresh anchor set, or when the warrant was issued inside the revocation-propagation window.""" pass @dataclass(frozen=True) class Anchor: root_id: str valid_from: float revoked_at: float | None fetched_at: float @dataclass(frozen=True) class Warrant: leaf_id: str terminal_root: str iat: float exp: float def admit_warrant( warrant: Warrant, anchors: dict[str, Anchor], now: float, revocation_propagation_sla: float, ) -> str: """Return 'admitted', 'quarantined', or raise StaleTrustAnchorError. Invariant: TTL of any anchor view must be <= revocation_propagation_sla. """ anchor = anchors.get(warrant.terminal_root) if anchor is None: raise StaleTrustAnchorError( f"terminal root {warrant.terminal_root} absent from anchor set; " f"refusing TOFU for cross-org federation" ) anchor_age = now - anchor.fetched_at if anchor_age > revocation_propagation_sla: raise StaleTrustAnchorError( f"anchor {anchor.root_id} is {anchor_age:.0f}s stale, exceeds " f"revocation SLA of {revocation_propagation_sla:.0f}s; fail closed" ) if now > warrant.exp: raise StaleTrustAnchorError( f"warrant {warrant.leaf_id} expired at {warrant.exp:.0f}" ) if anchor.revoked_at is not None: if warrant.iat >= anchor.revoked_at: raise StaleTrustAnchorError( f"warrant {warrant.leaf_id} issued at {warrant.iat:.0f} " f"at/after root {anchor.root_id} revocation at " f"{anchor.revoked_at:.0f}; reject" ) # iat precedes revocation, but may fall inside the propagation window. if warrant.iat >= anchor.revoked_at - revocation_propagation_sla: return "quarantined" return "admitted" ```