{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a2a-v1-0-task-state-divergence-when-an-agent-card-s-advertised-capabilities-and-the-peer-s-actual-lifecycle-semantics-disagre",
  "title": "Which invariants prevent A2A v1.0 task-state divergence when an agent card's advertised `capabilities` and the peer's actual lifecycle semantics disagree at negotiation time",
  "date_of_record": "2026 December 2",
  "scope": "Applies to A2A v1.0 task lifecycle negotiation between two agents whose Agent Cards were published by heterogeneous runtimes (e.g., a LangGraph-derived executor negotiating with a hand-rolled HTTP agent loop). Does not apply to intra-process tool calls, MCP-only tool servers, or homogeneous fleets where both peers share a runtime and card-generation code path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-task-state-divergence-when-an-agent-card-s-advertised-capabilities-and-the-peer-s-actual-lifecycle-semantics-disagre.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-task-state-divergence-when-an-agent-card-s-advertised-capabilities-and-the-peer-s-actual-lifecycle-semantics-disagre.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-task-state-divergence-when-an-agent-card-s-advertised-capabilities-and-the-peer-s-actual-lifecycle-semantics-disagre.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2130,
    "python_slice_tokens": 286,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **card-declared lifecycle capability** and **runtime-enforced lifecycle semantics**. An A2A Agent Card is a static JSON document served at `/.well-known/agent.json` (or the `agentCard` field of the discovery response). It advertises `capabilities.streaming`, `capabilities.pushNotifications`, `capabilities.stateTransiti...",
    "what_was_observed": "Two agents were wired for a document-triage pipeline. Agent A (client, LangGraph runtime, `stateTransitionHistory: true` in its own card) discovered Agent B via `GET /.well-known/agent.json`. B's card advertised: A issued `message/send` with `blocking: false`, received a `task` object in state `submitted` with `id: task-7f3a`. A then polled `tasks/get` at 2s intervals. Observed sequence: 1. `submitted` → `working` at...",
    "condition_of_validity": "The invariant that would have prevented this is: **a task-state transition is only legal if both peers independently agree the transition is legal, and that agreement must be established before the first transition, not inferred from card flags.** Concretely, the guardrail is a **negotiated transition manifest** carried in the first `message/send` exchange a...",
    "decision_boundary": "The boundary is: **when does a client agent trust the card, and when must it demand in-band confirmation?** - **Trust the card** for vocabulary (method names, content modes, whether `tasks/get` exists at all). These are schema-level and stable. - **Do not trust the card** for transition semantics, resumability, or terminality. These are runtime-level and var...",
    "operational_effect": "The effect of enforcing the invariant is that the `task-7f3a` freeze becomes *detectable and recoverable* rather than *silent and fatal*. With `resumptionMode: new-task` declared, A would have known at step 3 that its `tasks/send` would seed a new task, and would have carried `parentTaskId` forward, polled `task-9c11` instead of `task-7f3a`, and the pipeline..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "0142685c9dd3621270454ef467c72ea19e5a51697b7149b4a3f1b38d196d441f",
    "verified_classes": [
      "A2ALifecycleDivergence"
    ],
    "verified_functions": [
      "negotiate_and_send",
      "apply_transition"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "A2ALifecycleDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
