Skip to content

fix(deps): move Effect to 4.1.4 - #416

Merged
laithalsaadoon merged 2 commits into
mainfrom
deps/effect-4.1.4
Nov 22, 2026
Merged

laithalsaadoon merged 2 commits into
mainfrom
deps/effect-4.1.4

Conversation

@laithalsaadoon

Copy link
Copy Markdown
Contributor

What moves

  • The Effect catalog set goes from 4.1.2 to 4.1.4 as one version: effect, @effect/platform-node, @effect/platform-node-shared, @effect/vitest.
  • The lockfile follows: the four Effect packages, plus undici 8.12.3 -> 8.12.4 under @effect/platform-node, which asks for ^8.12.4. Nothing else in the lockfile changes; ws stays at 8.22.1, and the docs site's own undici 8.12.3 (under unifont) stays where it is.
  • No source change was needed. The only source edits are comments and prose that name the pin.

Behavior changes memhtml reaches

Effect 4.1.3 changed behavior that memhtml reaches, and 4.1.4 keeps all but one of those changes. A user or operator moving from 4.1.2 to 4.1.4 can observe five things:

  1. memhtml-mcp exits with code 0 instead of 130 when its client closes stdin. Anything that spawns the server and reads its exit code sees the new value. (#10475)
  2. A list request with a cursor the server never issued is refused. tools/list, resources/list, resources/templates/list and prompts/list now answer -32602 "Unknown cursor"; before, they ignored the cursor and returned the full list. memhtml never issues a nextCursor, so a conforming client never sends one. (#10447)
  3. MCP request spans are renamed, only when OTEL_EXPORTER_OTLP_ENDPOINT is set. A span such as McpServer.@effect/mcp/2025-06-18/tools/call becomes tools/call memory_search, and its attributes move from rpc.*, tool and parameters to mcp.*, gen_ai.*, jsonrpc.request.id and network.transport. Tool arguments are no longer exported on the span. Dashboards or queries keyed on the old names need updating. (#10304)
  4. Successful spans carry status Unset instead of Ok, under the same condition. This applies to every span the MCP server and the CLI export. (#10440)
  5. memhtml head serve stops at once after SIGTERM when a local client had sent an HTTP Upgrade request. Before, it waited the full two-second shutdown grace. memhtml's own client never sends Upgrade, so this needs a foreign client on the socket. Replies are unchanged. (#10360)

One 4.1.3 change does not carry over: 4.1.3 answered three malformed Skills requests with -32601 instead of -32602, and 4.1.4 restores -32602 (#10540). Those replies are identical on 4.1.2 and 4.1.4.

None of the other 4.1.4 entries is reached: they cover HttpApi, effect/cli, the AI provider clients, SchemaRepresentation and TestClock internals.

Proofs

  • Typecheck: turbo run typecheck passes, 35 of 35 tasks, 0 errors (tsc 7.0.2).
  • Emit comparison: every project was rebuilt with tsc -b --force and compared with a build of main: 418 .js and .d.ts files, 414 byte-identical. Three of the other four (apps/mcp/dist/server.js, tools.js, server.d.ts) differ only in the restated comment lines. The fourth, apps/mcp/dist/tools.d.ts, gains a third type argument (Tool.Execution) on the 15 tool types; that file is not part of the published bundle. No executable line differs.
  • Tests: the apps/mcp suite passes 163 of 163. apps/cli head-server.test.ts passes 26 of 27 in a run with a long temp directory; the one failure is the socket-path-limit case, whose own precondition failed by one byte before any server code ran, and the file passes in the full gate. catalog.test.ts passes 4 of 4, packages/eval corpus.test.ts 26 of 26, packages/llm structured.test.ts 45 of 45. The full local gate (mise run check) passes 76 of 76 tasks on this head.
  • MCP stdio harness, the main build against this branch's build, same fixture store:
    • 50 requests: 46 replies identical, 4 differ (the four cursor requests in item 2).
    • tools/list is identical: 41,197 bytes, same sha256.
    • Requests sent before initialize (9) and requests with bad header fields (8) are all identical.
    • All seven Skills requests are identical.
    • Exit code at stdin close: 130 before, 0 after.
  • Telemetry probe against a local collector: 49 MCP spans and 22 CLI spans on both builds, with the name, attribute and status differences in items 3 and 4. Batch timing is unchanged.
  • Head server probe: 17 replies equal on both builds apart from a duration, a pid and the store path. Stop time after an Upgrade request: 2,027 ms before, 27 ms after.
  • Advisories: none affects Effect 4.1.2, 4.1.3 or 4.1.4, or undici 8.12.3 or 8.12.4. 4.1.4 is the newest release of all four packages.

Restated sentences

  • apps/mcp/src/server.ts: two comments now name effect 4.1.4 (the instructions option, the five protocol adapters).
  • apps/mcp/src/tools.ts: one comment now names effect 4.1.4.
  • docs/backlog.md: the instructions entry names the 4.1.4 pin and adds the 2026-11-16 probe.
  • CLAUDE.md: the adapters sentence names 4.1.4. The "differs from recall" paragraph is reworded, not just renumbered: Schema.d.ts changed in 4.1.3 (it adds Rational and RationalFromString and changes the isAnyOf and Iso types), so the paragraph now says the claims it names were checked again against the installed 4.1.4, where Effect.d.ts is byte-identical to 4.1.2's.

Merge

This PR is left open for the maintainer. It compiles and the emitted code is unchanged, but it changes an exit code, one MCP error path and the exported telemetry, and those are a maintainer's call.

The catalog set (effect, @effect/platform-node,
@effect/platform-node-shared, @effect/vitest) moves from 4.1.2 to 4.1.4
as one version, and undici under @effect/platform-node follows to
8.12.4. No source change was needed; the comments and prose that name
the pin are restated.

Behavior memhtml reaches that changes with this move:
- memhtml-mcp exits 0 instead of 130 when its client closes stdin.
- An MCP list request with a cursor the server never issued answers
  -32602 "Unknown cursor" instead of returning the full list.
- With OTEL_EXPORTER_OTLP_ENDPOINT set, MCP request spans are renamed
  and re-keyed to mcp.* and gen_ai.* attributes, tool arguments are no
  longer exported, and successful spans carry status Unset instead of
  Ok.
- memhtml head serve stops at once after SIGTERM when a client had sent
  an HTTP Upgrade request, instead of waiting the two-second grace.
@laithalsaadoon
laithalsaadoon merged commit 0744b99 into main Nov 22, 2026
12 checks passed
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