Skip to content

The era fold does not serve, instrumented and written down - #92

Merged
blakebauman merged 1 commit into
mainfrom
docs/protocol-era-transition
Aug 26, 2026
Merged

blakebauman merged 1 commit into
mainfrom
docs/protocol-era-transition

Conversation

@blakebauman

Copy link
Copy Markdown
Member

The remaining findings from the /spec-drift sweep. Almost entirely documentation and one canary — no behaviour changes.

The correction this starts with

The sweep claimed the 2026-07-28 era was already reachable through fold via per-request _meta, and that several conformance gaps were therefore live. I repeated that. Testing it says otherwise:

HTTP 400 — protocol version "2026-07-28" is only supported on
stateless HTTP servers (set StreamableHTTPOptions.Stateless = true)

The transport refuses before fold's router sees anything. Those gaps are latent, and their ordering behind this canary is deliberate rather than neglectful. Worth knowing before anyone plans work against the sweep's ranking.

The canary, and why it pins so little

gateway/listen_test.go already pinned the era from the client side — that a default-options SDK client falls back. But a client is free not to be the SDK, and "our client falls back" is a weaker claim than "the era cannot be reached".

gateway/era_test.go pins the server side: a raw request declaring the era, by header or by per-request _meta, must be refused rather than served.

It deliberately does not pin how it is refused. v1.7.0 answers an HTTP 400; the SDK's main returns a JSON-RPC error instead (go-sdk#1143). A canary asserting the status would have failed on that bump for a reason nobody cares about — which is how a canary gets deleted rather than read. Being served is the drift. The shape of the refusal is not.

I checked the SDK while writing this: fold is on v1.7.0, the latest release, and the stateless gate is still present on main, so the restriction stands.

Roadmap item 13 was designed against a mechanism that no longer exists

A server MUST send server-to-client requests (such as roots/list, sampling/createMessage, or elicitation/create) using the MRTR pattern. The previous pattern of server-initiated requests is no longer supported. This is a breaking change.

The governance surface survives; its call site moves. Under multi-round trip an upstream doesn't ask fold anything — it returns an input-required result. So what item 13 governs is an inspection of inputRequests in a relayed result, not a handler on a bridged session. The per-request handler check that design-server-initiated.md argues for as the actual boundary has no meaning there, because there is no handler.

The bridged-session apparatus is now recorded as what it is: a legacy-era compatibility layer — valuable for as long as handshake clients exist, which is years, and not the shape of what replaces it.

What else is now written down

README "Not implemented" gains two entries:

  • What the new era changes and fold has not — no advertised extensions (so a client following the tasks extension's negotiation would never reach fold's federated tasks); tasks/list and tasks/result federated though the redesigned extension removed them; resources/subscribe advertised and logging/setLevel handled though the revision retired both; relayed results carrying no resultType of their own.
  • Upstream ttlMs/cacheScope unhonoured — structural, not an oversight: the SDK's paginating iterators consume the result envelope those hints ride on, and state.ListCache.GetOrFill takes its TTL before the fill that would produce one. gateway/cachehint.go already documents the mirror-image decision on egress; this is the argument owed on ingress.

docs/roadmap.md gains a deprecation table it never had — sampling, roots, logging, and RFC 7591 DCR all carry an earliest removal of the first revision on or after 2027-07-28. The DCR row cuts against a plan rather than an implementation: Horizon 3 holds it as demand-gated, and building it now would mean adopting something new implementations are explicitly told not to adopt.

Verification

go test -race ./... green; lint 0 issues; gofmt / vet clean; conformance 40/40; bench 0.200 ms.

🤖 Generated with Claude Code

fold serves the handshake era. The 2026-07-28 era is unreachable through
it, because the SDK's streamable handler serves that revision only on
stateless HTTP servers and fold runs stateful for session-keyed
bridging. That was recorded for subscriptions/listen and pinned from the
client side by listen_test.go — that a default-options SDK client falls
back. A client is free not to be the SDK, so era_test.go pins the server
side too: a raw request declaring the era, by header or by per-request
_meta, must be refused rather than served.

It deliberately does not pin how it is refused. v1.7.0 answers an HTTP
400 and the SDK's main branch returns a JSON-RPC error instead
(modelcontextprotocol/go-sdk#1143), and a canary asserting the status
would have failed on that bump for a reason nobody cares about — which
is how a canary gets deleted rather than read. Being served is the
drift; the shape of the refusal is not.

Writing the canary corrected the premise it was built on. The claim it
started from was that the era was already reachable via per-request
_meta and that several gaps were therefore live. Testing it says
otherwise: the transport refuses before fold's router sees anything, so
those gaps are latent, and their ordering behind this canary is
deliberate rather than neglectful.

Roadmap item 13 plans to govern server-initiated requests, and this
revision removed that mechanism — a server "MUST send server-to-client
requests ... using the MRTR pattern. The previous pattern of
server-initiated requests is no longer supported." The governance
surface survives and its call site moves: an upstream now returns an
input-required result rather than asking, so what the item governs is an
inspection of inputRequests in a relayed result, not a handler on a
bridged session, and the per-request handler check its design record
argues for as the boundary has no meaning there. The bridged-session
apparatus is recorded as what it is — a legacy-era compatibility layer,
valuable for as long as handshake clients exist, and not the shape of
what replaces it.

README "Not implemented" gains what the era changes and fold has not:
no advertised extensions, tasks/list and tasks/result federated though
the redesigned extension removed them, resources/subscribe advertised
and logging/setLevel handled though the revision retired both, and
relayed results carrying no resultType of their own. Plus a separate
entry for upstream ttlMs and cacheScope going unhonoured, which is
structural — the SDK's paginating iterators consume the envelope those
hints ride on, and state.ListCache.GetOrFill takes its TTL before the
fill that would produce one.

And the roadmap gains a deprecation table it never had. Sampling, roots,
logging, and RFC 7591 dynamic client registration all carry an earliest
removal of the first revision on or after 2027-07-28. The last row cuts
against a plan rather than an implementation: Horizon 3 holds DCR as
demand-gated, and building it now would be adopting something new
implementations are told not to adopt.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@blakebauman
blakebauman merged commit 1955394 into main Aug 26, 2026
8 checks passed
@blakebauman
blakebauman deleted the docs/protocol-era-transition branch August 26, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant