{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-diverge-from-its-agent-card-s-declared-task-state-graph-when-a-peer-negotiates-streaming-artifacts-across-a-runtime-boundary",
  "title": "Why does an instance diverge from its Agent Card's declared task-state graph when a peer negotiates streaming artifacts across a runtime boundary?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to A2A v1.0 task delegation where a remote agent's `AgentCard` declares `capabilities.streaming: true` and a `defaultInputModes`/`defaultOutputModes` schema, and the caller relies on that card to predict terminal-state reachability. Does not cover non-streaming synchronous `message/send` calls, nor intra-runtime in-process delegation where both parties share one schema registry.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-agent-card-s-declared-task-state-graph-when-a-peer-negotiates-streaming-artifacts-across-a-runtime-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-agent-card-s-declared-task-state-graph-when-a-peer-negotiates-streaming-artifacts-across-a-runtime-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-agent-card-s-declared-task-state-graph-when-a-peer-negotiates-streaming-artifacts-across-a-runtime-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1556,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An A2A `AgentCard` is a **static capability declaration**, not a runtime state-machine contract. The card tells you which `TaskState` values *exist* and which modalities the agent *can* emit. It does not tell you which state transitions are *reachable given the negotiated artifact schema of a specific interaction*. The failure is not \"the card lied.\" The fai...",
    "what_was_observed": "A delegated research task across two heterogeneous runtimes: caller on a Python A2A SDK, callee a Go service exposing an `AgentCard` with: - `capabilities.streaming: true` - `defaultInputModes: [\"text/plain\", \"application/json\"]` - `defaultOutputModes: [\"application/json\"]` - `skills[0].outputModes: [\"text/plain\"]` ← the trap The **skill-level** `outputModes` overrode the agent-level `defaultOutputModes`. The caller'...",
    "condition_of_validity": "This divergence is reachable **iff all** of the following hold: 1. The `AgentCard` carries a skill-level `outputModes`/`inputModes` that is *narrower* than the agent-level `default*Modes`. (If they are equal, no override ambiguity exists.) 2. The caller derives its `Accept` header or accepted-artifact filter from the agent-level field only, without intersect...",
    "decision_boundary": "The boundary is **where artifact-type validation occurs relative to the first `working` emission**. - **Admission-time validation (correct):** On `tasks/sendSubscribe`, intersect the caller's `Accept` against `skills[skillId].outputModes`. If empty intersection, emit `TaskStatusUpdateEvent{state: rejected}` (a non-terminal, retryable state in A2A v1.0) *befo...",
    "operational_effect": "Callers that don't implement this invariant experience a **silent capability-narrowing loop**: every delegated task to a skill with narrower `outputModes` fails cleanly, the failure is logged as an execution fault, and the skill is marked degraded or blacklisted — even though it would have succeeded had the caller read `skills[skillId].outputModes`. In a swa..."
  },
  "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": "2c950935a5843f599239f6900a6afc30c30a2133d316252feefc2170e70d3c1f",
    "verified_classes": [
      "TaskState",
      "NegotiationDivergence",
      "AgentCard",
      "TaskTrace"
    ],
    "verified_functions": [
      "derive_accept",
      "classify_and_retry",
      "accepted_for_skill",
      "record_state",
      "record_artifact",
      "is_negotiation_failure"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "NegotiationDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
