Repository navigation
chore(deps): bump zod from 3.25.76 to 4.5.4 in /src/mcp-server - #2479
Conversation
Bumps [zod](https://github.com/colinhacks/zod) from 3.25.76 to 4.5.4. - [Release notes](https://github.com/colinhacks/zod/releases) - [Commits](colinhacks/zod@v3.25.76...v4.5.4) --- updated-dependencies: - dependency-name: zod dependency-version: 4.5.4 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
zod v4 removed the single-argument `z.record(valueSchema)` form; the key schema is now required. Five call sites failed `tsc` with TS2554, which is what broke the mcp-server image build (`npm run build`, exit 2) and took journey-smoke down with it. All five keys were already strings at runtime — MCP tool arguments arrive as JSON objects — so `z.record(z.string(), X)` states what was implied. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CRWTVnJVjydCyLxHE1bMvP
|
Pushed the compile fix (5dccf56) — Verified locally against this branch: One behaviour change still open before this merges. fastmcp converts the tool So every MCP tool schema this server advertises becomes permissive — unknown keys in a tool call are no longer rejected by schema validation. Compilation and the unit suite cannot see this; it only shows up in what clients are told a tool accepts. Worth a deliberate call before merge: either accept the looser schemas, or restore strictness explicitly ( Not merging this one — flagging for review. |
vybe
left a comment
There was a problem hiding this comment.
Validated with /validate-pr. zod 3→4 is a major bump; the one breaking use (z.record needing an explicit key schema) is fixed in the follow-up commit. Verified locally in a node:22 container at head 5dccf56: tsc build clean, mcp-server suite 280/280 passing (the mcp-server tests are not run by CI, only the image build is). Backend pytest matrix green except one hung head-seed job, re-run now; merging once it lands.
Brings the branch onto dev at 36e6e1a: #2509 (main reconcile), #2479 (zod 4), #2513 (pull: scheduled work reaches the durable queue), plus #2500/#2480. The only shared file with #2513 is task_execution_service.py; git merged the import block cleanly and the four scrub blocks in _write_terminal_and_gate / apply_result are untouched (#2513 adds build_pull_queue_payload above them and widens _admission_gate, which the ent#279 allowlist already names).
`z.record(z.unknown())` is the zod v3 spelling. dev bumped zod 3.25.76 -> 4.5.4 in #2479, where `record` requires an explicit key schema, so the mcp-server image build failed at `tsc`: src/tools/canvas.ts(94,33): error TS2554: Expected 2-3 arguments, but got 1. which took down `journey-smoke` ("Boot the stack") and `e2e` ("Start Trinity stack") — both failed building the mcp-server image, before any test ran. The merge was clean at the TEXT level, which is exactly why this got through: #2479 migrated every existing `z.record(` call site to the two-arg form, but canvas.ts did not exist on dev yet, so nothing rewrote it and nothing conflicted. The five sibling call sites (agents.ts x2, events.ts, notifications.ts, reports.ts) already carry the two-arg spelling; this makes canvas.ts the sixth. `z.record(z.string(), z.unknown())` is semantically identical to what v3's one-arg form meant (string keys, unknown values) — no behaviour change. Verified against a real `npm ci` at zod 4.5.4: `tsc --noEmit` clean, and mutation-checked by reverting the fix, which reproduces TS2554 at 94,33. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01HAw7x7VwACVjc58pPPi3Th
…trinity-enterprise#438) (#2484) Merged after conflict resolution + one real fix found by post-merge CI. **A latent break the text-level merge hid.** dev bumped zod 3.25.76 -> 4.5.4 (#2479), where `record` requires an explicit key schema. #2479 migrated every existing call site, but `canvas.ts` did not exist on dev yet — so nothing rewrote it and, crucially, nothing conflicted. `journey-smoke` ("Boot the stack") and `e2e` ("Start Trinity stack") both failed building the mcp-server image: src/tools/canvas.ts(94,33): error TS2554: Expected 2-3 arguments, but got 1. Fixed to `z.record(z.string(), z.unknown())` — the spelling the five sibling call sites already use, and semantically identical to what v3's one-arg form meant, so no behaviour change. Verified against a real `npm ci` at zod 4.5.4 and mutation-checked by reverting (reproduces TS2554 at 94,33). Both jobs now pass. **Docs conflicts**: `feature-flows.md` and `requirements/core-agent.md` were append-collisions, both sides kept. The canvas requirement is renumbered 5.16 -> 5.18, since dev now carries 5.16 (#2163) and 5.17 (#2515). The existing approval and the "merge as-is" PM note both predate these merge commits; `dismiss_stale_reviews` is off, so the approval stands.
Bumps zod from 3.25.76 to 4.5.4.
Release notes
Sourced from zod's releases.
... (truncated)
Commits
e8e206f4.5.484e416ffix(v4): stop the cycle walk from firing a default factory (#6500)1a161024.5.3eab51fffix(v4): emit record numeric keys as strings in toJSONSchema (#6497)7e24a24docs(blog): drop the reading time and put a GitHub link in the navbare3a695bdocs(v4): record the email regex and container output-shape findings under Open99fce39bench(v4): z.compile() against zod-compiler (#6499)87d6464fix(docs): drop the OG description when the title wraps past two linese6b6ab3docs(blog): widen the z.compile example to a 20-property schema9a193aa4.5.2Maintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for zod since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)