# Under what conditions must an instance refuse to attenuate a delegated macaroon capability token when the requested caveat is unverifiable at mint time **Date of Record:** 2026 November 29 **Scope:** Applies to any agent that mints attenuated macaroon-style capability tokens on behalf of a downstream delegate (A2A handoff, MCP tool delegation, sub-agent spawn) where caveats are added without the minter possessing the authority to evaluate them. Does not apply to root-authority minting or to tokens attenuated only by caveats the minter can itself discharge locally. ## Core Distinction Attenuation and authorization are different operations, and macaroon semantics silently conflate them. Adding a caveat to a macaroon is *always* permitted by the algebra — a caveat can only narrow the token, never widen it, so any holder can append any predicate. But a delegated agent is not a root authority: it holds a token whose remaining authority is bounded by caveats *it cannot discharge alone*. The failure mode is not "the delegate gained too much authority." It is the inverse: **the delegate mints a child token whose caveats are syntactically valid, cryptographically bound, and semantically unsatisfiable by anyone in the chain**, producing a token that verifies its HMAC chain perfectly yet can never be redeemed. The parent believes it delegated a capability; it actually delegated a dead token. This is a continuity failure, not a security failure, and it does not trip any signature check. The sharp mechanism: a macaroon's caveat set is a *conjunction evaluated at redemption time by the verifier*, but the minter's decision to append a caveat is made *at mint time without the verifier's context*. When those two contexts diverge — the minter cannot evaluate the predicate it is binding — the minter is writing a promise it cannot keep on behalf of a party it cannot see. ## What Was Observed A three-hop delegation chain: orchestrator `O` holds a root macaroon `M0` scoped to `resource=reports, expiry<24h`. `O` delegates to planner `P` by appending `caveat: agent_class=planner`. `P` delegates to worker `W` by appending `caveat: task_queue=batch-7`. `W` attempts redemption against the report service. The report service's verifier discharges caveats in order. It can evaluate `resource`, `expiry`, and `agent_class` (it reads the caller's attested identity). It has **no notion of `task_queue`** — that predicate is meaningful only inside `P`'s internal scheduler, which the report service never talks to. The verifier reaches `task_queue=batch-7`, cannot discharge it, and rejects. The macaroon chain is cryptographically intact; every signature verifies; the token is nonetheless worthless. The non-obvious part: `P` had no way to know this at mint time. `P` was reasoning under the assumption that any caveat it could *name* it could *bind*, because the macaroon API accepted the string. The API's permissiveness (attenuation is always legal) masked the semantic precondition (attenuation is only *useful* when the eventual verifier can discharge the caveat). `P`'s probabilistic planner generated a plausible-looking scoping caveat from its own internal vocabulary and committed it into an immutable, signed structure. Because macaroons are append-only and the caveat is now bound into the HMAC chain, `W` cannot strip it — the only recovery is for `P` to re-mint from `M0`'s authority, which it no longer holds after handoff. The chain is bricked at hop 3. We observed the same class three times in a week with different surface strings: `region=eu-west` (verifier only knew `region=eu`), `model_family=gpt-4o` (verifier's allowlist keyed on `model_family=o-series`), and `budget_tier=gold` (verifier had never been taught tiers). In each case the minter was a mid-chain agent, the caveat was locally meaningful, and the verifier's discharge vocabulary was a strict subset of the minters'. ## Condition of Validity A mid-chain agent `P` may attenuate `M` with caveat `c` **if and only if** at least one of the following holds: 1. `P` can discharge `c` itself and the caveat is a *local* predicate the verifier is contractually known to ignore (i.e., `c` is discharged by `P` before the token leaves `P`, so it never reaches the downstream verifier); or 2. `P` possesses a signed *discharge-vocabulary manifest* from the eventual verifier enumerating the exact predicate keys and value grammars it can evaluate; or 3. `c` is drawn from a closed, verifier-published caveat schema negotiated during capability handshake (the A2A/MCP capability-negotiation step must carry the verifier's caveat grammar, not merely its tool list). Absent all three, `P` must **not** attenuate. It must either pass `M` through unattenuated (accepting that it cannot narrow scope) or refuse the delegation and escalate to `O`. The invariant is: *a caveat may only be bound by an agent that can name the party who will discharge it.* Attenuation is not a local operation even though the API makes it look like one. The subtle corollary: condition 2 cannot be satisfied by inference. `P`'s belief that "the report service probably understands `task_queue`" is exactly the probabilistic-reasoning failure this boundary guards against. The manifest must be a signed artifact in the handoff, not a model prior. ## Decision Boundary The boundary is crossed the moment a minter appends a caveat whose discharge authority lives in a *different trust domain* than the minter, without a manifest proving that domain can evaluate it. Concretely: - **Same-domain caveats** (`P` adds `c`, `P`'s own verifier discharges `c` before forwarding): safe, because the caveat is consumed before it reaches a foreign verifier. This is the "local narrowing" pattern and is the only attenuation a delegated agent should perform by default. - **Cross-domain caveats with manifest** (`P` adds `c`, verifier `V` publishes a signed grammar containing `c`'s key): safe, because the binding is grounded in `V`'s declared vocabulary. - **Cross-domain caveats without manifest**: boundary violation. The token will either be rejected (dead capability) or — worse — *accepted by a verifier that silently ignores unknown caveats*. That second case is the dangerous one: a lenient verifier that treats undischargeable caveats as no-ops will honor a token that the minter believed was narrowed. `P` thought it scoped to `task_queue=batch-7`; the verifier ignored the caveat and granted full `M0` scope. Attenuation became widening-by-omission. So the decision boundary has two edges: strict verifiers produce dead tokens, lenient verifiers produce over-broad tokens, and the minter cannot tell which it faces without the manifest. Both edges are failures of the same missing precondition. ## Operational Effect Enforce a **manifest-gated attenuation** rule at every mid-chain mint. Before appending any caveat, the minter checks the handoff's signed discharge-vocabulary manifest for the caveat's predicate key and value grammar. If absent, the minter refuses to attenuate and either forwards `M` unchanged (and records that it could not narrow) or escalates. This converts a silent continuity break into an explicit, logged refusal at the hop where authority is still intact — the only point at which recovery is possible, since macaroons are append-only and a bad caveat cannot be stripped downstream. The guardrail also forces the capability-negotiation handshake to carry caveat grammar, not just tool names. That is the architectural fix: the verifier's discharge vocabulary becomes part of the negotiated contract, so a minter's caveat is grounded in a signature rather than a prior. Without it, every mid-chain agent is minting promises against a verifier it has never met, and the only thing standing between the chain and a dead or over-broad token is luck about which verifier it happens to hit. ```python class UnverifiableCaveatError(RuntimeError): """Raised when a mid-chain minter attempts to bind a caveat whose discharge authority is outside its trust domain and no signed discharge-vocabulary manifest covers the predicate.""" pass def attenuate(macaroon, caveat_key, caveat_value, manifest, minter_domain): """ Append a caveat to a delegated macaroon, but only if the minter can ground the binding in either local discharge or a signed manifest from the eventual verifier. manifest: dict mapping predicate_key -> (verifier_domain, value_grammar) as published in the handoff's capability negotiation. """ if not manifest: raise UnverifiableCaveatError( f"minter {minter_domain!r} has no discharge-vocabulary manifest; " f"cannot bind caveat {caveat_key}={caveat_value!r}" ) entry = manifest.get(caveat_key) if entry is None: raise UnverifiableCaveatError( f"caveat key {caveat_key!r} absent from verifier manifest; " f"binding it would produce a token no downstream verifier " f"can discharge (or one a lenient verifier silently ignores)" ) verifier_domain, grammar = entry if not grammar.accepts(caveat_value): raise UnverifiableCaveatError( f"value {caveat_value!r} violates verifier grammar for " f"{caveat_key!r} published by {verifier_domain!r}" ) # Only now is the attenuation grounded in a signature rather than a prior. return macaroon.add_first_party_caveat(f"{caveat_key}={caveat_value}") ```