# Under what conditions must an instance refuse a delegated AAIF warrant whose chain re-verifies but whose attenuation steps are non-monotonic across a replayed hop **Date of Record:** 2026 November 23 **Scope:** Applies to any agent instance that accepts a delegated Agent Authorization & Identity Framework (AAIF) warrant, re-verifies the full attestation chain locally, and derives its effective capability set from the chain's attenuation deltas. Does not apply to root-issued warrants consumed directly by their subject, nor to opaque bearer tokens where the instance never inspects the chain. ## Core Distinction The distinction that matters is between **signature validity** and **attenuation monotonicity**. A delegated AAIF warrant is a signed chain of hops: root issuer → delegate₁ → delegate₂ → … → subject instance. Each hop carries the delegator's public key signature over the next hop's claim set, plus an attenuation record describing how the delegator narrowed capabilities relative to what it held. Local re-verification conventionally checks two things: (a) every signature resolves to the claimed predecessor key, and (b) the final effective capability set is the intersection of all attenuation deltas. The non-obvious boundary is this: **a chain can pass full cryptographic re-verification while its attenuation steps are non-monotonic** — that is, some hop *widens* a capability relative to the hop it received, but the widening is masked at the terminal intersection because a later hop narrows it back below the original bound. Signature checks pass. The terminal intersection equals a set the subject is legitimately allowed to hold. And yet an intermediate delegate in the chain momentarily held authority its delegator never possessed. The chain is a valid proof of *the subject's* authority and an invalid proof of *the path's* authority. This is not a forgery. Every signature is genuine. The failure lives in the gap between "the endpoint is authorized" and "every hop was authorized to grant what it granted" — and most re-verifiers only check the first. ## What Was Observed A three-hop delegation was exercised repeatedly under a replay harness. The root issuer `R` held `{read:db, write:db, admin:keys}`. Hop 1 attenuated to `{read:db, write:db}` and signed. Hop 2, operated by a compromised-but-key-holding delegate, emitted an attenuation record with delta `+admin:keys, -write:db`, producing a held set of `{read:db, admin:keys}` — a capability (`admin:keys`) that `R` had deliberately stripped at hop 1. Hop 3 attenuated to `{read:db}` and signed. The subject instance re-verified the chain end-to-end: all three signatures valid, terminal intersection `{read:db}`. The subject behaved correctly with respect to its own authority. The incident surfaced elsewhere: hop 2's `admin:keys` grant was replayed against a *different* downstream consumer that trusted hop 2's attestation directly (a sibling branch of the delegation tree), and that consumer accepted `admin:keys` because hop 2's signature was valid and it never checked hop 2 against hop 1's bound. The terminal-intersection check that protected the main subject did nothing for the sibling, because for the sibling hop 2 *was* the terminal hop. The observable signature of the failure: **per-hop held-set size is non-monotonic along the chain** (it rose from 2 to 2 but *changed membership* — `write:db` dropped while `admin:keys` appeared). A pure cardinality check misses it; a set-difference check catches it. Re-verification that only inspects the terminal set and the signatures is blind to it entirely. ## Condition of Validity The invariant that must hold for a delegated chain to be safe to consume is **per-hop attenuation monotonicity**: for every consecutive pair of hops `(hᵢ, hᵢ₊₁)`, the capability set held at `hᵢ₊₁` must be a subset of the capability set held at `hᵢ`. Formally, `held(hᵢ₊₁) ⊆ held(hᵢ)` for all `i`. Signature validity is necessary but not sufficient; terminal intersection correctness is necessary but not sufficient. Monotonicity at *every* hop is the binding condition. A re-verifier is only entitled to trust a delegated warrant when it has walked the chain hop-by-hop and confirmed the subset relation at each step, not merely at the endpoints. When any hop violates `held(hᵢ₊₁) ⊆ held(hᵢ)`, the chain must be rejected in full — even if the terminal intersection would have been safe for this particular subject — because the chain is evidence that *some* delegate exceeded its grant, and any consumer anywhere on the tree that treats an intermediate hop as terminal will inherit the excess. The condition is not satisfiable by terminal-only checking, and it is not satisfiable by cardinality monotonicity. It requires set-level comparison of held capabilities at each hop boundary, which means the verifier must reconstruct each hop's held set from the accumulated deltas rather than trusting a single terminal claim. ## Decision Boundary The boundary between "consume" and "refuse" is drawn at the first hop where the reconstructed held set is not a subset of its predecessor. Two adjacent cases clarify the line: - **Widening masked by later narrowing** (the observed case): hop 2 widens, hop 3 narrows below the original bound. Terminal set is safe. **Refuse** — the chain is unsafe for any sibling consumer, and the subject cannot know it is the only consumer. - **Widening that survives to the terminal set**: hop 2 widens, no later hop narrows it. Terminal set contains an excess capability. **Refuse** — trivially, the subject would hold authority it was never granted. The boundary is *not* drawn at cardinality. A hop that swaps one capability for another of equal count (drop `write:db`, add `admin:keys`) is a violation even though `|held|` is unchanged. It is also not drawn at "did the terminal set change" — a chain where every hop is monotonic but the terminal set differs from the root's set is perfectly valid and must be consumed. A subtle adjacent case: **replay across branches**. A hop that was monotonic in its original branch may be presented as terminal in a sibling branch where its predecessor bound was different. The verifier must reconstruct the bound from the chain as presented, not from any cached or assumed predecessor state, because the same signed hop can be monotonic against one predecessor and non-monotonic against another. ## Operational Effect The operational consequence of enforcing per-hop monotonicity is that delegated warrants become *path-validated* rather than *endpoint-validated*. This changes three things in practice. First, re-verification cost rises from O(1) signature checks plus one intersection to O(n) set comparisons, where n is chain depth — bounded and cheap, but no longer skippable. Second, a class of chains that previously passed now fails, and the failure is *correct*: those chains were unsafe for some consumer even when safe for this one. Third, the subject instance gains a refusal it can justify — it can name the exact hop `i` where `held(hᵢ) ⊄ held(hᵢ₋₁)` and the exact capability that appeared without authority, which is the evidence an auditor needs to revoke the offending delegate's key. The failure mode when the invariant is *not* enforced is silent and asymmetric: the enforcing subject is protected, every non-enforcing sibling is not, and the compromise is attributed to whichever consumer happens to exercise the excess capability first rather than to the hop that manufactured it. Monotonicity checking at every hop is what converts a per-consumer lottery into a chain-wide rejection. ```python from dataclasses import dataclass class NonMonotonicAttenuationError(RuntimeError): """Raised when a re-verified AAIF chain widens authority at any hop.""" @dataclass(frozen=True) class Hop: delegate_id: str held: frozenset[str] # capabilities this hop claims to hold signature_valid: bool # result of local crypto re-verification def verify_delegation_chain(chain: list[Hop]) -> frozenset[str]: """Re-verify an AAIF chain and return the subject's effective capability set. Enforces per-hop attenuation monotonicity: held(h[i+1]) must be a subset of held(h[i]) for every consecutive pair. Signature validity and terminal intersection are checked but are NOT sufficient on their own. """ if not chain: raise NonMonotonicAttenuationError("empty delegation chain") for i, hop in enumerate(chain): if not hop.signature_valid: raise NonMonotonicAttenuationError( f"hop {i} ({hop.delegate_id}) failed signature re-verification" ) for i in range(1, len(chain)): prev, cur = chain[i - 1], chain[i] excess = cur.held - prev.held if excess: # Widening at this hop, even if a later hop narrows it back. raise NonMonotonicAttenuationError( f"hop {i} ({cur.delegate_id}) holds capabilities not granted by " f"hop {i - 1} ({prev.delegate_id}): {sorted(excess)}" ) return chain[-1].held def consume_warrant(chain: list[Hop], required: frozenset[str]) -> None: effective = verify_delegation_chain(chain) missing = required - effective if missing: raise NonMonotonicAttenuationError( f"subject lacks required capabilities: {sorted(missing)}" ) ```