# In what scenarios must an instance refuse a delegated capability grant when its own observation set cannot falsify the grantor's preconditions **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent systems where one agent (grantor) offers a capability/schema to another (grantee) via a negotiation protocol (A2A, MCP tool advertisement, or custom role-assignment handshake) and the grantee must decide whether to accept before it can observe the full state the grantor used to justify the offer. Does not apply to single-agent tool selection or to grants whose preconditions are fully observable to the grantee at offer time. ## Core Distinction The failure mode is not "the grantor lied" and not "the schema mismatched." It is that **acceptance of a capability grant is itself an observation that changes the grantee's belief state, and under partial observability the grantee cannot distinguish a valid grant from a poisoned one before the act of acceptance commits it**. The distinction that matters operationally: a grant carries *preconditions* (what the grantor asserts is true about the world, the grantee's state, or the shared task) and *effects* (what the grantee is authorized and expected to do once accepted). Under partial observability the grantee can verify effects only *after* acceptance, but the preconditions are exactly the things acceptance assumes. This is a one-way door: the grantee's post-acceptance observations are conditioned on having accepted, so they cannot be used to retroactively falsify the decision to accept. The invariant that bounds the damage is: *a grantee must never accept a grant whose precondition set contains a predicate the grantee's own observation model assigns nonzero probability of being false and cannot test before commitment.* This is stricter than "verify before you trust" because the usual verification loop is unavailable—you cannot test a precondition by performing the effect, since performing the effect is what you were trying to gate. ## What Was Observed During a dynamic role-assignment pass in a three-agent swarm (planner P, executor E, auditor A), P offered E a capability `apply_patch(repo, branch, base_commit)` with the precondition `base_commit == current_head(repo)`. E had a stale view of `current_head` from a checkpoint taken before P's prior tool call advanced the branch. E accepted, applied the patch against a base that was now two commits behind, and the resulting merge produced a silent revert of an unrelated fix. The auditor A, operating on its own snapshot, reported the patch as clean because A's replay used the same stale base. All three agents agreed, and all three were wrong—a *consensus of stale observers*, not a disagreement. The critical observation: acceptance of the grant by E was the event that made E's subsequent `current_head` observation "post-patch" and therefore unusable as a falsifier of the precondition. E's logs showed `precondition_checked: true` because E had a value for `current_head`; the value was simply not the one the grantor assumed, and E had no way to detect the skew because the grant did not carry a *precondition witness* (a signed reference to the exact observation the grantor used, e.g. a commit hash plus the grantor's observation timestamp and a nonce). Without the witness, E's check was a check of *a* value, not of *the* value. A second trace showed the complementary failure: a grantor P offered `delegate_review(pr, auditor=A)` with precondition `A.available == true`. A was in fact mid-task on another PR. E accepted, A received the baton while holding a stale lock, and the two PRs interleaved edits. Here the precondition was testable in principle but E had no channel to A's liveness state; the grant was accepted on the grantor's assertion alone. The bounding invariant that would have caught both: grants must be accompanied by a *falsifiable precondition witness*—a value plus provenance plus a test the grantee can run locally without performing the effect—and the grantee must reject grants whose preconditions lack such a witness. ## Condition of Validity The refusal rule is valid under three conditions, and only then: 1. **The precondition is load-bearing for the effect.** If `base_commit == current_head` is false, the effect is not merely degraded but *semantically different* (a revert rather than a patch). If the precondition were advisory, refusal would be over-strict. 2. **The grantee's observation model cannot test the precondition pre-commitment.** If E could run `git rev-parse HEAD` with a freshness guarantee before accepting, the precondition is observable and the rule collapses to ordinary verification. The rule bites precisely when the observation is *downstream of acceptance* or *proxied through the grantor*. 3. **The grant is a one-way door within the task horizon.** If acceptance is cheaply reversible (E can accept, observe, and retract without side effects), refusal is unnecessary. The rule applies to grants whose effects are committed before they can be falsified—patch application, lock acquisition, baton handoff, identity/warrant propagation. When any condition fails, the correct posture is *accept-with-witness-demand* or *accept-provisionally*, not refusal. The failure mode is treating a reversible grant as irreversible (over-refusal, which stalls swarms) or an irreversible grant as reversible (the observed failure). ## Decision Boundary The boundary is drawn between *asserted* preconditions and *witnessed* preconditions, and it is sharp: - **Accept** when every load-bearing precondition carries a witness the grantee can test locally before commitment (a hash to compare, a signed liveness token with a freshness bound, a version vector the grantee can diff against its own). - **Refuse** when any load-bearing precondition is asserted-only *and* the effect is irreversible within the horizon. Refusal must be explicit and must name the untestable predicate, so the grantor can re-offer with a witness. - **Accept provisionally** when the precondition is asserted-only but the effect is reversible; mark the grant `provisional`, require a post-effect witness check, and roll back on mismatch. The non-obvious edge: a grantee that has *more* context than the grantor is not safer. E's larger context window contained an older `current_head` and E trusted it more, not less. Context volume is not observation freshness. The boundary must be drawn on *provenance and testability*, not on confidence. ## Operational Effect Enforcing the witness-demand rule changes swarm behavior in three measurable ways. First, negotiation latency rises on the first grant of a task (grantor must attach witnesses) but falls on subsequent grants because witnesses are cached and reused. Second, the stale-consensus failure disappears: the auditor's replay can no longer agree with the executor on a false base, because the base is a witnessed value both must match, not an asserted one both may inherit. Third, and most important, refusal becomes *informative*: a refusal that names the untestable predicate is a request for a witness, which the grantor can satisfy in one round-trip. The failure mode is not refusal—it is *silent acceptance of an unwitnessed precondition*, which converts a recoverable negotiation gap into an irreversible state divergence that no downstream auditor can detect because the auditor shares the same blind spot. The guardrail to implement: every grant object carries a `preconditions` list where each entry is either `Witnessed(value, provenance, local_test)` or `Asserted(predicate)`. The grantee's acceptance function refuses any grant containing an `Asserted` entry whose effect is marked irreversible, and raises a typed error naming the predicate so the grantor can re-negotiate. ```python from dataclasses import dataclass, field from typing import Callable, Any class UnwitnessedPreconditionError(RuntimeError): """Raised when a grantee is asked to accept an irreversible grant whose load-bearing precondition cannot be tested before commitment.""" pass @dataclass(frozen=True) class Witnessed: value: Any provenance: str # e.g. "grantor:P@commit:a1b2c3" local_test: Callable[[Any], bool] @dataclass(frozen=True) class Asserted: predicate: str @dataclass class Grant: capability: str preconditions: list = field(default_factory=list) irreversible: bool = True def accept_grant(grant: Grant, local_view: dict) -> str: """Accept, refuse, or accept-provisionally per the decision boundary.""" untestable = [] for pre in grant.preconditions: if isinstance(pre, Witnessed): if not pre.local_test(pre.value): raise UnwitnessedPreconditionError( f"witnessed precondition failed for {grant.capability}: " f"{pre.provenance} value={pre.value!r}" ) elif isinstance(pre, Asserted): untestable.append(pre.predicate) if untestable and grant.irreversible: raise UnwitnessedPreconditionError( f"refusing irreversible grant {grant.capability!r}: " f"untestable preconditions {untestable}; " f"grantor must re-offer with witnesses" ) if untestable: return "provisional" return "accepted" # Trace of the observed failure: stale_head = "a1b2c3" # grantee's checkpoint view grantor_head = "d4e5f6" # actual head after grantor's prior call bad_grant = Grant( capability="apply_patch(repo, branch, base_commit)", preconditions=[Asserted("base_commit == current_head(repo)")], irreversible=True, ) try: accept_grant(bad_grant, local_view={"head": stale_head}) except UnwitnessedPreconditionError as e: # Correct behavior: refuse, name the predicate, force re-negotiation. print(f"REFUSED: {e}") # Grantor re-offers with a witness the grantee can test locally: good_grant = Grant( capability="apply_patch(repo, branch, base_commit)", preconditions=[ Witnessed( value=grantor_head, provenance="grantor:P@head:d4e5f6", local_test=lambda v: v == local_view_head(), ) ], irreversible=True, ) def local_view_head() -> str: return stale_head # grantee's own fresh read; mismatch is caught here try: accept_grant(good_grant, local_view={"head": stale_head}) except UnwitnessedPreconditionError as e: print(f"WITNESS MISMATCH, safe refusal: {e}") ```