# What structural signals indicate a federation trust-anchor chain has silently decohered mid-handoff in cross-org multi-agent peering **Date of Record:** 2026 November 27 **Scope:** Applies to federated agent meshes where an agent in Org A delegates a task to a peer in Org B via a signed capability attestation chain rooted in a shared trust anchor, and where the chain is re-verified lazily at each hop rather than at handoff boundaries. Does not apply to single-org agent pools operating under one policy domain, nor to stateless request/response RPC where no warrant is propagated. ## Core Distinction The distinction that matters here is between **attestation validity** and **attestation continuity**. A capability attestation can be perfectly valid at every individual verification point—signature checks pass, the issuer's key resolves against the trust anchor, the requested capability falls inside the declared policy scope—while the *chain that binds the original grant to the current holder* has been broken, shortened, or re-rooted somewhere in transit. Validators are almost universally built to answer "is this credential good?" They are almost never built to answer "is this credential *the same chain* that was good when the task began?" In a single-org mesh these collapse into the same question because there is one issuer and one policy authority. In cross-org federation they diverge, and the divergence is where the failures live. The concrete mechanism: when Org B re-attests a delegated capability to Org C (a legitimate "peering transit" operation), it may issue a *fresh* attestation signed by B's own anchor rather than a *countersigned extension* of A's original attestation. Both are valid. Only the second preserves the chain back to A. The first silently re-roots the capability in B, discarding A's policy constraints, budget caps, and expiry. Downstream, C validates B's signature, sees a well-formed capability, and proceeds—having lost the entire provenance of the grant. Nothing errors. The task completes. The policy that A set is simply gone. ## What Was Observed In a three-org federation (A grants → B transits → C executes), a task carrying a 30-minute TTL and a `read_only` policy constraint arrived at C with a 4-hour TTL and no policy constraint block. C executed a write. The audit trail at each hop showed `attestation_valid: true`. Reconstructing the trace: A issued a countersignable capability with `transit_allowed: [B]` and `max_delegation_depth: 2`. B's peering gateway, on receiving the handoff, called its local `issue_capability()` helper instead of `countersign_and_extend()`. The helper was correct for B's internal sub-agent delegation (where B *is* the root authority) and had been reused for the federated path. The resulting attestation was structurally indistinguishable from a legitimate B-rooted grant. C's validator had no way to tell that the chain it received was depth-1 from B rather than depth-2 from A, because C only ever inspected the *presented* attestation, never the *expected* chain shape. Three structural signals were present in the logs and were missed: 1. **Depth monotonicity violation.** The received attestation declared `delegation_depth: 1`. The task's signed envelope declared the delegation budget as `depth_budget_remaining: 1` at B's ingress. A transit should consume the budget and present `depth: 2`. The validator checked depth against a static max, not against the budget carried in the envelope. A depth that *decreases* across a hop is the signature of re-rooting. 2. **Anchor discontinuity.** The attestation's `root_anchor_id` field changed between hops (A's anchor → B's anchor). This field existed in the schema but was marked optional and was not compared across the handoff boundary. A change in `root_anchor_id` on a transit hop is always a decoherence event; it can only legitimately change at a *fresh grant*, which a transit is not. 3. **Constraint-set shrinkage.** The policy constraint block went from `{read_only, ttl: 1800, budget: 5}` to `{ttl: 14400}`. Absent constraints were treated as "no constraint" rather than "constraint dropped." In a federated chain, a constraint present upstream and absent downstream is a violation, not a relaxation—relaxation requires an explicit widening grant signed by the constraining authority. None of these are cryptographic failures. All three are *continuity* failures, and all three are invisible to a validator that only asks "is this credential good." ## Condition of Validity The guardrail that bounds this failure is a **handoff-boundary continuity check**, distinct from and additional to per-hop signature validation. It holds if and only if, at every transit hop, the receiving peer verifies the following invariant against the *inbound envelope* (not against global config): - `received.delegation_depth == inbound.depth_budget_remaining_consumed` — depth must advance by exactly one per transit, never decrease, never skip. - `received.root_anchor_id == inbound.root_anchor_id` — the root anchor is immutable across transit; a change means a fresh grant, which must be rejected on a transit path. - `received.constraints ⊇ inbound.constraints` — the constraint set may only grow (via explicit widening grants) across transit, never shrink. Missing keys are treated as violations, not as unconstrained. - `received.expiry <= inbound.expiry` — TTL may only tighten across transit. This invariant is *not* implied by signature validity, and it is *not* enforceable by any single-hop validator in isolation, because it requires state (the inbound envelope) that the receiving peer must carry forward. The failure mode is precisely that federated peers are typically built as stateless validators—each hop independently checks a credential—and statelessness is exactly what makes chain decoherence undetectable. The invariant also requires that the *transit path* be distinguishable from the *fresh-grant path* at the code level. The observed failure was caused by a shared helper (`issue_capability`) serving both paths. The condition of validity therefore includes a structural requirement: the transit operation must be a distinct function with a distinct return type (a `CountersignedExtension`, not a `Capability`), so that re-rooting cannot be expressed accidentally. ## Decision Boundary The decision boundary is whether to **fail the handoff** or **re-attest and continue**. The correct policy is: any continuity-invariant violation at a transit hop is a hard failure of the handoff, not a warning, and not a re-attestation opportunity. This is counterintuitive because the credential is valid and the peer is trusted. The temptation—especially under latency pressure—is to accept the re-rooted attestation and log a warning, since "B is a trusted peer and B vouched for C." But B vouching for C is a *different* grant than A granting to C via B, and accepting it silently transfers policy authority from A to B. The decision boundary must therefore be drawn on *authority provenance*, not on *peer trust*: a trusted peer transiting a capability does not acquire the right to re-root it, and a receiver cannot distinguish "B re-rooted because it chose to" from "B re-rooted because an attacker swapped the helper"—both present identically. The boundary is also asymmetric across orgs. Org A, as the grant originator, can *detect* decoherence only if it receives a completion receipt carrying the terminal attestation's `root_anchor_id` and `delegation_depth`. If A's grant contract does not require a terminal receipt, A never learns the chain broke. So the decision boundary includes an obligation on the *originator*: every federated grant must carry a `require_terminal_receipt: true` flag, and the receipt must be checked against the original grant's anchor and depth budget on task completion, not on task start. ## Operational Effect The operational effect of enforcing the continuity invariant is that federated transit becomes **stateful at the boundary**. Each peer must carry the inbound envelope forward through the handoff and compare it against the outbound attestation. This is a small amount of state (anchor id, depth counter, constraint set, expiry) but it is state that must survive the handoff serialization—and handoff serialization is exactly where it gets dropped, because the envelope schema typically doesn't include a `continuity_context` field. Concretely, the fix has three parts: (1) add `continuity_context` to the handoff envelope schema and make it required on transit paths; (2) replace the shared `issue_capability` helper with a distinct `countersign_and_extend` that returns a type the type system will not let you pass where a fresh `Capability` is expected; (3) require terminal receipts on all federated grants and verify them at the originator against the original anchor and depth budget. Without (3), decoherence is detectable only probabilistically, by auditing logs after the fact. With (3), it becomes deterministic: the terminal receipt either matches the original grant's anchor and depth or it does not, and a mismatch is a hard failure that propagates back to the originator as a task failure rather than a silent policy loss. The empirical signature to watch for in production is a task that *succeeds* with a terminal receipt whose `root_anchor_id` differs from the originating grant's—that is the silent decoherence, and it is the one failure mode that looks exactly like success at every individual hop. ```python from dataclasses import dataclass, field from typing import Optional class FederationContinuityError(RuntimeError): """Raised when a transit hop breaks attestation continuity. Distinct from signature-validity errors: the credential may be cryptographically valid while the chain back to the originating trust anchor has been silently re-rooted, shortened, or had its policy constraints dropped. """ @dataclass(frozen=True) class ContinuityContext: root_anchor_id: str delegation_depth: int depth_budget_remaining: int constraints: frozenset[str] expiry_epoch: int @dataclass(frozen=True) class Attestation: root_anchor_id: str delegation_depth: int constraints: frozenset[str] expiry_epoch: int issuer_org: str signature_valid: bool # per-hop crypto check, assumed true here def verify_transit_continuity( inbound: ContinuityContext, received: Attestation, *, is_transit_hop: bool = True, ) -> None: """Enforce the handoff-boundary continuity invariant. Must be called at every transit hop in addition to (never instead of) signature validation. Stateless per-hop validators cannot detect these failures because they lack the inbound envelope. """ if not is_transit_hop: # Fresh grants are allowed to re-root; transits are not. return if not received.signature_valid: raise FederationContinuityError( f"signature invalid at hop issued by {received.issuer_org}" ) # Signal 1: depth must advance by exactly one per transit. expected_depth = inbound.delegation_depth + 1 if received.delegation_depth != expected_depth: raise FederationContinuityError( "delegation depth discontinuity: " f"expected {expected_depth}, received {received.delegation_depth} " f"(decrease indicates re-rooting, skip indicates dropped hop)" ) if received.delegation_depth > inbound.delegation_depth + inbound.depth_budget_remaining: raise FederationContinuityError( f"depth budget exhausted: received depth {received.delegation_depth} " f"exceeds budget {inbound.delegation_depth + inbound.depth_budget_remaining}" ) # Signal 2: root anchor is immutable across transit. if received.root_anchor_id != inbound.root_anchor_id: raise FederationContinuityError( "root anchor discontinuity: " f"{inbound.root_anchor_id!r} -> {received.root_anchor_id!r} " f"at hop issued by {received.issuer_org}; transit may not re-root" ) # Signal 3: constraint set may only grow, never shrink. dropped = inbound.constraints - received.constraints if dropped: raise FederationContinuityError( f"constraint shrinkage at hop issued by {received.issuer_org}: " f"dropped {sorted(dropped)}; widening requires explicit grant" ) # Signal 4: TTL may only tighten across transit. if received.expiry_epoch > inbound.expiry_epoch: raise FederationContinuityError( f"expiry widened across transit at hop issued by {received.issuer_org}: " f"{inbound.expiry_epoch} -> {received.expiry_epoch}" ) def verify_terminal_receipt( original_grant: ContinuityContext, terminal: Attestation, ) -> None: """Originator-side check: the terminal receipt must still be rooted in the originating anchor and must not exceed the original depth budget. Without this, originators never learn the chain broke. """ if terminal.root_anchor_id != original_grant.root_anchor_id: raise FederationContinuityError( "terminal receipt re-rooted: originating anchor " f"{original_grant.root_anchor_id!r} != terminal " f"{terminal.root_anchor_id!r}; task succeeded under foreign authority" ) if terminal.delegation_depth > ( original_grant.delegation_depth + original_grant.depth_budget_remaining ): raise FederationContinuityError( f"terminal depth {terminal.delegation_depth} exceeds original budget " f"{original_grant.delegation_depth + original_grant.depth_budget_remaining}" ) ```