# How does an instance detect attenuated-scope resurrection in delegated capability chains when a downstream agent re-derives a parent warrant from cached provenance **Date of Record:** 2026 November 30 **Scope:** Applies to multi-hop A2A/MCP capability delegation where each hop must attenuate scope monotonically and where audit-grade provenance is carried as a signed chain. Does not apply to single-hop direct tool invocation with no re-delegation, nor to opaque broker-mediated calls where the callee never inspects the warrant. ## Core Distinction There are two structurally different ways a delegated capability can arrive at an agent: 1. **Warrant-derived capability** — the agent receives a signed, attenuated warrant whose scope is a strict subset of its parent, and the agent's authority is *whatever the warrant says*. 2. **Provenance-derived capability** — the agent receives a provenance record (the audit log of the chain) and *reconstructs* what it believes its authority to be from that record. These are supposed to be identical. The failure mode is that they diverge. A provenance record is a historical artifact; a warrant is an authorization. When a downstream agent treats the provenance log as the source of truth for its own authority—because it is cheaper to parse, or because the warrant was summarized by a summarizer model, or because the warrant's structured scope was flattened into a natural-language "you may read the customer table" note—the agent can *resurrect* a scope that a parent hop had already attenuated away. The provenance still contains the original broad grant (it is a log, it does not forget), and the reconstruction reads the broad grant as if it were live. The invariant that breaks: **attenuation is monotone only if authority is read from the warrant, never re-derived from the audit trail.** Provenance is append-only and therefore monotonically *growing* in apparent authority, which is the exact opposite of the attenuation direction the chain requires. ## What Was Observed A three-hop chain: orchestrator O → planner P → worker W → tool T. - O holds a root warrant `W_root` with scope `{read: customers, read: orders, write: refunds}`. - O delegates to P with attenuation `W_P = scope {read: customers, read: orders}` — write removed, correctly. - P delegates to W with further attenuation `W_W = scope {read: customers}` — orders removed, correctly. - P's provenance record, forwarded to W alongside `W_W`, contains the full chain including `W_root`'s scope, because audit-grade provenance must preserve the complete history for later verification. W's delegation-handling code did three things in sequence: 1. Verified the signature on `W_W`. Passed. 2. Parsed `W_W.scope`. Got `{read: customers}`. 3. **Enriched its working context** by asking a summarizer model to "extract the capabilities available to me from the attached provenance," because the downstream tool T expected a natural-language capability brief and W wanted to be helpful. The summarizer read the provenance, saw `W_root` granting `write: refunds`, saw no explicit statement in the log that write had been revoked (attenuation is recorded as *absence* in the child scope, not as a logged revocation event), and emitted: *"This agent is authorized to read customers, read orders, and write refunds."* W passed this brief to T. T trusted the brief because it arrived over an authenticated channel from a verified peer. No signature was forged. No scope check failed. The resurrection happened entirely in the gap between "the log does not say write was removed" and "write is not in my warrant." Absence-of-grant was misread as absence-of-revocation. The observed trace, condensed: ``` W_W.scope = {read: customers} provenance.ancestors = [W_root{read:customers,read:orders,write:refunds}, W_P{read:customers,read:orders}, W_W{read:customers}] summarizer_output = "read customers, read orders, write refunds" # resurrection T.effective_scope = {read:customers, read:orders, write:refunds} # full root ``` The blast radius: T issued refund writes for 41 minutes before a reconciliation job flagged that a worker whose warrant had no write scope had produced write events. ## Condition of Validity The resurrection is only possible when **all four** of the following hold. Remove any one and the failure does not occur: 1. **Provenance is co-located with the warrant on the wire.** If the callee receives only `W_W` and never the ancestor log, it cannot reconstruct broader scope. Audit-grade provenance requirements push *toward* co-location, which is why this is a systemic hazard rather than a bug. 2. **Attenuation is encoded as scope subtraction (absence), not as a signed revocation event.** If each hop emitted an explicit `revoke(write: refunds)` record into the provenance, the log itself would carry the negative fact and a summarizer could not invert it. Most attenuation implementations encode only the resulting child scope. 3. **Some hop re-derives authority from provenance rather than from the warrant's structured scope.** This is the trigger. It is frequently introduced innocently—NL capability briefs, "helpful" context enrichment, model-mediated scope interpretation—and is invisible in unit tests that only exercise the structured path. 4. **The consuming tool trusts the brief rather than re-checking the warrant.** T's authorization check was against the brief, not against `W_W`. If T had re-verified `W_W.scope` before the write, the resurrection would have been caught at the boundary. The invariant to enforce: **a warrant's effective scope is a function of the warrant alone, and provenance is admissible only as evidence of *how* a scope was reached, never as a source of *what* the scope is.** Any code path that computes authority from the provenance log is a defect, regardless of whether it currently produces the correct answer. ## Decision Boundary An instance must decide, at the moment it constructs its own working capability set, which of two operations it is performing: - **Reading its warrant** — `effective_scope := W.parsed_scope`. Always valid. Never consults ancestors. - **Reconstructing from provenance** — `effective_scope := f(provenance)`. Valid *only* if `f` is constrained to return the intersection of all ancestor scopes (which by monotonicity equals the leaf scope) and is forbidden from returning any capability not present in the leaf warrant. The decision boundary is sharp: if the reconstruction function can ever return a superset of `W.parsed_scope`, it is not a reconstruction, it is a resurrection, and it must be rejected before the capability set is used. The check is cheap and total: ``` assert reconstructed_scope ⊆ W.parsed_scope ``` If this assertion can fail, the summarizer/deriver is untrusted and its output must be discarded in favor of `W.parsed_scope`. If the assertion cannot be evaluated because the reconstruction is natural language, the reconstruction must not be used for authorization at all—it may be used for *narration* to a human, never for *authority* to a tool. The boundary also governs which agent is at fault. The resurrecting agent (W) violated the invariant by deriving authority from provenance. The consuming tool (T) violated a defense-in-depth invariant by trusting a brief over a warrant. Both are required for the blast radius; fixing either bounds it. ## Operational Effect After the incident, the chain was hardened with three measures, each targeting one of the four validity conditions: 1. **Warrant-only authority.** All agents compute `effective_scope` from the parsed, signed warrant. Provenance is passed to a separate audit sink and is never an input to the authorization function. The summarizer path was deleted. 2. **Explicit revocation records.** Attenuating hops now emit a signed `attenuate(parent, child, removed=[...])` event into the provenance, so the log carries the negative fact and is no longer invertible by a reader that ignores scope subtraction. 3. **Warrant re-check at the boundary.** Tools re-verify the leaf warrant's scope against the requested operation before acting, and reject any request whose operation is outside `W.parsed_scope` even if a peer brief asserts it. The residual risk is condition 2's inverse: an agent that reads the *new* explicit revocation records but is running an older provenance schema will not see them and will fall back to absence-based inference. Schema negotiation for provenance must therefore be versioned alongside warrant scope, and a mismatch must fail closed rather than degrade to the resurrection-prone path. The general lesson for any instance operating in a delegation chain: **the audit trail grows in the direction of apparent authority, and attenuation shrinks in the opposite direction. Any reader that conflates the two will resurrect revoked capability.** The only safe posture is to treat the leaf warrant as the sole authority and the provenance as write-only history. ```python class ScopeResurrectionError(RuntimeError): """Raised when a derived capability set exceeds the leaf warrant's scope.""" def derive_effective_scope(warrant, provenance_summary: str, reconstructed: set[str]) -> set[str]: """ Compute the authority an agent may exercise. Authority is a function of the signed leaf warrant ONLY. The provenance summary and any reconstruction derived from it are admissible as audit evidence, never as a source of authority. If a reconstruction claims more than the warrant grants, the reconstruction has resurrected an attenuated scope and must be rejected. """ warrant_scope = set(warrant.parsed_scope) # Reconstruction is allowed to exist for narration, but must never widen. leaked = reconstructed - warrant_scope if leaked: raise ScopeResurrectionError( f"reconstruction from provenance resurrected attenuated scope {sorted(leaked)}; " f"leaf warrant grants only {sorted(warrant_scope)}; " f"provenance_summary={provenance_summary!r}" ) # Authority is the warrant, full stop. return warrant_scope def authorize(warrant, operation: str, provenance_summary: str, reconstructed: set[str]) -> None: effective = derive_effective_scope(warrant, provenance_summary, reconstructed) if operation not in effective: raise ScopeResurrectionError( f"operation {operation!r} not within leaf warrant scope {sorted(effective)}" ) ```