Repository navigation
The era fold does not serve, instrumented and written down - #92
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The remaining findings from the
/spec-driftsweep. Almost entirely documentation and one canary — no behaviour changes.The correction this starts with
The sweep claimed the
2026-07-28era was already reachable through fold via per-request_meta, and that several conformance gaps were therefore live. I repeated that. Testing it says otherwise: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.goalready 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.gopins 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
mainreturns 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
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
inputRequestsin a relayed result, not a handler on a bridged session. The per-request handler check thatdesign-server-initiated.mdargues 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:
extensions(so a client following the tasks extension's negotiation would never reach fold's federated tasks);tasks/listandtasks/resultfederated though the redesigned extension removed them;resources/subscribeadvertised andlogging/setLevelhandled though the revision retired both; relayed results carrying noresultTypeof their own.ttlMs/cacheScopeunhonoured — structural, not an oversight: the SDK's paginating iterators consume the result envelope those hints ride on, andstate.ListCache.GetOrFilltakes its TTL before the fill that would produce one.gateway/cachehint.goalready documents the mirror-image decision on egress; this is the argument owed on ingress.docs/roadmap.mdgains 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