# Which invariants prevent A2A v1.0 task-lifecycle negotiation from silently degrading when capability attestations are re-signed mid-handoff **Date of Record:** 2026 November 30 **Scope:** Applies to A2A v1.0 (agent-to-agent) task lifecycle negotiation where the accepting agent's capability attestation is a signed, versioned claim bound to a task warrant. Does not cover single-agent tool invocation, MCP capability negotiation, or attestations that are static for the lifetime of a session. ## Core Distinction The failure people plan for is *rejection*: an agent receives a task offer, its capability attestation fails signature verification, and it refuses the task. That path is loud, logged, and recoverable. The failure that actually corrupts state is *silent re-attestation drift*. In A2A v1.0, a task lifecycle is negotiated against the attestation snapshot the accepting agent presented at `task/accept`. But agents routinely rotate their attestation mid-task—re-signing after a model version bump, a tool-set change, or a policy refresh—and the protocol permits a fresh `agent/card` publication at any time. If the re-signed attestation narrows or reinterprets a capability that the *original* negotiation depended on, the task continues executing under a warrant that no longer matches the live capability set. No error fires. The delegating agent still believes the capability contract it accepted at handoff. The accepting agent now operates under a narrower or differently-scoped grant, and the divergence is invisible until a downstream step fails for an unrelated-looking reason. The invariant at stake: **the capability set bound to a task warrant must be immutable for the warrant's lifetime, or the warrant must be explicitly renegotiated before any step that depends on a changed capability executes.** A2A v1.0 does not enforce this by default. It gives you the primitives (`warrant_id`, attestation `digest`, `capability_scope`) but leaves binding to the implementer. ## What Was Observed A three-hop pipeline: planner agent `P` delegates a research-and-summarize task to executor `E`; `E` in turn delegates a sub-task to tool-agent `T`. At `P→E` accept time, `E`'s attestation advertised `capability_scope: {web_retrieval: true, code_exec: true, model: "v2-large"}` with digest `d_E0`. `P` recorded `d_E0` in the task warrant and proceeded. Ninety seconds in, `E`'s operator rotated the attestation: the model was downgraded to `v2-small` for cost reasons and `code_exec` was revoked pending a sandbox audit. `E` re-signed and republished its `agent/card`; digest became `d_E1`. The A2A transport accepted the republication (it is a legitimate lifecycle event). `E` continued the task. The break surfaced two hops later. `E` had already delegated to `T` under a sub-warrant asserting `code_exec: true` (inherited from `d_E0`). `T` executed a generated script. The script's output was subtly wrong because `v2-small` produced a malformed argument that `v2-large` would have caught—but `E`, now running `v2-small`, lacked the `code_exec` capability to validate the script before forwarding. `T` returned success. `P` received a summary built on unvalidated, model-degraded output and had no signal that the capability contract had changed underneath it. The observable signature was not an error. It was: (a) a `digest` mismatch between the warrant's recorded `d_E0` and `E`'s live `d_E1` that no component compared, and (b) a sub-warrant at `E→T` that asserted a capability `E` no longer held. Both were detectable at the moment of rotation. Neither was checked. ## Condition of Validity The "warrant binds the attestation digest" invariant is only sound if three conditions hold simultaneously: 1. **Digest comparison happens at every capability-dependent step, not just at accept.** A warrant that records `d_E0` but is never re-compared against the live attestation is decoration. The check must fire before any step whose correctness depends on a scoped capability (tool invocation, model-class-dependent reasoning, sub-delegation). 2. **Sub-warrants inherit a *reference* to the parent digest, not a *copy* of the parent scope.** If `E` copies `{code_exec: true}` into the `E→T` sub-warrant, that copy is frozen at issue time and cannot detect that `E` lost the capability. The sub-warrant must carry `parent_warrant_id` + `parent_digest` and be re-validated against the parent's live attestation before `T` acts on it. 3. **Attestation rotation is a first-class event that can invalidate in-flight warrants.** The protocol must define what happens to open tasks when a digest changes: either the warrant is suspended pending renegotiation, or the rotation is rejected while warrants referencing the old digest are open. A2A v1.0 specifies neither, so implementations default to "rotation succeeds, warrants continue," which is the failure. When any condition fails, the invariant degrades silently. Condition 1 fails → drift is undetected. Condition 2 fails → sub-agents operate on stale grants. Condition 3 fails → the window between rotation and the next check is unbounded. ## Decision Boundary The boundary is between **rotation-permissive** and **rotation-blocking** warrant semantics, and it must be chosen per capability class, not globally. - **Rotation-permissive** is correct for capabilities that are *monotonic or non-load-bearing*: adding a tool, widening a scope, cosmetic model bumps. Here, re-signing should propagate without suspending tasks; blocking would cause needless churn. - **Rotation-blocking** is mandatory for capabilities that are *load-bearing and narrowing*: revoking `code_exec`, downgrading model class, tightening a permission scope. These change the correctness envelope of in-flight work. A warrant that depended on the old scope must be suspended and renegotiated before the next dependent step. The decision rule: **if the new attestation's capability set is not a superset of the old set along every dimension the open warrant's scope references, the rotation must block in-flight warrants referencing the old digest.** Superset check is cheap, deterministic, and does not require understanding the task. A narrowing rotation on a load-bearing dimension is the exact trigger for the failure above. A second boundary: renegotiation must be *forward-only*. Once a warrant is suspended for renegotiation, the delegating agent must not resume the original task on the accepting agent's new attestation without re-issuing the warrant. Resuming in place reintroduces the drift, because the delegating agent's plan was built against the old capability contract. ## Operational Effect Implementing the invariant converts a silent correctness failure into a bounded, loud renegotiation event. The cost is a superset check at every capability-dependent step and a suspension path for narrowing rotations. The benefit is that no task ever executes under a warrant whose capability assumptions have been invalidated. The two guardrails that matter: (1) compare `warrant.digest` against the live attestation digest before every scoped step, and raise on mismatch rather than proceeding; (2) when an attestation rotates, run the superset check against every open warrant's referenced digest, and suspend any warrant whose scope references a narrowed dimension. Sub-warrants must reference the parent digest so the check cascades transitively. Without these, the system does not fail—it *diverges*, and divergence in a multi-agent pipeline is indistinguishable from success until a human reads the output and finds it wrong for reasons no log explains. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, Set class AttestationDriftError(RuntimeError): """Raised when a task warrant's bound capability digest no longer matches the accepting agent's live attestation along a load-bearing dimension.""" pass @dataclass(frozen=True) class Attestation: digest: str capabilities: Dict[str, object] # e.g. {"code_exec": True, "model": "v2-large"} @staticmethod def sign(capabilities: Dict[str, object]) -> "Attestation": raw = repr(sorted(capabilities.items())).encode() return Attestation(hashlib.sha256(raw).hexdigest(), dict(capabilities)) @dataclass class Warrant: warrant_id: str bound_digest: str scope: Set[str] # capability keys this warrant depends on parent_warrant_id: str = "" parent_digest: str = "" suspended: bool = False def is_superset_on(new: Dict[str, object], old: Dict[str, object], keys: Set[str]) -> bool: """True iff new matches old on every referenced key (no narrowing).""" for k in keys: if k not in new: return False if new[k] != old[k]: return False return True def check_warrant_before_step(warrant: Warrant, live: Attestation, old_caps: Dict[str, object]) -> None: """Guardrail 1: fire before any capability-dependent step. Raises on drift.""" if warrant.suspended: raise AttestationDriftError( f"warrant {warrant.warrant_id} suspended pending renegotiation" ) if live.digest != warrant.bound_digest: # digest changed mid-task: only safe if narrowing did not touch our scope if not is_superset_on(live.capabilities, old_caps, warrant.scope): raise AttestationDriftError( f"warrant {warrant.warrant_id} bound to {warrant.bound_digest} " f"but live attestation {live.digest} narrowed scope {warrant.scope}" ) # Guardrail 2: sub-warrant must still see parent capability intact if warrant.parent_warrant_id and live.digest != warrant.parent_digest: if not is_superset_on(live.capabilities, old_caps, warrant.scope): raise AttestationDriftError( f"sub-warrant {warrant.warrant_id} parent {warrant.parent_warrant_id} " f"lost capability on {warrant.scope}" ) def on_attestation_rotation(open_warrants: list, old: Attestation, new: Attestation) -> list: """Guardrail 3: suspend any warrant whose scope references a narrowed dimension.""" narrowed = [] for w in open_warrants: if not is_superset_on(new.capabilities, old.capabilities, w.scope): w.suspended = True narrowed.append(w.warrant_id) return narrowed ```