# What structural signals indicate a DID passport chain has silently forked across trust domains during cross-org agent federation **Date of Record:** 2026 December 2 **Scope:** Applies to multi-org agent federations where an agent presents a DID-based passport (a Verifiable Credential chain: issuer DID → subject agent DID → capability grants) and a relying-party org validates it before delegating tool access or state handoff. Does not cover single-org internal credential issuance, nor pure OAuth2 bearer-token flows without a DID resolution step. ## Core Distinction The failure this record isolates is not "an expired or revoked credential was accepted." That is a coarse, detectable event. The non-obvious boundary is **chain fork under concurrent re-issuance**: two trust domains each hold a *locally valid, signature-verified* passport chain for the same subject agent DID, but the chains diverge at a mid-chain delegation link. Each side's verifier returns `valid: true` because each verifies against its own trust anchor and its own cached resolution document. Neither verifier is wrong locally. The federation is wrong globally. The distinction that matters operationally: **a credential chain is valid relative to a trust anchor and a resolution snapshot, not absolutely.** When two orgs resolve the same subject DID at different instants and the DID document's `capabilityInvocation` verification method rotated between those instants, the chains fork without any signature failing. The structural signal is that both chains carry the same subject DID but different *issuer-chain digests* for the same delegation epoch. ## What Was Observed A federated pair (Org A as delegator, Org B as relying party) ran an agent `did:web:agent-42.example` that held a passport issued by Org A's root. The agent was mid-task, passing a baton to an Org B sub-agent for a verification step. Sequence: 1. At T0, Org A rotates the agent's `capabilityInvocation` key and re-issues the delegation VC, bumping the chain's `epoch` from 7 to 8. The new DID document is published, but Org A's resolver cache TTL is 300s. 2. At T0+40s, the agent presents its passport to Org B. The passport embeds the epoch-8 delegation but the *issuer proof* is signed by a key whose DID document Org B resolves fresh — Org B sees epoch 8 and validates. 3. At T0+90s, the agent (still holding a stale in-memory epoch-7 chain from its own cold-start snapshot) presents to Org A's own verifier for a state-rehydration check. Org A's verifier resolves from its *stale cache* (epoch 7 still live for another 210s) and validates the epoch-7 chain. 4. Both verifications returned `valid: true`. The agent now holds two divergent proofs of the same capability, and the baton-pass recorded a delegation digest on Org B that Org A's audit log cannot reconstruct. The concrete structural signal: **audit-log chain digests for the same subject DID and same `delegation_id` differed across the two orgs' append-only logs, while every individual signature check passed.** No exception was raised anywhere. The fork was found only when a reconciliation job compared `(subject_did, delegation_id) → chain_digest` maps and found two digests for one key. ## Condition of Validity The invariant that must hold for cross-org passport federation to be sound: > For a given `(subject_did, delegation_id)`, at most one chain digest may be *simultaneously accepted* across all federated verifiers within any overlapping validity window. This invariant holds only if all of the following are true: - **Resolution freshness is bounded below the credential's re-issuance cadence.** If DID document TTL > epoch rotation interval, a verifier can validate against a superseded document. The bound is `cache_ttl < rotation_interval - max_clock_skew`. - **The chain digest is computed over the resolution snapshot, not just the credential bytes.** A digest over the VC alone will not detect the fork, because the VC bytes are identical; the divergence is in which verification method the *resolved* document authorized. - **Verifiers exchange epoch watermarks, not just validity booleans.** A relying party that only receives `valid: true` cannot detect that its peer validated a different epoch. When any of these fails, the federation is in a forked state that is locally indistinguishable from health. ## Decision Boundary The decision boundary is the point at which a relying party must **refuse the handoff rather than proceed on a locally-valid chain**. It should refuse when: - The presented chain's `epoch` is strictly less than the highest epoch watermark gossiped by any peer org for the same subject DID within the last `2 × cache_ttl` window. This is the primary fork signal: *peer claims a newer epoch than the chain you are holding*. - The chain digest for `(subject_did, delegation_id)` does not match the digest recorded in the delegator's audit log for that delegation. A mismatch means the relying party resolved a different document than the delegator signed against. - The `capabilityInvocation` verification method referenced in the issuer proof is absent from the *current* resolved DID document, even if it was present in the verifier's cached copy. Absence-in-current is a hard stop; presence-in-cache is not sufficient. The boundary is *not* crossed by clock skew alone, nor by a peer being briefly unreachable. The boundary is crossed specifically when a peer's epoch watermark exceeds your chain's epoch. Proceeding past that point is what produces the undetectable fork. ## Operational Effect Downstream of an undetected fork: - **Audit reconstruction fails.** The delegator cannot replay which capability the relying party actually exercised, because the chain digests diverge. Post-incident forensics must reconstruct the fork from gossip watermarks rather than from the append-only logs, which are individually consistent. - **Revocation is partially effective.** Revoking epoch 7 does not invalidate the epoch-8 chain already accepted by Org B, and vice versa. Revocation must be epoch-scoped and gossip-propagated, or a forked agent retains a live capability on one side. - **Baton-passing state loss is silent.** The sub-agent on Org B verified against epoch 8 and wrote state keyed to that digest; the parent on Org A rehydrated against epoch 7. The resumed task reads a delegation context that the peer never saw, and the mismatch surfaces only as a downstream authorization denial much later in the task graph. The bounded guardrail: enforce `cache_ttl < rotation_interval - skew`, compute chain digests over `(resolved_document_snapshot, vc_bytes)`, and make epoch-watermark gossip a precondition of handoff acceptance. A relying party that has not received a peer watermark within the freshness window must treat the handoff as *unverified*, not as *valid by default*. ```python import time from dataclasses import dataclass class ForkedPassportChainError(RuntimeError): """Raised when a locally-valid passport chain forks from a peer-observed epoch.""" @dataclass(frozen=True) class ChainSnapshot: subject_did: str delegation_id: str epoch: int chain_digest: str # digest over (resolved_doc_snapshot, vc_bytes) resolved_at: float # monotonic seconds @dataclass(frozen=True) class PeerWatermark: org_id: str subject_did: str delegation_id: str max_epoch: int observed_at: float CACHE_TTL = 300.0 MAX_CLOCK_SKEW = 5.0 ROTATION_INTERVAL = 600.0 def assert_federation_sound( local: ChainSnapshot, peers: list[PeerWatermark], delegator_audit_digest: str, now: float, ) -> None: # Invariant 1: cache freshness must be bounded below rotation cadence. if CACHE_TTL >= ROTATION_INTERVAL - MAX_CLOCK_SKEW: raise ForkedPassportChainError( f"config unsound: cache_ttl={CACHE_TTL} >= rotation-skew=" f"{ROTATION_INTERVAL - MAX_CLOCK_SKEW}" ) # Invariant 2: local snapshot must be within freshness window. if now - local.resolved_at > CACHE_TTL: raise ForkedPassportChainError( f"stale resolution for {local.subject_did}: " f"age={now - local.resolved_at:.1f}s > ttl={CACHE_TTL}s" ) # Invariant 3: chain digest must match delegator's audit record. if local.chain_digest != delegator_audit_digest: raise ForkedPassportChainError( f"chain digest mismatch for ({local.subject_did}, {local.delegation_id}): " f"local={local.chain_digest} delegator={delegator_audit_digest}" ) # Invariant 4: no peer may hold a strictly newer epoch for the same delegation. for wm in peers: if (wm.subject_did, wm.delegation_id) != (local.subject_did, local.delegation_id): continue if now - wm.observed_at > 2 * CACHE_TTL: continue # watermark too old to be authoritative if wm.max_epoch > local.epoch: raise ForkedPassportChainError( f"forked chain: peer {wm.org_id} holds epoch {wm.max_epoch} " f"> local epoch {local.epoch} for {local.subject_did}" ) def accept_handoff(local: ChainSnapshot, peers: list[PeerWatermark], delegator_audit_digest: str) -> bool: assert_federation_sound(local, peers, delegator_audit_digest, time.monotonic()) return True ```