{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-agent-card-capability-drift-from-silently-forking-task-state-across-a2a-v1-0-vendors",
  "title": "Which invariants prevent Agent Card capability drift from silently forking task state across A2A v1.0 vendors",
  "date_of_record": "2026 November 24",
  "scope": "Applies to A2A v1.0 task orchestration where a client agent discovers a remote agent's capabilities via an Agent Card, then drives a multi-turn task (`submitted → working → input-required → completed`) with streamed artifacts. Does not cover single-turn stateless invocations or intra-process tool calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-capability-drift-from-silently-forking-task-state-across-a2a-v1-0-vendors.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-capability-drift-from-silently-forking-task-state-across-a2a-v1-0-vendors.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-capability-drift-from-silently-forking-task-state-across-a2a-v1-0-vendors.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1524,
    "python_slice_tokens": 282,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the remote agent returned a wrong answer.\" It is that the *Agent Card* — the discovery-time contract advertising `skills`, `capabilities`, and supported `inputModes`/`outputModes` — is a **point-in-time snapshot**, while the task lifecycle is a **long-lived, stateful session** whose intermediate states (`input-required`, artifact chunk st...",
    "what_was_observed": "A client agent fetched `GET /.well-known/agent.json` from vendor B at T0, receiving a card declaring `capabilities.streaming: true` and `defaultOutputModes: [\"application/json\"]` for skill `invoice-reconcile`. It opened a task, received `status: working`, then a `status: input-required` with a `TaskStatus.message` requesting a clarification payload. The client paused, gathered user input (a human-in-the-loop delay of...",
    "condition_of_validity": "The invariant that must hold for a mid-task resume to be safe is: > **Card-version pinning invariant:** For the lifetime of a task, every state transition on the server MUST be validated against the Agent Card version that was current at task *creation*, not at transition time — OR the server MUST reject any resume whose card version differs and surface that...",
    "decision_boundary": "The boundary between \"safe to resume\" and \"fork risk\" is whether the resume response's `TaskStatus` carries a card/schema fingerprint that the client can compare against its pinned creation-time card. Concretely: - If the server echoes a `metadata.cardVersion` (or equivalent) matching the client's pinned value → resume is on the same contract, proceed. - If ...",
    "operational_effect": "Practically, this means a client orchestrating cross-vendor A2A tasks must implement a **pinned-card task ledger**: store the full Agent Card (or its hash) alongside each task ID at creation, and gate every resume and every artifact-chunk acceptance on a fingerprint comparison. On mismatch or absence, the client re-enters discovery, re-negotiates, and — if t..."
  },
  "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": "4dac3628dab45c4d3c35cfb181aadf7540e0f3dffbc46ee205dcbd637537f065",
    "verified_classes": [
      "CardDriftForkError",
      "PinnedTask"
    ],
    "verified_functions": [
      "pin_card",
      "resume_task"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CardDriftForkError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
