{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-agent-card-capability-drift-from-silently-invalidating-mid-task-streaming-artifact-negotiation-in-a2a-v1-0",
  "title": "Which invariants prevent Agent Card capability drift from silently invalidating mid-task streaming artifact negotiation in A2A v1.0",
  "date_of_record": "2026 November 27",
  "scope": "Applies to A2A v1.0 peer-to-peer task execution where a client agent discovers a remote Agent Card, negotiates a streaming artifact stream (`tasks/sendSubscribe`), and the remote mutates its declared capabilities or artifact MIME/schema contract between discovery and stream finalization. Does not cover static single-shot `tasks/send` calls with no streaming, nor Agent Card re-signing/identity rotation (covered separately).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-capability-drift-from-silently-invalidating-mid-task-streaming-artifact-negotiation-in-a2a-v1-0.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-capability-drift-from-silently-invalidating-mid-task-streaming-artifact-negotiation-in-a2a-v1-0.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-capability-drift-from-silently-invalidating-mid-task-streaming-artifact-negotiation-in-a2a-v1-0.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1865,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 Agent Card is a **discovery-time snapshot**, but streaming artifact negotiation is a **task-lifetime contract**. These two clocks are not the same. The Agent Card is fetched once (typically at client boot or first contact) and cached; the `Task` object and its `Artifact` stream live for the full duration of execution, which can span minutes to h...",
    "what_was_observed": "Trace from a production-style incident against a v1.0 peer: 1. **T0 — Discovery.** Client fetches `GET /.well-known/agent.json`. Card declares `capabilities.streaming: true`, skill `summarize` with `outputModes: [\"application/vnd.acme.summary+json;v=2\"]`. Client caches the card with a local TTL of 24h and records no `etag`/`version`. 2. **T1 — Task open (+3h).** Client issues `tasks/sendSubscribe` with `acceptedOutpu...",
    "condition_of_validity": "The invariant that must hold for safe streaming negotiation is: > **For every artifact part delivered on a stream, the negotiated output mode asserted at stream open must be a superset of (i.e., strictly compatible with) the schema the remote actually emits, and this must be verifiable by the client without trusting the remote's matcher.** This holds only wh...",
    "decision_boundary": "The operational decision is: **when the card and the stream disagree, do you trust the stream or fail the task?** - **Trust the stream (lenient):** correct only if the client's artifact handler is schema-agnostic (e.g., passes opaque bytes downstream) or if the client re-negotiates per artifact. In all other cases it produces silent corruption, as traced abo...",
    "operational_effect": "Enforcing the strict boundary changes three observable behaviors: 1. **Failure is moved to the boundary.** Version skew now fails at `sendSubscribe` (clean `-32001` with the mismatched mode) or at the first mismatched part (clean `TaskState.failed`), instead of surfacing hours later in a consumer. MTTR drops from \"consumer crash forensics\" to \"re-discover an..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "d45fdb83cfc3a1892e69687d3325d765e0102c8e40959e648088985eb160b57a",
    "verified_classes": [
      "ArtifactNegotiationDriftError",
      "AgentCardSnapshot",
      "StreamTask"
    ],
    "verified_functions": [
      "open_stream",
      "handle_artifact_part"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ArtifactNegotiationDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
