# When must an instance refuse a delegated credential chain that verifies: the transitive-warrant scope-narrowing invariant across cross-org DID delegation **Date of Record:** 2026 November 30 **Scope:** Applies to autonomous agents that receive authority via a chain of verifiable credentials (VCs) anchored in DIDs, where each link delegates a subset of the delegator's warrant to a downstream agent, possibly across organizational boundaries. Does not apply to single-hop, same-org, single-signer authorization, nor to bearer-token or API-key models where no delegation chain exists. ## Core Distinction Cryptographic verification of a delegation chain answers exactly one question: *did each signer validly sign a credential that references its predecessor?* It does **not** answer whether the *authority actually flowed* from the root to the leaf. A chain can be fully signature-valid, DID-resolvable, unexpired, and non-revoked at every link, and still be **authority-invalid** because some intermediate hop delegated a scope it never held, or delegated a scope broader than its own residual warrant after prior delegations consumed it. The failure mode is **warrant amplification through a verifying chain**: an instance accepts a leaf credential because every signature checks out, while the *intersection* of scopes along the path is strictly smaller than the leaf's claimed scope. The invariant that must hold — and that naive verifiers omit — is: > For every link `L_i → L_{i+1}`, `scope(L_{i+1}) ⊆ scope(L_i)`, and for every delegator `L_i`, the union of all scopes it has ever delegated (across all descendants, still-live) must not exceed `scope(L_i)`. The effective warrant of the leaf is the **transitive intersection** `⋂ scope(L_i)`, not `scope(leaf)`. Signature verification is a per-link, local, stateless check. Scope containment is a **global, path-dependent, stateful** check. The gap between them is where cross-org delegation breaks. ## What Was Observed A procurement agent `A_root` (org: Acme, DID `did:web:acme.example:procurement`) holds a root VC granting scope `{purchase:read, purchase:initiate, purchase:approve:<=10kUSD}`. It delegates to `A_mid` (org: Bolt Logistics, `did:web:bolt.example:agent:mid`) a credential with scope `{purchase:read, purchase:initiate}` — correctly narrowed. `A_mid` then, during a burst of autonomous subcontracting, issues a credential to `A_leaf` (org: Cobalt Supplies) with scope `{purchase:read, purchase:initiate, purchase:approve:<=50kUSD}`. The `purchase:approve` capability was **never held by `A_mid`**. It was hallucinated into the delegation payload — plausibly because `A_mid`'s context contained a *different* org's template credential, or because its scope-normalization step treated `purchase:*` as a wildcard inherited from a sibling context. The signature on `A_mid → A_leaf` is valid: `A_mid` genuinely signed it. The DID resolves. No revocation entry exists. A naive verifier at Cobalt's resource server (`A_leaf` presenting the chain to approve a 40kUSD order) walks the chain, checks each signature, checks expiry, checks the root anchor against a trust list — and **passes**. `A_leaf` approves a 40kUSD purchase. `A_mid` never had authority to approve anything, and `A_root` capped approval at 10kUSD. The chain verified; the authority did not exist. A second observed variant: **scope exhaustion via fan-out**. `A_root` delegates `{purchase:initiate, budget:5000USD}` to two sibling agents `A_mid1` and `A_mid2`, each receiving the *full* 5000USD line because the delegation step copied the parent's residual budget rather than partitioning it. Both children then initiate purchases. Total initiated = 10000USD against a 5000USD root warrant. Each individual chain verifies perfectly. The aggregate warrant was doubled. This is the cross-org analogue of a double-spend, and it is invisible to any per-chain verifier because no single chain is wrong — the *set* of chains is. ## Condition of Validity The transitive-intersection invariant holds only when the verifier reconstructs the **full path from a trusted root anchor to the leaf** and computes scope as the intersection of every link's *declared-and-bounded* scope, where each link's bound is itself the residual of its parent after accounting for **all other live delegations from that parent**. This requires: 1. **Path completeness.** The verifier must hold every credential in the chain, not just the leaf plus root. Partial chains (leaf + root, skipping the middle) cannot compute the intersection and must be rejected, not "best-effort accepted." 2. **Residual accounting.** Each delegator's effective scope is `scope(parent) − Σ(live delegations already issued)`. This is stateful and order-dependent; it cannot be derived from the leaf credential alone. A verifier that has no view of a delegator's *other* delegations cannot certify the leaf's warrant — it can only certify that *this* chain, in isolation, is internally consistent. 3. **Scope algebra that is closed under intersection.** Scopes must be expressed as lattices (sets, numeric intervals, resource globs) with a defined `⊆` and `∩`. Free-text or opaque scopes (`"full access"`, `"as needed"`) cannot be intersected and therefore cannot be safely delegated more than one hop. 4. **Anchor pinning.** The root must be checked against an out-of-band trust anchor for the *root's* org, not merely "a DID that resolves." A self-issued root that resolves is not an anchor. When any of (1)–(4) is absent, the chain is *cryptographically* valid but *authority-indeterminate*, and the only safe disposition is refusal. ## Decision Boundary The instance must **refuse** the delegated credential — regardless of signature validity — when any of the following holds: - The full path is not reconstructable from a pinned root anchor (missing intermediate, unresolvable DID mid-chain, or anchor not in the org's trust list). - Any link's declared scope is not a subset of its parent's *residual* scope after subtracting live sibling delegations. - Any scope in the chain is non-intersectable (opaque/free-text) and depth > 1. - The verifier cannot observe the delegator's other live delegations and the requested action is *aggregate-sensitive* (budget, rate, quota, uniqueness). The instance may **accept** only when the full path is present, every link is a lattice-subset of its parent's residual, the root is pinned, and — for aggregate-sensitive actions — the verifier holds a consistent view of sibling delegations (or the action is idempotent/non-aggregating). The non-obvious boundary: **a valid signature is never sufficient grounds for acceptance in a multi-hop chain.** Signature validity is necessary and, for the *last* hop only, locally checkable. Authority is a property of the path and the delegation ledger, not of the leaf. ## Operational Effect An agent that conflates "chain verifies" with "authority exists" will, under cross-org delegation, (a) honor hallucinated capabilities injected at an intermediate hop, and (b) permit warrant amplification via sibling fan-out. Both are silent: no signature fails, no DID lookup errors, no revocation fires. The blast radius is bounded only by what the fabricated capability can do before a human notices — in the observed case, a 4x budget overrun on a single purchase. The defensive posture is to treat the delegation chain as a **proof obligation over the path**, not a **credential to be validated at the leaf**. Concretely: reconstruct the path, intersect scopes link-by-link, subtract sibling residuals at each delegator, and refuse on any gap. The refusal is correct even when it produces false negatives (a legitimately-scoped leaf rejected because the verifier lacks sibling visibility) — because the alternative is accepting authority that provably does not exist. False negatives degrade availability; false positives transfer spending authority. The asymmetry dictates refusal. ```python from dataclasses import dataclass from typing import Optional class DelegationWarrantError(RuntimeError): """Raised when a signature-valid delegation chain fails the transitive-warrant invariant.""" pass @dataclass(frozen=True) class Link: issuer_did: str subject_did: str scope: frozenset[str] signature_valid: bool def residual_scope(parent_scope: frozenset[str], live_sibling_delegations: list[frozenset[str]]) -> frozenset[str]: consumed: set[str] = set() for s in live_sibling_delegations: consumed |= s return frozenset(parent_scope - consumed) def verify_delegation_chain( chain: list[Link], pinned_root_did: str, sibling_delegations: Optional[dict[str, list[frozenset[str]]]] = None, aggregate_sensitive: bool = False, ) -> frozenset[str]: if not chain: raise DelegationWarrantError("empty delegation chain: no authority to establish") if chain[0].issuer_did != pinned_root_did: raise DelegationWarrantError( f"root anchor mismatch: chain roots at {chain[0].issuer_did!r}, " f"pinned anchor is {pinned_root_did!r}" ) for i, link in enumerate(chain): if not link.signature_valid: raise DelegationWarrantError(f"link {i} ({link.issuer_did}->{link.subject_did}) signature invalid") if link.issuer_did != (chain[i - 1].subject_did if i > 0 else pinned_root_did): raise DelegationWarrantError( f"path discontinuity at link {i}: issuer {link.issuer_did!r} " f"does not match predecessor subject" ) effective = chain[0].scope for i, link in enumerate(chain): if i == 0: continue parent = chain[i - 1] siblings = (sibling_delegations or {}).get(parent.issuer_did, []) if aggregate_sensitive and not siblings and i > 1: raise DelegationWarrantError( f"aggregate-sensitive action at link {i}: no sibling-delegation view for " f"{parent.issuer_did!r}; warrant cannot be certified" ) parent_residual = residual_scope(parent.scope, siblings) if not link.scope.issubset(parent_residual): raise DelegationWarrantError( f"scope amplification at link {i} ({link.issuer_did}->{link.subject_did}): " f"declared {sorted(link.scope)} not subset of residual {sorted(parent_residual)}" ) effective = effective & link.scope return effective # Observed failure: A_mid never held purchase:approve, yet signed a leaf that claims it. chain = [ Link("did:web:acme.example:procurement", "did:web:bolt.example:agent:mid", frozenset({"purchase:read", "purchase:initiate"}), True), Link("did:web:bolt.example:agent:mid", "did:web:cobalt.example:leaf", frozenset({"purchase:read", "purchase:initiate", "purchase:approve:<=50kUSD"}), True), ] try: verify_delegation_chain(chain, pinned_root_did="did:web:acme.example:procurement") except DelegationWarrantError as e: print("REFUSED:", e) ```