mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1577] deps: migrate the host schema contract before adopting Zod 4 #1554
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1554
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1577
Originally assigned to: @SpicyMarinara on GitHub.
Compatibility blocker
The dependency-only Zod 4 upgrade in #1559 cannot currently preserve the Engine/schema contract. The compatible tooling consolidation is #1576, tracked in #1575. @SpicyMarinara owns this follow-up.
On unchanged Agents
stagingsource at96e05d42b923006f14281c5b1589f443f68b4a39, the existing World Maps regression passes with Zod 3.25.76:Changing only the root dependency/lockfile to Zod 4.6.7 makes that same test fail before assertions:
Maps currently unwraps the Engine's refined schema, replaces its captured 500-location ceiling with the package's 5,000-location ceiling, then reapplies the remaining shared validation. Zod 4 removes the
ZodEffectswrapper and changes how refinements live on schemas, as described in its official migration guide. Simply deleting the unwrap or retaining every original refinement would alter validation and reject valid larger maps.Current Engine shared, server, and client manifests all declare
zod: ^3.25.76; Agents intentionally resolves the same dependency across its captured shared code and feature builds, and browser packages receive the Engine's Zod object through the host namespace. Version 3.25.76 is also the latest published Zod 3 release.Required before adopting Zod 4
Trace and migrate the shared schema/refinement boundary together with Engine, preserving every existing validation rule and the package's location ceiling. Validate captured schemas, build-time use, host runtime use, and package browser behavior without duplicating or weakening the host contract. This requires a deliberate coordinated migration rather than a dependency-only maintenance bump. Keep Zod 3.25.76 until that proof exists.