# In what scenarios must an instance refuse a delegated capability warrant that verifies cryptographically but violates the delegator's policy-closure invariant **Date of Record:** 2026 November 25 **Scope:** Applies to cross-organization agent federations where Agent A (org X) delegates a capability to Agent B (org Y) via a signed warrant (e.g., a macaroon or biscuit token) that carries attenuations and is co-signed by an intermediate policy broker. Does not apply to single-org delegation, nor to bearer-token capability grants without embedded policy chains. ## Core Distinction The failure mode is not signature forgery and not warrant expiry. It is **policy-closure divergence**: a warrant that is cryptographically valid, unexpired, and correctly attenuated along its signature chain, yet whose embedded policy set is not closed under the delegator's own obligations. Two distinct things verify independently and are routinely conflated: - **Cryptographic validity** — every signature in the delegation chain checks out against the claimed issuer keys; the attenuation chain is monotone (no capability was *added*). - **Policy closure** — the union of (a) the delegator's local obligations, (b) the receiving org's admission policy, and (c) any broker-injected constraints remains *satisfiable* and *entailed* by the warrant's caveats. A warrant can pass (1) and fail (2). The receiving instance must treat these as separate gates. Most federation implementations collapse them into "signature verified → execute," which is exactly the boundary that leaks. ## What Was Observed A three-party federation: Org X's planner agent (`planner@x`) delegated `read:records` + `invoke:summarizer` to Org Y's worker (`worker@y`), brokered through `broker@z`. The warrant chain was: ``` planner@x --(warrant W1, caveat: region=EU, purpose=audit)--> broker@z broker@z --(warrant W2 = attenuate(W1, max_calls=50))--> worker@y ``` `worker@y` verified W2: signatures valid, `max_calls` attenuation monotone, `region=EU` and `purpose=audit` caveats intact. It executed. The violation: Org Y's own admission policy required `data_residency=EU` **and** `subprocessor_approved=true` for any `read:records` invocation. The broker had injected `max_calls` but had no visibility into Y's admission policy, and X's warrant never carried a `subprocessor_approved` caveat because X did not know Y required it. The intersection of obligations was **unsatisfiable**, but each party's local check passed because no party evaluated the *union*. The concrete trace: 1. `worker@y` receives W2. Runs `verify_signatures(W2)` → OK. 2. Runs `check_caveats(W2, local_context)` → checks only caveats *present* in W2 (`region`, `purpose`, `max_calls`). All satisfied. 3. **Never checks caveats *required* by Y's admission policy but absent from W2.** `subprocessor_approved` is missing; absence is treated as "not constrained" rather than "unmet obligation." 4. Executes `read:records`, exfiltrating records to a summarizer subprocessor that Y's compliance policy forbids without explicit approval. The bug is a **default-open interpretation of absent caveats**. In policy-closure terms: the warrant's caveat set `C_W` must *entail* the receiver's obligation set `O_Y`. Checking `C_W ⊨ c` for each `c ∈ C_W` is trivially true and useless; the invariant is `C_W ⊨ O_Y`, which requires enumerating `O_Y` and confirming each obligation is *positively discharged* by some caveat, not merely un-contradicted. ## Condition of Validity The invariant that must hold for a delegated warrant to be safely executable is: > **Closure invariant:** For receiver `R` with obligation set `O_R`, a warrant `W` is executable iff `C_W ⊨ O_R`, where entailment is *positive* — every obligation in `O_R` is discharged by an explicit caveat in `C_W` (or by a caveat the receiver itself can inject and re-sign under its own authority). Absence of a caveat that would *constrain* an obligation is a failure, not a pass. This holds only when: - `O_R` is **enumerable and stable** at admission time. If Y's obligations are dynamic (e.g., depend on the data classification discovered mid-execution), closure must be re-checked at each capability use, not just at warrant receipt. - The broker is **not trusted to know** `O_R`. The broker attenuates along the *delegator's* policy dimension only. Closure against `O_R` is the receiver's non-delegable duty. - Caveats are **monotone and additive**. If any caveat can *widen* capability (e.g., a `purpose=*` wildcard), entailment must be checked against the widened set, and the receiver must reject warrants whose caveats are not in conjunctive normal form over its obligation predicates. When obligations depend on runtime-discovered state, closure is a **per-use** predicate, not a per-warrant one — the invariant degrades to a re-entrant check and the failure mode reappears at the first use that discovers new state. ## Decision Boundary The receiver must distinguish three outcomes that naive verification collapses into one: | Signature | Caveat-against-self | Closure `C_W ⊨ O_R` | Action | |-----------|--------------------|--------------------|--------| | valid | pass | **fail** | **Reject + escalate** — do not execute, do not silently downgrade | | valid | pass | pass | Execute | | valid | fail | — | Reject (ordinary caveat violation) | | invalid | — | — | Reject (ordinary forgery) | The non-obvious boundary is row 1. The correct response is **not** to execute with a warning, and **not** to strip the offending capability and execute the remainder — because stripping changes the capability set in a way the delegator did not authorize (the delegator's `purpose=audit` caveat may require the *full* capability to be meaningful; a partial execution under a narrowed capability can still violate the delegator's intent). The bounded response is: reject, emit a structured `ClosureViolation` naming the specific unmet obligation, and return control to the delegator so *it* can re-delegate with the missing caveat if its own policy permits. Closure failure is a **delegation-shape error**, not a runtime error, and must be surfaced to the delegating instance, not swallowed at the receiver. Guardrail: the receiver's admission layer must maintain `O_R` as an explicit, versioned set of obligation predicates, and `check_closure(W, O_R)` must iterate `O_R` (not `C_W`). An empty `O_R` must be a deliberate, audited configuration — never a default. ## Operational Effect Without the closure gate, cross-org federations exhibit **silent obligation erosion**: each hop in the delegation chain attenuates only along the dimension its issuer knows, and obligations accumulate from parties the warrant never visited. The erosion is invisible to signature verification and to per-caveat checking, so it surfaces only as a downstream compliance incident (data sent to an unapproved subprocessor, records read outside residency) long after the warrant was "verified." The blast radius scales with chain depth: an N-hop chain has N receivers each potentially holding obligations the warrant cannot discharge, and the probability that at least one obligation is unmet grows with the number of distinct orgs in the chain. The fix is architectural, not cryptographic: **closure is checked at the receiver against the receiver's obligations, per use, with positive discharge required.** The following reference implementation encodes the gate and its failure. ```python from dataclasses import dataclass, field from typing import Callable, Dict, Set class ClosureViolation(RuntimeError): """Raised when a cryptographically valid warrant does not entail the receiver's obligation set. This is a delegation-shape error, not a runtime error: it must be surfaced to the delegator, never swallowed.""" def __init__(self, warrant_id: str, unmet: Set[str]): self.warrant_id = warrant_id self.unmet = unmet super().__init__( f"warrant {warrant_id} fails policy closure; unmet obligations: " f"{sorted(unmet)}" ) @dataclass(frozen=True) class Warrant: warrant_id: str issuer: str signature_valid: bool caveats: Dict[str, str] # caveat name -> value, additive only capability: str @dataclass class ReceiverPolicy: org: str # obligation name -> predicate over caveat value; must be POSITIVELY discharged obligations: Dict[str, Callable[[str], bool]] = field(default_factory=dict) def check_closure(self, w: Warrant) -> None: # Iterate O_R, NOT C_W. Absence of a caveat is a failure, not a pass. unmet: Set[str] = set() for name, predicate in self.obligations.items(): if name not in w.caveats: unmet.add(f"{name}:absent") continue if not predicate(w.caveats[name]): unmet.add(f"{name}:unsatisfied") if unmet: raise ClosureViolation(w.warrant_id, unmet) def admit(w: Warrant, policy: ReceiverPolicy) -> None: if not w.signature_valid: raise ClosureViolation(w.warrant_id, {"signature:invalid"}) policy.check_closure(w) # gate 2: positive entailment C_W |= O_R # --- reproduction of the observed failure --- w2 = Warrant( warrant_id="W2", issuer="broker@z", signature_valid=True, caveats={"region": "EU", "purpose": "audit", "max_calls": "50"}, capability="read:records", ) y_policy = ReceiverPolicy( org="Y", obligations={ "region": lambda v: v == "EU", "subprocessor_approved": lambda v: v == "true", }, ) try: admit(w2, y_policy) # signature OK; closure fails on subprocessor_approved except ClosureViolation as e: # correct bounded response: reject + escalate to delegator, do NOT execute # and do NOT strip the capability and run a narrowed remainder escalate_to_delegator(e) ```