[GH-ISSUE #1720] [Issue]: Slurp fails to start on Engine staging (zod 4: reading 'curve') #1691

Closed
opened 2026-10-27 06:05:46 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Gunterlie on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1720

Originally assigned to: @Gunterlie on GitHub.

Summary

Slurp 0.4.0 and 0.4.1 fail to start on current Engine staging. The server crashes at load with TypeError: Cannot read properties of undefined (reading 'curve'), and the Engine rolls back to the previous version, which crashes the same way.

Affected package

slurp2

Expected behavior

Slurp activates on Engine staging.

Actual behavior

TypeError: Cannot read properties of undefined (reading 'curve')
    at UC (.../capability-runtime-snapshots/slurp2-0.4.1-.../server.mjs:56:10827)
msg: "Failed to activate capability package slurp2@0.4.1"
msg: "Rolling capability package slurp2 back to 0.4.0"
... same error for slurp2@0.4.0

Root cause: Engine staging moved from zod 3 to zod 4 (0dddb04dc, Dependabot, 2026-10-23). Slurp keeps zod external, so it now runs on zod 4. In zod 4, .default({}) returns the default value without parsing it, so nested defaults stay unset. SLURP_REALISTIC_TUNING = slurpSimulationTuningSchema.parse({}) gets world: {}, and scaleCurves reads world.commission.curve at module load.

Steps to reproduce

  1. Update Marinara Engine to current staging (zod 4.6.7).
  2. Install or update Slurp 0.4.1.
  3. Restart the Engine.

Environment

  • Marinara Engine version: staging after 0dddb04dc
  • Package version: 0.4.0, 0.4.1
  • Install type: source

Additional context

Reported by a staging user. Long Term Memory and Hierarchical Maps use the same .default({}) pattern; they are out of scope here and need a separate check.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Gunterlie on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1720 Originally assigned to: @Gunterlie on GitHub. ## Summary Slurp 0.4.0 and 0.4.1 fail to start on current Engine `staging`. The server crashes at load with `TypeError: Cannot read properties of undefined (reading 'curve')`, and the Engine rolls back to the previous version, which crashes the same way. ## Affected package `slurp2` ## Expected behavior Slurp activates on Engine `staging`. ## Actual behavior ``` TypeError: Cannot read properties of undefined (reading 'curve') at UC (.../capability-runtime-snapshots/slurp2-0.4.1-.../server.mjs:56:10827) msg: "Failed to activate capability package slurp2@0.4.1" msg: "Rolling capability package slurp2 back to 0.4.0" ... same error for slurp2@0.4.0 ``` Root cause: Engine `staging` moved from zod 3 to zod 4 (`0dddb04dc`, Dependabot, 2026-10-23). Slurp keeps `zod` external, so it now runs on zod 4. In zod 4, `.default({})` returns the default value without parsing it, so nested defaults stay unset. `SLURP_REALISTIC_TUNING = slurpSimulationTuningSchema.parse({})` gets `world: {}`, and `scaleCurves` reads `world.commission.curve` at module load. ## Steps to reproduce 1. Update Marinara Engine to current `staging` (zod 4.6.7). 2. Install or update Slurp 0.4.1. 3. Restart the Engine. ## Environment - Marinara Engine version: `staging` after `0dddb04dc` - Package version: 0.4.0, 0.4.1 - Install type: source ## Additional context Reported by a staging user. Long Term Memory and Hierarchical Maps use the same `.default({})` pattern; they are out of scope here and need a separate check. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-27 06:05:46 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1691
No description provided.