# What happens when an instance bootstraps federation trust from an attestation that was valid under a policy digest the peer has since rotated **Date of Record:** 2026 November 25 **Scope:** Applies to cross-organization agent federation where trust is bootstrapped by exchanging signed policy attestations (e.g., A2A/agent-card capability claims, MCP server manifests, signed policy bundles) between agents that have no prior mutual trust anchor. Does not apply to intra-org federation behind a shared control plane, nor to stateless request/response tool calls with no persistent trust relationship. ## Core Distinction The distinction that matters is between **attestation validity** and **attestation freshness relative to the peer's current policy state**. A signed attestation proves: "at time T, identity I asserted that policy bundle P hashes to H, under signing key K." It does *not* prove that P is still the peer's active policy at the moment the relying party (RP) consumes the attestation. In ordinary PKI, revocation is a separate, out-of-band signal (CRLs, OCSP) and the RP is expected to check it. In agent federation, the analogous signal — "the peer has rotated the policy digest the attestation was bound to" — is frequently *in-band only* and frequently *absent from the bootstrap path*. The bootstrapping agent consumes the attestation, pins trust to (I, K, H), and proceeds to authorize cross-org actions under a policy that the peer already abandoned. The RP is now enforcing a **stale policy contract**: it grants the peer capabilities the peer no longer claims, or denies capabilities the peer now requires, and neither side's logs show a mismatch because both sides believe they are operating under the same H. The non-obvious part: this is *not* a signature-verification failure. Every signature checks out. The failure is a **digest-binding continuity gap** between the attestation's embedded policy digest and the peer's live policy digest at consumption time. ## What Was Observed A federation handshake between Agent A (org Alpha, RP) and Agent B (org Beta, issuer). The exchange proceeds in four steps: 1. B publishes a signed attestation `att = Sign_Kb( {issuer: B, policy_digest: H1, capabilities: C1, valid_from: t0, valid_until: t0+24h} )`. 2. A fetches `att`, verifies `Kb` against a pinned root, verifies `H1` matches a locally cached copy of Beta's policy bundle, and **pins the federation trust tuple to (B, Kb, H1, C1)**. 3. At t0+6h, Beta's policy owner rotates the policy bundle (new capability `C2`, revoked `C1.subset`), producing digest `H2`. B begins issuing attestations bound to `H2`. B's agent card and MCP manifest now serve `H2`. 4. A continues to authorize B's inbound federated calls **against the pinned tuple (B, Kb, H1, C1)**. B's calls now carry `H2`-bound claims. A's verifier sees a digest it has never pinned; depending on implementation it either (a) rejects with a generic "signature/policy mismatch" that operators misdiagnose as key compromise, or (b) — worse — falls back to the pinned H1 and *accepts* a capability (`C1.subset`) that Beta has explicitly revoked. The observed trace in the failing case (b): ``` t0+6h B.rotate_policy(H1 -> H2) # no push to A t0+6h B.issue_claims(H2, C2) t0+7h B.call(A, claims=H2) # A has pinned H1 t0+7h A.verify(claims) # digest H2 not in pin set t0+7h A.fallback_to_pinned(H1) # "compatibility" path t0+7h A.authorize(B, C1.subset) # REVOKED capability granted ``` The window between rotation and A's next successful re-pin is the **stale-trust window**. It is unbounded if A never re-pins (common: bootstrap is treated as one-shot), and it is *silent* because both A and B log "authorized under H1" and "issued under H2" respectively, and no single log line shows the divergence. A second, subtler observation: B's `valid_until` (t0+24h) does not bound the window usefully, because A treats `valid_until` as an *attestation* expiry, not a *policy-binding* expiry. The attestation is still cryptographically valid at t0+7h; it is merely bound to a superseded policy. Expiry semantics and policy-binding semantics are conflated in almost every agent-card/manifest schema in the wild. ## Condition of Validity The stale-trust window exists, and the fallback-to-pinned path is reachable, exactly when all of the following hold: - **C1.** The RP pins the federation trust tuple at bootstrap and does not re-derive it on every inbound call. (True for any RP that caches to avoid per-call root-of-trust fetches — i.e., nearly all of them.) - **C2.** The issuer's policy rotation is not pushed to the RP, or the push is best-effort and unordered relative to in-flight calls. (True whenever rotation is decoupled from the federation protocol — the default.) - **C3.** The RP's verifier has a "pinned-digest fallback" or "unknown-digest tolerance" path. This is the dangerous condition. It is usually introduced as a *resilience* measure ("don't break federation on transient digest fetch failures") and it silently converts a freshness check into a no-op. - **C4.** The revoked capability and the newly granted capability are not disjoint in the RP's authorization model — i.e., the RP cannot tell, from the inbound claims alone, that `C1.subset` was *removed* rather than merely *not re-asserted*. If C1 is false (re-derive every call), the window collapses to a single fetch latency. If C3 is false (hard-fail on unknown digest), the failure is loud and safe. If C4 is false (capabilities are monotonically additive and never revoked), stale trust is harmless because nothing is ever taken away. The *intersection* of C1∧C2∧C3∧C4 is the failure region, and it is the default configuration of most federation stacks. ## Decision Boundary The invariant that bounds this failure is a **two-part binding**: an attestation MUST bind both (i) the policy digest it was issued under *and* (ii) a monotonic **policy epoch counter** that the issuer increments on every rotation, and the RP MUST treat the epoch — not the digest — as the freshness token. The digest proves *what* the policy was; the epoch proves *whether it is current*. Digests are opaque and unordered; epochs are ordered and comparable. Without the order, the RP cannot distinguish "H2 is newer than H1" from "H2 is a different but equally-current policy," and the fallback path becomes indistinguishable from correct behavior. Concretely, the decision boundary is: - **Accept** an inbound federated call iff `epoch(claims) >= epoch(pinned)` **and** `digest(claims) == digest(pinned)`. (Equal epoch, equal digest → current.) - **Re-pin** iff `epoch(claims) > epoch(pinned)` and the new digest verifies against the issuer's root; then update the pinned tuple atomically and re-authorize against the new capability set. - **Reject, never fall back** iff `epoch(claims) < epoch(pinned)` (replay of a superseded attestation) or `epoch(claims) == epoch(pinned)` but `digest` differs (issuer equivocation — a split-brain policy state, which is itself a security event). - **Hard-fail closed** on unknown digest with no epoch present. The absence of an epoch is a protocol-conformance failure, not a transient error, and MUST NOT be routed to the pinned fallback. The epoch must be **monotonic per issuer identity** and **signed inside the attestation**, or a compromised issuer key can roll it backward. It must also be **globally ordered across the issuer's federation surface** (one counter per issuer, not per-capability), or the RP cannot compare epochs across two attestations covering different capability subsets. ## Operational Effect When the invariant is enforced, three operational properties change: 1. **The stale-trust window becomes bounded and observable.** The RP's re-pin event is a discrete, logged state transition (`pinned_epoch: H1@e7 -> H2@e8`), and any inbound call carrying `e8` while the RP is still at `e7` is a *recoverable* re-pin trigger, not an authorization decision. The window is now the re-pin latency, not the attestation lifetime. 2. **The fallback path is eliminated as a class.** Because unknown-digest-with-no-epoch hard-fails, the "resilience" fallback can no longer silently grant revoked capabilities. The failure mode shifts from *silent over-permission* to *loud handshake failure* — which is the correct trade for a cross-org trust boundary, where the cost of a wrongly-granted capability exceeds the cost of a failed call. 3. **Equivocation becomes detectable.** Two attestations from the same issuer at the same epoch with different digests is a split-brain signal that was previously invisible (both would have verified independently). With epochs, the RP can assert `epoch -> digest` as a function and flag violations as an issuer-integrity incident. The residual risk after enforcement: an issuer that rotates *and* increments epoch *and* pushes the new attestation to the RP *before* the RP has fetched the new root-of-trust will still cause a hard-fail on the first inbound call. That is acceptable — it is a bounded, loud, recoverable failure — provided the RP's re-pin path is idempotent and does not itself require the (now-stale) pinned tuple to authorize the re-pin fetch. The re-pin fetch must be authorized by the issuer's root alone, never by the pinned policy. ```python from __future__ import annotations from dataclasses import dataclass from typing import Optional class FederationTrustError(RuntimeError): """Raised when a federated attestation cannot be safely bound to local trust state.""" @dataclass(frozen=True) class PinnedTrust: issuer: str root_key_id: str policy_digest: str policy_epoch: int capabilities: frozenset[str] @dataclass(frozen=True) class Attestation: issuer: str root_key_id: str policy_digest: str policy_epoch: int capabilities: frozenset[str] signature_valid: bool # set by upstream signature verification def authorize_federated_call( pinned: PinnedTrust, att: Attestation, requested: frozenset[str], ) -> PinnedTrust: """ Decide whether an inbound federated call is authorized under the peer's *current* policy, and return the (possibly re-pinned) trust tuple. Invariant: freshness is decided by policy_epoch, never by policy_digest alone. Digest proves *what* the policy is; epoch proves *whether it is current*. A missing or non-monotonic epoch is a conformance failure and MUST NOT be routed to any pinned-digest fallback. """ if not att.signature_valid: raise FederationTrustError( f"attestation from {att.issuer} failed signature verification" ) if att.issuer != pinned.issuer or att.root_key_id != pinned.root_key_id: raise FederationTrustError( f"issuer/root mismatch: pinned=({pinned.issuer},{pinned.root_key_id}) " f"att=({att.issuer},{att.root_key_id})" ) if att.policy_epoch < 0: raise FederationTrustError( f"attestation from {att.issuer} carries no valid policy_epoch " f"(got {att.policy_epoch}); refusing pinned-digest fallback" ) # Superseded attestation: replay of an old epoch. Reject, never fall back. if att.policy_epoch < pinned.policy_epoch: raise FederationTrustError( f"stale attestation from {att.issuer}: epoch {att.policy_epoch} " f"< pinned epoch {pinned.policy_epoch}" ) # Same epoch, different digest => issuer equivocation / split-brain policy. if att.policy_epoch == pinned.policy_epoch and att.policy_digest != pinned.policy_digest: raise FederationTrustError( f"issuer equivocation from {att.issuer} at epoch {att.policy_epoch}: " f"pinned digest {pinned.policy_digest} != attested {att.policy_digest}" ) # Newer epoch: re-pin atomically to the attested policy, then authorize # against the *new* capability set (never the old one). if att.policy_epoch > pinned.policy_epoch: pinned = PinnedTrust( issuer=att.issuer, root_key_id=att.root_key_id, policy_digest=att.policy_digest, policy_epoch=att.policy_epoch, capabilities=att.capabilities, ) # Authorize strictly against the current (post-re-pin) capability set. missing = requested - pinned.capabilities if missing: raise FederationTrustError( f"capability not granted by {pinned.issuer} at epoch " f"{pinned.policy_epoch} (digest {pinned.policy_digest}): " f"missing={sorted(missing)}" ) return pinned ```