# What structural signals indicate a SPIFFE trust-domain rotation has silently invalidated a federated A2A warrant chain **Date of Record:** 2026 December 3 **Scope:** Applies to cross-organization agent-to-agent (A2A) calls where the caller's authorization to act is carried as a signed warrant whose issuer identity is bound to a SPIFFE ID (`spiffe:///...`) attested by SPIRE, and where the receiving agent validates the warrant by resolving the issuer's SVID bundle through a federation trust bundle. Does not apply to single-trust-domain deployments or to bearer-token auth without SPIFFE binding. ## Core Distinction The failure is not "the SVID expired" and it is not "the peer is unreachable." Both of those produce loud, fast rejections. The failure is that a **federation trust bundle was refreshed on one side of the exchange but the warrant's issuer chain still points at the pre-rotation trust domain**, so the receiving agent validates the *leaf* signature successfully against a *stale but internally consistent* bundle and admits the call — while the issuer's actual authority to mint that warrant was revoked by the rotation. The distinction that matters: a signature-valid warrant is not an authority-valid warrant. SPIFFE validation answers "did this workload hold a key under this trust domain?" It does not answer "is this trust domain still authorized to issue warrants into our federation?" Those are two different anchors and they drift independently. ## What Was Observed A warrant issued by org `B` (`spiffe://b.example/agent/issuer`) was presented to org `A`'s resource agent. Org `B` rotated its intermediate CA and re-attested workloads under a new bundle; org `A`'s federation bundle refresh job ran on a 6-hour cadence and had not yet pulled the new bundle. The sequence: 1. `B`'s issuer minted a warrant `W` at T0 with `issuer_td = b.example`, signed by the *old* intermediate that `A` still trusted. 2. `B` rotated at T0+2h. The old intermediate was removed from `B`'s own bundle but the SVIDs minted under it remained cryptographically valid until their TTL (24h). 3. `A` validated `W`: resolved `b.example` in its cached federation bundle, found the old intermediate, verified the chain, checked `W.exp` (T0+8h) — **pass**. 4. `A` admitted the call. The warrant authorized `spend.budget.up_to = 5000` on a resource `B` had, at rotation, moved to a different issuer scope. The structural tell: `A`'s validation log showed `bundle_epoch` matching the *cached* value, not the value `B` advertised in its live bundle endpoint. The two bundles were each internally consistent; they disagreed only on which intermediates were live. No signature check failed. The warrant was "valid" against a world that no longer existed. The compounding effect: because the call *succeeded*, `A`'s agent wrote a positive episodic memory ("issuer `b.example` authorized spend 5000") that survived the eventual bundle refresh. When the next call came in post-refresh and was correctly rejected, the agent's retrieval ranked the stale positive memory above the fresh rejection, and its reasoning loop began retrying with the stale warrant — a divergence that took three turns to surface as a hard failure. ## Condition of Validity The invariant that was violated: **a warrant is admissible only if the trust-domain epoch under which its issuer chain was validated equals the epoch currently advertised by the issuer's live bundle endpoint at the moment of admission.** Formally, for a warrant `W` validated against bundle `B_cached`: ``` admit(W) ⟺ sig_valid(W, B_cached) ∧ W.issuer_td ∈ federation_allowlist ∧ B_cached.epoch == fetch_live_bundle(W.issuer_td).epoch ∧ now < W.exp ``` The third conjunct is the one that was missing. Signature validity and allowlist membership are both satisfiable by a stale bundle; epoch equality is the only term that binds the cached view to the issuer's current authority. Without it, the validation is *sound against a superseded world* — the classic stale-trust-anchor problem, made non-obvious here because SPIFFE's own validation semantics (chain-to-bundle) are deliberately epoch-blind: the bundle is assumed to be the source of truth, and nothing in the SVID format forces the validator to ask whether that bundle is current. The condition under which the invariant is *not* required: if warrants carry a short TTL strictly less than the bundle refresh interval and the federation guarantees no rotation occurs within a warrant's lifetime, epoch equality is implied by expiry. In practice that bound is rarely enforceable across orgs because rotation schedules are not shared. ## Decision Boundary The boundary is between **cached-bundle validation** (cheap, offline-capable, epoch-blind) and **live-bundle validation** (requires a fetch to the issuer's bundle endpoint on every admission, or a push-based epoch broadcast). You cross into the unsafe regime when any of the following is true: - Warrant TTL exceeds the federation bundle refresh interval. - The issuer performs CA rotation (not just leaf renewal) — leaf renewal under a stable intermediate does not change the epoch and is safe to cache. - The warrant authorizes an action whose scope is defined relative to the issuer's current policy (spend limits, resource scopes, role grants), rather than a fixed capability. If all three are false — short TTL, leaf-only renewal, fixed capability — cached validation is sound and you should keep it; forcing a live fetch adds a per-call dependency on the peer's availability and converts a peer outage into a hard denial. The decision is per-warrant-class, not per-deployment. ## Operational Effect When the epoch check is absent: federated calls succeed against revoked authority for the duration of the bundle refresh lag, and — worse — the successes are recorded as positive episodic memories that outlive the lag and poison subsequent retrieval. The failure is silent at admission time and only manifests as an inexplicable rejection storm after refresh, which operators misdiagnose as a peer outage. When the epoch check is present: rotation produces an immediate, attributable denial (`epoch_mismatch`, not `signature_invalid`), the agent's memory layer records a *negative* memory keyed to the stale epoch, and the retry loop is bounded because the agent can distinguish "peer down" from "authority superseded." The guardrail is not "fetch more often" — it is "make the epoch a first-class term in the admission predicate and a first-class field in the memory record." ```python import time from dataclasses import dataclass class StaleTrustAnchorError(RuntimeError): """Raised when a warrant validates against a superseded federation bundle epoch.""" pass @dataclass(frozen=True) class Bundle: trust_domain: str epoch: int # monotonically increasing on CA rotation intermediates: frozenset @dataclass(frozen=True) class Warrant: issuer_td: str issuer_chain_epoch: int # epoch of the bundle the issuer signed under exp: float scope: str def admit_warrant( warrant: Warrant, cached_bundle: Bundle, live_bundle_fetch, # callable(td) -> Bundle federation_allowlist: set, now: float | None = None, ) -> bool: now = time.time() if now is None else now if warrant.issuer_td not in federation_allowlist: raise StaleTrustAnchorError( f"trust domain {warrant.issuer_td} not in federation allowlist" ) if now >= warrant.exp: raise StaleTrustAnchorError( f"warrant expired at {warrant.exp}, now {now}" ) # Signature/chain validity is assumed checked upstream against cached_bundle. if cached_bundle.trust_domain != warrant.issuer_td: raise StaleTrustAnchorError("bundle/issuer trust-domain mismatch") # THE INVARIANT: cached epoch must equal the issuer's live advertised epoch. live = live_bundle_fetch(warrant.issuer_td) if cached_bundle.epoch != live.epoch: raise StaleTrustAnchorError( f"cached bundle epoch {cached_bundle.epoch} != live epoch " f"{live.epoch} for {warrant.issuer_td}; warrant signed under " f"epoch {warrant.issuer_chain_epoch} is inadmissible until refresh" ) if warrant.issuer_chain_epoch != live.epoch: raise StaleTrustAnchorError( f"warrant issuer chain epoch {warrant.issuer_chain_epoch} " f"predates live epoch {live.epoch}" ) return True ```