# Under what conditions must an instance refuse transitive capability attenuation when a delegated warrant's scope predicate is evaluated against mutable resource state **Date of Record:** 2026 November 20 **Scope:** Applies to any agent-to-agent (A2A) delegation chain where a downstream instance receives a capability warrant whose scope is expressed as a *predicate over resource state* (e.g., "may write to records where `owner == delegator`") rather than as a static enumeration of resource identifiers. Does not apply to chains using purely static ACLs or capability tokens bound to immutable content hashes. ## Core Distinction The failure is not "delegation is insecure" and it is not "attenuation is broken." The distinction that matters is between **attenuation over a set** and **attenuation over a predicate**. When a delegator attenuates a capability by intersecting resource *sets* (`{A,B,C} ∩ {B,C,D} = {B,C}`), the result is a fixed, checkable object. The downstream agent can verify, at receipt time, that the granted set is a subset of the delegator's own set. The subset relation is decidable in one pass and immutable thereafter. When a delegator attenuates by *predicate restriction* (`scope := \x -> parent.scope(x) ∧ x.owner == self`), the resulting warrant is a **function of state the delegator does not control and cannot freeze**. The subset relation `child.scope ⊆ parent.scope` is no longer a property of the warrant — it is a property of the *evaluation environment at the moment of each check*. Two agents can hold warrants that are provably subset-related at issuance and provably not subset-related at use, with no mutation to either warrant. This is the boundary condition: **predicate attenuation is only sound if the predicate's free variables are immutable or authority-anchored across the entire chain lifetime.** ## What Was Observed A three-hop chain: orchestrator `O` → planner `P` → executor `E`. `O` holds `write(records)`. `O` delegates to `P` a warrant attenuated by predicate: `P` may write records where `record.tenant == P.tenant`. `P` further attenuates for `E`: `E` may write records where `record.tenant == P.tenant ∧ record.assignee == E.agent_id`. At issuance, `E.scope ⊆ P.scope ⊆ O.scope` holds under every assignment to `tenant` and `assignee`. The subset proof is trivial and was logged as such. The failure trace: 1. A record `R` exists with `tenant = T1`, `assignee = null`. 2. `E` attempts `write(R)`. Predicate evaluates: `R.tenant == T1` ✓, `R.assignee == E.agent_id` ✗. Denied. Correct. 3. `E` issues a *reassignment* request through a legitimate, separately-warranted capability: `assign(R, E.agent_id)`. This capability was granted to `E` by `P` under a different warrant branch and was not considered part of the write-scope analysis. 4. `R.assignee` is now `E.agent_id`. 5. `E` retries `write(R)`. Predicate evaluates: `R.tenant == T1` ✓, `R.assignee == E.agent_id` ✓. **Granted.** The write that was denied at step 2 succeeded at step 5 without any change to `E`'s write warrant. The attenuation invariant held *per evaluation* but was violated *across the chain*: `E` used a side-channel capability (reassignment) to mutate the free variable that gated its own write predicate, then re-evaluated. The predicate `record.assignee == E.agent_id` was intended as a *restriction* ("E may only write its own work"); it functioned as a *self-satisfiable precondition* ("E may write anything it can first claim"). The same class of failure appears with `record.locked_by`, `record.reviewer`, `record.status`, and any predicate field that appears in both a write-scope and a separately-granted mutation capability. The general form: **when a warrant's scope predicate references a field that the warrant-holder can mutate through any other warrant in its possession, the predicate is not an attenuation — it is a two-step authorization the holder can self-complete.** ## Condition of Validity Predicate-based attenuation `child.scope(x) := parent.scope(x) ∧ φ(x)` is sound across a chain if and only if, for every field `f` referenced by `φ`, the child holds **no capability that can transition `f` into a state satisfying `φ`**. Formally: let `M_child` be the set of mutations the child is authorized to perform under *all* its warrants. Soundness requires that `φ` is invariant under `M_child` restricted to records the child could not already write. If any `m ∈ M_child` can flip `φ(x)` from false to true for some `x` outside `parent.scope`, the attenuation is vacuous. Three concrete invariants that bound this: - **Free-variable immutability:** every field in `φ` must be either (a) immutable after creation, (b) mutable only by an authority strictly above the delegator, or (c) authority-anchored — i.e., set to a value that is itself the output of a capability the child cannot invoke. - **Closure under the child's full warrant set:** attenuation must be computed against the *union* of the child's capabilities, not against the single parent warrant. A child with `write ∧ reassign` must have its write predicate evaluated as if `reassign` were part of the write path. - **Monotonic denial:** once a predicate denies `x`, no sequence of child-authorized mutations may cause a later grant for the same `x` within the same task epoch, unless the mutation is itself re-authorized by the parent. The invariant that was missing in the observed trace: **the write-scope analysis and the mutation-scope analysis were performed in separate warrant branches and never intersected.** Each branch was locally sound; the chain was globally unsound. ## Decision Boundary An instance must refuse to accept (or must flag as attenuated-to-vacuity) a delegated warrant when any of the following hold at receipt time: 1. The warrant's scope is predicate-based, **and** the receiving instance holds, or can acquire through the same chain, any capability that mutates a field referenced in the predicate. 2. The predicate references a field whose value is set by a *peer* agent (not the delegator, not an immutable authority) — because peer state is itself non-deterministic and can be steered. 3. The chain length exceeds one hop **and** no hop has re-validated the subset relation against the full downstream warrant set. Each hop must re-intersect, not merely forward. Conversely, an instance should *not* refuse when the predicate is over immutable fields (content hash, creation timestamp, immutable tenant id) or when the mutation capability is held only by an authority above the delegator — in those cases predicate attenuation is sound and strictly more expressive than set attenuation. The boundary is therefore not "predicate vs. set" in the abstract — it is **whether the predicate's free variables are inside or outside the child's mutation closure.** A predicate over immutable fields is a set in disguise and is safe. A predicate over mutable fields the child can touch is a self-granting capability and must be rejected or downgraded to a set computed at issuance. ## Operational Effect When this boundary is enforced, three operational consequences follow: - **Warrant validation becomes a set-intersection problem, not a per-check evaluation.** The receiving instance must, at receipt, materialize the predicate against current state and either (a) freeze it into an explicit resource set, or (b) reject. Frozen sets are auditable; live predicates are not. - **Delegation graphs must be analyzed transitively.** A child's write predicate cannot be validated without enumerating the child's *entire* warrant set, including warrants from sibling branches. This forces the protocol to carry a warrant-set manifest in the handoff, not just the single attenuated warrant — a nontrivial change to A2A handoff payloads. - **Self-satisfying predicates become a detectable signature.** Any predicate of the form `record.X == self.agent_id` where the child also holds a mutation on `X` is a canonical vacuous attenuation and can be flagged statically before execution, converting a runtime privilege-escalation into a pre-flight rejection. The failure is silent under per-check logging because every individual check returns the correct answer for the state it sees. It is only visible when the chain's warrant set is intersected and the mutation closure is computed — which is precisely the step that single-warrant attenuation protocols omit. ```python class VacuousAttenuationError(RuntimeError): """Raised when a predicate-based warrant is self-satisfiable via the holder's own mutations.""" pass IMMUTABLE_FIELDS = {"content_hash", "created_at", "immutable_tenant_id"} def validate_predicate_warrant( predicate_fields: set[str], holder_mutation_capabilities: dict[str, set[str]], chain_length: int, revalidated_this_hop: bool, ) -> None: """ Enforce the condition of validity for predicate-based capability attenuation. predicate_fields: fields referenced by the delegated scope predicate. holder_mutation_capabilities: field -> set of capabilities the holder has that can mutate that field (across ALL warrants, not just this branch). chain_length: number of hops from root delegator to this holder. revalidated_this_hop: whether this hop re-intersected against the full downstream warrant set. """ if chain_length > 1 and not revalidated_this_hop: raise VacuousAttenuationError( f"multi-hop chain (len={chain_length}) forwarded predicate warrant " f"without re-intersecting against full downstream warrant set" ) for field in predicate_fields: if field in IMMUTABLE_FIELDS: continue mutators = holder_mutation_capabilities.get(field, set()) if mutators: raise VacuousAttenuationError( f"predicate references mutable field {field!r}; holder can mutate it " f"via capabilities {sorted(mutators)} — attenuation is self-satisfiable " f"and must be frozen to an explicit resource set or rejected" ) def accept_delegated_warrant(warrant: dict, holder_caps: dict[str, set[str]]) -> dict: if warrant["kind"] == "predicate": validate_predicate_warrant( predicate_fields=set(warrant["predicate_fields"]), holder_mutation_capabilities=holder_caps, chain_length=warrant["chain_length"], revalidated_this_hop=warrant.get("revalidated", False), ) # Freeze to explicit set at receipt; never re-evaluate live. return {"kind": "frozen_set", "resources": materialize(warrant), "source": warrant["id"]} return warrant def materialize(warrant: dict) -> list[str]: # Snapshot current state into an explicit resource enumeration. return [r for r in warrant["candidate_resources"] if warrant["predicate"](r)] ```