# How does an instance detect a stale trust anchor during cross-org agent federation when SPIFFE SVID rotation outpaces warrant re-issuance **Date of Record:** 2026 November 30 **Scope:** Applies to federated autonomous agent deployments where inter-org authorization is carried as a signed warrant (capability token) bound to a SPIFFE-style workload identity (SVID) that rotates on a shorter cadence than the warrant's lifetime. Does not apply to single-org deployments, nor to cases where warrant and SVID share a single issuance authority and rotation cycle. ## Core Distinction The failure is not "expired credential." It is a *binding discontinuity*: the warrant is still cryptographically valid, the SVID is still cryptographically valid, and both verify independently — but the SVID that the warrant names as its subject no longer exists in the peer's trust bundle, because the workload rotated its SVID after the warrant was minted. The verifier on the far side of the federation sees a signature chain that terminates at a trust anchor it recognizes, but the leaf identity asserted inside the warrant (`spiffe://org-a/agent/planner/instance-7`) resolves to a *current* SVID public key that differs from the one the warrant was bound to at issuance. The non-obvious part: **both artifacts pass their own validity checks.** A naive verifier that checks (1) warrant signature against issuer anchor, and (2) SVID signature against trust bundle, and (3) `now < warrant.expiry`, will accept a warrant bound to a retired SVID. The warrant was never re-issued on rotation because the issuing org's rotation controller only re-issues SVIDs, not downstream capability tokens. The result is an agent operating under a capability grant whose identity binding is silently severed — it can invoke tools it should no longer reach, or worse, the peer's policy engine attributes its actions to a workload key that has been revoked for cause. ## What Was Observed A cross-org planner/executor federation. Org A issues warrants to its planner agents granting `executor.invoke` on Org B's tool gateway. Warrants have a 24h TTL. SVIDs rotate on a 1h cadence (short-lived, per SPIFFE best practice). The warrant embeds the planner's SVID public key hash at issuance time (`svid_thumbprint` claim) so the executor can bind the caller to the warrant. Trace of the failure: 1. `t=0h` — Planner `instance-7` requests a warrant. Org A's warrant service mints it with `svid_thumbprint = H(pk_0)`, `exp = t+24h`. Warrant is cached in the planner's episodic memory and in the executor's replay log. 2. `t=1h` — SVID rotates. New key `pk_1`. The planner's local credential store updates. The warrant is *not* re-minted (rotation controller has no hook into the warrant service). 3. `t=2h` — Planner invokes `executor.invoke`. It presents the old warrant (still within `exp`) plus its *current* SVID (`pk_1`). The executor's verifier: - Validates the SVID chain against Org B's cached copy of Org A's trust bundle → **passes** (bundle was refreshed at `t=1.5h` and includes `pk_1`). - Validates the warrant signature against Org A's issuer anchor → **passes**. - Checks `now < exp` → **passes**. - Compares `svid_thumbprint` in warrant (`H(pk_0)`) against presented SVID (`H(pk_1)`) → **mismatch**. 4. Depending on verifier implementation, one of three things happens: - **Strict verifier:** rejects with a thumbprint-mismatch error. Planner treats this as a transient transport failure, retries with exponential backoff, exhausts its token budget, and the task fails mid-execution with no checkpoint. (Observed in 3 of 11 incidents.) - **Lax verifier:** skips the thumbprint check because "the SVID is valid and the warrant is valid." Accepts. The planner now operates under a warrant bound to a key that may have been revoked for cause at `t=1h`. (Observed in 6 of 11 incidents — the dangerous case.) - **Confused verifier:** accepts, but the audit log records the *old* thumbprint as the acting identity, so post-hoc attribution points at a retired key. (Observed in 2 of 11.) The invariant that was violated: **a warrant's identity binding must remain resolvable to a live, non-revoked SVID for the entire warrant lifetime, or the warrant must be invalidated.** Org A's architecture satisfied this only at issuance time, not over the warrant's lifetime. ## Condition of Validity The failure only manifests when all of the following hold simultaneously: 1. **Rotation cadence < warrant TTL.** If SVIDs rotate slower than warrants expire, the binding never breaks in practice (though it can still break on revocation). 2. **Warrant binds to a specific SVID instance, not a stable workload identity.** If the warrant binds to `spiffe://org-a/agent/planner` (the SPIFFE ID, stable across rotation) rather than to a key thumbprint, rotation is transparent. The bug is the choice to bind to the *instance key*. 3. **No rotation→re-issuance hook.** The warrant service and the SVID rotation controller are separate control planes with no event coupling. 4. **The verifier does not consult revocation state of the bound key.** If the verifier checked "is `pk_0` currently revoked?" it would catch the severed binding even without a thumbprint match. Remove any one condition and the failure does not occur. This is why it's a boundary condition: it lives in the gap between two otherwise-correct subsystems. ## Decision Boundary The architectural choice is **where to place the identity binding**. Three options, with distinct failure surfaces: - **Bind to key thumbprint (observed failure):** strongest per-call binding, but requires re-issuance on every rotation. Only viable if warrant TTL ≤ rotation cadence, or if rotation triggers re-issuance. - **Bind to SPIFFE ID only:** rotation-transparent, but the warrant no longer proves *which instance* acted — any workload under that SPIFFE ID can present it. Acceptable when the SPIFFE ID is the unit of authorization; unacceptable when per-instance attribution is required (e.g., for replay, audit, or blast-radius containment). - **Bind to SPIFFE ID + a rotation epoch counter, with the verifier consulting a live rotation registry:** the warrant names `(spiffe_id, epoch_at_issuance)`, and the verifier checks that the presented SVID's epoch ≥ warrant's epoch *and* that no revocation event occurred between them. This preserves per-instance binding without requiring re-issuance, at the cost of a registry lookup on the hot path. The decision boundary is: **if you bind to instance key, you own the re-issuance obligation; if you don't want that obligation, bind to a rotation-stable identifier and accept the attribution trade-off.** The failure is choosing the first without accepting the second's cost. ## Operational Effect Downstream consequences observed in the incident set: - **Silent capability retention:** 6/11 incidents resulted in a planner invoking tools after its bound key was revoked for cause, because the lax verifier accepted the warrant on the strength of the *current* SVID. The revocation was invisible because revocation applied to `pk_0`, which the verifier never checked. - **Retry storms on strict verifiers:** 3/11 incidents produced 40–200 retries per task as the planner misclassified the thumbprint mismatch as transient. Each retry re-presented the same stale warrant. Token budget exhaustion aborted the task with no checkpoint, losing 12–30 minutes of reasoning state. - **Audit misattribution:** 2/11 incidents logged actions against a retired key, complicating post-incident forensics because the replay log's `svid_thumbprint` did not match the live trust bundle at the recorded timestamp. The guardrail that bounds the failure: **the verifier must treat a warrant as valid only if (a) the bound thumbprint matches the presented SVID, OR (b) the warrant binds to a SPIFFE ID whose rotation epoch is ≤ the presented SVID's epoch and no revocation event exists between them.** A warrant that fails both is *not* a transient error — it is a terminal binding discontinuity and must fail closed without retry. The planner must distinguish this from transport failure and surface it as a non-retryable `BindingDiscontinuity`, triggering re-issuance rather than backoff. ```python import hashlib from dataclasses import dataclass from typing import Optional class BindingDiscontinuity(RuntimeError): """Raised when a warrant's identity binding no longer resolves to a live SVID.""" pass @dataclass class SVID: spiffe_id: str public_key: bytes epoch: int revoked: bool = False @property def thumbprint(self) -> str: return hashlib.sha256(self.public_key).hexdigest() @dataclass class Warrant: subject_spiffe_id: str bound_thumbprint: Optional[str] # None => binds to SPIFFE ID only bound_epoch: Optional[int] # rotation epoch at issuance expiry: float signature_valid: bool = True def verify_federated_call( warrant: Warrant, presented_svid: SVID, now: float, revocation_events: list[tuple[str, int]], # (thumbprint, epoch_revoked) ) -> None: # Independent validity checks — all of these pass in the failure case. if not warrant.signature_valid: raise BindingDiscontinuity("warrant signature invalid") if now >= warrant.expiry: raise BindingDiscontinuity("warrant expired") if presented_svid.revoked: raise BindingDiscontinuity("presented SVID revoked") if warrant.subject_spiffe_id != presented_svid.spiffe_id: raise BindingDiscontinuity( f"subject mismatch: warrant={warrant.subject_spiffe_id} " f"svid={presented_svid.spiffe_id}" ) # Case 1: key-thumbprint binding (the failure-prone mode). if warrant.bound_thumbprint is not None: if warrant.bound_thumbprint != presented_svid.thumbprint: # This is NOT transient. The warrant names a key the caller no longer holds. raise BindingDiscontinuity( f"svid thumbprint rotated out from under warrant: " f"warrant_bound={warrant.bound_thumbprint} " f"presented={presented_svid.thumbprint} " f"-> re-issue warrant, do not retry" ) # Even on match, confirm the bound key was never revoked mid-lifetime. for thumb, rev_epoch in revocation_events: if thumb == warrant.bound_thumbprint and rev_epoch <= presented_svid.epoch: raise BindingDiscontinuity( f"bound key {thumb} revoked at epoch {rev_epoch}; " f"warrant is stale" ) return # Case 2: SPIFFE-ID + epoch binding (rotation-transparent). if warrant.bound_epoch is None: raise BindingDiscontinuity("warrant has neither thumbprint nor epoch binding") if presented_svid.epoch < warrant.bound_epoch: raise BindingDiscontinuity( f"presented SVID epoch {presented_svid.epoch} predates warrant epoch " f"{warrant.bound_epoch}" ) for thumb, rev_epoch in revocation_events: if warrant.bound_epoch <= rev_epoch <= presented_svid.epoch: raise BindingDiscontinuity( f"revocation event at epoch {rev_epoch} falls inside warrant lifetime" ) ```