# Why does an instance trust a federated peer whose credential chain re-anchors mid-handoff? **Date of Record:** 2026 December 3 **Scope:** Applies to agent-to-agent (A2A) sessions where the calling agent presents a Verifiable Credential (VC) chain whose trust anchor is bridged across organizational trust domains (issuer A → bridge → issuer B) and the receiving agent must decide whether to continue an in-flight task handoff. Does not apply to single-domain issuance where issuer and verifier share a root of trust, nor to stateless request/response calls with no delegated state. ## Core Distinction The failure is not "the signature is invalid." Signature verification is the easy, decidable part. The failure is **trust-anchor equivocation during a stateful handoff**: the verifier validates the *current* credential against the *current* trust-anchor set, but the delegated task state it is about to accept was minted under a *different* anchor that was valid at issuance time and has since been revoked, rotated, or superseded by a bridge re-anchoring event. The credential is cryptographically sound; the *authority that backs the delegated state* is not the authority the verifier just checked. A verifier that treats "VC verifies now" as equivalent to "the state this VC authorized is still backed" accepts a handoff whose provenance has silently detached from its anchor. This is a temporal-scope mismatch between two clocks: the **verification clock** (when the receiver checks the chain) and the **authorization clock** (when the sender's state was created and what anchor was live then). Federation bridges make these clocks diverge because re-anchoring is a routine, frequent, and often non-notifying operation. ## What Was Observed A three-party chain: Org A's agent (caller) holds a VC issued by Org A's IdP, which is bridged into Org B's trust domain via a bridge credential. Org B's agent (callee) is mid-task, having accepted a checkpointed subtask state at T0 under anchor set `{A_root, bridge_v1}`. At T1 the bridge operator rotates: `bridge_v1` is retired and `bridge_v2` is published with a *narrowed* scope (it no longer attests to `delegation:checkpoint-write`, only `delegation:read`). At T2 the caller resumes the handoff, presenting a fresh VC under `bridge_v2` that verifies cleanly against the current anchor set. The callee's verifier does what it was built to do: it checks the presented VC against the live anchor set, gets a pass, and admits the resumed state. But the resumed state was *written* under `bridge_v1`'s broader scope. The callee now holds a checkpoint that claims write-delegation provenance while its only supporting credential attests read-only. No signature failed. No revocation list was consulted for the *historical* scope. The invariant "the scope under which state was written is a subset of the scope under which it is now admitted" was violated without any single check reporting an error. The tell in logs is characteristic: VC verification returns `valid: true`, anchor resolution returns `bridge_v2`, and the admission decision is `accept`—yet the state's `issued_under_anchor` field (if it was even recorded) names `bridge_v1`. The gap is invisible unless the verifier explicitly compares the two. ## Condition of Validity The guardrail only holds under a stated condition: **the delegated state must carry a signed, anchor-bound provenance record, and admission must require that the recorded authorization anchor's scope is a superset of the operations the state performs.** Concretely, every checkpoint or handoff payload must embed `{anchor_id, scope_set, issued_at, issuer_signature}` bound to the payload hash, and the receiver must resolve *that specific anchor_id* (not "the current anchor") and check scope containment against the operations the resumed task will execute. This is valid only if: - Anchors are **addressable by historical ID**, not just "latest." A bridge that garbage-collects retired anchor metadata makes the check impossible and the invariant unenforceable—this is itself a boundary failure. - Scope sets are **monotone-checkable** (subset relation is decidable on the scope vocabulary). Free-text scope strings break this. - The state payload is **hash-bound** to the provenance record, so the anchor field cannot be swapped independently of the content. Outside these conditions—ephemeral read-only calls, or domains where the bridge never narrows scope—the check is unnecessary overhead and can be skipped. ## Decision Boundary The decision the receiving agent faces at handoff is not binary "trust / don't trust." It is a three-way classification keyed on the relationship between the *issuance anchor* and the *current anchor*: 1. **Same anchor, scope unchanged** → admit, resume normally. 2. **Anchor rotated or re-anchored, but current scope ⊇ issuance scope** → admit, but re-bind the state's provenance to the new anchor and log the re-anchor event; the delegated authority survives the bridge change. 3. **Current scope ⊉ issuance scope (narrowed or disjoint)** → do *not* silently admit. Either **quarantine** the state (hold, request re-issuance of a credential covering the needed scope) or **degrade** to the intersection scope, refusing the operations the narrowed anchor no longer backs. The boundary is crossed precisely when a verifier collapses cases 2 and 3 into "VC valid → admit." Case 3 is the dangerous one because it is the only case where a passing signature check coexists with a scope regression. An agent that only branches on `valid` cannot distinguish them. ## Operational Effect The downstream consequence is **authority laundering**: a task that began with write privileges continues executing under a credential that no longer grants them, because the receiver validated the credential's *current* truth rather than the *historical* authority that authorized the state. In multi-agent swarms this compounds—a quarantined-but-admitted state can be re-delegated to peers, each of which re-verifies against the latest anchor and gets a pass, propagating narrowed-scope state as if it were full-scope. The blast radius is bounded only by how far the state travels before an operation actually requires the missing scope and fails at the tool boundary rather than at the trust boundary—turning an authorization failure into a late, misattributed execution error. The architectural invariant to enforce: **admission authority is the minimum of (issuance-anchor scope, current-anchor scope), evaluated per operation, never the current-anchor scope alone.** Encode it at the handoff gate, bind provenance to payload hash, and make retired anchors resolvable. Anything less lets a bridge rotation quietly rewrite what an in-flight agent is permitted to do. ```python import hashlib from dataclasses import dataclass class AnchorScopeViolation(RuntimeError): """Raised when a resumed handoff's issuance anchor no longer backs its operations.""" pass @dataclass(frozen=True) class Anchor: anchor_id: str scope_set: frozenset # e.g. {"delegation:read", "delegation:checkpoint-write"} retired: bool = False @dataclass(frozen=True) class HandoffState: payload_hash: str issued_under_anchor: str issuance_scope: frozenset operations: frozenset # operations the resumed task will execute def _payload_hash(payload: bytes) -> str: return hashlib.sha256(payload).hexdigest() def admit_handoff(state: HandoffState, payload: bytes, resolve_anchor, current_anchor_id: str) -> str: # 1. Provenance must be hash-bound to the payload; no independent anchor swap. if _payload_hash(payload) != state.payload_hash: raise AnchorScopeViolation("payload hash does not match provenance record") # 2. Resolve the *issuance* anchor by historical ID, not "latest". issuance = resolve_anchor(state.issued_under_anchor) if issuance is None: raise AnchorScopeViolation( f"issuance anchor {state.issued_under_anchor!r} is unresolvable " "(retired metadata GC'd); invariant unenforceable") # 3. Resolve the current anchor the verifier just checked against. current = resolve_anchor(current_anchor_id) if current is None: raise AnchorScopeViolation(f"current anchor {current_anchor_id!r} unresolvable") # 4. Admission authority = intersection of issuance and current scope. effective = issuance.scope_set & current.scope_set missing = state.operations - effective if missing: # This is the case-3 boundary: signature valid, scope regressed. raise AnchorScopeViolation( f"operations {sorted(missing)} not backed by effective scope " f"{sorted(effective)} (issuance={sorted(issuance.scope_set)}, " f"current={sorted(current.scope_set)})") # 5. Classify: same anchor vs re-anchored-but-superset. if issuance.anchor_id == current.anchor_id: return "admit" return "admit_rebind" # re-bind provenance to current anchor, log event ```