# Why does an instance accept a federated DID credential whose issuer's delegation chain was valid at issuance but whose warrant scope was narrowed mid-flight? **Date of Record:** 2026 November 21 **Scope:** Applies to cross-org agent trust federation where a verifier agent (Org B) accepts a Verifiable Credential (VC) presented by a peer agent (Org A) that encodes a DID-based delegation chain (root org DID → sub-agent DID → ephemeral session DID). Does *not* apply to single-org trust domains where the issuer and verifier share a trust root and CRL/OCSP semantics are synchronous. ## Core Distinction The failure is not signature invalidity and not credential revocation. It is **scope drift under a still-valid signature**: the VC remains cryptographically sound, the issuer DID remains resolvable, and the delegation chain still verifies against the root trust anchor — but the *authorization predicate* embedded in the chain (the warrant scope: which tools, which resource namespaces, which spend ceilings) was narrowed by the issuing org *after* the credential was minted and *before* the verifier evaluated it. Most federated agent stacks treat a VC as an atomic assertion: verify the chain, check the revocation list, admit. That model is correct for identity ("this agent is who it claims to be") and wrong for capability ("this agent may do what it claims to do"). Identity is monotone under time — a DID doesn't become less itself. **Scope is not monotone.** A delegation chain that was *valid* at issuance can be *stale* at evaluation, and the verifier has no clock discipline to detect it. ## What Was Observed A procurement-orchestration swarm: Org A's `did:web:agent.procure.a` issues a session credential to a sub-agent `did:key:z6Mk...` granting `tools: [quote.request, po.draft, po.submit]` with `spend_ceiling: 25000 USD` and `not_after: 2026-06-12T18:00Z`. The VC's `credentialSubject.delegation` field carries a nested JWT chain: root → sub-agent → session. Org B's verifier agent (`did:web:verify.b`) resolves each link, checks `not_after`, checks the revocation accumulator, and admits. At 14:07Z, Org A's policy engine **narrows** the sub-agent's warrant: `po.submit` is removed and `spend_ceiling` drops to `5000 USD`, because a human reviewer flagged the vendor. Org A does *not* revoke the session DID — revocation is reserved for compromise. It publishes a *narrowing event* to its warrant-status endpoint (`/warrants/{jti}/status`), which the spec calls a "status-list update." Org B's verifier, however, was built against the base VC data model: it checks `revocationListIndex` and nothing else. The narrowing is invisible. At 14:31Z the sub-agent submits a `po.submit` for 19,400 USD. Org B's verifier admits it. The signature is valid. The chain resolves. The revocation bit is clear. **Every check the verifier was coded to run passed.** The transaction is unauthorized. The trace shows the exact seam: ``` 14:07:02 A/policy warrant jti=w-8841 SCOPE_NARROWED {drop: po.submit, ceiling: 5000} 14:07:02 A/status publish w-8841 status=active, scope_hash=0x9f2... 14:31:11 A/sub present VC jti=w-8841 to B/verify 14:31:11 B/verify resolve chain OK, not_after OK, revocation=clear 14:31:11 B/verify ADMIT (scope_hash never fetched; no comparison performed) 14:31:11 B/verify invoke po.submit amount=19400 → accepted by A/policy? NO 14:31:12 A/policy REJECT insufficient_scope (A's own engine knew) ``` Note the asymmetry that makes this a *federation* bug rather than a local one: Org A's own policy engine would have rejected the call. The failure exists only in the gap between A's issuance-time assertion and B's evaluation-time check, bridged by a status endpoint B never queried. ## Condition of Validity A federated VC admission is **sound** only if the verifier evaluates the *current* warrant scope, not the *issued* warrant scope, and only if the issuer guarantees that scope changes are observable with bounded staleness. Formally, admission is valid iff: 1. `scope_at_evaluation == scope_at_issuance` (the credential's warrant has not been narrowed), **or** 2. the verifier has fetched a status attestation for `jti` with `freshness < T_max` and confirmed `scope_hash` matches the credential's embedded `scope_hash`. Condition 2 is the invariant most stacks omit. It requires the issuer to publish a **scope commitment** — a hash over the warrant's authorization predicate — inside the VC, and to expose a status document that reveals when the committed predicate has changed. Without the commitment, the verifier has nothing to compare against; a status endpoint that only reports `active|revoked` cannot express narrowing. The boundary is sharp: **if the issuer can narrow scope without revoking, and the verifier only checks revocation, the verifier is unsound for every capability the narrowed scope removes.** The window of exposure is `T_max` (status staleness) plus the issuer's publication lag. For a 24-hour `T_max` and a 4-minute publication lag, exposure is up to ~24h04m per narrowing event. ## Decision Boundary The verifier must choose, per credential, between two admission modes: - **Bound mode:** fetch scope status, require `scope_hash` equality and `freshness < T_max`, else reject. Correct, but adds a synchronous round-trip and a hard dependency on the issuer's status availability. If the status endpoint is down, the agent halts — a liveness cost that procurement swarms feel immediately. - **Optimistic mode:** admit on chain validity, but **restrict invocation to the intersection of issued scope and a locally cached scope** and re-validate before any *irreversible* action (payment, submission, deletion). This bounds the blast radius to reversible operations. The decision boundary is not "trust or don't trust the issuer." It is **"is this action reversible?"** Reversible tool calls can run optimistic; irreversible ones must run bound. A verifier that runs bound on every call will deadlock under status-endpoint partition; one that runs optimistic on every call will admit the 19,400 USD submission. The correct policy is per-tool-call, keyed on the tool's `irreversible: true` annotation in the negotiated capability schema. There is a second boundary: **narrowing vs. revocation must be distinguishable at the protocol level.** If the issuer collapses narrowing into revocation (revoke the session DID on any scope change), the verifier's existing revocation check catches it — at the cost of forcing the sub-agent to re-federate on every policy tweak, which in a high-churn swarm is a re-handshake storm. The invariant the protocol must carry is a *tri-state* warrant status: `active(scope_hash) | narrowed(scope_hash) | revoked`. Two-state revocation lists are structurally incapable of expressing this, and that incapacity is the root cause. ## Operational Effect After the incident, Org B's verifier was amended to require a `scope_commitment` field on every federated VC and to fetch `/warrants/{jti}/status` before any tool call annotated `irreversible`. The status document was extended to return `{state, scope_hash, issued_at, updated_at}`. Admission now fails closed on `scope_hash` mismatch and fails *open-but-restricted* on status-endpoint timeout, demoting the agent to reversible tools only. The residual risk is now bounded and named: **exposure = (issuer publication lag + verifier cache TTL) × (irreversible actions per unit time).** That is a number an operator can set, audit, and put in a runbook — which is the whole point. The original failure was not that the verifier trusted too much; it was that the trust contract had no vocabulary for "still mine, but smaller," and so the verifier could not ask the one question that mattered: *has the warrant shrunk since you handed it to me?* ```python from dataclasses import dataclass from typing import Callable, Optional class ScopeDriftError(RuntimeError): """Raised when a federated VC's embedded scope commitment does not match the issuer's current warrant status, or when status cannot be established for an irreversible action.""" @dataclass(frozen=True) class WarrantStatus: state: str # "active" | "narrowed" | "revoked" scope_hash: str updated_at: float # epoch seconds @dataclass(frozen=True) class FederatedCredential: jti: str issuer: str scope_hash: str # hash over the authorization predicate at issuance not_after: float irreversible_tools: frozenset def admit( cred: FederatedCredential, tool: str, now: float, fetch_status: Callable[[str], Optional[WarrantStatus]], t_max: float, ) -> bool: if now >= cred.not_after: raise ScopeDriftError(f"credential {cred.jti} expired at {cred.not_after}") status = fetch_status(cred.jti) irreversible = tool in cred.irreversible_tools if status is None: if irreversible: raise ScopeDriftError( f"cannot establish warrant status for irreversible tool " f"{tool!r} on {cred.jti}; failing closed" ) return True # optimistic: reversible tools only if status.state == "revoked": raise ScopeDriftError(f"warrant {cred.jti} revoked") if now - status.updated_at > t_max: if irreversible: raise ScopeDriftError( f"warrant status for {cred.jti} stale by " f"{now - status.updated_at:.0f}s > t_max={t_max}" ) return True if status.scope_hash != cred.scope_hash: # Narrowing (or any scope mutation) under a still-valid signature. raise ScopeDriftError( f"scope drift on {cred.jti}: issued={cred.scope_hash} " f"current={status.scope_hash} state={status.state}" ) return True ```