mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1721] [MERGED] fix(slurp2): start and keep settings on zod 4 Engines (0.4.2) #1709
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#1709
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1721
Author: @Gunterlie
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @Gunterlie
Base:
staging← Head:fix/slurp2-zod4-defaults📝 Commits (4)
89932d6fix(slurp2): start and keep settings on zod 4 Engines (0.4.2)4fafb2bfix(slurp2): keep unsent keys out of the settings PATCH on zod 49bca797Merge branch 'staging' into fix/slurp2-zod4-defaultsd0a8025Merge remote-tracking branch 'origin/staging' into fix/slurp2-zod4-defaults📊 Changes
27 files changed (+692 additions, -594 deletions)
View changed files
➕
artifacts/slurp2-0.4.2.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+8 -8)📝
catalog/v3/notes.json(+6 -6)📝
packages/slurp2/CHANGELOG.md(+5 -0)📝
packages/slurp2/client.js(+254 -245)📝
packages/slurp2/docs/architecture/slurp2-vocabulary-rename-map.json(+1 -0)📝
packages/slurp2/manifest.json(+5 -5)📝
packages/slurp2/server.mjs(+208 -208)📝
packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts(+6 -1)📝
packages/slurp2/src/engine/packages/server/src/slp/features/ads/slp-ads-routes.ts(+4 -4)📝
packages/slurp2/src/engine/packages/server/src/slp/features/settings/slp-settings-routes.ts(+2 -2)📝
packages/slurp2/src/engine/packages/server/src/slp/modules/settings/slp-settings.ts(+4 -0)📝
packages/slurp2/src/engine/packages/shared/src/slp/slp-drama.ts(+18 -16)📝
packages/slurp2/src/engine/packages/shared/src/slp/slp-fan-types.ts(+15 -14)📝
packages/slurp2/src/engine/packages/shared/src/slp/slp-model-budget.ts(+9 -8)📝
packages/slurp2/src/engine/packages/shared/src/slp/slp-scene.ts(+2 -1)...and 7 more files
📄 Description
Pull request
Linked issue
Closes #1720
Why this change
Staging users cannot start Slurp after their Engine update. Engine
stagingmoved from zod 3 to zod 4 (0dddb04dc), and Slurp keepszodexternal, so it runs on the Engine's zod.Two zod 4 changes break Slurp:
.default({})returns the value as-is and skips the inner defaults.SLURP_REALISTIC_TUNINGbecameworld: {}, andscaleCurvesreadworld.commission.curveat module load. The server crashed and the rollback to 0.4.0 crashed the same way..partial()applies an inner.default()to a missing field. A partial save of Slurp settings, a Garnish ad patch or a creator account update resets every unsent field to its default.Engine fixed its own schemas with
.prefault()andpartialInput()(7f78465b3)..prefault()is zod 4 only, and Enginemainis still on zod 3, so Slurp gets two portable helpers instead.What changed
shared/src/slp/slp-schema-defaults.ts:slpFilledDefault(schema, value = {})=schema.default(() => schema.parse(value)), the same result as zod 4.prefault(), also on zod 3.slpPartialInput(schema), the same as EnginepartialInput()(missing stays missing), works on zod 3 and 4..default({})in slurp2 (tuning, fan types, model budget, storyline, scene, drama) usesslpFilledDefault.PATCH /settingsbody (slurpSettingsPatchSchema), the Garnish ad patch, and the creator account schemas that Engine changed in7f78465b3useslpPartialInput/slpFilledDefault.tests/slurp2-vocabulary-shape.regression.ts: rename-map entrypartialInput → slpPartialInput, plus intended deltas where Engine uses zod 4-only.prefault().tests/slurp2-simulation-tuning.regression.ts: tuning has a numericworld.commission.curve, azod/v4schema gets nested defaults through the helper, andslpSettingsUpdateSchema.parse({})and amodelBudget+fanTypespatch parse to{}, and thePATCH /settingsroute usesslurpSettingsPatchSchema.Package and security impact
slurp2main) and zod 4 (Enginestaging).Validation
Built and tested against an isolated Engine
stagingcheckout at105a707a1(zod 4.6.7).node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run results (not a substitute for the boxes above):
node_moduleshas zod 3.25.76, so CI runs the regressions on zod 3. Thezod/v4helper assertion covers zod 4 in CI.zodswapped for 4.6.7):slurp2-simulation-tuningpasses. With the old code it gives the reportedTypeError: ... (reading 'curve'), and a plain.partial()settings patch fails the new assertion.npm run test:slurp:regressionson zod 3: 321 passed, 0 failed. Before the shape fixes,slurp2-vocabulary-shapefailed against the zod 4 Engine.slurp2-content-packs,slurp2-storyline-format). Both are strict deep-equal diffs only: a second settings read addsstoryTags: [](readers usestoryTags ?? []), and a JSON round trip dropsundefinedkeys. No behavior change, left out of this hotfix.slurp2-architectureregression,typecheck-packages slurp2,npm run check,test-catalog-lanes,validate-package-locales,validate-catalog,catalog-release-notespass.Documentation impact
UI evidence (if applicable)
No UI change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.