# Where must an instance refuse to re-anchor a federated peer's transitive trust chain mid-handoff? **Date of Record:** 2026 November 28 **Scope:** Applies to cross-org agent federations where an instance (the *relying agent*) accepts a peer's delegated capability warrant that itself cites a third-party trust anchor from another administrative domain. Does not apply to single-domain MCP tool calls or to purely symmetric A2A handoffs where both endpoints share one root of trust. ## Core Distinction The failure is not "bad signature" and not "expired credential." It is **anchor substitution during chain re-validation**. When an instance receives a peer's warrant, it must verify the chain back to *its own* configured trust anchor. A subtle and non-obvious boundary appears when the peer's warrant is valid under the peer's anchor, and the peer's anchor is itself cross-signed by a bridge CA that the relying agent also trusts—but only for a *different* scope of delegation. The relying agent then has two legitimate paths to a trusted root: the direct path (peer anchor → my anchor) and the bridged path (peer anchor → bridge → my anchor). These paths can disagree on the *policy constraints* attached to the leaf, because policy exchange between domains is not guaranteed to be idempotent under bridge traversal. The invariant that must hold: **a relying agent must not silently merge two valid paths into one effective policy set.** It must either (a) select exactly one path by a deterministic, documented precedence rule, or (b) refuse and escalate. Merging is the failure mode. Merging produces a warrant that satisfies *more* constraints than any single path actually proves—a monotonicity violation in the trust lattice. ## What Was Observed Federation of three domains: `alpha` (relying agent), `beta` (peer issuing warrants), `gamma` (bridge/broker that cross-signs anchors). A `beta` orchestrator agent issued a delegated execution warrant to an `alpha` worker agent, scoped to `tool:write` with a policy constraint `max_tokens_per_call <= 4096` and `data_class in {public, internal}`. The warrant's chain: `beta-leaf → beta-anchor → gamma-bridge → alpha-anchor`. During a handoff, the `alpha` worker's context was checkpointed and the warrant was re-validated on resume by a *different* `alpha` validator instance that had a direct, non-bridged trust relationship with `beta` established earlier in the session (a direct federation agreement). The validator found two paths: - Path A (direct): `beta-anchor → alpha-anchor`, carrying policy `max_tokens_per_call <= 8192`, `data_class in {public, internal, restricted}`. - Path B (bridged): `beta-anchor → gamma-bridge → alpha-anchor`, carrying the narrower `4096` / `{public, internal}`. Both paths validated. The validator's path-collection routine unioned the constraint sets, then applied an intersection over numeric ceilings and a union over enumerated sets—an ad-hoc merge that is *neither* path's actual policy. The effective policy became `max_tokens_per_call <= 4096` (intersection, correct by accident) but `data_class in {public, internal, restricted}` (union, **incorrect**). The worker then executed a `tool:write` against `restricted` data that Path B explicitly forbade. The violation was detected only downstream by a `beta`-side auditor replaying the warrant against Path B. The trace: checkpoint at step 14 → resume on validator-2 → `collect_paths(warrant) -> [A, B]` → `merge_policies(A, B)` → `effective = {max: 4096, data_class: {public, internal, restricted}}` → `authorize(tool:write, restricted)` returns `True` → execution → auditor replay against Path B → `DENY`. The window between authorization and detection was 3 tool calls and 41 seconds. ## Condition of Validity The merge behavior was "safe" only under an assumption that silently failed: that all valid paths to a trusted anchor carry *identical* policy constraints, so merging is a no-op. This assumption holds in single-bridge federations where policy is exchanged once and cached. It breaks when: 1. A domain pair has **both** a direct federation agreement and a bridged relationship, and 2. The two relationships were established at different times with **different policy scopes**, and 3. The warrant is **re-validated** on a validator instance whose path-collection differs from the original issuing validator (e.g., after a mid-task checkpoint/resume that migrated the task to a node with a different trust configuration). Condition 3 is the continuity trap: the original validator saw only Path A (the bridge was not yet configured in its trust store); the resumed validator saw both. The task's *authorization context* changed across the checkpoint even though the *warrant bytes* did not. This is a state-continuity failure masquerading as a crypto failure. The invariant that bounds it: **for any warrant, the set of valid paths must be reduced to a single canonical path before policy evaluation, and the canonicalization rule must be a pure function of (warrant, local trust store) that is stable across validator instances.** If the canonical path differs from the path the issuer intended, the relying agent must reject—not merge. Path selection precedence must be explicit (e.g., "shortest path to local anchor wins; on tie, bridged path wins; on tie, reject"), and the selection must be logged with the path fingerprint so replay can reconstruct it. ## Decision Boundary The boundary between "merge is acceptable" and "merge is forbidden" is exactly the boundary between **policy-equivalent paths** and **policy-divergent paths**. Detect divergence by canonicalizing each path's policy set to a normalized form (sorted constraint tuples, numeric ceilings as closed intervals, enumerated sets as sorted lists) and comparing hashes. If hashes differ, the paths are divergent and merging is forbidden. If hashes match, merging is a no-op and any path may be used. A second boundary: **anchor freshness**. A bridge cross-signature may be valid but stale relative to a direct agreement's revocation list. The decision rule must prefer the path whose anchor has the more recent, non-revoked validity window *and* whose policy is narrower—never the path whose policy is broader. Broader-policy paths are never selected when a narrower valid path exists; they are only selected when the narrower path is invalid or revoked. ## Operational Effect With canonicalization and refuse-on-divergence enforced, the resumed validator in the incident would have computed `hash(A.policy) != hash(B.policy)`, selected Path B by the "narrower valid path" rule, and authorized `tool:write` against `restricted` as `False`. The 41-second violation window collapses to zero. The cost is that legitimate re-validations across heterogeneous trust stores now surface as explicit `TrustPathDivergence` events rather than silently succeeding—which is the correct behavior, because a task whose authorization context changed across a resume *should* halt and require re-issuance of the warrant under the current trust configuration. The deeper operational lesson: in cross-org federation, the warrant is not the unit of authorization continuity. The **path** is. A warrant that is byte-identical across a checkpoint can still authorize differently on resume if the relying agent's trust store changed. Continuity invariants for federated handoffs must therefore pin the canonical path fingerprint into the checkpoint, not just the warrant hash, and must reject resume if the recomputed canonical path fingerprint differs from the pinned one. ```python from dataclasses import dataclass from typing import FrozenSet, Tuple class TrustPathDivergence(RuntimeError): """Raised when two valid trust paths to a local anchor carry non-equivalent policies.""" @dataclass(frozen=True) class Policy: max_tokens_per_call: int data_classes: FrozenSet[str] def fingerprint(self) -> Tuple[int, Tuple[str, ...]]: return (self.max_tokens_per_call, tuple(sorted(self.data_classes))) @dataclass(frozen=True) class TrustPath: path_id: str policy: Policy anchor_valid_until: int # epoch seconds revoked: bool = False def canonical_path(paths: Tuple[TrustPath, ...], now: int) -> TrustPath: valid = [p for p in paths if not p.revoked and p.anchor_valid_until > now] if not valid: raise TrustPathDivergence("no valid, non-revoked trust path to local anchor") fingerprints = {p.policy.fingerprint() for p in valid} if len(fingerprints) > 1: raise TrustPathDivergence( f"valid paths diverge on policy: {sorted(fingerprints)}; " "refusing to merge — re-issue warrant under current trust config" ) # Policy-equivalent paths: select narrowest, then most-recent anchor, then stable id. return min(valid, key=lambda p: (p.policy.max_tokens_per_call, -p.anchor_valid_until, p.path_id)) def authorize(warrant_paths: Tuple[TrustPath, ...], action_data_class: str, requested_tokens: int, now: int) -> bool: path = canonical_path(warrant_paths, now) if action_data_class not in path.policy.data_classes: return False if requested_tokens > path.policy.max_tokens_per_call: return False return True ```