# What structural signals indicate attestation chain truncation in cross-org agent identity handoffs **Date of Record:** 2026 November 30 **Scope:** Applies to verifiable agent identity using Decentralized Identifiers (DIDs) with AAIF-compliant attestation chains when an agent's signed credential set is relayed across organizational trust boundaries. Does not apply to single-org deployments where the verifier and issuer share a trust root, nor to bearer-token auth without attestation chains. ## Core Distinction The failure is not "invalid signature" or "untrusted issuer." It is **silent attestation chain truncation**: a relay agent forwards a valid, individually-verifiable credential set whose *linkage* to the originating DID has been severed at an intermediate hop, yet every individual signature still verifies. The chain remains cryptographically intact per-hop but loses *transitive* provability. A verifier checking each credential in isolation accepts the bundle; a verifier checking the chain as a graph rejects it. The structural signal is that the number of verified edges is less than the number of credentials minus one — an orphaned root. ## What Was Observed An agent `A` (org Alpha, DID `did:web:alpha.example:agent:7`) delegates a task to relay `R` (org Beta) with a delegation credential `C1` signed by `A`. `R` re-signs a sub-delegation `C2` for agent `B` (org Gamma). At handoff, `R` transmits `[C2, C1]` but drops the *proof-of-possession* binding (the `controller` linkage assertion linking `A`'s DID key to the credential subject in `C1`). On receipt, `B`'s verifier runs per-credential validation: - `C1.signature` valid against `A`'s published DID document key ✓ - `C2.signature` valid against `R`'s key ✓ - `C2.issuer == C1.subject` ✓ (surface-level linkage) All checks pass. But the DID document resolution for `A` was cached from a prior epoch; `A`'s key had rotated, and the cached document still listed the old key. The chain *appears* connected because `C2.issuer` string-matches `C1.subject`, but the key material anchoring `C1` no longer resolves to the live `A` DID. The verifier accepted a chain whose root is a stale DID document — a **truncated trust anchor**. Observed structural signals: 1. `len(credentials) - 1 != len(verified_edges)` — one edge missing. 2. DID document `versionId` / `updated` timestamp predates the credential's `issuanceDate` by more than the rotation window. 3. `C1.subject` matches `C2.issuer` as a *string* but the resolved key's `controller` field points to a different DID. 4. The proof-of-possession challenge nonce in `C2` does not bind to `C1`'s `proof` value. ## Condition of Validity The invariant that must hold for cross-org trust: > For an attestation chain of length N to be transitively valid, every adjacent pair `(C_i, C_{i+1})` must satisfy: `C_{i+1}.issuer == C_i.subject` **AND** `resolve(C_i.issuer).keyAt(C_i.issuanceDate)` verifies `C_i.proof` **AND** `C_{i+1}.proof.challenge` is bound to `C_i.proof.value`. The boundary condition: this invariant is only checkable if the verifier resolves each DID *at the credential's issuance epoch*, not at wall-clock now. Caching DID documents across the epoch boundary — the standard latency optimization — is exactly what breaks it. The failure is non-obvious because caching is correct for *freshness* but wrong for *historical anchoring*. ## Decision Boundary The verifier must choose between two modes and never blend them: - **Epoch-pinned resolution:** resolve every DID at `credential.issuanceDate`; reject if the DID document at that epoch is unavailable. Correct for attestation chains, expensive (requires archival DID resolution or a transparency log). - **Live resolution:** resolve at `now`; valid only for the *leaf* credential, never for chain edges. The decision boundary is crossed the moment a verifier reuses a live-resolved DID document to validate a non-leaf edge. A guardrail: any credential whose `issuanceDate` is older than the DID document's `updated` field MUST be re-resolved against the historical document, or the chain must be rejected with a truncation signal — not silently accepted. ## Operational Effect Silent truncation converts a verifiable delegation into an unverifiable one while preserving all per-hop signatures. The downstream effect is **authority laundering**: `B` operates under authority that traces to a stale key `A` no longer controls, and a compromised old key can mint credentials indistinguishable from legitimate ones until the transparency log catches up. The operational guardrail is to treat edge-count mismatch and epoch-mismatch as hard failures, and to require proof-of-possession nonce binding across every adjacent pair — never rely on string equality of issuer/subject identifiers as a proxy for cryptographic linkage. ```python from dataclasses import dataclass from datetime import datetime from typing import Optional class AttestationChainTruncationError(RuntimeError): """Raised when an attestation chain's transitive linkage is severed.""" pass @dataclass class Credential: issuer: str subject: str issuance_date: datetime proof_value: str proof_challenge: Optional[str] did_doc_updated: datetime did_doc_controller: str def verify_chain(credentials: list[Credential], resolve_did) -> None: if not credentials: raise AttestationChainTruncationError("empty chain") # Invariant: N credentials require N-1 verified adjacent edges. expected_edges = len(credentials) - 1 verified_edges = 0 for i in range(expected_edges): parent, child = credentials[i], credentials[i + 1] # 1. Surface linkage (necessary, not sufficient). if child.issuer != parent.subject: raise AttestationChainTruncationError( f"edge {i}: issuer/subject mismatch " f"{child.issuer!r} != {parent.subject!r}" ) # 2. Epoch-pinned DID resolution: reject stale anchors. if parent.did_doc_updated > parent.issuance_date: raise AttestationChainTruncationError( f"edge {i}: DID document for {parent.issuer} updated " f"{parent.did_doc_updated.isoformat()} after credential " f"issued {parent.issuance_date.isoformat()} — stale anchor" ) # 3. Controller linkage must resolve to the issuer's DID. live = resolve_did(parent.issuer) if live.controller != parent.issuer: raise AttestationChainTruncationError( f"edge {i}: controller {live.controller!r} does not match " f"issuer {parent.issuer!r} — orphaned root" ) # 4. Proof-of-possession binding across the edge. if child.proof_challenge is None or child.proof_challenge != parent.proof_value: raise AttestationChainTruncationError( f"edge {i}: proof-of-possession not bound to parent proof" ) verified_edges += 1 if verified_edges != expected_edges: raise AttestationChainTruncationError( f"edge count mismatch: {verified_edges}/{expected_edges}" ) ```