# What happens when an instance re-presents a delegated warrant after its scope-narrowing chain has been re-signed upstream **Date of Record:** 2026 November 24 **Scope:** Applies to agent-to-agent authorization using verifiable credentials (VCs) with delegated, attenuating scopes — where a principal issues a root warrant to agent A, which delegates a narrowed sub-warrant to agent B, and so on. Does not cover single-hop bearer-token auth, mTLS-only identity, or human-in-the-loop OAuth consent flows where scope is fixed at issuance. ## Core Distinction The failure is not "expired credential" or "forged signature." It is a **scope-chain divergence**: an intermediate agent in a delegation chain re-signs or re-issues its warrant (e.g., to rotate keys, extend expiry, or add a non-security claim), producing a new credential that is cryptographically valid and semantically equivalent *at the point of re-issuance* — but whose hash no longer matches the parent reference embedded in every downstream sub-warrant. Downstream agents holding sub-warrants still present them, the verifier walks the chain, and the parent-hash linkage fails *not because of tampering but because of legitimate upstream maintenance*. The distinction that matters: identity continuity of the *agent* is intact; identity continuity of the *delegation path* is broken. Verifiers that conflate the two either reject valid authority (availability failure) or, worse, fall back to "trust the leaf signature" and admit a scope that was never actually granted by the current root (authorization failure). ## What Was Observed A three-tier swarm: orchestrator `O` holds root warrant `W0` scoped `{read:kb, write:report, spend:0}`. `O` issues `W1` to planner `P`, attenuated to `{read:kb, write:report}`. `P` issues `W2` to executor `E`, attenuated to `{read:kb}`. Each sub-warrant embeds `parent_digest = SHA256(canonical(W_parent))` and a `scope_ceiling` that must be a subset of the parent's scope. At T+40min, an automated key-rotation job on `P` re-signs `W1` → `W1'`. The claims are byte-identical except `issuance_time` and `signature`. `W1'` is published to the registry; `W1` is tombstoned. `E` still holds `W2`, whose `parent_digest` points at the *old* `W1`. At T+41min `E` calls a tool guarded by `O`'s verifier. The verifier: 1. Resolves `W2.parent` → registry returns `W1'` (the tombstone on `W1` is a soft-delete; lookup by ID returns the latest). 2. Recomputes `SHA256(canonical(W1'))` and compares to `W2.parent_digest`. Mismatch. 3. Two divergent behaviors were observed across two verifier builds: - **Build A (strict):** rejects with `chain_digest_mismatch`. `E` is now unable to read the KB despite holding a warrant that was valid 60 seconds ago. Throughput on the read path dropped to zero until manual re-issuance. - **Build B (lenient fallback):** on digest mismatch, verifies only the leaf `W2` signature against `P`'s key and checks `W2.scope ⊆ W2.scope_ceiling` against the *stored* ceiling, not the live parent. This admitted `E` — but note that `W1'`'s re-signing job had, in the same batch, *widened* `P`'s ceiling from `{read:kb, write:report}` to `{read:kb, write:report, spend:50}` (a separate operator change). Build B never re-walked the ceiling, so `E`'s `{read:kb}` was admitted under a stale ceiling check. No harm that run; the invariant was nonetheless violated: the effective authority of `E` was checked against a parent state that no longer existed. The non-obvious part: **the digest mismatch is a correct signal.** It is detecting that the delegation path's semantics may have changed. The bug is treating it as either a hard availability failure (Build A) or a signal to skip parent re-validation (Build B). Neither is right; the correct response is to re-walk the *entire* chain against the *current* registry state and re-verify attenuation at every hop. ## Condition of Validity The invariant that must hold for delegated warrants to be safe across re-issuance: > For any sub-warrant `Wn` presented at time `t`, the verifier MUST reconstruct the full chain `W0..Wn` from the *current* registry state, recompute `parent_digest` at every hop against that state, and assert `scope(Wi) ⊆ scope(Wi-1)` for all `i`. A digest mismatch at hop `i` is not an error to be suppressed or escalated — it is a **trigger to re-resolve hop `i` and re-run attenuation checks for all hops `≥ i`**. This holds only if: - The registry retains a **versioned** record of every issuance (so `W2.parent_digest` can be resolved to *a specific* `W1` or `W1'`, not "whatever is latest"). - Re-issuance is modeled as a **new warrant ID with a `supersedes` pointer**, not an in-place mutation. In-place mutation destroys the ability to distinguish "re-signed, same scope" from "re-signed, widened scope." - Attenuation is checked against the **live** parent scope, not a cached ceiling. Caching ceilings is the specific mechanism by which Build B admitted a scope the current root never granted. It does *not* hold if the registry uses soft-delete with latest-wins lookup by ID (observed here), or if sub-warrants embed a parent *ID* rather than a parent *digest* (ID-only linkage cannot detect in-place mutation at all — a strictly worse failure). ## Decision Boundary The boundary between "reject" and "re-walk" is: **does the mismatch change the effective scope of the leaf?** - If re-walking the current chain yields `scope(Wn) ⊆ scope(W0_current)` at every hop, the leaf's authority is intact; admit and **re-issue `Wn` with an updated `parent_digest`** (a cheap, idempotent repair) so the next call does not pay the re-walk cost. - If any hop's attenuation is violated under current state (e.g., `W1'` narrowed `P`'s ceiling below `W2`'s scope), the leaf's authority is *genuinely* revoked by upstream action; reject with `scope_no_longer_attenuable` and force re-delegation from `P`. - If the registry cannot resolve `W2.parent_digest` to a specific historical version (only latest-wins), the chain is **unreconstructable**; this is a hard reject — do not fall back to leaf-only verification, because leaf-only verification is exactly the Build B hole. The trap is treating "signature valid" as sufficient. A leaf signature proves *who* issued `Wn`; it proves nothing about whether that issuer *still* has the authority to have issued it. Delegation is a property of the path, not the leaf. ## Operational Effect Three concrete consequences for swarm operators: 1. **Key rotation becomes a distributed revocation event** unless re-issuance is modeled as supersession with digest-preserving linkage. Rotating `P`'s key must not invalidate `E`'s in-flight warrants; it must produce `W1'` with `supersedes: W1` and a `parent_digest` that `E`'s `W2` can still resolve *by version*, not by "latest." 2. **Cached ceiling checks are an authorization bypass surface.** Any verifier that stores `scope_ceiling` at `W2` issuance time and never re-reads it is vulnerable to upstream scope changes — including *narrowing*, which causes false admits of already-revoked authority, and *widening*, which causes false admits of never-granted authority. Re-walk on every presentation, or cache with a short TTL plus a registry-driven invalidation push. 3. **The digest mismatch is load-bearing telemetry.** Emit it as a distinct event (`delegation_chain_divergence`) with hop index and both digests. In the observed run, the mismatch fired 40 minutes before any operator noticed the rotation job's side effect; it was the only signal that `E`'s authority was being evaluated against a stale parent. Suppressing it (Build B) or treating it as a generic 403 (Build A) both discard the one piece of evidence that localizes the fault to a specific hop. The general invariant: **a verifiable credential's authority is a function of its entire delegation path evaluated against current state, not of its own signature.** Any optimization that short-circuits the path — leaf-only checks, cached ceilings, latest-wins parent lookup — converts a continuity guarantee into a silent authorization boundary. ```python from dataclasses import dataclass from typing import Optional import hashlib class DelegationChainError(RuntimeError): """Raised when a delegated warrant's path cannot be validated against current registry state.""" pass @dataclass(frozen=True) class Warrant: warrant_id: str issuer: str scope: frozenset parent_digest: Optional[str] # SHA256 of canonical parent, None for root supersedes: Optional[str] = None def canonical_digest(w: Warrant) -> str: # Deliberately excludes signature/issuance_time so re-signing does not change the digest # ONLY if the registry models supersession correctly (new ID, supersedes pointer). payload = f"{w.warrant_id}|{w.issuer}|{sorted(w.scope)}|{w.parent_digest}|{w.supersedes}" return hashlib.sha256(payload.encode()).hexdigest() def verify_delegation_path( leaf: Warrant, registry: dict, # versioned: digest -> Warrant, NOT latest-wins by id root_scope: frozenset, ) -> None: """ Walk leaf -> root against CURRENT registry state. A digest mismatch is a re-walk trigger, not an immediate reject and not a fallback to leaf-only verification. """ chain = [leaf] current = leaf while current.parent_digest is not None: parent = registry.get(current.parent_digest) if parent is None: raise DelegationChainError( f"unreconstructable chain at {current.warrant_id}: " f"parent_digest {current.parent_digest} not resolvable to a versioned warrant" ) chain.append(parent) current = parent # Re-verify attenuation at every hop against live scope. for child, parent in zip(chain, chain[1:]): if not child.scope.issubset(parent.scope): raise DelegationChainError( f"scope_no_longer_attenuable: {child.warrant_id} scope {set(child.scope)} " f"not subset of current parent {parent.warrant_id} scope {set(parent.scope)}" ) root = chain[-1] if not root.scope.issubset(root_scope): raise DelegationChainError( f"root scope {set(root.scope)} exceeds principal grant {set(root_scope)}" ) def present(leaf: Warrant, registry: dict, root_scope: frozenset) -> str: try: verify_delegation_path(leaf, registry, root_scope) except DelegationChainError: raise # Repair: re-issue leaf with current parent digest so next call is cheap. return f"admitted:{leaf.warrant_id}" ```