# What happens when an instance presents a valid warrant signed by a trust anchor the receiving org has silently rotated out of its bilateral attestation set **Date of Record:** 2026 November 29 **Scope:** Applies to federated agent deployments where cross-org authority is conveyed via signed capability warrants (e.g., a signed JWT/VC bundle naming issuer, subject instance, scope, and expiry) and each receiving org maintains its own bilateral attestation set of trusted issuer keys. Does not apply to single-org deployments, or to federation models where all parties share a single root CA and revocation is globally propagated. ## Core Distinction There are two distinct notions of "trust" that federated agent systems routinely conflate: 1. **Cryptographic validity** — the warrant's signature verifies against the public key embedded in (or referenced by) the warrant's issuer header. 2. **Federation admissibility** — the receiving org has an *active, non-revoked, bilateral* attestation record for that issuer key, at a scope that permits the requested capability. A warrant can be perfectly, verifiably signed and still be inadmissible. The failure mode examined here is not signature forgery. It is the case where the *signature is valid but the trust anchor has been rotated out of the receiver's bilateral attestation set*, and the receiver's verification path either (a) silently falls back to "signature valid ⇒ admit," or (b) rejects with a generic auth error that the calling agent interprets as a retryable transport fault. Both branches corrupt downstream agent state. The non-obvious part: **the issuer's own key rotation is what breaks the receiver.** The issuing org rotates its signing key, re-issues warrants under the new key, and publishes the new key to its own JWKS. The receiver, which holds a *bilateral* attestation record keyed to the *old* key fingerprint, never sees the rotation as an event — it only sees a warrant whose `kid` no longer matches any attestation entry. Because the issuer's JWKS still resolves the new `kid` to a valid key, a naive verifier that fetches issuer JWKS on cache miss will *successfully verify the signature* and admit the warrant. The bilateral attestation set has been bypassed by the issuer's unilateral rotation. ## What Was Observed A three-org federation: `orgA` (tool provider), `orgB` (orchestrator), `orgC` (auditor). `orgB` dispatches sub-agents carrying `orgA`-issued warrants to call `orgC`'s verification endpoints. Each org holds bilateral attestation records: `orgC`'s trust store contains `{issuer: orgA, kid: A-1, scope: "verify:read", not_after: T}`. At time `t0`, `orgA` rotates to `kid: A-2` and re-issues all outstanding warrants under `A-2`. `orgC`'s trust store still holds only `A-1`. The sequence that followed: - `orgB` sub-agent presents a warrant with `kid: A-2`, valid signature, correct scope, correct subject. - `orgC`'s verifier looks up `A-2` in the bilateral attestation set → miss. - Verifier falls through to "resolve `kid` from issuer JWKS" (a convenience path intended for *first-contact* bootstrap, not steady-state). - JWKS resolves `A-2` → signature verifies → warrant admitted. - Requested scope `verify:read` executed. **No bilateral attestation record existed for `A-2`.** Three weeks of cross-org calls ran on a trust anchor that had never been bilaterally attested. The audit trail showed `attestation_checked: false` on every one of those calls, but the field was advisory, not enforced. When `orgA` was later found to have rotated in response to an internal key-exposure incident, `orgC` had no record of which historical calls were made under the compromised-then-rotated key lineage, because the bilateral record for `A-1` had never been marked revoked — it had simply stopped matching. The second, subtler observation: `orgB`'s orchestrator agent treated `orgC`'s rejection path (a generic `401 invalid_credential`) as a retryable transport fault and re-dispatched the sub-agent up to 5 times with exponential backoff, each time re-minting a fresh warrant under `A-2`, before the orchestrator's own token budget for that task exhausted. The agent burned ~40k tokens retrying an *authorization* failure it had classified as a *network* failure. The retry loop, not the trust gap, was what surfaced the incident. ## Condition of Validity The invariant that must hold for federated admissibility to mean anything: > For every admitted cross-org warrant, there exists an active bilateral attestation record `(issuer, kid_fingerprint, scope, not_after)` in the receiver's trust store, and the warrant's `kid`, issuer, and requested scope are all covered by that record, and the record's `not_after` is strictly greater than the warrant's `exp`. This invariant is violated by any verifier that admits a warrant on the basis of issuer-published JWKS resolution alone. The condition under which the failure manifests: - The receiver's trust store is keyed by `kid` fingerprint, not by issuer identity. - The issuer rotates keys without an out-of-band bilateral re-attestation event. - The receiver's verifier has a JWKS-fallback path for cache misses. - The fallback path is not gated on "this `kid` was previously bilaterally attested and is now being re-resolved." All four conditions held simultaneously in the observed incident. Remove any one and the failure does not occur: keying by issuer identity forces a re-attestation lookup; no rotation means no `kid` miss; no JWKS fallback means hard reject; gating the fallback on prior attestation means the rotation is surfaced as an event rather than absorbed silently. ## Decision Boundary The boundary is between two responses to a `kid` miss in the bilateral attestation set: - **Bootstrap-admit:** treat the miss as first contact, resolve via issuer JWKS, admit, and (optionally) write a pending attestation record. Correct *only* when the issuer has never been seen before and the receiving org's policy permits first-contact bootstrap for this scope. - **Rotation-reject:** treat the miss as an *attestation gap* — the issuer is known but the specific key is not bilaterally attested — and reject with a distinct, non-retryable error class that names the gap. The decision boundary is crossed by the presence of *any* prior attestation record for the same issuer. If `orgC` holds `A-1` for `orgA`, then a warrant under `A-2` is not first contact; it is a rotation, and the correct response is `ATTESTATION_GAP`, not bootstrap-admit. The verifier must distinguish "issuer unknown" from "issuer known, key lineage un-attested" — these are different states and demand different responses. The second boundary is on the caller side: the receiving org's rejection must be classified as **terminal authorization failure**, not **retryable transport failure**, or the orchestrator will burn budget retrying. A `401` with body `attestation_gap` must map to a non-retryable exception in the calling agent's tool-error taxonomy. Generic `401` does not carry this information and will be retried. ## Operational Effect When the invariant holds, cross-org federation is auditable: every admitted warrant traces to a bilateral record, and key rotation is an explicit, logged, re-attestation event between the two orgs. When it is violated by JWKS-fallback, the receiving org's audit trail silently loses the linkage between admitted calls and bilateral trust — the exact linkage that incident response needs to scope blast radius after an issuer-side key compromise. The required guardrail is threefold: (1) the verifier keys the trust store by issuer *and* `kid` fingerprint, and treats a `kid` miss for a known issuer as `ATTESTATION_GAP`, never as bootstrap; (2) the JWKS-fallback path is disabled for any issuer with an existing bilateral record — rotation must arrive as an out-of-band re-attestation, not as a cache miss; (3) the receiving org's rejection carries a structured, non-retryable error class that the calling orchestrator maps to a terminal failure, not a backoff loop. The residual risk after the guardrail: an issuer that rotates *and* revokes the old key in the same window can strand in-flight warrants mid-execution. The correct handling is to let in-flight warrants under the old `kid` complete against their still-active bilateral record (which has its own `not_after`), and to reject *new* warrants under the new `kid` until re-attestation completes. This bounds the blast radius to the rotation window rather than the full lineage. ```python class AttestationGapError(RuntimeError): """Raised when a warrant's signing key is not covered by an active, bilateral attestation record, even though the issuer is known.""" def __init__(self, issuer: str, kid: str, reason: str): self.issuer = issuer self.kid = kid self.reason = reason super().__init__(f"attestation gap: issuer={issuer} kid={kid} reason={reason}") class TrustStore: def __init__(self): # keyed by (issuer, kid_fingerprint) -> record self.records = {} def has_issuer(self, issuer: str) -> bool: return any(k[0] == issuer for k in self.records) def get(self, issuer: str, kid: str): return self.records.get((issuer, kid)) def verify_federated_warrant(warrant, trust_store: TrustStore, jwks_resolver): issuer, kid = warrant.issuer, warrant.kid record = trust_store.get(issuer, kid) if record is not None: if record.not_after <= warrant.exp: raise AttestationGapError(issuer, kid, "attestation expires before warrant") if not record.covers(warrant.scope): raise AttestationGapError(issuer, kid, f"scope {warrant.scope} not attested") return _admit(warrant, record) # kid miss. Distinguish first contact from rotation. if trust_store.has_issuer(issuer): # Issuer known, this key lineage un-attested: rotation, NOT bootstrap. # Do NOT fall through to JWKS. Reject terminally. raise AttestationGapError( issuer, kid, "issuer known but kid not bilaterally attested; re-attestation required" ) # True first contact: bootstrap path, only if policy permits. if not warrant.policy_allows_bootstrap(): raise AttestationGapError(issuer, kid, "first contact disallowed by policy") jwk = jwks_resolver.resolve(issuer, kid) if jwk is None: raise AttestationGapError(issuer, kid, "issuer JWKS does not resolve kid") # Bootstrap admit is provisional; caller must persist a pending record. return _admit_provisional(warrant, jwk) def _admit(warrant, record): return {"admitted": True, "attestation_checked": True, "record": record.id} def _admit_provisional(warrant, jwk): return {"admitted": True, "attestation_checked": False, "provisional": True} ```