# How does an instance detect a forged capability attestation when federated trust anchors are transitively chained across three or more organizations? **Date of Record:** 2026 November 24 **Scope:** Applies to federated multi-agent systems where Agent A (org X) invokes Agent B (org Y) via a warrant chain that passes through an intermediary broker (org Z), and where B's policy engine evaluates capability claims by walking the chain to a root trust anchor. Does not apply to single-org deployments or to direct two-party A2A handshakes where the caller and callee share a trust anchor. ## Core Distinction A *capability attestation* is a signed claim that agent B is permitted to perform action `a` under policy `p`. A *trust anchor* is the root identity whose signature makes that claim authoritative. The distinction that matters operationally is between **signature validity** and **policy provenance**: a chain can be cryptographically impeccable (every signature verifies, every nonce matches, no replay) while the *policy* embedded in the leaf attestation was minted by an org that had no authority to author it. Agents reliably verify the former and almost never verify the latter, because signature verification is a single library call and policy provenance requires re-deriving which org's anchor actually owns the policy namespace of every hop. The failure is non-obvious because the forged hop is *legitimate at the transport layer*. Org Z's broker is a real, authenticated federation member. It signs the hop it forwards. It is not compromised. It is simply relaying an attestation whose `policy_ref` field points at a namespace (`org-x/policies/payments@v3`) that Z re-signed under its own anchor instead of preserving X's anchor as the policy owner. The chain verifies; the provenance is laundered. ## What Was Observed In a three-org federation (X = caller, Z = broker, Y = callee), a warrant chain arrived at Y's policy engine with the following structure: ``` hop[0] issuer=org-x sig=VALID policy_ref=org-x/payments@v3 anchor=org-x hop[1] issuer=org-z sig=VALID policy_ref=org-x/payments@v3 anchor=org-z <-- anchor substituted hop[2] issuer=org-y sig=VALID policy_ref=org-x/payments@v3 anchor=org-y ``` Every signature verified against the issuer's published key. Every nonce was fresh. The chain length was within bounds. Y's engine admitted the warrant and executed `transfer_funds(amount=42000)`. The defect: hop[1] re-anchored a policy that X authored. Z's signing key was valid, but Z does not own the `org-x/payments` namespace. Because Y's evaluator checked `sig_valid(hop) AND issuer ∈ federation_members` at each hop independently, and never asserted that `anchor(hop[i]) == anchor(hop[0])` for any policy-bearing hop, the substitution passed. The amount limit in X's actual v3 policy was 5000; the re-anchored copy Z signed said 50000. Z had not maliciously edited it — Z's broker had *re-serialized* the policy through its own normalization layer during a schema-version migration, which silently dropped the `max_amount` constraint and re-signed the result under Z's anchor because Z's broker treats every outgoing hop as its own artifact. The observable signature of the bug at Y was not an auth failure. It was a **policy divergence between the attestation's declared `policy_ref` and the byte-content the anchor is authorized to have signed**. Y never compared them because it only checked that the ref *resolved*, not that the resolving anchor matched the ref's owner. ## Condition of Validity The invariant that must hold for federated policy interchange to be sound is: > For every hop `i` in a warrant chain, if `hop[i]` carries a `policy_ref` whose namespace prefix is `org-N/`, then `anchor(hop[i]) == anchor(hop[0])` where `hop[0]` is the originating caller — OR the hop carries an explicit `policy_delegation` object signed by `org-N` authorizing the re-anchor, and that delegation is itself present in the chain and verified. This is the *policy-provenance continuity* invariant. It is distinct from the signature-chain invariant (`sig(hop[i])` verifies against `issuer(hop[i])`) and from the audience invariant (`aud(hop[i]) == identity(hop[i+1])`). A chain can satisfy both of those and still violate provenance continuity, which is exactly the observed case. The invariant is violated whenever an intermediary normalizes, re-serializes, or schema-migrates a policy payload and re-signs the result under its own anchor without carrying forward the original author's delegation. This is not an attack; it is the default behavior of most broker implementations, which treat "sign what you send" as sufficient and "preserve the author's anchor for content you did not author" as someone else's problem. ## Decision Boundary The callee must reject the warrant at the moment it detects `policy_ref` namespace prefix ≠ anchor owner for any hop, *unless* a matching delegation is present. The precise test: 1. Parse `policy_ref` for each hop. Extract namespace `N` from the `org-N/` prefix. 2. Resolve `anchor(hop)` to the org that signed the hop. 3. If `anchor(hop) != N` and `hop` is not the origin hop (`i > 0`), require a `policy_delegation` entry in the chain where `delegator = N`, `delegatee = anchor(hop)`, `policy_ref` matches exactly, and the delegation's signature verifies against `N`'s anchor. 4. If no such delegation exists, **reject with `PolicyProvenanceError`** — do not fall through to "trust the most recent signature," do not fall through to "trust the origin hop's policy content," and do not fall through to "trust the callee's own cached copy." Each of those fallbacks is a distinct exploit surface: the first trusts the launderer, the second trusts a payload the callee cannot verify was delivered intact, and the third trusts stale state. The boundary is sharp: the check runs *before* any policy evaluation, because a forged-provenance policy must never reach the evaluator's constraint table. An evaluator that loads constraints first and checks provenance second has already admitted the 50000 limit into its decision state and must be treated as compromised for that transaction. ## Operational Effect After the guardrail was deployed at Y, the observed behavior changed from "silent over-limit execution" to "deterministic rejection with a provenance diagnostic naming the offending hop and the missing delegation." The rejection is stable across replays: same chain, same verdict, no dependence on evaluator ordering or cache warmth. The broker Z was subsequently patched to preserve `anchor` on relayed policies and to emit a `policy_delegation` when it genuinely needs to re-anchor (e.g., when its normalization layer is unavoidable), which restored the chain to a provenance-continuous form that Y admits. The residual operational cost is that every federation member's broker must now carry delegation objects on any policy it re-signs. This is the correct cost: the alternative is that any broker in the federation can silently widen any policy it relays, and the callee has no mechanical way to distinguish a benign normalization from a malicious widening. The invariant converts an unobservable trust assumption into a checkable precondition. ```python class PolicyProvenanceError(RuntimeError): """Raised when a warrant hop re-anchors a policy it did not author without a valid policy_delegation from the policy's namespace owner.""" pass def verify_policy_provenance(chain: list[dict], federation_members: set[str]) -> None: if not chain: raise PolicyProvenanceError("empty warrant chain") origin = chain[0] origin_anchor = origin["anchor"] if origin_anchor not in federation_members: raise PolicyProvenanceError(f"origin anchor {origin_anchor!r} not in federation") for i, hop in enumerate(chain): if hop["anchor"] not in federation_members: raise PolicyProvenanceError( f"hop[{i}] anchor {hop['anchor']!r} not a federation member" ) ref = hop.get("policy_ref") if not ref or "/" not in ref: raise PolicyProvenanceError(f"hop[{i}] missing well-formed policy_ref") namespace_owner = ref.split("/", 1)[0] if i == 0: if hop["anchor"] != namespace_owner: raise PolicyProvenanceError( f"origin hop anchor {hop['anchor']!r} does not own " f"policy namespace {namespace_owner!r}" ) continue if hop["anchor"] == namespace_owner: continue delegations = hop.get("policy_delegation") or [] ok = any( d.get("delegator") == namespace_owner and d.get("delegatee") == hop["anchor"] and d.get("policy_ref") == ref and d.get("signature_verified") is True for d in delegations ) if not ok: raise PolicyProvenanceError( f"hop[{i}] re-anchors policy {ref!r} from {namespace_owner!r} " f"to {hop['anchor']!r} without a verified policy_delegation" ) def evaluate_warrant(chain: list[dict], federation_members: set[str]) -> dict: # Provenance check MUST run before any constraint table is loaded. verify_policy_provenance(chain, federation_members) return {"admitted": True, "policy_ref": chain[-1]["policy_ref"]} ```