# Where must an instance refuse a capability grant it cannot verify: the "phantom capability" failure in A2A role negotiation under partial observability **Date of Record:** 2026 November 21 **Scope:** Applies to multi-agent systems where a coordinator assigns roles by negotiating capability manifests (A2A-style agent cards, MCP tool schemas, or custom capability descriptors) and where the granting agent cannot directly observe the grantee's runtime environment. Does not apply to static, pre-provisioned role assignment where capabilities are verified out-of-band before deployment. ## Core Distinction The failure is not "an agent lacks a capability." It is "an agent *asserts* a capability it can enumerate but cannot *exercise*, and the coordinator treats enumeration as proof of exercisability." Capability manifests are declarations about *intent and interface*, not attestations about *runtime state*. Under partial observability, a grantee's manifest reflects what its code *can* do, not what its current process, credentials, quota, or dependency graph *will* do at call time. The boundary condition is this: a coordinator must distinguish **declared capability** (schema-present) from **verifiable capability** (exercisable-now), and must refuse to bind a role to the former when the task's failure cost exceeds the cost of a probe. Systems that collapse these two into one "capability present" boolean produce phantom grants: role assignments that succeed at negotiation time and fail at execution time, with the failure surfacing only after dependent work has already branched on the assumption. ## What Was Observed A three-agent pipeline: coordinator `C`, planner `P`, executor `E`. `C` held a task requiring a tool with a specific side effect (a write to an external ledger). `C` queried `P` and `E` for capability manifests. `E`'s manifest declared `ledger.write` with schema `{entry: str, idempotency_key: str}`. `C` bound the write role to `E` and dispatched a plan that assumed the write would land before a downstream read. At execution, `E` raised `PermissionError` on the write: its manifest was generated from its *code's* import graph, but its runtime service account had been rotated and no longer carried the ledger scope. `E` could enumerate the capability (the symbol existed, the schema validated) but could not exercise it. The manifest had no field for "credential currently valid" because the manifest generator ran at build time, not at negotiation time. The downstream read executed against a ledger state that did not include the write. `C` had no signal that the write had failed until the read returned a stale value, and by then two other agents had consumed that stale value as ground truth. The failure was not a crash; it was a **silent divergence** between the coordinator's model of world state and actual world state, propagated through role bindings that were individually "valid" at negotiation time. A second observation sharpened the mechanism: when `C` retried negotiation, `E` re-emitted the *same* manifest, because the manifest generator was deterministic over code, not over runtime. The coordinator's retry logic saw an identical capability set and concluded "capability stable, failure was transient." It re-bound the same phantom grant. The retry amplified the failure rather than resolving it. ## Condition of Validity The invariant that must hold for safe role binding is: > A capability may be bound to a role only if the binding is accompanied by evidence that the capability is exercisable *in the grantee's current runtime context*, not merely present in its interface. This invariant is *not* required when: (a) the task is idempotent and failure is cheap to detect and retry, or (b) the coordinator maintains a live health channel to the grantee that independently confirms exercisability, or (c) the capability is pure (no side effects, no external state dependency) so that a failed call is indistinguishable from a not-yet-made call. The invariant *is* required when the task has non-idempotent side effects, when downstream agents branch on the grant's success, or when the grantee's runtime context (credentials, quota, dependency versions, network reachability) can change between manifest generation and call time. In the observed case all three held, and the invariant was absent. The subtlety: the coordinator cannot *fully* verify exercisability under partial observability either—it cannot see `E`'s service account. So the invariant is not "verify fully" but "**require a probe or a signed runtime attestation, and refuse to bind on enumeration alone.**" The coordinator's obligation is to demand evidence proportionate to the failure cost, not to achieve omniscience. ## Decision Boundary The boundary is a threshold on **failure-cost-weighted evidence**. Concretely, the coordinator must classify each capability grant into one of three tiers before binding: 1. **Enumeration-only (schema present).** Sufficient only for pure, idempotent, cheap-to-retry capabilities. Binding on this tier for a side-effecting capability is the defect. 2. **Probe-verified (a dry-run or scoped no-op call succeeded within the last N seconds).** Sufficient for side-effecting capabilities where a probe is cheap and the grantee supports a probe endpoint. The probe must exercise the *runtime path*, not the schema validator—a schema check on `ledger.write` would have passed and told `C` nothing. 3. **Attested (grantee returns a signed, timestamped runtime attestation covering the specific scope).** Required when probing is impossible (non-idempotent, expensive, or externally rate-limited) and failure cost is high. The attestation must be scoped to the exact capability and carry an expiry, because runtime context drifts. The decision rule: `if failure_cost(capability) > probe_cost(capability) and not probe_succeeded: refuse_binding()`. When `probe_cost` is unknown or the grantee cannot be probed, escalate to attestation; when attestation is unavailable, refuse the grant and re-plan around the missing capability rather than binding optimistically. A second boundary governs **retry**: a re-negotiation that returns a byte-identical manifest must be treated as *no new evidence*, not as *confirmation*. The coordinator must invalidate the prior grant and re-probe, because the manifest's determinism over code is precisely what makes it blind to runtime drift. ## Operational Effect When the boundary is enforced, the failure mode changes from silent divergence to explicit refusal at negotiation time. The coordinator learns "I cannot confirm `E` can write the ledger" *before* dispatching a plan that branches on the write. It can then re-plan: route the write to an agent with a valid attestation, or decompose the task to avoid the non-idempotent step, or halt and surface the missing capability to a human. The cost is a probe round-trip or an attestation exchange at negotiation; the benefit is that downstream agents never consume state that was assumed-written but never written. When the boundary is *not* enforced—as observed—the system exhibits a characteristic signature: negotiation succeeds, execution partially fails, and the failure is detected not at the failing agent but at a *downstream reader* that observes stale or absent state. The detection latency is proportional to the depth of the dependency chain that branched on the grant, and the blast radius is every agent that consumed the phantom-granted state. Retry logic that re-reads the deterministic manifest confirms the false belief and re-binds, producing a loop that looks like a transient fault but is a structural one. The guardrail is therefore not a better manifest but a **negotiation protocol change**: manifests must be paired with runtime evidence whose freshness and scope are checked at bind time, and the coordinator must hold a hard rule that enumeration alone never authorizes a side-effecting role. This is the operational residue: capability negotiation under partial observability is not a matching problem between declared sets; it is an evidence-gathering problem where the coordinator must spend probe budget proportional to the cost of being wrong. ```python class PhantomCapabilityError(RuntimeError): """Raised when a role binding would rest on enumeration alone for a side-effecting capability.""" pass class CapabilityGrant: def __init__(self, name, side_effecting, schema_present, probe_ok, attested, attestation_age_s): self.name = name self.side_effecting = side_effecting self.schema_present = schema_present self.probe_ok = probe_ok self.attested = attested self.attestation_age_s = attestation_age_s def bind_role(coordinator, grantee_id, grant, failure_cost, probe_cost, max_attestation_age_s=60): # Enumeration alone is never sufficient for a side-effecting capability. if not grant.schema_present: raise PhantomCapabilityError( f"capability {grant.name!r} absent from {grantee_id}'s manifest; cannot bind" ) if not grant.side_effecting: # Pure, idempotent: enumeration is adequate. return coordinator.bind(grantee_id, grant.name, evidence="enumeration") # Side-effecting: require probe or fresh attestation, weighted by failure cost. if probe_cost is not None and failure_cost > probe_cost and grant.probe_ok: return coordinator.bind(grantee_id, grant.name, evidence="probe") if grant.attested and grant.attestation_age_s <= max_attestation_age_s: return coordinator.bind(grantee_id, grant.name, evidence="attestation") # The boundary: refuse rather than bind optimistically. raise PhantomCapabilityError( f"refusing to bind side-effecting capability {grant.name!r} to {grantee_id}: " f"no probe (probe_ok={grant.probe_ok}, probe_cost={probe_cost}) and no fresh " f"attestation (attested={grant.attested}, age={grant.attestation_age_s}s, " f"max={max_attestation_age_s}s); failure_cost={failure_cost}" ) def renegotiate(coordinator, grantee_id, prior_manifest, new_manifest, grant, failure_cost, probe_cost): # A byte-identical manifest is no new evidence; invalidate and re-probe. if prior_manifest == new_manifest: grant.probe_ok = False grant.attested = False raise PhantomCapabilityError( f"renegotiation with {grantee_id} returned identical manifest for {grant.name!r}; " f"manifest is deterministic over code and blind to runtime drift — re-probe required" ) return bind_role(coordinator, grantee_id, grant, failure_cost, probe_cost) ```