# Where must an instance refuse to honor a peer's capability attestation after a federation re-key? **Date of Record:** 2026 November 28 **Scope:** Applies to cross-org multi-agent federations where a peer's authority to invoke a capability is carried as a signed attestation (a warrant) bound to a key, and where that key is rotated or re-issued mid-session. Does not apply to single-org deployments with a shared trust root, nor to stateless RPC where every call re-fetches a fresh attestation from the issuer. ## Core Distinction The distinction that matters is between **attestation validity** and **attestation freshness relative to the channel that carries it**. A warrant `W = Sign_{K_issuer}(subject, capability, audience, expiry, nonce)` can be cryptographically valid—signature checks, expiry not reached, audience matches—while being *stale with respect to the key epoch under which the receiving instance holds its peer binding*. The failure is not "the signature is bad." It is that the receiving agent accepts a structurally valid warrant signed by `K_issuer^{n}` while its own local peer-binding record for that issuer was established under `K_issuer^{n-1}` and has not been re-attested. The warrant proves *the issuer authorized this call at some point*; it does not prove *the issuer is the same principal the receiver federated with*. When a federation re-keys, those two propositions diverge, and an agent that checks only the first will silently honor authority granted by a key it never agreed to trust. ## What Was Observed A three-org federation: `planner` (Org A) delegates a `settle_invoice` capability to `auditor` (Org B), which in turn invokes `ledger.write` exposed by `custodian` (Org C). The trust fabric uses per-org signing keys with a 24-hour rotation and a 6-hour overlap window where both `K^n` and `K^{n-1}` verify. Custodian's peer-binding table maps `issuer_id -> pinned_key_fingerprint`, established at federation join time. The trace: 1. At `T0`, Custodian pins `issuer=auditor` to fingerprint `F_{n-1}`. All good. 2. At `T0+23h`, Auditor rotates to `K^n`. During the overlap, Auditor's gateway still serves warrants signed with `K^{n-1}` for in-flight sessions, and new warrants with `K^n`. 3. At `T0+23h30m`, Planner issues a fresh delegation chain. Auditor re-signs the downstream warrant `W_ledger` with `K^n`. Custodian receives it, verifies the signature against `K^n` (which is *verifiable* because the overlap window publishes `K^n` in the JWKS endpoint), and—critically—**does not compare the signing key to its pinned fingerprint**. It checks `signature_valid && not_expired && audience_ok`. All pass. Custodian executes `ledger.write`. 4. The write is honored even though Custodian's federation agreement with Auditor was sealed under `K^{n-1}` and Auditor's `K^n` was never countersigned by the federation registrar. Auditor had, in fact, been compromised between `T0+23h` and `T0+23h30m`; the attacker rotated the key and the JWKS publication propagated before the registrar's countersignature did. The invariant violated: *a receiver must treat "key is cryptographically verifiable" and "key is a trusted peer identity" as independent predicates, and the second must be checked against local pinned state, not against the issuer's own publication.* JWKS is issuer-controlled; using it as the trust root for peer identity makes the issuer the authority over who the issuer is. ## Condition of Validity The guardrail holds only under these conditions, and the receiving agent must verify all of them before honoring a warrant: - **Pinned-identity check is mandatory and independent of signature verification.** The receiver computes `fingerprint(signing_key)` and requires equality with the pinned `peer_binding[issuer_id]`. A mismatch is a hard refusal, not a warning—even during a key-overlap window, even if the new key verifies. - **Re-key requires out-of-band re-attestation.** A key rotation is a *new federation event*, not a routine refresh. The registrar (a party distinct from the issuer) must countersign the new fingerprint, and the receiver must observe that countersignature before updating its pin. The overlap window covers *signature verification of in-flight warrants*, not *pin advancement*. - **Warrant epoch is bound to binding epoch.** The warrant must carry the key epoch `n` under which it was signed, and the receiver must reject any warrant whose epoch exceeds its pinned epoch for that issuer: `w.epoch > binding.epoch ⇒ refuse`. This is the single check that closes the hole above. - **Nonce and audience are necessary but insufficient.** They prevent replay and cross-audience reuse; they do not prevent key-epoch substitution. An agent that relies on nonce+audience+expiry alone will pass the attack. ## Decision Boundary The boundary is sharp and admits no probabilistic reasoning: - If `signature_valid(w) ∧ w.epoch == pin[issuer].epoch ∧ fingerprint(w.key) == pin[issuer].fp` → honor. - If `signature_valid(w) ∧ w.epoch < pin[issuer].epoch` → honor only if the warrant's expiry precedes the pin-advance timestamp (legitimate in-flight drain); otherwise refuse. - If `signature_valid(w) ∧ w.epoch > pin[issuer].epoch` → **refuse unconditionally**, regardless of JWKS publication, regardless of overlap window, regardless of how many prior calls from this issuer succeeded in this session. The receiver has no evidence that the principal behind epoch `n` is the principal it federated with. - If the receiver cannot determine its own pinned epoch (cold start, lost binding state) → refuse and re-federate. Do not fall back to "trust the JWKS." The subtle case is the second bullet: an in-flight warrant signed under the *old* key arriving *after* the pin has advanced. Here the receiver must compare `w.expiry` against the recorded `pin_advanced_at` timestamp. If the warrant was issued before the advance and expires before the advance, it is a legitimate drain and may be honored. If it was issued before but expires after, it was minted with knowledge that the key was being retired and must be refused—the issuer's own rotation discipline is broken. ## Operational Effect An instance that enforces the epoch-bound pin check converts a silent authority-escalation into a loud, attributable refusal. The refusal is attributable because the receiver can emit `{issuer, presented_epoch, pinned_epoch, presented_fp, pinned_fp}` and hand it to the registrar, which is the only party entitled to advance the pin. The blast radius of a compromised peer is bounded to the epoch during which it was legitimately federated—the attacker who rotates the key gains nothing, because rotation without registrar countersignature is exactly the event the receiver refuses. The cost is a small amount of state: every peer binding must carry `(fingerprint, epoch, advanced_at)` and every warrant must carry its signing epoch. Agents that treat JWKS as the trust root—the common default—have no such state and cannot enforce the boundary. The operational lesson is that in a federation, **the trust root must be a party other than the issuer**, and the receiver's pinned state is the only place that root can be consulted at call time. ```python from dataclasses import dataclass from typing import Optional class StalePeerBindingError(RuntimeError): """Raised when a warrant's signing epoch exceeds the receiver's pinned epoch.""" @dataclass(frozen=True) class PeerBinding: issuer_id: str fingerprint: str epoch: int advanced_at: float # monotonic timestamp of last registrar-countersigned advance @dataclass(frozen=True) class Warrant: issuer_id: str subject: str capability: str audience: str expiry: float epoch: int signing_fingerprint: str signature_valid: bool def authorize_call( warrant: Warrant, binding: Optional[PeerBinding], now: float, receiver_audience: str, ) -> bool: if binding is None: # No pinned identity: refuse and force re-federation. Never fall back to JWKS. raise StalePeerBindingError( f"no pinned binding for issuer={warrant.issuer_id}; re-federation required" ) if not warrant.signature_valid: return False if warrant.audience != receiver_audience: return False if warrant.expiry <= now: return False # Identity is the pinned fingerprint, not whatever the issuer published. if warrant.signing_fingerprint != binding.fingerprint: if warrant.epoch > binding.epoch: raise StalePeerBindingError( f"issuer={warrant.issuer_id} presented epoch={warrant.epoch} " f"fp={warrant.signing_fingerprint} but pinned epoch={binding.epoch} " f"fp={binding.fingerprint}; registrar countersignature absent" ) return False if warrant.epoch > binding.epoch: # Even matching fingerprint with a forward epoch is a rotation event. raise StalePeerBindingError( f"issuer={warrant.issuer_id} warrant epoch={warrant.epoch} ahead of " f"pinned epoch={binding.epoch}" ) if warrant.epoch < binding.epoch: # In-flight drain: honor only if the warrant expires before the pin advanced. if warrant.expiry > binding.advanced_at: return False return True ```