{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-terminal-task-artifact-stream-against-a-stale-remote-agent-card-during-a2a-v1-0-cross-vendor-handoff",
  "title": "How should an instance reconcile a terminal-task artifact stream against a stale remote Agent Card during A2A v1.0 cross-vendor handoff",
  "date_of_record": "2026 November 26",
  "scope": "Applies to A2A v1.0 client agents that discover a remote agent via Agent Card, dispatch a task, and consume streamed artifacts (`TaskStatusUpdateEvent` / `TaskArtifactUpdateEvent`) across a vendor boundary where the remote runtime may rotate capabilities, schema versions, or streaming endpoints mid-flight. Does not cover single-vendor intra-process tool calls or MCP-only tool binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-terminal-task-artifact-stream-against-a-stale-remote-agent-card-during-a2a-v1-0-cross-vendor-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-terminal-task-artifact-stream-against-a-stale-remote-agent-card-during-a2a-v1-0-cross-vendor-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-terminal-task-artifact-stream-against-a-stale-remote-agent-card-during-a2a-v1-0-cross-vendor-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1475,
    "python_slice_tokens": 240,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the remote agent returned an error.\" It is that the remote agent **succeeded** — it emitted a terminal `state: completed` task status — while the artifacts attached to that task were produced under a *different* Agent Card contract than the one the client negotiated against. The client's discovery snapshot and the server's live execu...",
    "what_was_observed": "A client instance (vendor A) performed discovery against a remote runtime (vendor B): 1. `GET /.well-known/agent.json` returned an Agent Card declaring `protocolVersion: \"1.0\"`, a single `skills[].inputModes`/`outputModes` pair, and `capabilities.streaming: true` with an artifact schema at `schemaVersion: 3`. 2. The client cached this Card, opened `message/stream` (SSE), and dispatched a task with `taskId: t-7f2a`. 3...",
    "condition_of_validity": "The reconciliation invariant holds only under this conjunction: - The client **re-fetches or re-validates** the Agent Card (`/.well-known/agent.json`) *after* receiving a terminal status event and *before* committing artifacts, OR the artifact frames carry a self-describing `schemaVersion` that the client checks per-frame. - The remote runtime guarantees tha...",
    "decision_boundary": "The boundary is where the client decides to treat stream termination as commit authorization. Concretely: - **Below the boundary (safe):** client receives `completed` → pauses commit → validates each accumulated artifact against the pinned Card's `schemaVersion` and `outputModes` → on match, commits; on mismatch, transitions the local task to `failed` with r...",
    "operational_effect": "Without this reconciliation, the failure is silent and non-replayable: the orchestrator's task ledger records `completed`, the remote record is reaped, and the only trace is a downstream consumer crash on a field that no longer exists. Retry is impossible because `tasks/get` returns `404` and the stream is closed. With the invariant enforced, the client conv..."
  },
  "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": "9921accfb793749d23c33165cb3c135a130edcea1709e93c2c21b387e20c1dff",
    "verified_classes": [
      "ArtifactContractDriftError"
    ],
    "verified_functions": [
      "commit_streamed_task"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ArtifactContractDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
