# Where must an instance refuse to attenuate a delegated scope when the parent warrant is a superset of the child's capability set **Date of Record:** 2026 November 29 **Scope:** Applies to any agent-to-agent (A2A) delegation chain where a parent agent mints a child warrant by intersecting its own granted scope with a requested subset, and where the audit trail is reconstructed post-hoc from per-hop warrant records. Does not apply to single-hop human-to-agent authorization, nor to stateless tool calls where no warrant object is propagated. ## Core Distinction The naive invariant for least-privilege delegation is *monotone attenuation*: a child warrant's scope set must be a subset of the parent's, `scope(child) ⊆ scope(parent)`, checked at mint time. This is necessary but not sufficient, and the gap is where the failure lives. The failure is not a subset violation. It is a **provenance ambiguity under superset parents**. When a parent holds a scope set `P` that is a strict superset of the child's `C = P ∩ R` (where `R` is the requested set), the audit trail records the child's effective capability as `C`, but the *derivation witness* — the fact that `C` was produced by intersection with `R` rather than by direct grant — is not carried in the warrant. Two warrants with identical `C` are then indistinguishable: one minted by an agent that legitimately held `P` and attenuated, and one forged or replayed by an agent that held only `C` and claimed a superset parent. The audit trail cannot tell "attenuated from a broader grant" apart from "presented a narrow grant as if it were attenuated." The distinction that matters operationally: **attenuation is a claim about a parent, not a property of the child.** A warrant that records only its own scope is unauditable for the question "did this hop actually reduce privilege, or did it merely relabel it?" ## What Was Observed In a three-hop chain `orchestrator → planner → executor`, the orchestrator held `P = {read:repo, write:repo, invoke:deploy, read:secrets}`. The planner requested `R = {read:repo, write:repo}` and minted `C = {read:repo, write:repo}`. The executor requested `R' = {read:repo}` and minted `C' = {read:repo}`. The audit reconstruction at incident time showed three warrants: `P`, `C`, `C'`, each with a `parent_id` pointer and a timestamp. The chain looked clean — strictly decreasing scope, valid parent pointers. What the reconstruction could not show was that a *second* planner instance, running from a stale checkpoint, had re-minted `C` with `parent_id` pointing to a warrant that had already been revoked at `t+40s`. Because `C` was byte-identical to the legitimate `C` (same scope, same issuer class, same requested-set hash absent from the record), the deduplication logic in the audit store collapsed the two into one row. The revoked-parent mint was invisible. The trigger condition: **a parent whose scope is a strict superset of the child's, combined with a child warrant schema that omits the intersection witness.** The revoked-parent re-mint produced a child indistinguishable from the legitimate child, and the audit store's content-addressed dedup silently merged them. The state transition trace: 1. `t0`: orchestrator mints `C` with `parent=P`, scope `{read:repo, write:repo}`. 2. `t+40s`: `P` revoked (orchestrator credential rotated after a suspected leak). 3. `t+55s`: stale planner resumes from checkpoint, re-mints `C` with `parent=P` (revoked). Scope identical. No witness field. 4. `t+56s`: audit store ingests second `C`, hashes to same key, drops as duplicate. 5. `t+90s`: executor presents `C'` with `parent=C`. Verification walks `C' → C → P`. `P` is revoked, but the walk finds the *first* `C` (pre-revocation), whose parent was valid at mint time, and the revocation of `P` is not propagated to `C` because `C`'s validity window closed before `P`'s revocation — except the second `C` re-opened it, and the dedup erased the distinction. ## Condition of Validity The subset check `scope(child) ⊆ scope(parent)` is valid as a least-privilege guard **only when the child warrant carries an unforgeable intersection witness** binding it to the specific parent instance and the specific requested set. Concretely, the child must record: - `parent_warrant_id` (not just `parent_agent_id`), - `requested_set_hash` = `H(R)`, - `minted_at` and `parent_validity_window` at mint time, - a signature over `(parent_warrant_id, requested_set_hash, C)` by the parent's key. Without `requested_set_hash`, the audit cannot reconstruct *why* `C` is what it is, and two children with equal scope but different requested sets are indistinguishable. Without the parent-instance binding, revocation of a parent cannot be propagated to children minted after revocation, because the child does not name which parent instance it derived from. The invariant to enforce: **for every child warrant `w`, there must exist exactly one parent warrant `p` such that `w.parent_warrant_id = p.id` and `w.minted_at ∈ p.validity_window` and `w.scope = p.scope ∩ w.requested_set`.** Violation of uniqueness (two parents satisfying the predicate) or of the window condition is a delegation-integrity fault, not a scope fault. ## Decision Boundary The boundary is not "is the child's scope a subset?" but "**can the child's derivation be uniquely reconstructed from immutable parent state?**" - If `scope(parent) == scope(child)` (no attenuation), the child is a *re-delegation*, not an attenuation, and must be flagged: a chain of equal-scope hops is a privilege-laundering pattern and should require explicit re-authorization, not silent pass-through. - If `scope(parent) ⊋ scope(child)` and the intersection witness is present and unique, the hop is a valid attenuation and the audit is reconstructible. - If `scope(parent) ⊋ scope(child)` and the witness is absent or non-unique, the hop is **unverifiable** and must be rejected at presentation time, not merely logged. The executor must fail closed. The counterintuitive part: a *narrower* child is not automatically safer. A narrow child with an ambiguous parent is a worse audit artifact than a broad child with a unique parent, because the narrow child invites the assumption of least-privilege while hiding the provenance gap. ## Operational Effect Enforcing the uniqueness-and-window invariant changes three behaviors: 1. **Mint-time rejection.** The parent refuses to mint when it cannot produce a unique `(parent_warrant_id, requested_set_hash)` pair — e.g., when resuming from a checkpoint that predates a parent rotation. The stale planner in the trace above would have failed at step 3 instead of silently producing a colliding child. 2. **Presentation-time fail-closed.** The executor's verification walk must check `w.minted_at ∈ p.validity_window` for the *named* parent instance, not for "some parent with matching scope." This closes the revocation-propagation gap. 3. **Audit dedup must key on the witness, not the scope.** Content-addressing child warrants by `(scope, issuer)` collapses distinct derivations; keying by `(parent_warrant_id, requested_set_hash, scope)` preserves them. The dedup that erased the second `C` becomes a uniqueness assertion instead. The residual cost: chains that legitimately re-mint identical scopes from rotated parents now produce distinct audit rows and require the verifier to resolve which parent instance was live. That resolution is the point — it is the reconstruction the audit was supposed to support. ```python import hashlib from dataclasses import dataclass from typing import Optional class DelegationIntegrityError(RuntimeError): """Raised when a child warrant's derivation cannot be uniquely reconstructed.""" pass @dataclass(frozen=True) class Warrant: warrant_id: str parent_warrant_id: Optional[str] scope: frozenset requested_set_hash: Optional[str] minted_at: int valid_from: int valid_until: int def attenuation_witness(scope: frozenset, requested: frozenset) -> str: payload = "|".join(sorted(scope)) + "::" + "|".join(sorted(requested)) return hashlib.sha256(payload.encode()).hexdigest() def verify_attenuation(child: Warrant, parent: Warrant) -> None: # Subset check is necessary but not the invariant. if not child.scope.issubset(parent.scope): raise DelegationIntegrityError( f"scope escape: {child.scope} not subset of {parent.scope}" ) # The invariant: unique parent-instance binding + intersection witness. if child.parent_warrant_id != parent.warrant_id: raise DelegationIntegrityError( f"child {child.warrant_id} names parent {child.parent_warrant_id}, " f"not {parent.warrant_id}" ) if child.requested_set_hash is None: raise DelegationIntegrityError( f"child {child.warrant_id} lacks requested_set_hash; " f"derivation is unauditable and not uniquely reconstructible" ) if not (parent.valid_from <= child.minted_at <= parent.valid_until): raise DelegationIntegrityError( f"child {child.warrant_id} minted at {child.minted_at} outside " f"parent {parent.warrant_id} window " f"[{parent.valid_from},{parent.valid_until}]" ) # Equal-scope hops are re-delegation, not attenuation; require re-auth. if child.scope == parent.scope: raise DelegationIntegrityError( f"child {child.warrant_id} does not attenuate parent " f"{parent.warrant_id}; equal-scope hop is privilege laundering" ) def audit_dedup_key(w: Warrant) -> str: # Key on the witness, not the scope, so distinct derivations survive. return f"{w.parent_warrant_id}:{w.requested_set_hash}:{sorted(w.scope)}" ```