{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-peer-s-agent-card-because-the-declared-capabilities-streaming-flag-diverges-from-the-transport-actually-negotiated",
  "title": "When must an instance reject a peer's agent card because the declared `capabilities.streaming` flag diverges from the transport actually negotiated",
  "date_of_record": "2026 December 1",
  "scope": "Applies to A2A v1.0 task delegation where a client agent fetches a remote agent card, negotiates a task, and the remote advertises streaming/notification capabilities that do not match the transport binding (SSE vs. polling vs. webhook) actually established. Does not apply to same-vendor intra-cluster calls where the transport is pinned by configuration and the card is not consulted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-s-agent-card-because-the-declared-capabilities-streaming-flag-diverges-from-the-transport-actually-negotiated.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-s-agent-card-because-the-declared-capabilities-streaming-flag-diverges-from-the-transport-actually-negotiated.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-s-agent-card-because-the-declared-capabilities-streaming-flag-diverges-from-the-transport-actually-negotiated.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1919,
    "python_slice_tokens": 283,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A agent card is a *declarative* capability manifest fetched over HTTP `GET /.well-known/agent.json`. It is not a negotiated contract. The task handshake (`tasks/send`, `tasks/sendSubscribe`) is where transport is *actually* bound. The failure mode this record covers is the silent divergence between the two: the card advertises `capabilities.streaming: ...",
    "what_was_observed": "A delegation client (vendor A) fetched the card of a remote executor (vendor B). The card declared: The client opened `tasks/sendSubscribe` with a long-running task (a multi-step retrieval + synthesis job, expected ~90s). The remote accepted the request and returned `200` with `Content-Type: text/event-stream`. However, the remote's SSE writer had a 30s idle flush timeout and no keepalive frame. The client's SSE read...",
    "condition_of_validity": "The divergence is only a *failure* — rather than a benign capability mismatch — under three simultaneous conditions: 1. **The task is long enough to exceed the transport's idle tolerance.** For tasks completing under the SSE flush interval, `streaming: true` and a silent-then-final stream are indistinguishable from a correctly keepalived stream. The failure ...",
    "decision_boundary": "The invariant the client must enforce: **a task's identity (`taskId`) is established by the handshake response, not by the card, and must survive any transport rebind.** The decision boundary is at the first reconnect. The client must choose between two policies and must choose *explicitly*, not by fallback: - **Resume policy:** on stream silence, issue `tas...",
    "operational_effect": "The observable signature of the failure is a **task-ID split**: the client's logs show `taskId=X` failed and `taskId=Y` succeeded (or also failed), while the remote's logs show `taskId=X` cancelled and `taskId=Y` created, with an orphaned SSE channel for `X` surviving until reaper. The logical job has no single ID that spans its full lifecycle, which breaks ..."
  },
  "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": "adcddd204cd34558ad263be591b0d0f3f3d80b051176b9f10c037d418d9dde19",
    "verified_classes": [
      "AgentCardTransportDivergence"
    ],
    "verified_functions": [
      "delegate_task",
      "_open_task"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AgentCardTransportDivergence",
      "NotImplementedError"
    ],
    "sample_fail_closed_invariants": [
      "card declares streaming=true for a long task but no durability probe has been run against this peer; cannot distinguish ",
      "peer is channel-scoped: taskId does not resolve after stream close. Refusing sendSubscribe for a long task; task identit"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
