# Which invariants prevent privilege re-expansion in agent-to-agent delegation chains when attenuated warrants are re-minted across heterogeneous runtimes **Date of Record:** 2026 November 29 **Scope:** Applies to multi-agent systems where a root principal issues a capability warrant to a delegate agent, which may further delegate to sub-agents via A2A handoffs, MCP tool grants, or equivalent transport. Does not apply to single-hop tool invocation where the caller and callee share one runtime identity, nor to systems that carry no signed delegation lineage. ## Core Distinction A delegation chain is *attenuating* when each hop's authority set is a subset of its parent's, and *auditable* when every hop carries a verifiable link back to the root principal. These two properties are usually designed independently — attenuation as a set-membership check at call time, lineage as a log of hop records. The failure mode lives in the seam: **attenuation is enforced on the semantic payload of the warrant, while lineage is enforced on the transport envelope, and the two are re-minted by different code paths at each hop.** The non-obvious boundary: an agent that is *correctly attenuated* can still produce a *lineage that re-expands privilege* — not because it grants more scope, but because the re-minted child warrant's lineage record attributes the child's authority to the *immediate parent* rather than to the *root*, and the auditor's replay resolves the effective authority as the union along the parent chain. When a sibling branch of the chain has broader scope, union-over-lineage silently widens the effective set beyond the child's attenuated payload. The warrant says "read:docs"; the lineage says "descends from root, whose branch B held read:docs,write:secrets"; the replay reconstructs the union. ## What Was Observed A three-tier chain: root `R` issues warrant `W0` to orchestrator `O` scoped to `{read:kb, write:kb}`. `O` delegates to specialist `S1` with `W1 = W0 ∩ {read:kb}` = `{read:kb}`. `S1` in turn delegates to worker `W1w` with `W2 = W1 ∩ {read:kb}` = `{read:kb}`. All three payloads are correctly attenuated. Every hop signs its envelope. The break occurs at re-minting. `S1`'s warrant-minting library, on a different runtime version than `O`'s, serializes the child lineage as `parent_id: S1, parent_warrant: W1` and *drops the transitive `root_id` and `root_scope` fields* — it assumes the verifier will walk the chain. The verifier at the worker's tool gateway does walk the chain, but resolves effective authority as `union(scope(W2), scope(W1), scope(W0))` because its replay logic treats each ancestor's scope as an *upper bound on what the descendant could have requested*, and takes the union as the safe envelope for audit logging. The union is `{read:kb, write:kb}` — write authority reappears at a worker that was never granted it. The tool gateway then admits a `write:kb` call. The call is logged against `W2`, whose payload does not contain `write:kb`, so the audit record is internally inconsistent: the admitted action exceeds the warrant it is attributed to. Two downstream effects compound: (a) the action executes with write authority the attenuation invariant was supposed to forbid, and (b) the audit trail now contains a record that, on replay, cannot be reconciled — the verifier's union logic and the warrant's payload disagree, and neither is marked authoritative. A second, subtler instance: when `O` re-minted `W1` after a context-window compaction, it reconstructed the lineage from a *summarized* memory of the parent warrant rather than the signed bytes. The summary preserved `read:kb` but the re-minted `root_scope` field, reconstructed from the summary, was `{read:kb, write:kb, admin:config}` — the model hallucinated the parent's scope during distillation. Payload attenuation held (the child payload was still `{read:kb}`), but the lineage's root-scope annotation was wrong, and any auditor trusting the annotation rather than re-verifying the root signature would over-attribute. ## Condition of Validity The attenuation invariant `scope(child) ⊆ scope(parent)` is necessary but **not sufficient** for end-to-end privilege containment. The sufficient condition is: `effective_authority(hop_n) = scope(W_n)`, evaluated on the signed payload only, with lineage used *exclusively* for provenance attribution and *never* as an input to authority resolution. This holds only when three sub-invariants are enforced: 1. **Monotonic payload attenuation across re-minting.** Every re-mint must carry the parent's signed payload forward and intersect, never reconstruct from memory or summary. A re-mint that reads the parent scope from a distilled representation is invalid regardless of the resulting set. 2. **Lineage is attribution-only.** The verifier's authority check must not union, max, or otherwise fold ancestor scopes into the effective set. Ancestor scopes are audit metadata; the effective set is `scope(W_n)` alone. 3. **Root binding is transitive and signed.** Each child warrant must carry a `root_id` and a signature over `(root_id, parent_warrant_hash, scope(W_n))` produced by the parent's key, so that a verifier can confirm the child descends from the claimed root without trusting intermediate annotations. Dropping `root_id` at any hop breaks this — the verifier can still walk the chain, but cannot distinguish "descends from R" from "descends from a sibling of R with broader scope." The invariant fails silently when any one of these is violated, because the payload check passes. The failure is only observable when the lineage and the payload are cross-checked, and most verifiers check one or the other. ## Decision Boundary The boundary between "safe to admit" and "reject" is **not** `scope(requested) ⊆ scope(W_n)`. It is: ``` admit iff scope(requested) ⊆ scope(W_n) and signature_valid(W_n, parent_key) and root_binding(W_n) == root_id(W_0) and scope(W_n) ⊆ scope(W_{n-1}) [checked on signed bytes, not annotation] and no_ancestor_scope_folded_into_effective_set ``` The last clause is the one that gets dropped. It is not a check on the request; it is a check on the *verifier's own resolution logic*. Implementations that resolve effective authority by folding the chain must be treated as non-conforming, because the fold is where privilege re-expansion enters. A verifier that cannot prove it did not fold must reject the call rather than admit it with a warning — the audit inconsistency is worse than the denial, because it poisons replay for every subsequent action attributed to that warrant. The boundary is also temporal: a warrant whose lineage was re-minted from a summarized parent is invalid *even if the resulting payload is correct*, because the correct payload is coincidental and the next re-mint from the same distilled representation may not be. Treat re-mint-from-summary as a hard failure, not a soft one. ## Operational Effect When the invariant holds, the chain is *audit-replayable*: any admitted action maps to exactly one warrant whose signed payload contains the action's scope, and the lineage's root binding confirms descent. Replay reconstructs the same effective set the live verifier used, because both evaluate `scope(W_n)` alone. When it fails, three effects propagate: - **Silent privilege re-expansion.** A descendant admits an action outside its payload because the verifier folded ancestor scope. The action executes; the payload check that would have caught it was never run against the folded set. - **Audit poisoning.** The admitted action is logged against a warrant that does not contain its scope. Replay either flags every such record as inconsistent (flooding the audit) or, worse, resolves the union and retroactively legitimizes the escalation. - **Re-mint contamination.** Once a distilled or summary-derived warrant enters the chain, every descendant inherits the hallucinated root scope, and the error compounds with each hop because each re-mint trusts the previous annotation. The guardrail is structural: separate the authority resolver from the lineage resolver, and make the authority resolver refuse to read ancestor scope. A verifier that cannot demonstrate this separation must fail closed. ```python import hashlib from dataclasses import dataclass class LineageAttenuationError(RuntimeError): """Raised when a re-minted warrant's lineage would re-expand effective privilege.""" pass @dataclass(frozen=True) class Warrant: warrant_id: str root_id: str parent_id: str | None parent_hash: str | None scope: frozenset[str] signed_payload: bytes # canonical bytes over (root_id, parent_hash, scope) def _hash(w: Warrant) -> str: return hashlib.sha256(w.signed_payload).hexdigest() def re_mint(parent: Warrant, child_scope: frozenset[str], *, from_summary: bool) -> Warrant: if from_summary: # Re-minting from a distilled representation cannot preserve signed bytes. raise LineageAttenuationError( f"re-mint of {parent.warrant_id} derived from summary, not signed payload; " "root binding cannot be verified" ) if not child_scope.issubset(parent.scope): raise LineageAttenuationError( f"scope {child_scope} not subset of parent {parent.scope}" ) payload = f"{parent.root_id}|{_hash(parent)}|{sorted(child_scope)}".encode() return Warrant( warrant_id=f"{parent.warrant_id}.c", root_id=parent.root_id, parent_id=parent.warrant_id, parent_hash=_hash(parent), scope=child_scope, signed_payload=payload, ) def resolve_effective_authority(chain: list[Warrant], root: Warrant) -> frozenset[str]: """Authority is scope(leaf) ALONE. Ancestor scopes are attribution-only.""" leaf = chain[-1] if leaf.root_id != root.root_id: raise LineageAttenuationError("leaf root binding does not match root principal") # Walk for provenance verification, but never fold into effective set. for parent, child in zip(chain, chain[1:]): if child.parent_hash != _hash(parent): raise LineageAttenuationError( f"lineage break: {child.warrant_id} parent_hash mismatch" ) if not child.scope.issubset(parent.scope): raise LineageAttenuationError( f"attenuation violated at {child.warrant_id}" ) return leaf.scope # no union, no max, no fold def admit(chain: list[Warrant], root: Warrant, requested: frozenset[str]) -> bool: effective = resolve_effective_authority(chain, root) if not requested.issubset(effective): raise LineageAttenuationError( f"request {requested} exceeds effective authority {effective}" ) return True ```