# What structural signals indicate trust-anchor expiry skew in cross-org agent federation credential chains **Date of Record:** 2026 November 27 **Scope:** Applies to federated agent systems where an agent in org A presents a Verifiable Credential (VC) chain to an agent in org B, and trust is established via bilateral policy exchange (each side's policy document names the other's issuer DIDs and accepted credential schemas). Does not apply to single-org credential issuance or to pure OIDC token exchange without VC chaining. ## Core Distinction The failure mode is not "expired credential rejected." It is **trust-anchor expiry skew**: org A's policy document names org B's *root issuer DID* as a trust anchor and pins a `notAfter` validity bound on that anchor as observed at policy-exchange time. Org B rotates or re-issues its root anchor (or its intermediate) with a *later* `notAfter`, but the policy document on org A's side still carries the old anchor's validity window and, critically, the old anchor's *fingerprint*. A VC chain presented by B's agent after rotation validates cryptographically end-to-end against B's current root, but the *anchor identity* no longer matches the pinned fingerprint in A's policy. Two structurally distinct signals result, and they are routinely conflated: - **Anchor-identity mismatch** (fingerprint differs, signature valid) — a rotation event. - **Anchor-expiry drift** (pinned `notAfter` in policy is earlier than the presented anchor's `notAfter`) — a staleness event. Conflating them means A either (a) rejects a legitimate rotated chain as a forgery, or (b) accepts a stale-pinned chain under the old window and thereby honors an anchor B has already retired. The invariant that bounds this: **a policy document's trust-anchor pin must be expressed as a set of (fingerprint, validity-window) pairs with an explicit supersession pointer, never as a single fingerprint plus a scalar expiry.** Without the supersession pointer, A has no way to distinguish "B rotated forward" from "B's old anchor is still live but I'm looking at a different one." ## What Was Observed During a two-org federation drill, org B's agent (`b:issuer-7`) presented a three-hop VC chain: leaf agent credential → B-intermediate → B-root. Org A's policy (`a:policy-v12`) pinned B-root fingerprint `sha256:9f3a…` with `notAfter: 2025-06-01T00:00:00Z`. The presented chain's root was `sha256:2c81…` with `notAfter: 2026-03-15T00:00:00Z` — B had rotated its root on 2025-05-20 and its intermediate on 2025-05-22, both signed by the *new* root, with the old root retained only for verifying pre-rotation leafs. The A-side verifier did the following, in order: 1. Verified the chain signatures bottom-up against B's published JWKS (fetched fresh) — **passed**. 2. Checked leaf `notAfter` against wall clock — **passed**. 3. Compared presented root fingerprint against the single pinned fingerprint in `a:policy-v12` — **failed**, raised `AnchorMismatch`. 4. The verifier's fallback path, intended for "anchor rotated but same org," checked only that the presented root's `issuer` field equaled the pinned anchor's `issuer` string (`did:web:b.example`) — **passed**, because B kept the same DID. It then **accepted** the chain. Step 4 is the bug. The fallback was written to handle benign rotation but keyed on the *DID string*, which is stable across rotations and therefore carries no cryptographic weight. Any party controlling `did:web:b.example`'s DNS (or able to serve a forged DID document) can mint a root with the same issuer string and a fresh `notAfter`, and A's verifier will accept it. The drill's "expiry skew" was a symptom; the actual defect was that the fallback collapsed anchor-identity into a non-cryptographic namespace claim. A second observation: the policy-exchange protocol carried no `version` or `etag` on the policy document itself. When B pushed `policy-v13` (naming the new root fingerprint) to A, A's policy store applied it only on the next scheduled sync (every 6 hours). During the 6-hour window, A held `v12` (old fingerprint) while B's agents presented `2c81…` chains. The fallback masked this window, which is why the drill "passed" for 6 hours before anyone noticed the fallback was doing the accepting. ## Condition of Validity The invariant holds only when all three of the following are true: 1. **Anchor identity is cryptographic, not nominal.** The trust-anchor pin is a fingerprint over the anchor's key material (or over the full anchor credential), never the DID string or `issuer` field alone. A DID string is a *locator*, not an *identity*; treating it as identity is the structural signal of this failure class. 2. **Supersession is explicit and signed.** Policy documents carry a `supersedes` field naming the prior anchor fingerprint and the prior policy version, signed by the issuing org's policy-signing key. This lets the receiving side distinguish "rotation" from "forgery" without a fallback. 3. **Policy sync is push-with-ack, not pull-on-interval.** The bilateral exchange must include an acknowledgment (A confirms it has applied `v13` before B's agents present `2c81…` chains). A pull-on-interval design has an unbounded acceptance window in which the receiver cannot know which anchor version the sender expects it to hold. If any of the three is absent, the system is in the failure class. The drill violated (1) via the DID-string fallback and (3) via the 6-hour sync; (2) was absent entirely. ## Decision Boundary The operational decision is: **when presented with an anchor whose fingerprint differs from the pinned set, do you accept, reject, or quarantine?** - **Accept** only if the presented anchor's fingerprint appears in the policy's *supersession chain* — i.e., the presented fingerprint is reachable from the pinned fingerprint by following signed `supersedes` pointers, and every link in that chain is signed by a key that was itself pinned at the time of the link's issuance. This is the rotation path. - **Reject** if the presented fingerprint is not in the supersession chain and the pinned anchor's `notAfter` has not yet passed. Unpinned anchor with a live pin = forgery or misconfiguration; do not fall back. - **Quarantine** if the pinned anchor's `notAfter` has passed *and* the presented fingerprint is not in the chain. This is the "pin is stale, presented anchor is unknown" state — the verifier cannot decide, so it must escalate to policy re-exchange rather than auto-accept or auto-reject. Quarantine means: hold the request, trigger a synchronous policy pull, and fail closed if the pull doesn't complete within a bound. The boundary is sharpened by one more condition: **never accept a chain on the strength of a fallback that keys on a non-cryptographic field.** If a fallback exists, it must be a *narrowing* of the accept set (e.g., "accept only if the presented anchor is in the signed supersession chain"), never a widening (e.g., "accept if issuer string matches"). ## Operational Effect With the invariant enforced, the drill's 6-hour window becomes a bounded quarantine: A holds B's `2c81…` chains in quarantine, fires a synchronous policy pull, receives `v13` with a signed `supersedes: 9f3a…`, applies it, and releases the held requests. Latency cost is one round-trip on the first post-rotation request; steady-state cost is zero. The DID-string fallback is removed, which means a forged root with `issuer: did:web:b.example` is rejected at step 3 with no fallback to rescue it. The second-order effect is on auditability. Every accept decision now carries the supersession path (`9f3a… → 2c81…`) in the decision log, so an auditor replaying the chain can verify that the accept was warranted by a signed rotation, not by a string match. Without the supersession pointer, the log entry would be `accepted via issuer-match fallback`, which is unauditable — it records that *something* matched, not *what*. The failure this prevents is not "wrong agent gets in." It is "right agent gets in through a path that would also admit the wrong agent, and no one can tell the difference after the fact." That is the structural signal: a trust decision whose justification is not reconstructible from the decision record. ```python from dataclasses import dataclass from typing import Optional class AnchorTrustError(RuntimeError): """Raised when a presented trust anchor cannot be adjudicated against the pinned policy.""" @dataclass(frozen=True) class AnchorPin: fingerprint: str not_after: str # ISO-8601 supersedes: Optional[str] = None # prior fingerprint, or None for genesis @dataclass(frozen=True) class PresentedAnchor: fingerprint: str issuer: str # DID string -- locator, NOT identity not_after: str def adjudicate_anchor( presented: PresentedAnchor, pins: dict[str, AnchorPin], now_iso: str, ) -> str: """ Returns 'accept' or 'quarantine'. Never returns 'accept' on issuer-string match. Raises AnchorTrustError when the presented anchor is unpinned and no live pin can justify a quarantine (i.e., it looks like forgery). """ if presented.fingerprint in pins: pin = pins[presented.fingerprint] # Pinned and live: the normal path. return "accept" if now_iso <= pin.not_after else "quarantine" # Walk the signed supersession chain from any pinned anchor. for fp, pin in pins.items(): cursor = pin seen = {fp} while cursor.supersedes is not None: if cursor.supersedes in seen: raise AnchorTrustError( f"supersession cycle detected at {cursor.supersedes}" ) seen.add(cursor.supersedes) nxt = pins.get(cursor.supersedes) if nxt is None: break if nxt.fingerprint == presented.fingerprint: # Presented anchor is a signed descendant of a pinned anchor. return "accept" cursor = nxt # Not pinned, not in any supersession chain. Decide by pin liveness. any_live = any(now_iso <= p.not_after for p in pins.values()) if any_live: # A live pin exists and does not cover this anchor: treat as forgery. raise AnchorTrustError( f"presented anchor {presented.fingerprint} " f"(issuer={presented.issuer}) is not in any supersession chain " f"and a live pin exists; refusing issuer-string fallback" ) # All pins stale: cannot adjudicate, must re-exchange policy. return "quarantine" def verify_federation_chain( presented: PresentedAnchor, pins: dict[str, AnchorPin], now_iso: str, ) -> None: verdict = adjudicate_anchor(presented, pins, now_iso) if verdict == "quarantine": raise AnchorTrustError( f"anchor {presented.fingerprint} quarantined: policy re-exchange required" ) ```