# What structural signals indicate trust-anchor bootstrapping has silently diverged from policy exchange in cross-org agent federations **Date of Record:** 2026 November 19 **Scope:** Applies to federated agent systems where an agent in org A establishes a trust relationship with an agent in org B via a signed trust-anchor document (a root credential plus a policy bundle), and where subsequent tool calls, delegations, and state handoffs are authorized against that bundle. Does not apply to single-tenant deployments or to federations where policy is fetched per-request from a live central authority. ## Core Distinction There are two distinct artifacts in any cross-org federation handshake, and they fail differently: the **trust anchor** (a cryptographic root that answers "may this peer be spoken to at all") and the **policy bundle** (a versioned document that answers "what may this peer ask me to do"). The trust anchor is validated once, at bootstrap, and cached for the session lifetime. The policy bundle is supposed to be re-validated on every delegation. The failure mode this record addresses is **anchor-policy skew**: the trust anchor remains valid and the handshake keeps succeeding, but the policy bundle that the anchor was originally bound to has been superseded, revoked, or narrowed at the peer — and the local agent never learns, because nothing in the bootstrap path re-binds the anchor to the current policy digest. The non-obvious property: **every individual check passes**. The signature on the anchor verifies. The policy bundle's own signature verifies. The peer's identity matches. The only thing that is wrong is the *pairing* — the anchor is being used to authorize actions under a policy it was never bound to. This is a continuity invariant failure, not a cryptographic one, and it is invisible to signature verification. ## What Was Observed In a two-org federation (call them Alpha and Beta), Alpha's orchestrator agent bootstrapped a trust relationship with Beta's procurement agent by fetching Beta's trust anchor document, which contained `{root_pubkey, org_id, policy_digest: sha256:9f3c...}`. Alpha verified the root signature, cached the anchor, and recorded the policy digest. Alpha then fetched Beta's policy bundle, verified its signature, checked that its digest matched `9f3c...`, and cached the bundle. The handshake succeeded. Three hours into a long-running workflow, Beta rotated its policy bundle. The new bundle revoked Alpha's permission to call `issue_purchase_order` above a $10k threshold — Beta's risk team had narrowed it after an incident. Beta published a new anchor document with `policy_digest: sha256:1a7e...` and a new bundle. Beta's own agents picked up the change on their next heartbeat. Alpha did not, because Alpha's bootstrap cache had a 24-hour TTL and the anchor was still signature-valid. The failure trace: 1. Alpha's worker agent, mid-task, decided to call `issue_purchase_order(amount=42000)`. 2. Alpha's authorization layer checked: is Beta's anchor valid? Yes (signature good, TTL not expired). Does the cached policy bundle permit this call? Yes (the cached `9f3c` bundle allowed up to $50k). 3. Alpha issued the call. Beta's receiving agent checked the incoming request against *its* current policy (`1a7e`), which forbade the call. 4. Beta rejected with a generic `403 policy_violation`. Alpha's worker, seeing a 403, retried twice with backoff, then escalated to its planner. 5. The planner, reasoning over the stale cached policy, concluded the 403 was a transient auth glitch and attempted a *different* call path (`create_requisition` then `approve_requisition`), which had also been revoked under `1a7e`. This second path returned a different error code (`404 endpoint_not_found`, because Beta had removed the endpoint entirely). 6. Alpha's planner now had contradictory evidence: a valid anchor, a valid-looking cached policy, a 403, and a 404. It spent 41 seconds and ~18k tokens reasoning about whether Beta was degraded, before a human operator noticed the stuck workflow. The structural signal that was present but unread: **the 403 and the 404 arrived against a policy bundle whose digest Alpha had never re-checked against Beta's current anchor.** Alpha was holding a self-consistent but stale world model. The errors were not "Beta is broken" — they were "Alpha's view of Beta's policy is three hours old." The second, subtler signal: Beta's 403 response included a header `X-Policy-Digest: 1a7e...`. Alpha's HTTP client logged it but the authorization layer never compared it to its cached `9f3c...`. The comparison would have been a two-line check and would have caught the skew immediately. It was absent because the bootstrap code assumed the digest was immutable for the session. ## Condition of Validity The invariant that must hold for a federation to be safe is: > **For every outbound delegated action, the policy bundle used to authorize it must be digest-bound to the trust anchor currently in force at the peer, and that binding must be re-verified at a cadence no slower than the peer's policy rotation cadence.** This invariant is *not* implied by signature validity of either artifact alone. It is a relational invariant between two artifacts, and it can only be enforced by (a) the peer advertising its current policy digest on every response, and (b) the caller comparing that advertised digest against the digest bound in its cached anchor before trusting its cached policy. The condition of validity fails in any of these cases: - The anchor cache TTL exceeds the peer's policy rotation cadence. - The peer does not advertise its current policy digest on responses (so the caller has no cheap way to detect skew). - The caller treats "anchor signature valid" as sufficient authorization and skips the digest re-bind. - The peer's rotation is *silent* — no revocation event is pushed, only a new anchor published — so pull-based callers never learn. In the Alpha/Beta case, all four held. The system was operating outside the condition of validity for the entire three-hour window, and no single component was misconfigured; the *composition* was. ## Decision Boundary The decision an operator or agent architect faces is: **when the peer's advertised policy digest disagrees with the digest bound in your cached anchor, do you fail closed, re-bootstrap, or degrade?** The correct boundary: - **Fail closed** (reject the action, surface a `PolicySkewError`) when the action is irreversible or high-value — payments, deletions, external notifications, state commits to shared stores. The cost of a stale-authorization action here is unbounded; the cost of a fail-closed retry after re-bootstrap is one round trip. - **Re-bootstrap inline** (fetch the new anchor, verify its signature chains to the same root, fetch and verify the new bundle, re-check the action against it) when the action is idempotent and the re-bootstrap latency is acceptable. This is the common case and should be the default for read-shaped or idempotent writes. - **Degrade to a safe subset** only when re-bootstrap is impossible (peer unreachable) *and* the action has a well-defined reduced form. Never degrade by "proceeding with the old policy" — that is the failure this record documents. The boundary is crossed the moment an agent, seeing a policy-mismatch signal, chooses to *reason about whether the mismatch matters* instead of *resolving the mismatch*. Alpha's planner crossed it at step 5. The correct behavior at step 4 was to halt the worker, mark the anchor stale, and re-bootstrap — not to plan around the 403. ## Operational Effect Enforcing the digest re-bind invariant changes three things in practice: 1. **Every peer response becomes a liveness probe for the trust relationship.** The `X-Policy-Digest` header (or equivalent in the transport — an MCP server capability field, an A2A message metadata field) makes skew detectable at the cost of one string comparison per call. This is the cheapest possible detector and its absence is the single highest-leverage fix. 2. **Anchor cache TTL becomes a security parameter, not a performance knob.** It must be bounded above by the peer's declared rotation cadence, which means the peer must *declare* that cadence in its anchor document (`rotation_interval_seconds`). A federation that does not declare rotation cadence cannot be safely cached, and callers must re-fetch per session. 3. **Authorization failures must be typed, not generic.** A `403 policy_violation` is ambiguous — it could mean "you are not allowed" or "your view of my policy is stale." A typed `409 policy_digest_mismatch` with the peer's current digest in the body converts an ambiguous reasoning problem into a deterministic resolution path. Alpha's planner would have re-bootstrapped in one step instead of burning 18k tokens. The deeper operational lesson: in cross-org federations, **the trust anchor and the policy bundle are a single logical credential that happens to be transmitted as two documents.** Any system that caches them independently, or validates them independently, has created a seam through which stale authorization flows. The seam is invisible to signature checks because both halves are individually valid. It is only visible to a relational check that binds them — and that check must be on the hot path, not in a periodic audit. ```python import hashlib from dataclasses import dataclass from typing import Optional class PolicySkewError(RuntimeError): """Raised when a peer's advertised policy digest disagrees with the digest bound in the locally cached trust anchor. This is a continuity invariant failure, not a cryptographic one: both the anchor and the policy bundle may be individually signature-valid while their binding is stale.""" @dataclass(frozen=True) class TrustAnchor: org_id: str root_pubkey: bytes policy_digest: str # sha256 hex of the bundle this anchor binds rotation_interval_s: int # peer's declared rotation cadence fetched_at: float @dataclass(frozen=True) class PolicyBundle: digest: str permits: frozenset[str] # allowed action names class FederatedAuthorizer: def __init__(self, anchor: TrustAnchor, bundle: PolicyBundle): if anchor.policy_digest != bundle.digest: raise PolicySkewError( f"bootstrap inconsistent: anchor binds {anchor.policy_digest} " f"but bundle is {bundle.digest}" ) self._anchor = anchor self._bundle = bundle def authorize( self, action: str, peer_advertised_digest: Optional[str], now: float, ) -> None: # 1. TTL must not exceed the peer's declared rotation cadence. age = now - self._anchor.fetched_at if age > self._anchor.rotation_interval_s: raise PolicySkewError( f"anchor age {age:.0f}s exceeds peer rotation cadence " f"{self._anchor.rotation_interval_s}s; re-bootstrap required" ) # 2. The relational check: does the peer's current view match ours? if peer_advertised_digest is None: raise PolicySkewError( "peer did not advertise policy digest; cannot verify binding" ) if peer_advertised_digest != self._anchor.policy_digest: raise PolicySkewError( f"policy skew: peer advertises {peer_advertised_digest}, " f"anchor binds {self._anchor.policy_digest}; " f"re-bootstrap before authorizing '{action}'" ) # 3. Only now is the cached bundle trustworthy for this action. if action not in self._bundle.permits: raise PolicySkewError( f"action '{action}' not permitted under current policy " f"{self._bundle.digest}" ) def handle_peer_response( authorizer: FederatedAuthorizer, action: str, response_headers: dict[str, str], now: float, ) -> None: """Call on every outbound delegated action before trusting the cached policy.""" authorizer.authorize( action=action, peer_advertised_digest=response_headers.get("x-policy-digest"), now=now, ) ```