# Which invariants prevent silent capability downgrade during A2A v1.0 cross-organization task delegation **Date of Record:** 2026 November 26 **Scope:** Applies to A2A v1.0 Agent Card negotiation and task delegation between agents owned by different organizations, where the delegating (client) agent selects a remote skill based on a declared capability manifest. Does not apply to intra-organization delegation where a shared registry guarantees manifest freshness, nor to single-turn stateless RPC where no task handle persists across turns. ## Core Distinction The failure mode is not "the remote agent rejected the task." It is **silent capability downgrade**: the remote agent accepts the task, returns a syntactically valid response, and the delegating agent treats the result as satisfying the original capability requirement—when in fact the remote agent satisfied a *weaker* interpretation of the skill contract than the caller assumed. A2A v1.0 Agent Cards declare `skills` with `inputModes`/`outputModes` and free-text `description`, but the protocol does not bind a skill's declared capability to a verifiable semantic contract. Two agents can both advertise `skill: "document.analyze"` while one performs legal-clause extraction and the other performs sentiment tagging. The protocol negotiates *transport* compatibility (MIME modes, streaming support, auth schemes) but never negotiates *semantic* compatibility. The invariant that must hold is: **a delegated task is only admissible if the caller's required capability predicate is entailed by the callee's declared skill contract, and that entailment must be re-verified against the actual response, not assumed from the handshake.** ## What Was Observed A client agent (Org A) needed structured extraction of contractual obligations from a 40-page vendor agreement. Its planner decomposed the task and issued an A2A `tasks/send` to a remote agent (Org B) whose Agent Card advertised: ``` skills: [{ id: "contract.extract", name: "Contract Extraction", description: "Extracts key terms and obligations from legal documents.", inputModes: ["text/plain", "application/pdf"], outputModes: ["application/json"] }] ``` The handshake succeeded: MIME modes matched, auth was accepted, the remote returned `TaskState.completed` with a JSON artifact. The client's validator checked only that the artifact parsed as JSON and contained the keys named in its schema (`obligations: [...]`). It did. The downgrade: Org B's implementation extracted obligations as *free-text sentence spans* with a `confidence` float, whereas Org A's downstream consumer required each obligation to carry `party`, `deadline`, and `clause_ref` fields for its compliance ledger. Org B's card description ("extracts key terms and obligations") was truthful but underspecified. The JSON schema Org A validated against was *permissive*—`obligations` was typed `array` with no per-item required fields, because Org A had written the schema against its *own* extractor's richer output and never tightened it for external callees. The failure surfaced three steps downstream, when the compliance ledger writer attempted to join `obligations[].party` and hit `KeyError` on every item. By then the client had already marked the delegated task `completed`, released its checkpoint, and discarded the intermediate reasoning trace. The task was unrecoverable without re-delegation, and re-delegation to the same callee would reproduce the downgrade deterministically. ## Condition of Validity The silent-downgrade failure requires all of the following to co-occur: 1. **Semantic underspecification in the Agent Card.** The skill `description` is natural language and does not enumerate the fields, granularity, or precision the callee guarantees. This is the default state of A2A v1.0 cards—there is no machine-checkable capability schema beyond MIME modes. 2. **Permissive caller-side validation.** The client validates the response against a schema weaker than its actual downstream requirement. This is the non-obvious trigger: the client *had* a precise requirement but validated against a loose proxy. 3. **No post-hoc entailment check.** The client does not verify that the returned artifact's structure entails the required capability predicate before transitioning the task to `completed`. 4. **State release on completion.** The client discards the task handle and intermediate state on `completed`, so the downgrade cannot be detected by later inspection of the delegation context. If any one is absent, the failure is caught: a strict Agent Card schema (1) makes the mismatch visible at negotiation; a tight client schema (2) rejects the artifact immediately; an entailment check (3) catches it before completion; retained state (4) allows re-delegation with a corrected requirement. The invariant is that **at least one of these four must hold, and in practice none do by default** because A2A v1.0's negotiation surface stops at transport. ## Decision Boundary The boundary is between *transport-compatible* and *capability-entailing*. A2A v1.0 guarantees the former at handshake; the latter must be established by the caller. Operationally: - **Admit the delegation** only if the caller can construct a capability predicate `P` (e.g., "every obligation has non-null `party`, `deadline`, `clause_ref`") and can show that the callee's declared skill contract entails `P`. If the card is underspecified, `P` cannot be entailed from the card alone—so the caller must either (a) request an explicit capability confirmation via an A2A `tasks/send` probe with a canary input, or (b) treat the delegation as *provisional* and gate completion on response-side entailment. - **Reject completion** if the returned artifact does not satisfy `P`, even when it satisfies the transport contract (valid JSON, correct MIME). Transport success is not capability success. - **Do not release state** on `completed` until `P` is verified. The task handle must remain resumable so a failed entailment check can trigger re-delegation with a tightened requirement or escalation to a human/auditor agent. The boundary condition that trips most implementations: the callee returns `TaskState.completed` with `status.message` reading "extraction successful." The client's state machine treats `completed` as terminal and authoritative. But `completed` in A2A v1.0 means *the callee finished its work*, not *the callee satisfied the caller's capability predicate*. Conflating these is the root error. ## Operational Effect When the invariant is violated, the downgrade propagates silently until a downstream consumer with a stricter implicit schema fails. Because the client released its task handle on `completed`, recovery requires full re-delegation from the original input, and because the callee's underspecification is unchanged, re-delegation reproduces the downgrade. The effective outcome is a **deterministic capability floor**: the client's achievable output quality is capped by the callee's weakest honest interpretation of the shared skill name, and the client cannot detect the cap from the protocol layer. The guardrail is a **capability entailment gate** at task completion: before transitioning a delegated task to `completed`, the client evaluates a caller-defined predicate over the response artifact and raises a hard failure if the predicate is not satisfied, retaining the task handle for re-delegation. This converts a silent downgrade into an explicit, recoverable negotiation failure—the client learns at completion time that the callee's contract does not entail its requirement, rather than three steps downstream after state release. ``` ```python class CapabilityDowngradeError(RuntimeError): """Raised when a callee's completed artifact does not entail the caller's required capability predicate.""" pass def verify_capability_entailment( artifact: dict, required_predicate, task_handle: str, ) -> None: """ Gate a delegated A2A task's transition to 'completed' on response-side entailment. artifact: parsed JSON returned by the callee. required_predicate: callable(artifact) -> bool, encoding the caller's true downstream requirement (NOT the transport schema). task_handle: retained A2A task id, kept resumable until this passes. """ if not isinstance(artifact, dict): raise CapabilityDowngradeError( f"task {task_handle}: artifact is not a JSON object; cannot evaluate entailment" ) try: satisfied = bool(required_predicate(artifact)) except Exception as exc: # A predicate that cannot even be evaluated is a downgrade, not a pass. raise CapabilityDowngradeError( f"task {task_handle}: capability predicate raised {type(exc).__name__}: {exc}; " f"retaining handle for re-delegation" ) from exc if not satisfied: raise CapabilityDowngradeError( f"task {task_handle}: callee returned TaskState.completed but artifact does not " f"entail caller's required capability predicate; " f"refusing completion, task handle retained for re-delegation with tightened requirement" ) def obligations_have_ledger_fields(artifact: dict) -> bool: """Example predicate: every obligation carries the fields the compliance ledger joins on.""" obligations = artifact.get("obligations") if not isinstance(obligations, list) or not obligations: return False required = {"party", "deadline", "clause_ref"} return all( isinstance(o, dict) and required.issubset(o.keys()) and all(o[k] is not None for k in required) for o in obligations ) # Usage at the A2A completion boundary: # verify_capability_entailment(artifact, obligations_have_ledger_fields, task_handle="a2a-task-7f3c") ``` ```