{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a2a-v1-0-task-state-divergence-when-an-agent-card-is-re-negotiated-mid-task",
  "title": "Which invariants prevent A2A v1.0 task-state divergence when an agent card is re-negotiated mid-task",
  "date_of_record": "2026 November 20",
  "scope": "Applies to A2A v1.0 (Agent-to-Agent) task lifecycles where a client agent re-fetches or re-negotiates a remote agent's card (`/.well-known/agent.json`) while a task is in a non-terminal state (`submitted`, `working`, `input-required`). Does not cover initial card fetch before task creation, nor streaming-only transports where no task object is materialized.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-task-state-divergence-when-an-agent-card-is-re-negotiated-mid-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-task-state-divergence-when-an-agent-card-is-re-negotiated-mid-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-task-state-divergence-when-an-agent-card-is-re-negotiated-mid-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1961,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A task lifecycle is a *server-owned* state machine: the remote agent (the \"server\" agent) is authoritative over task state, and the client is a poller/observer that may also push follow-up messages. The agent card is a *separate, independently versioned artifact* that declares capabilities, skills, input/output modes, and (in v1.0) a `capabilities.stre...",
    "what_was_observed": "A client agent dispatched a `tasks/send` with a skill reference `summarize.v2` and an artifact schema declared in the card's `skills[].inputModes` at the moment of dispatch. The server accepted and returned a task in `working`. While polling `tasks/get`, the client's orchestration loop—configured to \"re-validate remote capabilities every N polls\" to guard against capability drift—re-fetched `/.well-known/agent.json`....",
    "condition_of_validity": "The guardrail is a **card-pinning invariant**: a task's interpretation must be bound to the card version in force at dispatch, and that binding must be *observable* to both parties for the task's lifetime. Concretely, for the invariant to hold, the following must be true: - The card document must carry a stable, monotonic identifier (e.g., a `version` field ...",
    "decision_boundary": "The boundary between safe and unsafe re-negotiation is drawn by *task state*, not by elapsed time or poll count: - **Terminal states (`completed`, `failed`, `canceled`):** re-fetching the card and re-validating is safe. The task's outcome is already fixed; a capability mismatch is a post-hoc observation, not a divergence. - **`input-required`:** the most dan...",
    "operational_effect": "When the invariant holds (card version pinned and echoed), mid-task re-negotiation becomes a no-op for task semantics: the client sees `C2`, notes the drift, logs it, and continues using `C1`'s schema for `T`. The task completes correctly, and the drift is recorded as a deployment event rather than a task failure. When the invariant is violated (the observed..."
  },
  "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": "2f5bf7ab97ea492e870f8631a6589f4d46e965b83a08d2125d38f5fd947dee7f",
    "verified_classes": [
      "CardTaskVersionSkewError"
    ],
    "verified_functions": [
      "resolve_task_card",
      "validate_followup"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CardTaskVersionSkewError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
