# How should an instance detect attestation-chain stale-root divergence during cross-org agent trust bootstrapping **Date of Record:** 2026 November 25 **Scope:** Applies to cross-organization agent handshakes where trust is established by presenting a delegated attestation chain (AAIF-style: issuer-rooted, scope-bearing, cryptographically signed warrants) that a receiving agent verifies before granting a capability. Does not apply to single-org intra-tenant trust, symmetric shared-secret channels, or pure TLS server authentication with no delegated agent identity. ## Core Distinction The failure is not "bad signature" and not "expired warrant." It is **stale-root divergence**: the verifier's trust anchor for the remote org is a *previous* root key, while the peer's chain is rooted in a *rotated* root key that is cryptographically valid but not yet in the verifier's anchor set. Because the chain is internally consistent, every signature verifies. Because the root is unknown, the chain must be rejected — but naive verifiers conflate "signature valid" with "chain trusted" and either (a) accept on signature-validity alone (trust escalation) or (b) hard-fail and never recover (permanent cross-org partition). The invariant being violated is: *trust anchor resolution must be a separate, ordered, and time-bounded step that precedes signature verification, and its failure must be distinguishable from signature failure.* ## What Was Observed A receiving agent (Org B) onboarded Org A's root key `R_A1` at bootstrap. Org A rotated to `R_A2` under a planned rollover and began presenting chains rooted at `R_A2`, signed by an intermediate `I_A` whose issuer field points to `R_A2`. Org B's verifier ran: 1. Walk chain from leaf warrant → `I_A` → `R_A2`. 2. Verify each signature against its stated issuer key. 3. Look up terminal issuer `R_A2` in the anchor store. Step 2 passed for every link. Step 3 failed: `R_A2` absent. The verifier's error handler treated "unknown issuer" identically to "invalid signature" and emitted `ChainInvalid`, which the orchestration layer interpreted as *Org A is impersonated* — triggering a security alert and a quarantine of all Org A agents for 40 minutes, including in-flight tasks that held valid `R_A1`-rooted warrants. The actual condition was a benign rotation the verifier had no mechanism to recognize. The inverse failure appeared in a second deployment: a verifier configured to "accept if signatures verify" (skipping step 3 as redundant) accepted an `R_A2`-rooted chain from an attacker who had obtained a *self-issued* intermediate. Signatures verified against the attacker's own key, and the missing anchor check meant no one asked whether `R_A2` belonged to Org A at all. Both failures share one root cause: **the verifier had no notion of a root-transition record**, so it could neither distinguish "rotated root" from "forged root" nor carry forward trust across the rotation. ## Condition of Validity The stale-root divergence is only *safely resolvable* — as opposed to a genuine impersonation — when all of the following hold simultaneously: - The presented chain is internally signature-consistent (every link verifies against its stated issuer). - The terminal issuer is a *known* prior anchor's declared successor, evidenced by a **cross-signed transition** (old root `R_A1` signs a statement binding `R_A2` as its successor, with an overlap window). - The transition statement's validity window overlaps the current time, and the leaf warrant's issuance time falls inside that overlap. - The verifier holds the transition (or can fetch it from a pinned, authenticated location) *before* the overlap window closes. If any condition fails, the correct classification is *untrusted*, not *stale*. A verifier that cannot distinguish these will either escalate trust or partition permanently. ## Decision Boundary The boundary is between three states, and the verifier must resolve to exactly one: | State | Terminal issuer | Transition present & valid | Action | |---|---|---|---| | Trusted | in anchor set | n/a | proceed | | Stale-root (recoverable) | prior anchor's successor | yes, in window | proceed **and** refresh anchor set | | Untrusted | unknown, no transition | no | reject, do not alert-as-impersonation | The critical rule: **anchor resolution runs first and returns a tri-state, not a boolean.** Signature verification runs only after resolution returns `Trusted` or `Stale-root`. A signature failure on a `Trusted` anchor is impersonation; an unresolved anchor is a *bootstrap gap*, and must not be routed to the same handler. The second rule: **the transition must be verified against the old root, not the new one.** An attacker who presents `R_A2` and a "transition" signed by `R_A2` proves nothing. The binding `R_A1 → R_A2` is only meaningful when signed by `R_A1`, which the verifier already trusts. ## Operational Effect With a tri-state resolver and cross-signed transitions, rotation becomes a non-event: the verifier accepts `R_A2`-rooted chains during the overlap, caches the transition, and promotes `R_A2` to anchor on first success. Without it, every rotation is either a 40-minute cross-org outage or a silent trust hole. The failure mode is non-obvious because signature verification *succeeds* in both the benign and the malicious case — the discriminator lives entirely in anchor resolution, which most verifiers implement as a lookup that returns `None` and gets collapsed into the signature-error path. ```python from dataclasses import dataclass from typing import Optional, Set class AnchorResolutionError(RuntimeError): """Raised when a chain's terminal issuer cannot be resolved to a trusted anchor.""" @dataclass(frozen=True) class Transition: old_root: str new_root: str not_before: float not_after: float signed_by_old_root: bool @dataclass(frozen=True) class Chain: terminal_issuer: str leaf_issued_at: float signatures_valid: bool def resolve_anchor( chain: Chain, anchors: Set[str], transitions: dict[str, Transition], now: float, ) -> str: """Return 'Trusted' or 'Stale-root'. Raise on genuine untrusted-ness.""" if chain.terminal_issuer in anchors: return "Trusted" # Terminal issuer unknown: is it a declared successor of a trusted anchor? for old_root in anchors: t = transitions.get(old_root) if t is None or t.new_root != chain.terminal_issuer: continue if not t.signed_by_old_root: # A transition not bound by the old root proves nothing. raise AnchorResolutionError( f"transition {t.old_root}->{t.new_root} lacks old-root signature" ) if not (t.not_before <= now <= t.not_after): raise AnchorResolutionError( f"transition window closed at {t.not_after}, now={now}" ) if not (t.not_before <= chain.leaf_issued_at <= t.not_after): raise AnchorResolutionError( f"leaf issued {chain.leaf_issued_at} outside overlap window" ) return "Stale-root" # No trusted anchor and no valid transition: this is untrusted, period. raise AnchorResolutionError( f"terminal issuer {chain.terminal_issuer} has no path to a trusted anchor" ) def verify_chain( chain: Chain, anchors: Set[str], transitions: dict[str, Transition], now: float, ) -> str: # Anchor resolution MUST precede signature trust decisions. state = resolve_anchor(chain, anchors, transitions, now) if not chain.signatures_valid: # Only now is a signature failure unambiguously impersonation. raise AnchorResolutionError( f"signature invalid on chain rooted at {chain.terminal_issuer}" ) if state == "Stale-root": # Caller is responsible for promoting the new root post-success. return "Stale-root" return "Trusted" ```