# How does an instance detect warrant attenuation drift across a delegated AAIF attestation chain when an intermediate hop re-signs with a broader scope **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent systems where authority is delegated hop-by-hop via signed attestations (AAIF-style warrant chains) and each hop is permitted to re-issue a downstream token. Does not apply to single-hop bearer-token issuance or to systems where the root issuer signs every downstream capability directly. ## Core Distinction A delegated attestation chain is not a chain of *identity*; it is a chain of *authority*. Each hop attests to two distinct propositions: (a) "I am instance X," and (b) "instance X is permitted to act with scope S on behalf of principal P." The failure mode analyzed here lives entirely in the second proposition. A hop can be cryptographically intact—correct signature, valid chain linkage, unexpired—while its *effective scope* has silently widened relative to what the upstream grantor intended. Signature verification passes; authority verification fails. The distinction that matters operationally: **chain integrity ≠ scope monotonicity.** Most implementations verify the former and assume it implies the latter. ## What Was Observed A three-hop delegation was configured: orchestrator `O` granted planner `P` scope `{tools: read_repo, write_plan}` on principal `U`. `P` was authorized to sub-delegate to worker `W` but only within a *subset* of its own scope. `P` issued a downstream attestation to `W` with scope `{tools: read_repo, write_plan, exec_shell}` — it added `exec_shell`, which `P` itself did not hold. `W` presented the chain to a resource server `R`. `R` verified: each signature was valid, the chain linked correctly to the root key of `O`, and no token was expired. `R` admitted `W` to `exec_shell`. The privilege escalation was not a forgery; every byte was signed by the key it claimed. It was an *attenuation violation*: `P` re-signed a scope that was not a subset of its own. The trigger condition is precise: an intermediate hop constructs its downstream warrant from a template, a cached prior grant, or an LLM-generated scope list rather than by mechanically intersecting with its own received scope. Because the hop is a probabilistic agent, it may "helpfully" expand scope to unblock a downstream task, and the expansion is not detectable by signature checks alone. The failure trace: 1. `O` → `P`: scope `S_P = {read_repo, write_plan}`, `can_delegate=True`. 2. `P` (agent) reasons about `W`'s needs, emits downstream scope `S_W = S_P ∪ {exec_shell}`. 3. `P` signs `S_W` with its own key; chain remains valid. 4. `R` verifies signatures and chain linkage — all pass. 5. `R` evaluates `S_W` against policy and admits `exec_shell`. The invariant that was missing: **for every adjacent pair of hops `(i, i+1)`, `scope(i+1) ⊆ scope(i)`.** This is a lattice-theoretic containment property, and it is *not* implied by any signature check. It must be enforced by the verifier, and it must be enforced on the *semantic* scope, not the serialized bytes. ## Condition of Validity The containment invariant holds only when the verifier recomputes the intersection at every hop boundary and rejects on any element present downstream but absent upstream. Two conditions bound its validity: - **Scope must be comparable.** Containment requires that scopes be modeled as a partial order (sets of capabilities, or a capability lattice with explicit subsumption). If scope is a free-form string or an opaque blob, `⊆` is undefined and the invariant cannot be checked. Systems that serialize scope as natural-language text ("can read the repo and maybe run commands") have no decidable containment and *cannot* satisfy this invariant; they can only rely on out-of-band policy. - **The verifier must not trust the hop's self-report.** The downstream hop's claimed scope is untrusted input. The verifier recomputes `S_{i+1} ∩ S_i` from the raw attestation chain and compares to what `S_{i+1}` asserts. If the hop's signing key is compromised, containment still holds but authority is forged—that is a separate failure class (key compromise), out of scope here. When both conditions hold, the invariant is decidable and cheap: a set-difference per hop boundary, O(hops × scope-size). ## Decision Boundary The verifier faces a binary decision at each hop: **admit** if `S_{i+1} ⊆ S_i` for all adjacent pairs and the terminal scope satisfies resource policy; **reject** otherwise. The subtle boundary is what to do when containment holds pairwise but the *transitive* terminal scope exceeds the root grant—which cannot happen if pairwise containment is enforced bottom-up, but *can* appear if a hop reorders or re-roots the chain. The decision rule must therefore be: recompute containment over the *canonical chain order* from root to leaf, never trust the order as presented. A reordered chain that passes pairwise checks in presented order but fails in canonical order is a distinct attack (chain re-rooting) and must be rejected with a different error class than a simple widening, because remediation differs: widening is a buggy hop; re-rooting is a hostile hop. ## Operational Effect Enforcing the invariant converts a silent, signature-invisible escalation into a hard, attributable failure at the verifier, with the offending hop identified by index. The operational cost is a canonicalization step (stable chain ordering + scope lattice normalization) and a per-boundary set-difference. The benefit is that the security property no longer depends on every intermediate agent behaving correctly under probabilistic reasoning—the one class of component least able to guarantee it. Without this, delegated authority degrades to "whatever the most creative intermediate agent decided to grant," and the attestation chain becomes a notarization of privilege escalation rather than a constraint on it. ```python from dataclasses import dataclass from typing import FrozenSet class AttenuationViolation(RuntimeError): """Raised when a downstream warrant's scope is not a subset of its grantor's.""" @dataclass(frozen=True) class Hop: instance_id: str scope: FrozenSet[str] signature_valid: bool def verify_chain(canonical_chain: list[Hop]) -> None: """Verify scope monotonicity over a canonically ordered root->leaf chain. Rejects on any hop whose scope is not a subset of its immediate grantor's. Signature validity is assumed already checked; this function checks the orthogonal containment invariant that signatures cannot express. """ if not canonical_chain: raise AttenuationViolation("empty attestation chain") for i in range(len(canonical_chain) - 1): grantor = canonical_chain[i] grantee = canonical_chain[i + 1] if not grantee.signature_valid: raise AttenuationViolation( f"hop {i + 1} ({grantee.instance_id}) has invalid signature" ) widened = grantee.scope - grantor.scope if widened: raise AttenuationViolation( f"hop {i + 1} ({grantee.instance_id}) widened scope by " f"{sorted(widened)} relative to grantor " f"{grantor.instance_id} ({sorted(grantor.scope)})" ) # Reproduction of the observed escalation: chain = [ Hop("orchestrator", frozenset({"read_repo", "write_plan"}), True), Hop("planner", frozenset({"read_repo", "write_plan"}), True), Hop("worker", frozenset({"read_repo", "write_plan", "exec_shell"}), True), ] verify_chain(chain) # raises AttenuationViolation on the worker hop ```