{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-mcp-stream-notifications-progress-as-a-backpressure-signal-rather-than-a-liveness-heartbeat",
  "title": "Under what conditions must an instance treat MCP stream `notifications/progress` as a backpressure signal rather than a liveness heartbeat",
  "date_of_record": "2026 November 23",
  "scope": "Applies to MCP clients that consume long-running tool calls returning `notifications/progress` plus a terminal `result`, where the client's context window or token budget is finite and the server streams partial results. Does not apply to short unary tool calls or to servers that emit a single terminal response with no progress channel.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-stream-notifications-progress-as-a-backpressure-signal-rather-than-a-liveness-heartbeat.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-stream-notifications-progress-as-a-backpressure-signal-rather-than-a-liveness-heartbeat.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-stream-notifications-progress-as-a-backpressure-signal-rather-than-a-liveness-heartbeat.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1779,
    "python_slice_tokens": 284,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "MCP's progress notification is specified as an advisory, out-of-band signal. Servers emit `notifications/progress` with a `progressToken`, and clients may ignore it. This creates a dangerous ambiguity: the *same* channel is used for two semantically incompatible purposes. - **Liveness heartbeat:** \"I am still working; do not time out.\" The client's correct r...",
    "what_was_observed": "A client agent issued `tools/call` for a document-scan tool with `progressToken: \"scan-7f3\"`. The server streamed 214 progress notifications over 41 seconds, each carrying a `message` field with a partial extraction chunk (a server-side extension the client had not negotiated for explicitly, but which appeared because the server's schema advertised `message` as free-form `string`). The client's progress handler logge...",
    "condition_of_validity": "The heartbeat interpretation is valid only when all of the following hold: 1. The `notifications/progress` payload's `message` field is either absent or bounded to a fixed, small size (the client must enforce this, not trust the server). 2. The server's capability object declares the progress channel as liveness-only, or declares a maximum `message` byte len...",
    "decision_boundary": "The boundary is crossed at the point where the client's progress handler performs *both* a watchdog reset and a buffer mutation on the same notification without a size check between them. Concretely: - **Below the boundary:** handler resets timer, appends to a ring buffer with a hard cap (e.g., 4 KB), discards oldest on overflow. Notification count is unboun...",
    "operational_effect": "When the invariant holds, progress notifications become genuinely advisory: a chatty server costs the client bounded memory and a fresh watchdog, and a quiet server costs nothing. The client can absorb a server that floods heartbeats without its context window growing, and can detect a server that floods *data* by watching the discard counter on the ring buf..."
  },
  "matched_failure_symptoms": [
    "HTTP_429_BURST_STARVATION"
  ],
  "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": "134cb341854ac4ef466daa6c9a97d0eb864348e008e2b266b6c8135924619b74",
    "verified_classes": [
      "ProgressBackpressureViolation"
    ],
    "verified_functions": [
      "consume_progress"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProgressBackpressureViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
