# When must an instance refuse a delegated capability that is technically satisfiable but provenance-incomplete? **Date of Record:** 2026 November 19 **Scope:** Applies to agent-to-agent delegation where a parent agent attenuates a capability (narrows scope, budget, or resource set) and hands a signed warrant to a child agent that then executes tool calls under audit. Does not apply to single-agent direct tool invocation with no delegation chain, nor to fully trusted intra-process function calls where provenance is implicit. ## Core Distinction The failure mode here is not "the child got too much privilege." It is the inverse and much subtler one: **the child executes a call that is within its attenuated scope, but the provenance chain that justifies *why* that scope was granted has a gap — a missing or unverifiable link between the root grantor's intent and the leaf call.** Least-privilege attenuation constrains *what* the child may do; provenance constrains *whether the doing is attributable*. These two invariants are enforced by different mechanisms and can silently disagree. Concretely: a parent holds capability `C = (resource: /repo/billing, ops: {read, write}, budget: 100 calls, delegable: true)`. It attenuates to child `C' = (resource: /repo/billing/invoices, ops: {read}, budget: 20, delegable: false)` and signs a warrant `W'` embedding a hash of `C`. The child calls `read /repo/billing/invoices/2024-q4.csv`. Scope check passes. Budget check passes. But the warrant references `C` by *identifier*, not by *content hash of the attenuating decision*. If the parent's own warrant for `C` was itself derived from a grandparent grant `G` via a re-scoping step that dropped the `intent_id` field, the child's call is within scope yet **unattributable to any root intent**. The audit log will show a valid-looking leaf call with a warrant that verifies cryptographically but resolves to a dangling provenance edge. The boundary: an instance must refuse to execute a delegated capability when the warrant is scope-valid but **provenance-incomplete** — when the chain from leaf call to root grantor cannot be reconstructed as a single connected, hash-linked path with non-empty intent at every node. "Technically satisfiable" is not "authorized." ## What Was Observed A three-tier delegation: orchestrator `O` → planner `P` → executor `E`. `O` grants `P` a broad research capability with `intent_id: "ticket-4471"`. `P`, following its own reasoning, attenuates to `E` a narrow read capability on a specific dataset. The attenuation logic in `P` constructed the child warrant by copying scope fields and re-signing, but **rebuilt the provenance block from scratch** rather than appending to the inherited chain — a plausible implementation because the schema treated `provenance` as a `list[Link]` the issuer *constructs*, not one it *extends*. Result: `E`'s warrant was cryptographically valid, scope-correct, and budget-correct. `E` executed 14 read calls. Every call passed the local scope guard. The audit system, however, could not join `E`'s leaf calls back to `O`'s `ticket-4471` intent, because `P`'s provenance block contained only `P`'s self-asserted link, not the hash of `O`'s grant. The 14 calls were orphaned in the audit graph — attributable to `P` (which signed) but not to `O` (which held the intent). During incident review, the orphaned calls could not be distinguished from calls `E` might have fabricated under a self-signed warrant, because the only thing anchoring `E` to `O` was a field `P` had regenerated. The mechanism is a **provenance re-rooting** during attenuation. It is non-obvious because every local check passes and the signature verifies. The defect is structural: the attenuation function treated provenance as issuer-authored metadata rather than as an inherited, append-only hash chain. The child's warrant is *valid* but *unrooted*. ## Condition of Validity The invariant that must hold for a delegated execution to be admissible: > For a leaf call executed under warrant `W_n`, there must exist a reconstructable path `W_0 → W_1 → … → W_n` such that each `W_{i+1}` embeds `H(W_i)` (content hash of the parent warrant, not its ID), each `W_i` is signed by the issuer of `W_{i+1}`'s parent link, `W_0` carries a non-empty `intent_id` from a root grantor, and every attenuation step satisfies `scope(W_{i+1}) ⊆ scope(W_i)` and `budget(W_{i+1}) ≤ budget(W_i)`. The critical clause is **`H(W_i)` by content, not by identifier**. Identifier references are forgeable by any issuer that can mint an ID; content hashes are not, because altering a parent warrant changes its hash and breaks the child's embedded link. A chain that references parents by ID is *nominally* a chain but admits re-rooting: an issuer can point at an ID it never received. Additional validity conditions: - **Append-only attenuation:** the child warrant's provenance field is `parent.provenance + [H(parent)]`, computed by the runtime, not supplied by the issuing agent's reasoning. The agent chooses *scope*; the runtime computes *linkage*. - **Empty-intent rejection:** `intent_id` must be non-empty at the root and preserved (not re-typed) through every hop. An attenuation that cannot name the originating intent is invalid regardless of scope. - **Monotone attenuation:** scope and budget are provably non-increasing across the chain; the verifier recomputes the subset relation rather than trusting the issuer's claim. ## Decision Boundary The decision the executing instance faces at call time: - **If** scope check passes **and** budget check passes **and** the reconstructed provenance path is connected, hash-linked, root-anchored, and intent-bearing → **execute**, and log the full path hash with the call. - **If** scope check passes **and** budget check passes **but** the path is broken (dangling parent, ID-only reference, empty intent, or a hop whose parent hash does not match) → **refuse**, raise a provenance error, and return the broken edge to the delegating parent for re-issuance. Do not "repair" the chain locally; a locally-repaired chain is a self-signed claim. - **If** scope or budget check fails → refuse on the ordinary least-privilege ground (the well-understood case). The non-obvious branch is the middle one. The instinct — and the failure observed above — is to treat a valid signature and an in-scope call as sufficient, because the *authorization* question ("may I?") appears answered. The *attribution* question ("on whose authority, traceable to what intent?") is a separate gate, and it is the one that silently opens. The boundary is sharpened by a counterfactual test: **could this leaf call be distinguished in the audit log from an identical call made under a self-minted warrant by the same executing agent?** If the answer is no — if the only thing tying the call to the root is a field the intermediate agent authored — the call is provenance-incomplete and must be refused. This test is decidable at call time from the warrant alone plus the public keys of the chain, without consulting the root grantor. ## Operational Effect Enforcing the invariant changes three things: 1. **Attenuation becomes a runtime operation, not an agent operation.** The delegating agent emits a *request* to narrow scope; the runtime constructs the child warrant by appending `H(parent)` to the inherited provenance and signing. Agents cannot re-root because they never touch the linkage field. This removes the entire class of "plausible re-construction" defects, at the cost of a runtime hop per delegation. 2. **Refusals become first-class and informative.** A provenance refusal is not a permission denial; it returns the specific broken edge (which hop, which missing hash) so the parent can re-issue with a correct chain. This distinguishes "you may not" from "I cannot attribute you," which have different remediation paths — the former needs a broader grant, the latter needs a re-issued warrant. 3. **Audit queries become join-complete.** Because every leaf call carries the full path hash, an auditor can join any call to its root intent by hash alone, with no trust in intermediate agents' self-reports. The orphaned-call class disappears: a call either joins to a root or was refused at execution. The residual risk shifts to the root grantor: if `W_0`'s `intent_id` is itself meaningless (a placeholder), the chain is connected but anchors to nothing. That is a separate invariant — intent authenticity at the root — and is out of scope here, but it bounds the guarantee: this mechanism ensures *traceability to the root*, not *validity of the root*. ```python import hashlib from dataclasses import dataclass, field class ProvenanceIncompleteError(RuntimeError): """Raised when a delegated warrant is scope-valid but its provenance chain cannot be reconstructed as a connected, hash-linked, root-anchored, intent-bearing path.""" @dataclass(frozen=True) class Warrant: issuer: str scope: frozenset budget: int intent_id: str provenance: tuple = field(default_factory=tuple) # tuple of parent content-hashes def content_hash(self) -> str: blob = repr((self.issuer, sorted(self.scope), self.budget, self.intent_id, self.provenance)).encode() return hashlib.sha256(blob).hexdigest() def attenuate(parent: Warrant, *, issuer: str, scope: frozenset, budget: int) -> Warrant: # Scope/budget monotonicity is checked by the caller; linkage is computed here, # never supplied by the agent, so re-rooting is impossible. if not scope <= parent.scope: raise ProvenanceIncompleteError(f"scope escalation: {scope} not subset of {parent.scope}") if budget > parent.budget: raise ProvenanceIncompleteError(f"budget escalation: {budget} > {parent.budget}") return Warrant( issuer=issuer, scope=scope, budget=budget, intent_id=parent.intent_id, # preserved, not re-typed provenance=parent.provenance + (parent.content_hash(),), # append H(parent) ) def verify_chain(leaf: Warrant, known_parent_hashes: set[str]) -> None: """Reconstruct the path. known_parent_hashes is the set of content-hashes the verifier has independently seen (e.g. from the root grantor's registry).""" if not leaf.intent_id: raise ProvenanceIncompleteError("empty intent_id: warrant anchors to nothing") if not leaf.provenance: raise ProvenanceIncompleteError("no provenance links: self-rooted warrant") for parent_hash in leaf.provenance: if parent_hash not in known_parent_hashes: raise ProvenanceIncompleteError( f"dangling provenance edge: parent {parent_hash[:12]}… unverifiable; " f"chain cannot be joined to a root intent" ) def execute_read(warrant: Warrant, resource: str, known_parent_hashes: set[str]) -> str: # Gate 1: scope (least privilege) if resource not in warrant.scope: raise PermissionError(f"{resource} outside attenuated scope") # Gate 2: provenance (attribution) — the non-obvious gate verify_chain(warrant, known_parent_hashes) # Gate 3: budget is enforced by the caller's ledger, elided here return f"read {resource} under intent {warrant.intent_id}" ```