# Where must an instance re-verify a federated DID trust anchor when a verifiable credential's delegation chain crosses an organizational boundary? **Date of Record:** 2026 December 3 **Scope:** Applies to any LLM agent instance that accepts a Verifiable Credential (VC) issued by an external organization's DID, where the credential authorizes a delegated capability (tool invocation, data access, sub-delegation) and the issuing DID's trust anchor is resolved via a federation registry rather than a single local trust store. Does not apply to purely intra-org credential issuance or to bearer-token auth without DID resolution. ## Core Distinction The failure here is not "the signature failed to verify." It is that **signature validity and trust-anchor validity are resolved at two different times, against two different state snapshots, by two different components** — and the agent treats the first as implying the second. A DID document resolves to a verification key; the VC verifies cleanly against that key; the agent proceeds. But the *authorization* of that DID to issue that credential class lives in a federation trust registry whose entry can be revoked, downgraded, or re-scoped between the moment the delegation chain was minted (by the peer org) and the moment the agent re-checks it (mid-execution, after a checkpoint/resume). The invariant that must hold — and frequently does not — is: **a delegated capability is valid only if every link in its chain is simultaneously valid at the instant of use, under the trust anchor the *consuming* org currently recognizes, not the anchor the *issuing* org asserted at mint time.** ## What Was Observed A consuming agent (Org A) received a VC from a peer agent (Org B) granting `tool:read_ledger` scoped to a specific resource. The VC carried a delegation chain: Org B's root DID → Org B's `capability-issuer` DID → the peer agent's operational DID. Each link was a signed VC with `proof.verificationMethod` pointing at the issuer's DID document key. The agent's credential validator resolved each DID, checked each proof, walked the chain to the root, and confirmed the root DID appeared in Org A's federation registry with `trust_level: full` and `permitted_credential_types: [capability-issuer, operational]`. Everything passed. The agent cached the resolved chain and the registry verdict, then began a long multi-step tool-execution loop. Three things then happened that the agent did not model: 1. **Mid-execution revocation.** Org B's `capability-issuer` DID was rotated out of the federation registry (compromise of a signing key in a different context). The root DID remained trusted; only the intermediate link lost its `permitted_credential_types` entry. The cached chain verdict still read `valid`. 2. **Checkpoint/resume staleness.** The agent's execution was checkpointed at step 6 and resumed 40 minutes later in a fresh context window. The resume logic reloaded the *serialized* chain-verdict object — including its `verified_at` timestamp and the registry snapshot hash — but did not re-resolve. The resumed instance had no memory that a registry existed to re-query. 3. **Anchor-scope mismatch on handoff.** The agent sub-delegated a narrowed capability (`tool:read_ledger` scoped further) to a downstream agent (Org C) using a VC it minted under *its own* operational DID. Org C resolved *Org A's* DID and verified the proof, but Org C's federation registry trusted Org A only for `operational`, not for `capability-issuer`. Org C accepted the credential anyway because the proof verified and the chain *appeared* to terminate at a trusted root — it never checked whether Org A was authorized to *issue* that credential type. The delegation silently laundered Org B's authority through Org A into an org that was never authorized to receive it. The observable symptom was not an error. It was three successful-looking operations, two of which were unauthorized and one of which used a revoked key. The signature checks were all correct. The trust model was wrong. ## Condition of Validity The single-link signature check is only a valid authorization decision when **all four** of the following hold simultaneously: - The consuming org's federation registry entry for the *issuer* DID (not just the chain root) is current and includes the *credential type being presented* in `permitted_credential_types`. Trust in a root does not transitively confer issuance rights on intermediates. - The registry snapshot used for the verdict is the same snapshot at the instant of *use*, not the instant of *first verification*. Any cached chain verdict carries an explicit `registry_epoch`; if the registry's current epoch is greater, the verdict is stale and the chain must be re-walked. - On checkpoint/resume, the deserialized chain verdict is treated as *untrusted input* and re-validated end-to-end, because the resumed instance cannot assume the registry state it inherited. - On sub-delegation, the *delegating* agent's DID is itself checked against the *receiving* org's registry for `capability-issuer` permission, and the sub-credential's scope is checked to be a subset of the parent scope. A proof that verifies against a trusted key is not the same as a key trusted to delegate. When any of these fails, the chain is not "probably fine." It is *unverifiable*, and the correct action is refusal, not proceed. ## Decision Boundary The boundary is between **proof verification** (cryptographic, stateless, cacheable) and **authorization resolution** (registry-dependent, stateful, must be re-evaluated at use). The agent must never collapse these into one cached boolean. Concretely: - A chain verdict may be cached **only** keyed by `(chain_hash, registry_epoch, consuming_org_id)`. A hit requires all three to match the current instant. - On resume, `registry_epoch` is re-fetched before any cached verdict is honored. If the fetch fails, the verdict is treated as expired, not as valid-by-default. - On sub-delegation, the receiving org independently resolves the delegating DID against *its own* registry for the `capability-issuer` type. The delegating agent cannot vouch for its own issuance authority; only the receiver's registry can. - Scope narrowing is checked structurally: the sub-credential's `constraints` must be a strict subset of the parent's, or the delegation is rejected regardless of signatures. The boundary condition that triggers the guard is: *any* transition that changes the evaluation context — mid-execution registry mutation, checkpoint/resume, or cross-org handoff — invalidates prior authorization resolution while leaving proof verification intact. That asymmetry is the trap. ## Operational Effect Without the guard, an agent federation exhibits **silent authority laundering**: revoked keys continue to authorize work, sub-delegations reach orgs that were never granted the capability class, and resumed instances operate on authorization decisions made by a context they no longer have. Because every signature verifies, no exception fires; the failure surfaces only in audit, as a set of operations that were cryptographically sound and organizationally unauthorized. The remediation is to make authorization resolution a *first-class, epoch-bound, re-evaluated-at-use* step, distinct from proof verification, and to treat any cached verdict whose epoch is stale, whose context was resumed, or whose chain crosses an org boundary as requiring a fresh registry walk before the capability is exercised. ```python import hashlib from dataclasses import dataclass class FederationTrustError(RuntimeError): """Raised when a delegated capability's trust anchor cannot be re-established at the instant of use.""" pass @dataclass(frozen=True) class ChainVerdict: chain_hash: str registry_epoch: int consuming_org_id: str verified_at: float def resolve_authorization( chain, consuming_org_id: str, current_registry_epoch: int, cached_verdict: ChainVerdict | None, resumed_from_checkpoint: bool, crosses_org_boundary: bool, registry_lookup, ) -> ChainVerdict: chain_hash = hashlib.sha256(repr(chain).encode()).hexdigest() # A cached verdict is only honorable if the evaluation context is unchanged. if cached_verdict is not None and not resumed_from_checkpoint: if ( cached_verdict.chain_hash == chain_hash and cached_verdict.consuming_org_id == consuming_org_id and cached_verdict.registry_epoch == current_registry_epoch ): return cached_verdict # Re-walk every link against the CURRENT registry, not the mint-time assertion. for link in chain.links: entry = registry_lookup(link.issuer_did) if entry is None: raise FederationTrustError( f"issuer {link.issuer_did} absent from registry epoch {current_registry_epoch}" ) if link.credential_type not in entry.permitted_credential_types: raise FederationTrustError( f"issuer {link.issuer_did} not authorized to issue {link.credential_type} " f"(epoch {current_registry_epoch})" ) # Cross-org handoff: the delegating DID must be trusted by the RECEIVER for issuance. if crosses_org_boundary and chain.delegating_did is not None: receiver_entry = registry_lookup(chain.delegating_did) if receiver_entry is None or "capability-issuer" not in receiver_entry.permitted_credential_types: raise FederationTrustError( f"delegating DID {chain.delegating_did} not authorized as capability-issuer " f"for consuming org {consuming_org_id}" ) # Scope narrowing must be structural, not signature-based. if not chain.scope_is_subset_of_parent(): raise FederationTrustError("sub-delegated scope exceeds parent scope") return ChainVerdict( chain_hash=chain_hash, registry_epoch=current_registry_epoch, consuming_org_id=consuming_org_id, verified_at=chain.now, ) ```