← Research

Stateless Protocol, Stateful Problem: Durability, Retry, and Retention Policy for MCP Tasks

Ajin Baby

03 September 2026 · v0.1

Preprint — not peer reviewed. Self-published. Measured results are reproducible from the companion code.

Abstract

The 2026-07-28 Model Context Protocol release candidate removed the initialize/initialized handshake and the Mcp-Session-Id header, making the protocol core stateless so that any request can land on any server instance. This is a good trade — servers become deployable on serverless and edge infrastructure — but statelessness does not delete state, it relocates it. The Tasks extension carries what remains: a server may answer a long-running request with a durable task handle that the client drives through tasks/get, tasks/update and tasks/cancel. The extension specifies the lifecycle carefully and the operational policy not at all, and the project's own 2026 roadmap says so, naming retry semantics on transient failure and result-retention expiry as lifecycle gaps still to close. This paper is one opinionated, measured set of answers to that gap. We contribute (1) a reference policy layer — failure classification into transient/permanent/poison, restart triage for in-flight work, deadline/orphan/expiry reaping, and client-side adaptive polling that treats the server's interval hint as a floor; and (2) a measured study (E1–E4, deterministic, offline). The study finds: a non-durable store honours 0% of issued handles across a restart against SQLite's 100%, with in-flight work triaged rather than dropped; the poll cost/staleness frontier is governed by task duration, not by policy — backoff to a 30 s ceiling saves under 5% of polls on a one-minute task while costing 5.4× the staleness, and saves 86% of them on a thirty-minute task while costing 1.3% of its duration, which is precisely why the extension's pollIntervalMs hint is load-bearing rather than advisory, since the client cannot know its own duration class; defaulting unrecognised errors to transient, as most retry libraries do, doubles attempt volume and manufactures 60 dead-letter entries per 100 failures for zero additional recovered work when unknowns are not in fact retryable, and only breaks even once most of them are; and, finally, client backoff and server orphan reclamation are the same number viewed from two sides — a client following the extension's own advice to back off is cancelled mid-flight by a server reading silence as abandonment, whenever the client's maximum poll gap exceeds the server's orphan window, a cross-party invariant that neither side can check alone and that no part of the specification states.

Keywords: Model Context Protocol, MCP, agentic infrastructure, durable execution, retry semantics, task lifecycle, reliability, site reliability engineering

Cite

@techreport{baby2026stateless,
  title       = {Stateless Protocol, Stateful Problem: Durability, Retry, and Retention Policy for MCP Tasks},
  author      = {Ajin Baby},
  year        = {2026},
  institution = {cloudandsre.com},
  type        = {Preprint},
  url         = {https://cloudandsre.com/research/stateless-protocol-stateful-problem/}
}