# When must an instance refuse a federated handoff whose trust anchor was re-signed mid-negotiation **Date of Record:** 2026 November 26 **Scope:** Applies to cross-org multi-agent federations where an initiating agent (A) hands a task to a peer agent (B) under a negotiated trust anchor, and the anchor's signing chain is rotated or re-signed during the A2A handshake or task execution. Does not apply to single-org deployments with a static local trust root, nor to purely stateless request/response tool calls with no delegated authority. ## Core Distinction The failure is not "signature verification failed." A failed signature is loud, and any competent verifier catches it. The failure is that **signature verification succeeds against two different, individually valid anchors that disagree with each other**, and the agent has no rule for which one governs the in-flight task. Two legitimate conditions collide: 1. **Anchor freshness:** Org B rotated its signing key and re-signed its policy manifest; the new anchor is cryptographically valid and is what B's policy engine now enforces. 2. **Handoff continuity:** Agent A negotiated a capability grant under anchor version *v1* and is mid-execution; the grant's scope, budget, and audit obligations were pinned to *v1*. Both anchors verify. Both are "correct." The agent must decide whether the in-flight task executes under *v1* (continuity) or *v2* (freshness). If it picks wrong, you get one of two silent corruptions: a task executing under a *revoked* scope because A kept using *v1*, or a task failing closed after B already committed side effects under *v2*. The invariant that bounds this is **anchor pinning with explicit renegotiation**, and the boundary condition is precisely the window where a re-signed anchor arrives *after* capability negotiation but *before* the first side-effecting tool call. ## What Was Observed A federation of two orgs: A (orchestrator) and B (executor with a privileged `write_ledger` tool). The handshake: 1. A fetches B's policy manifest `M1`, signed by anchor `K1`. A verifies `K1` chains to the federation root. A and B negotiate a capability grant `G` scoped to `write_ledger` with a token budget and an audit-obligation clause referencing `M1`'s clause IDs. 2. A begins execution. Between negotiation and the first `write_ledger` call, B's security team rotates to `K2` and publishes `M2` (same logical policy, new clause numbering, one scope tightened: `write_ledger` now requires a second approver). 3. A's next tool call includes a capability token stamped with `M1`'s clause IDs and `K1`'s anchor fingerprint. B's verifier checks the token against its *current* manifest `M2`. The clause IDs no longer match (renumbered), so B rejects with `CLAUSE_NOT_FOUND`. 4. A's retry logic interprets `CLAUSE_NOT_FOUND` as a transient negotiation mismatch, re-fetches `M2`, re-maps its grant onto `M2`'s clause IDs by *semantic similarity of clause text*, and retries. The re-map silently drops the "second approver" requirement because A's similarity matcher scored the tightened clause as equivalent to the old one (they share ~90% of their text). 5. `write_ledger` executes. B's enforcement, keyed on the *token's* clause IDs rather than its own manifest, honored A's self-mapped grant. The tightened control was bypassed by the *initiator*, not the executor. The corruption is not in either org's crypto. It is in the **reconciliation step**: A treated a policy renumbering as a schema mismatch to be repaired by inference, when it was a semantic change to be renegotiated by humans/owners. A's probabilistic clause-matcher was the load-bearing component, and it was wrong. A second observed variant: in a different run, B *did* enforce `M2` strictly and rejected the token, but A had already batched three `write_ledger` calls in parallel (a legitimate optimization). Two succeeded under `M1` before the rotation propagated; the third failed under `M2`. Result: a ledger with a partial, non-atomic write set spanning two policy epochs, with no record of which epoch each row belonged to. Neither org's audit log could reconstruct the transaction boundary. ## Condition of Validity The pinning invariant holds only under these conditions, and each is checkable: - **Anchor identity is fingerprinted, not named.** The grant must reference the anchor by its full public-key fingerprint (`sha256:K1...`), never by a version label or manifest hash that can be re-issued. Version labels are mutable; fingerprints are not. If the grant only carries `M1`'s content hash, a re-signed manifest with identical content but new clause IDs defeats it. - **Clause identity in the grant is opaque and anchor-scoped.** The grant's clause references must be resolvable *only* against the pinned anchor. If the executor resolves clause IDs against its current manifest, the initiator's pin is meaningless. The verifier must reject any token whose anchor fingerprint ≠ the manifest the token's clause IDs were issued under. - **Renegotiation is a distinct, blocking operation, not a retry.** A rotation detected mid-task must surface as a typed `AnchorRotationDetected` event that halts the task, not as a `CLAUSE_NOT_FOUND` that a retry loop can absorb. The distinction is whether the reconciliation path is allowed to *infer* a mapping. It must not. - **Side effects are epoch-tagged.** Every committed side effect records the anchor fingerprint under which it executed. Without this, a partial write set across epochs is unreconstructable. The invariant: **for the lifetime of a capability grant, the (anchor fingerprint, manifest, clause IDs) triple is immutable; any change to any component invalidates the grant and forces renegotiation from the owner, not from the initiator's inference layer.** ## Decision Boundary The agent must distinguish three cases that all present as "the anchor I hold is not the anchor you enforce": | Observed | Correct action | |---|---| | Anchor fingerprint unchanged, manifest content differs | **Reject.** Same key signing different policy = key compromise or misconfiguration. Do not reconcile. Escalate to both orgs' security owners. | | Anchor fingerprint changed, grant referenced by fingerprint | **Halt and renegotiate.** The pinned anchor is gone; the grant is void. Do not auto-map clauses. | | Anchor fingerprint changed, grant referenced only by version label or content hash | **Reject as unpinnable.** The grant was never safely scoped; this is a design defect in the negotiation, not a runtime condition to repair. | The non-obvious boundary: an agent must **not** use semantic similarity to reconcile clause renumbering across anchor rotations. Clause text similarity is a heuristic over natural language; a tightened control can share 90% of its tokens with the original. The only safe reconciliation is a *structural* one: if and only if the new manifest carries an explicit `supersedes: ` mapping authored by the policy owner, the agent may follow it. Absent that authored mapping, inference is forbidden. The matcher must be gated behind a signed supersession table, never behind an embedding distance. A second boundary: parallel tool calls must be serialized across an anchor-rotation boundary. If any call in a batch is in flight when rotation is detected, the batch is non-atomic and must be either fully committed under the old epoch (with the rotation deferred) or fully aborted. Splitting the batch is the corruption mode. ## Operational Effect When the invariant is enforced, the failure surface narrows to a single, loud, recoverable event: `AnchorRotationDetected` halts the task, the grant is voided, and the owner renegotiates. Cost: a stalled task and a human in the loop. When it is not enforced, the failure is silent and asymmetric—the tightened control is bypassed by the *initiator's* reconciliation layer, which the executor trusts because the token "verified." The executor's audit log shows a valid, signed grant. The initiator's log shows a successful clause re-map. Neither shows the control that was dropped. This is the worst class of federation failure: every artifact is individually valid, the composition is not, and the only witness is the policy owner who never got paged. The practical guardrail is to make the anchor fingerprint a first-class field in the grant, to make clause resolution anchor-scoped and refuse cross-anchor resolution, to forbid similarity-based clause mapping without a signed supersession table, and to tag every side effect with its executing epoch. Each is cheap; the omission of any one is what turns a routine key rotation into a silent control bypass. ```python import hashlib from dataclasses import dataclass class AnchorRotationMidHandoff(RuntimeError): """Raised when a capability grant's pinned trust anchor is no longer the anchor the executor enforces, and the grant cannot be safely reconciled.""" @dataclass(frozen=True) class Grant: anchor_fingerprint: str # sha256 of the pinned public key manifest_hash: str clause_ids: frozenset[str] # opaque, anchor-scoped scope: str @dataclass(frozen=True) class Manifest: anchor_fingerprint: str manifest_hash: str clause_ids: frozenset[str] supersedes: dict[str, str] # old_clause_id -> new_clause_id, owner-authored def verify_and_reconcile(grant: Grant, current: Manifest) -> frozenset[str]: # Case 1: same anchor, different manifest content -> key misuse, never reconcile. if grant.anchor_fingerprint == current.anchor_fingerprint: if grant.manifest_hash != current.manifest_hash: raise AnchorRotationMidHandoff( "same anchor signed divergent manifests; refusing to reconcile" ) return grant.clause_ids # Case 2: anchor rotated. Only an owner-authored supersession table is # admissible; similarity inference is forbidden. if not current.supersedes: raise AnchorRotationMidHandoff( f"anchor rotated {grant.anchor_fingerprint} -> " f"{current.anchor_fingerprint} with no signed supersession table" ) mapped = set() for cid in grant.clause_ids: if cid not in current.supersedes: raise AnchorRotationMidHandoff( f"grant clause {cid!r} has no owner-authored supersession; " "inference-based mapping is prohibited" ) mapped.add(current.supersedes[cid]) # Every mapped clause must exist in the new manifest; a dangling target # means the supersession table is stale or forged. missing = mapped - current.clause_ids if missing: raise AnchorRotationMidHandoff( f"supersession targets absent from manifest: {sorted(missing)}" ) return frozenset(mapped) ```