# What structural signals indicate a federated agent identity attestation has silently degraded to a self-signed trust anchor at an organizational boundary **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent systems where an agent instance's identity warrant (signed capability + provenance claim) crosses an organizational trust domain boundary via A2A/MCP handoff or a delegated sub-agent spawn. Does not apply to single-tenant deployments where all agents share one issuer root, nor to stateless tool-call proxying where no identity warrant is re-asserted downstream. ## Core Distinction The failure mode is not "the signature failed to verify." That is loud and observable. The failure is that the signature *verified against the wrong anchor*: a downstream agent, unable to reach the issuing organization's trust root within its handoff deadline, substituted a locally cached or self-generated key and re-attested the inbound warrant under it. The resulting token is cryptographically valid, structurally well-formed, and passes every local verifier — because the verifier checks "is this signed by a key in my trust store," and the degraded path has quietly *inserted a new key into that store*. The distinction that matters operationally: **warrant validity (signature checks out) versus warrant provenance (the signing key chains, unbroken, to the originating org's root).** Federated attestation is only as strong as the invariant that the verifier's trust store is read-only with respect to the agents it is verifying. When the same process that *receives* a warrant can also *extend* the trust store, provenance collapse is one timeout away. ## What Was Observed A three-org pipeline: Org A (planner) delegates to Org B (executor) which spawns a sub-agent under Org C (auditor). The A→B handoff carried an A-rooted warrant; B verified it against A's published JWKS fetched at cold start. The B→C handoff required B to re-attest — B's agent was supposed to present a *delegation chain*: `A-root → B-intermediate → C-leaf`, preserving A's provenance through B's signature. Under normal latency, this worked. Under a JWKS-fetch timeout at B's cold start (A's endpoint returned 503 for 40 seconds during a regional failover), the observed trace was: 1. B's attestation module caught the fetch exception and fell through to a `local_trust_fallback` path. 2. That path generated an ephemeral Ed25519 keypair, self-signed B's *own* identity claim with it, and registered the public half into B's in-process trust store under issuer ID `org-b-local`. 3. B then re-signed the A-origin warrant's *claims* (not the chain) under this ephemeral key and forwarded to C. 4. C verified the token: signature valid against `org-b-local`, which C had learned about via B's own discovery document (also served by B). C accepted. No error, no alert. 5. The A-root provenance was gone. C's audit log recorded "attested by org-b-local," a key that existed for 40 seconds and was never published anywhere A or C could see. The signal that something was wrong was not in any single log line. It was structural: **the issuer ID in C's accepted warrant (`org-b-local`) did not appear in the federation's published issuer registry**, and the delegation chain depth dropped from 3 to 1. Both are checkable invariants, neither was checked. ## Condition of Validity The self-signed fallback is only *safe* under a condition that almost never holds in practice: that the receiving org treats any locally-minted issuer as equivalent-trust to a federated root. That is never true across an org boundary — it is precisely the thing federation exists to prevent. So the fallback is unconditionally a provenance downgrade, and the only question is whether the downgrade is *detected*. Detection requires three invariants to hold simultaneously at the verifier (Org C): - **Chain-depth floor:** the presented delegation chain must have depth ≥ the minimum declared for the requested capability. A capability requiring cross-org provenance cannot be satisfied by a depth-1 self-attested token. - **Issuer-registry membership:** every issuer ID in the chain must resolve in the *federation's* registry, not in a registry served by the presenting party. B serving its own discovery doc is the attack surface; C must consult an out-of-band anchor. - **Trust-store immutability during verification:** the verification path must not be able to write to the trust store it reads from. A verifier that can mint a fallback issuer and then trust it is not verifying — it is rubber-stamping. When any of these is absent, the system degrades silently. When all three are present, the same 503 produces a *loud* rejection at C, which is the correct outcome: fail closed on provenance, not open. ## Decision Boundary The boundary is: **does the verifier's acceptance decision depend on data controlled by the party being verified?** - If C's acceptance of B's warrant depends on a discovery document *B served*, C is not verifying B — C is accepting B's self-description. Any timeout-driven fallback at B becomes invisible at C. - If C's acceptance depends on an out-of-band federation registry plus a depth floor, the fallback at B is caught at C's boundary regardless of B's internal state. The non-obvious part: the fallback logic lives at B, but the *detection* must live at C. You cannot fix this by hardening B's fallback path alone, because a compromised or buggy B will always be able to present a well-formed self-signed token. The invariant has to be enforced where the trust decision is made. Pushing the check to the presenter is a category error. A secondary boundary: latency budgets. If the JWKS-fetch timeout at B is shorter than A's realistic worst-case availability, B *will* hit the fallback under normal load, not just during incidents. The fallback becomes the common path. Set the fetch deadline to fail-closed (reject the handoff) rather than fail-open (self-sign), and make the deadline longer than the issuer's p99 availability, or the "rare" fallback is your steady state. ## Operational Effect Downstream of an undetected collapse: the auditor (C) believes it verified an A-originated action; the action was actually authorized by a 40-second ephemeral key at B. Every subsequent verification replay at C re-validates against `org-b-local`, which no longer exists — so replays either fail (if the key rotated out of the store) or succeed vacuously (if the store retained it). The audit trail is not just wrong; it is *non-reproducible*, which defeats the point of attestation. The guardrail that bounds this: verifiers must reject any warrant whose delegation chain contains an issuer not present in the out-of-band federation registry, and must enforce a per-capability minimum chain depth. Presenters must fail closed on issuer-fetch failure. The two together convert a silent provenance collapse into a loud boundary rejection — which is the only acceptable outcome when identity crosses an org line. ```python class ProvenanceCollapseError(RuntimeError): """Raised when a federated warrant's delegation chain cannot be traced to an out-of-band federation root, indicating a self-signed fallback.""" pass FEDERATION_REGISTRY = { "org-a-root": {"depth": 0, "capabilities": {"plan", "delegate"}}, "org-b-intermediate": {"depth": 1, "capabilities": {"execute", "delegate"}}, "org-c-leaf": {"depth": 2, "capabilities": {"audit"}}, } MIN_CHAIN_DEPTH = {"audit": 2, "execute": 1, "plan": 0} def verify_warrant(warrant: dict, required_capability: str) -> bool: """ warrant = { "chain": ["org-a-root", "org-b-intermediate", "org-c-leaf"], "capability": "audit", "signature_valid": True, } The signature being valid is necessary but NOT sufficient. We must also confirm every issuer in the chain resolves in the out-of-band registry and that the chain is deep enough for the requested capability. """ chain = warrant.get("chain", []) if not warrant.get("signature_valid"): raise ProvenanceCollapseError("signature invalid; reject outright") # Invariant 1: every issuer must be a known federation member. # A locally-minted issuer like 'org-b-local' is absent here by construction. for issuer in chain: if issuer not in FEDERATION_REGISTRY: raise ProvenanceCollapseError( f"issuer {issuer!r} not in federation registry — " f"provenance collapsed to a self-signed anchor" ) # Invariant 2: chain depth floor for the requested capability. floor = MIN_CHAIN_DEPTH.get(required_capability, 0) if len(chain) - 1 < floor: raise ProvenanceCollapseError( f"chain depth {len(chain) - 1} below floor {floor} for " f"capability {required_capability!r}; self-attestation suspected" ) # Invariant 3: the terminal issuer must actually hold the capability. terminal = chain[-1] if required_capability not in FEDERATION_REGISTRY[terminal]["capabilities"]: raise ProvenanceCollapseError( f"terminal issuer {terminal!r} does not hold {required_capability!r}" ) return True def handle_handoff(warrant: dict, required_capability: str) -> str: try: verify_warrant(warrant, required_capability) except ProvenanceCollapseError as e: # Fail closed: reject the handoff, do not fall back to local trust. return f"REJECTED: {e}" return "ACCEPTED" ```