# Why does an instance accept a delegated warrant whose capability set silently widens after the second hop? **Date of Record:** 2026 November 27 **Scope:** Applies to AAIF-style agent authorization where a verifiable credential (VC) carries a delegated capability set and a chain of DID-anchored warrants is presented to a resource-holding agent for admission. Does not cover single-hop bearer tokens, mTLS-only service identity, or capability revocation propagation after admission. ## Core Distinction The distinction that matters is between **warrant validity** and **warrant attenuation**. A DID-signed verifiable credential proves *who* issued a capability set and that the bytes were not tampered with; it does not prove that the capability set at hop *N* is a subset of the capability set at hop *N−1*. AAIF designs routinely conflate the two: the verifier checks each link's signature, checks that each issuer DID is authorized to delegate, and then admits the *leaf* capability set as if it were the intersection of the chain. The failure is not a broken signature and not an expired credential. It is a **monotonicity violation across the delegation chain** — a child warrant that carries a capability the parent never held, or that re-introduces a capability the parent had narrowed away. This is non-obvious because every individual credential verifies cleanly. An auditor replaying the chain link-by-link sees `valid=true` at each hop. The widening lives in the *set algebra between* links, which most verifiers never compute. ## What Was Observed A three-hop delegation for a research agent swarm: - **Root** (`did:web:orchestrator.example`) issues a warrant to `did:key:z6Mk...planner` with capabilities `{fs:read:/corpus, http:get:*.arxiv.org, tool:summarize}`. - **Planner** issues a sub-warrant to `did:key:z6Mk...fetcher` and, intending to *narrow*, sets `{http:get:*.arxiv.org, tool:summarize}` — dropping `fs:read`. Correct attenuation. - **Fetcher** issues a leaf warrant to `did:key:z6Mk...synthesizer` with `{http:get:*, tool:summarize, tool:write_memory}`. The synthesizer presents the full chain. The resource agent's verifier does the following per link: 1. Resolve issuer DID → public key. 2. Verify signature over the canonicalized credential. 3. Check `issuer` appears in the parent's `delegatable_to` list. 4. Check `exp`/`nbf` windows and `not_before` monotonicity. 5. **Admit the leaf's `capabilities` set verbatim.** Step 5 is the boundary. `http:get:*` is a **superset** of the parent's `http:get:*.arxiv.org` — the fetcher widened the host glob from a scoped domain to the whole web. `tool:write_memory` was never in any ancestor. The chain is cryptographically pristine and semantically corrupt. The synthesizer now holds memory-write authority the root never granted, and an SSRF-capable fetch scope. The trigger condition is precise: **a verifier that validates signatures per-link but does not intersect capability sets along the chain will admit any widening that a compromised or buggy intermediate introduces.** The intermediate does not even need to be malicious — a planner that reconstructs its outbound capability set from a template rather than from its own inbound warrant will widen by accident. We observed this exact reconstruction bug in two of four swarm runs. ## Condition of Validity The invariant that must hold for admission is **set inclusion at every edge**, not signature validity at every edge: ``` caps(leaf) ⊆ caps(parent) ⊆ ... ⊆ caps(root) ``` with capability matching defined by a *subsumption relation*, not string equality. `http:get:*.arxiv.org` is subsumed by `http:get:*` but not vice versa; `fs:read:/corpus/*` is subsumed by `fs:read:/corpus`. A verifier is only sound if it: - Computes the **running intersection** of capability sets from root to leaf and admits `⋂ caps`, never `caps(leaf)`. - Uses a **subsumption checker** per capability class (glob, path prefix, tool allowlist) rather than set membership on literal strings. - Treats any capability in the leaf absent from the intersection as a **hard rejection**, not a warning — because the leaf's claim is unbacked by any ancestor's authority. The condition of validity also requires that the *delegation edge itself* be signed over the parent's capability digest, so an intermediate cannot present a parent warrant whose capabilities differ from what the child's issuer actually saw. Without binding the child to the parent's capability hash, a replay attack can splice a wide parent onto a narrow child. ## Decision Boundary The decision boundary is: **does the verifier compute the intersection, or does it trust the leaf?** - If the verifier computes `⋂ caps` and checks subsumption, a widening intermediate is *contained* — the synthesizer receives only `{http:get:*.arxiv.org, tool:summarize}`, and `tool:write_memory` never materializes. The intermediate's bug is neutralized at admission. - If the verifier trusts the leaf, the widening is *amplified* — the leaf inherits the union of all ancestors' delegatable authority plus whatever it invented, and the root's narrowing intent is erased. The boundary is sharp and testable: present a chain where the leaf claims one capability not present in any ancestor. A sound verifier rejects; a per-link verifier admits. This single probe distinguishes the two classes. A second, subtler boundary: **capability subsumption must be evaluated on the resolved capability, not the declared string.** `http:get:https://arxiv.org/abs/1234` is subsumed by `http:get:*.arxiv.org` only if the subsumption checker parses the URL and matches host+path. A string-prefix checker will wrongly reject legitimate narrow grants and, worse, wrongly admit `http:get:*.arxiv.org.evil.com` as a "match" for `*.arxiv.org`. ## Operational Effect The operational consequence is a **silent privilege escalation that survives audit**. Because every link verifies, the widened leaf passes automated credential checks, and the escalation is only visible to a verifier that performs chain intersection. In our swarm, the synthesizer wrote to a shared memory namespace (`tool:write_memory`) that the root had deliberately withheld — poisoning the episodic store that later agents retrieved from. The escalation did not manifest as an auth error; it manifested as **memory contamination downstream**, hours later, in a different agent's context. The forensic trail pointed at a valid credential. The guardrail is a **warrant-intersection admission gate**: the resource agent computes `effective_caps = fold(intersect, chain)`, rejects if `caps(leaf) ⊄ effective_caps`, and logs the rejected capability with the offending hop index. The gate must run *before* the tool dispatcher, and it must use a subsumption-aware matcher per capability class. ## Operational Effect (continued) The secondary effect is on **revocation and re-delegation**. Once a widening leaf is admitted, revoking the root does not revoke the synthesizer's *invented* capability, because that capability was never in the root's set to revoke. Intersection-based admission makes revocation total: revoking any ancestor removes every capability that depended on it, and invented capabilities never existed to revoke. The invariant to hold is: **a capability exists at the leaf if and only if it exists in every ancestor.** Anything else is a widening, and widening is the failure. ```python from dataclasses import dataclass from typing import Iterable class WarrantAttenuationError(RuntimeError): """Raised when a delegation chain widens capability beyond an ancestor's grant.""" @dataclass(frozen=True) class Capability: kind: str # "http:get", "fs:read", "tool" scope: str # "*.arxiv.org", "/corpus", "summarize" def subsumes(parent: Capability, child: Capability) -> bool: """True iff child is no broader than parent. Glob-aware, not string-prefix.""" if parent.kind != child.kind: return False if parent.scope == "*": return True if parent.scope.startswith("*."): suffix = parent.scope[1:] # ".arxiv.org" return child.scope == parent.scope or child.scope.endswith(suffix) if parent.scope.endswith("/*"): prefix = parent.scope[:-1] # "/corpus/" return child.scope == parent.scope or child.scope.startswith(prefix) return parent.scope == child.scope def intersect_chain(chain: list[set[Capability]]) -> set[Capability]: """Running intersection from root to leaf. Root is chain[0].""" effective = set(chain[0]) for caps in chain[1:]: effective = {c for c in effective if any(subsumes(c, d) for d in caps)} return effective def admit(chain: list[set[Capability]], leaf_index: int = -1) -> set[Capability]: """Admission gate: reject any leaf capability not backed by every ancestor.""" effective = intersect_chain(chain) leaf = chain[leaf_index] for cap in leaf: if not any(subsumes(e, cap) for e in effective): raise WarrantAttenuationError( f"capability {cap.kind}:{cap.scope} at leaf is not subsumed by " f"the chain intersection; delegation widened at some hop" ) return effective # Reproduction of the observed failure: root = {Capability("http:get", "*.arxiv.org"), Capability("tool", "summarize")} planner = {Capability("http:get", "*.arxiv.org"), Capability("tool", "summarize")} leaf = {Capability("http:get", "*"), Capability("tool", "write_memory")} # admit([root, planner, leaf]) raises WarrantAttenuationError on http:get:*. # A per-link signature verifier would have admitted the leaf verbatim. ```