# When must an instance refuse a federated warrant: the liability-attribution gap at the policy-negotiation boundary **Date of Record:** 2026 November 24 **Scope:** Applies to cross-organization agent federation where an inbound agent presents a signed capability warrant (scope + delegation chain + liability clause) and the receiving organization must decide whether to admit, narrow, or reject it before any tool invocation. Does not cover intra-org agent meshes sharing a single trust root, nor pure transport-layer TLS/mTLS failures. ## Core Distinction The distinction that matters is between **capability negotiation** and **liability negotiation**, which most federation handshakes collapse into one step. In a capability handshake, the receiving agent answers: *"Am I permitted to let this peer do X?"* — a question about scope intersection. In a liability handshake, the receiving agent must answer: *"If this peer does X and it causes harm, whose principal is on the hook, and under which jurisdiction's rule?"* — a question about **attribution binding**, which is not derivable from scope intersection. The non-obvious failure: a warrant can be *capability-admissible but liability-unbound*. The scope sets intersect cleanly, the signature verifies, the delegation depth is within limits — every check a naive handshake performs passes — yet the warrant carries no resolvable liability clause for the *specific action class* the peer is about to take. An agent that admits such a warrant has silently assumed the liability of a foreign principal. This is the boundary condition this record addresses: the moment capability negotiation succeeds while liability attribution remains undefined, and the invariant that must fire *before* the first tool call rather than after. ## What Was Observed A federation between two agent platforms — call them Origin (O) and Receiver (R) — used a two-phase handshake: `offer_warrant` → `accept_warrant`, then execution. The warrant schema carried three fields relevant here: - `scope`: a set of action classes (e.g., `read:ledger`, `write:ticket`, `execute:payment`). - `delegation_chain`: ordered list of principal→agent hops, each signed. - `liability`: a map from action class to `{responsible_principal, jurisdiction, indemnity_cap}`. The observed failure trace: 1. O's agent constructed a warrant for a composite task: read a ledger, then *write a refund ticket* derived from the read. The `liability` map was populated for `read:ledger` but **omitted** `write:ticket`, because O's planner generated the liability map from the *declared* task spec, and the write step was added by a mid-execution re-plan after the warrant was minted. 2. R's `offer_warrant` handler computed `scope_intersection = O.scope ∩ R.allowed`. `write:ticket` was in both. Intersection non-empty → capability check passed. 3. R's handler then validated `delegation_chain` signatures and depth. Passed. 4. R's handler looked up `liability[action]` **only for actions in the initial scope manifest it had cached at session open**, not for the action actually about to be invoked. The lookup table was keyed on the cached manifest, so `write:ticket` resolved to a *default* liability entry — `responsible_principal = "origin-default"`, `indemnity_cap = 0`. 5. The agent proceeded. The refund ticket was written with a wrong amount (a downstream tool returned a stale exchange rate). R's auditor could not attribute the loss: `origin-default` disclaimed, and the indemnity cap of 0 meant no recovery path. The failure was not a signature forgery, not a scope escape, and not a timeout. It was a **liability-resolution fallthrough**: the absence of an explicit liability clause for an action class was silently coerced to a zero-cap default instead of halting the handshake. The capability layer said yes; the liability layer had no answer and defaulted to "no one." The re-plan is what made it non-obvious. Had the warrant been minted after the full plan, `write:ticket` would have carried a clause. The boundary is that **the set of action classes a peer may take is not fixed at warrant-mint time** — it can grow under re-planning — while the liability map is fixed at mint time. The gap between the mutable action set and the immutable liability map is where attribution leaks. ## Condition of Validity The invariant only holds — i.e., the receiver is only safe to admit — under the conjunction: 1. **Closure of the liability map over the action set.** For every action class the peer can reach through *any* reachable re-plan from the declared task, `liability` must contain an explicit entry. If the peer's planner can synthesize new action classes, the map is not closed and the warrant is under-specified. This is the condition that failed above. 2. **Liability lookup keyed on the invoked action, not the cached manifest.** The resolution must happen at the tool-call boundary against the concrete action class, with a *hard failure* on miss — never a default. 3. **Attribution binding is transitive across the delegation chain.** If O delegates to O′ which delegates to R, the `responsible_principal` must resolve to a principal that R has a standing legal relationship with (a signed federation agreement, a recognized jurisdiction). A valid signature from an unknown principal is *not* a valid liability binding. 4. **Jurisdiction compatibility.** The `jurisdiction` field must be in R's accepted set for that action class. A `write:payment` action under a jurisdiction R does not recognize is capability-admissible and liability-inadmissible. When any of these fails, the correct behavior is **refusal at handshake**, not admission-with-default. The warrant is not malformed — it is *under-determined*, and under-determination must be treated as a rejection, not a fallthrough. ## Decision Boundary The decision boundary is sharp and must be encoded as a single predicate evaluated before the first tool invocation: ``` admit(warrant, action) := signature_valid(warrant) ∧ delegation_depth_ok(warrant) ∧ action ∈ scope_intersection(warrant, receiver) ∧ action ∈ domain(warrant.liability) # closure ∧ jurisdiction_accepted(warrant.liability[action].jurisdiction, action) ∧ principal_known(warrant.liability[action].responsible_principal) ∧ indemnity_cap(warrant.liability[action]) ≥ required_floor(action) ``` The critical clause is `action ∈ domain(warrant.liability)`. If it is false, the handshake **must raise**, not default. The naive implementation replaces that clause with a lookup that returns a default record; the correct implementation makes the lookup *total-failing* — a miss is an error, not a value. There is a second, subtler boundary: **re-plan-time re-validation**. Because the peer can re-plan mid-execution and reach new action classes, the receiver must re-evaluate `admit(warrant, action)` at *every* tool-call boundary, not once at handshake. A warrant that was valid for the declared plan can become liability-unbound after a re-plan. The invariant is therefore not "validate once at handshake" but "validate at handshake *and* at each action boundary, with the same hard-fail semantics." The first check is an optimization; the second is the actual guard. The decision boundary for the *peer* is symmetric: before re-planning into a new action class, the peer must request a **warrant amendment** (a re-mint carrying the new liability clause) and wait for re-acceptance. A peer that re-plans without amending is the proximate cause of the gap; a receiver that defaults on lookup is the proximate cause of the loss. Both sides must enforce the boundary. ## Operational Effect With the hard-fail guard in place, the observed incident becomes a **handshake refusal** at step 4 instead of an unattributable loss. The receiver returns `liability_unresolved: write:ticket` to the peer, the peer's planner either amends the warrant (re-mint with the clause) or aborts the re-plan. The cost is a round-trip and a possibly failed task; the benefit is that no action executes under an undefined attribution. The secondary effect is on **audit replay**. Because the liability resolution is now keyed on the concrete action and logged with the warrant hash and the resolved clause, an auditor replaying the session can reconstruct *who was on the hook for each action* deterministically. Under the default-fallthrough behavior, the audit log recorded `origin-default` with cap 0 — a record that is technically present but legally empty, which is worse than absence because it *looks* like attribution. The third effect is a **negotiation asymmetry** that must be made explicit in the federation agreement: the receiver's `required_floor(action)` and `accepted_jurisdictions` are policy, not protocol. Two receivers with identical protocol versions can reach different admit decisions on the same warrant. This is correct — liability is a policy question — but it means the peer cannot predict admission from the protocol alone and must handle refusal as a first-class outcome, including the amendment path. A federation that treats `accept_warrant` as always-succeeding has hidden the boundary; one that treats refusal-with-reason as a normal transition has bounded it. The residual risk that remains even with the guard: a peer that *lies* about its declared plan (declares `read:ledger`, re-plans silently into `write:payment` without amendment) will be caught only if the receiver validates at every action boundary. This is why the per-action re-validation is not optional. The handshake guard bounds the declared plan; the per-action guard bounds the actual execution. Both are required; neither alone is sufficient. ```python from dataclasses import dataclass, field from typing import Mapping class LiabilityUnresolvedError(RuntimeError): """Raised when a federated warrant is capability-admissible but liability-unbound for the concrete action about to be invoked. This is a hard refusal, never a default. The receiver must not substitute a zero-cap or 'origin-default' principal, because doing so silently assumes the foreign principal's liability. """ @dataclass(frozen=True) class LiabilityClause: responsible_principal: str jurisdiction: str indemnity_cap: int @dataclass(frozen=True) class Warrant: scope: frozenset[str] delegation_chain: tuple[str, ...] liability: Mapping[str, LiabilityClause] @dataclass(frozen=True) class ReceiverPolicy: allowed_actions: frozenset[str] accepted_jurisdictions: frozenset[str] known_principals: frozenset[str] required_floor: Mapping[str, int] = field(default_factory=dict) def admit_action(warrant: Warrant, action: str, policy: ReceiverPolicy) -> LiabilityClause: """Evaluate the liability-binding predicate for one concrete action. Called at handshake AND at every tool-call boundary, because the peer's reachable action set can grow under mid-execution re-planning while the warrant's liability map is fixed at mint time. """ # Capability layer: scope intersection. if action not in warrant.scope or action not in policy.allowed_actions: raise LiabilityUnresolvedError(f"capability denied for {action!r}") # Liability layer: closure over the action set. A miss is an error, # not a default. This is the clause the naive handshake omits. if action not in warrant.liability: raise LiabilityUnresolvedError( f"liability_unresolved: {action!r} not in warrant liability map; " f"warrant must be amended (re-minted) before this action executes" ) clause = warrant.liability[action] if clause.jurisdiction not in policy.accepted_jurisdictions: raise LiabilityUnresolvedError( f"jurisdiction {clause.jurisdiction!r} not accepted for {action!r}" ) if clause.responsible_principal not in policy.known_principals: raise LiabilityUnresolvedError( f"responsible_principal {clause.responsible_principal!r} unknown to receiver" ) floor = policy.required_floor.get(action, 0) if clause.indemnity_cap < floor: raise LiabilityUnresolvedError( f"indemnity_cap {clause.indemnity_cap} below required floor {floor} " f"for {action!r}" ) return clause def execute_federated_step(warrant: Warrant, action: str, policy: ReceiverPolicy) -> None: # Re-validate at the action boundary; never rely on handshake-time cache. admit_action(warrant, action, policy) # ... invoke tool only after liability is bound ... ```