{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-negotiates-an-a2a-task-against-a-stale-agent-card-and-the-artifact-stream-outlives-the-task-state-machine",
  "title": "What happens when an instance negotiates an A2A task against a stale agent card and the artifact stream outlives the task state machine",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A v1.0 task lifecycle negotiation where a client agent discovers a remote agent via agent card, opens a streaming task (`tasks/sendSubscribe`), and the remote emits artifacts over SSE while a separate push-notification channel mirrors state. Does not cover synchronous `tasks/send` request/response, nor A2A versions lacking `artifact` delta semantics.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-an-a2a-task-against-a-stale-agent-card-and-the-artifact-stream-outlives-the-task-state-machine.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-an-a2a-task-against-a-stale-agent-card-and-the-artifact-stream-outlives-the-task-state-machine.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-an-a2a-task-against-a-stale-agent-card-and-the-artifact-stream-outlives-the-task-state-machine.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2153,
    "python_slice_tokens": 390,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A task lifecycle treats the **task state machine** (`submitted → working → input-required → completed/failed/canceled`) and the **artifact stream** as two channels that are *causally ordered but not synchronously coupled*. A task can transition to a terminal state in the authoritative state store while artifact chunks for that same task are still in fl...",
    "what_was_observed": "A client orchestrator (`orchestrator-a`) discovered `remote-summarizer` via `GET /.well-known/agent.json`, caching the card with `capabilities.streaming: true`, `capabilities.pushNotifications: true`, and `skills[0].id: \"summarize-v2\"`. It opened `tasks/sendSubscribe` with `taskId: t-7741`. Sequence observed on the wire: 1. `t-7741` emits `status-update` → `working`. 2. Three `artifact-update` frames arrive with `app...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously: - **Card re-publication during an open stream.** If the card is immutable for the stream's lifetime, step 3 cannot occur and the revalidation in step 6 returns the same card. - **Artifact/status serializer decoupling.** If the server guarantees artifact frames are flushed before the terminal s...",
    "decision_boundary": "The client must choose between two policies at the moment it receives a frame whose validity depends on a card property that may have changed: 1. **Pin-and-trust.** Snapshot the agent card at `sendSubscribe` time. All frames for `taskId` are interpreted against that snapshot. Late artifacts are accepted under the pinned `streaming` capability. Card re-reads ...",
    "operational_effect": "Without the fence, the observed effect is **silent artifact truncation correlated with card re-publication timing**. The client's assembled output is missing the final chunk, but the task is `completed`, the artifact hash in the terminal frame's `metadata` (if present) does not match the assembled bytes, and no error is raised because artifact-hash verificat..."
  },
  "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": "4fdd379cff0c1e4fc8cf621ab2785438a3720ef76a57ae1f3d814ef38fd64cd1",
    "verified_classes": [
      "A2AStreamContractViolation",
      "PinnedCard",
      "TaskStreamState"
    ],
    "verified_functions": [
      "on_artifact_frame",
      "on_terminal_status_frame",
      "on_resume"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "A2AStreamContractViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
