[GH-ISSUE #8329] [Issue]: Zod 4 bump prevents Slurp2 and Hierarchical Maps from loading #8277

Closed
opened 2026-10-27 06:06:52 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8329

Originally assigned to: @SpicyMarinara on GitHub.

Summary

On staging with Marinara Engine 2.5.1, Slurp2 0.4.1 and Hierarchical Maps 1.7.1 fail to activate after the host's Zod dependency was bumped from v3 to v4. Both agents import Zod from the host and appear to rely on Zod 3 behavior.

Expected behavior

Both agents should activate successfully on staging, including after their packages are updated.

Actual behavior

Hierarchical Maps 1.7.1 fails with TypeError: At.innerType is not a function and rolls back to 1.5.1, which appears to load. Slurp2 0.4.1 fails with TypeError: Cannot read properties of undefined (reading 'curve'); it rolls back to 0.3.47, which fails with the same error, leaving Slurp unavailable.

Steps to reproduce

  1. Run Marinara Engine 2.5.1 on the staging build with capability API 1.384 on Windows.
  2. Update packages to Slurp2 0.4.1 and Hierarchical Maps 1.7.1.
  3. Start the engine and observe both agents fail to activate and roll back.

Environment

  • Marinara Engine version: 2.5.1 (latest staging); capability API 1.384
  • Install type: Not provided
  • OS + version: Windows; version not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Hierarchical Maps 1.7.1: TypeError: At.innerType is not a function. Slurp2 0.4.1 and 0.3.47: TypeError: Cannot read properties of undefined (reading 'curve'). No screenshots or video provided.

Additional context

The reporter identifies staging commit 0dddb04dc (Oct 23) as the change that moved Zod from ^3.25.76 to ^4.6.7; main remains on Zod 3. Hierarchical Maps appears to call .innerType().extend(...) on a superRefine'd schema, while Slurp2's settings schema uses .default({}) and later reads nested commission.curve and message.curve values. The reporter notes other third-party packages importing the host's Zod may also be affected.

Discord thread: Some agents fail to load on staging after the zod4 bump (Slurp2 and Hierarchical Maps for me)
Discord thread link: https://discord.com/channels/1417099416812392641/1564017244613124208
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-10-25T20:46:09.151Z] thisonecan't: **Setup**
Engine on latest staging (2.5.1, capability API 1.384), packages updated to current staging: slurp2 0.4.1, hierarchical-maps 1.7.1. Windows.

**What happens**
At startup both packages fail to activate and roll back:
- `hierarchical-maps@1.7.1`: `TypeError: At.innerType is not a function` → rolls back to 1.5.1 (which seems to load)
- `slurp2@0.4.1`: `TypeError: Cannot read properties of undefined (reading 'curve')` → rolls back to 0.3.47, which fails with the same error, so Slurp is down entirely

**Cause**
Engine staging commit `0dddb04dc` (Oct 23, automated "chore(deps): bump the npm_and_yarn group…") moved zod from `^3.25.76` to `^4.6.7`. Main is still on zod 3. Both packages import `zod` from the host instead of bundling it (slurp2 has 25 `from "zod"` imports, maps has 4), and both rely on zod 3 behavior that changed in v4:

- **Hierarchical Maps:** the bundle does `.innerType().extend(...)` on a superRefine'd schema. In zod 3 that's a ZodEffects with `.innerType()`. Zod 4 removed ZodEffects (refinements stay on the original schema), so the method doesn't exist.
- **Slurp2:** the settings schema is parsed at load with `.default({})`, then `UC` reads `e.commission.curve` / `e.message.curve`. In zod 3 an empty default still fills nested field defaults. In zod 4, `.default()` returns the value as-is without running inner defaults, so `commission` is `{}` and `.curve` is undefined. 0.3.47 has the same pattern, which is why the rollback also fails.

Any other third-party package importing the host's zod could hit the same thing, these two are the only ones that showed up in my console though. Other users with other agents installed may encounter more.
[Discord message: https://discord.com/channels/1417099416812392641/1564017244613124208/1564017244613124208]

[2026-10-25T20:46:10.590Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1564017244613124208/1564017250648985601]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8329 Originally assigned to: @SpicyMarinara on GitHub. ## Summary On staging with Marinara Engine 2.5.1, Slurp2 0.4.1 and Hierarchical Maps 1.7.1 fail to activate after the host's Zod dependency was bumped from v3 to v4. Both agents import Zod from the host and appear to rely on Zod 3 behavior. ## Expected behavior Both agents should activate successfully on staging, including after their packages are updated. ## Actual behavior Hierarchical Maps 1.7.1 fails with `TypeError: At.innerType is not a function` and rolls back to 1.5.1, which appears to load. Slurp2 0.4.1 fails with `TypeError: Cannot read properties of undefined (reading 'curve')`; it rolls back to 0.3.47, which fails with the same error, leaving Slurp unavailable. ## Steps to reproduce 1. Run Marinara Engine 2.5.1 on the staging build with capability API 1.384 on Windows. 2. Update packages to Slurp2 0.4.1 and Hierarchical Maps 1.7.1. 3. Start the engine and observe both agents fail to activate and roll back. ## Environment - Marinara Engine version: 2.5.1 (latest staging); capability API 1.384 - Install type: Not provided - OS + version: Windows; version not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Hierarchical Maps 1.7.1: `TypeError: At.innerType is not a function`. Slurp2 0.4.1 and 0.3.47: `TypeError: Cannot read properties of undefined (reading 'curve')`. No screenshots or video provided. ## Additional context The reporter identifies staging commit `0dddb04dc` (Oct 23) as the change that moved Zod from `^3.25.76` to `^4.6.7`; main remains on Zod 3. Hierarchical Maps appears to call `.innerType().extend(...)` on a superRefine'd schema, while Slurp2's settings schema uses `.default({})` and later reads nested `commission.curve` and `message.curve` values. The reporter notes other third-party packages importing the host's Zod may also be affected. Discord thread: Some agents fail to load on staging after the zod4 bump (Slurp2 and Hierarchical Maps for me) Discord thread link: https://discord.com/channels/1417099416812392641/1564017244613124208 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-10-25T20:46:09.151Z] thisonecan't: **Setup** Engine on latest staging (2.5.1, capability API 1.384), packages updated to current staging: slurp2 0.4.1, hierarchical-maps 1.7.1. Windows. **What happens** At startup both packages fail to activate and roll back: - `hierarchical-maps@1.7.1`: `TypeError: At.innerType is not a function` → rolls back to 1.5.1 (which seems to load) - `slurp2@0.4.1`: `TypeError: Cannot read properties of undefined (reading 'curve')` → rolls back to 0.3.47, which fails with the same error, so Slurp is down entirely **Cause** Engine staging commit `0dddb04dc` (Oct 23, automated "chore(deps): bump the npm_and_yarn group…") moved zod from `^3.25.76` to `^4.6.7`. Main is still on zod 3. Both packages import `zod` from the host instead of bundling it (slurp2 has 25 `from "zod"` imports, maps has 4), and both rely on zod 3 behavior that changed in v4: - **Hierarchical Maps:** the bundle does `.innerType().extend(...)` on a superRefine'd schema. In zod 3 that's a ZodEffects with `.innerType()`. Zod 4 removed ZodEffects (refinements stay on the original schema), so the method doesn't exist. - **Slurp2:** the settings schema is parsed at load with `.default({})`, then `UC` reads `e.commission.curve` / `e.message.curve`. In zod 3 an empty default still fills nested field defaults. In zod 4, `.default()` returns the value as-is without running inner defaults, so `commission` is `{}` and `.curve` is undefined. 0.3.47 has the same pattern, which is why the rollback also fails. Any other third-party package importing the host's zod could hit the same thing, these two are the only ones that showed up in my console though. Other users with other agents installed may encounter more. [Discord message: https://discord.com/channels/1417099416812392641/1564017244613124208/1564017244613124208] [2026-10-25T20:46:10.590Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1564017244613124208/1564017250648985601] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-27 06:06:52 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Oct 26, 2026):

Verified this report against current staging 5b7d81b83 and the exact published package archives. The existing compatibility repair in #8210 (merge 7bb1c9c19) is present in that staging history; no additional runtime patch is needed for these failures.

Results:

  • Hierarchical Maps 1.7.1: the unchanged server.mjs reproduces At.innerType is not a function with native Zod 4.6.7, then imports successfully with Engine’s actual managed Zod 3.25.76 snapshot mapping.
  • Slurp2 0.4.1 and rollback 0.3.47: both unchanged server modules reproduce the exact Cannot read properties of undefined (reading 'curve') error with native Zod 4.6.7, then import successfully with that managed Zod 3 mapping.
  • Full activation: complete manifest-verified Maps 1.7.1 and Slurp2 0.4.1 payloads pass Engine’s real snapshot, activation and self-check path and reach active / ready at the requested versions, with no rollback or errors; the probe recorded zero fetch requests.
  • The existing server dependency/compatibility regression also passes (1/1).

These checks ran on macOS/Node with disposable data and the exact current staging source tree, not a physical Windows installation or the browser UI. The report was filed after #8210 merged; Engine 2.5.1 / capability API 1.384 alone cannot identify whether its checkout contained that repair, because the repair did not bump those versions. I am not treating the report date as proof of a stale installation.

Closing as fixed by #8210, with the exact affected packages now validated. Update/rebuild staging and restart Engine before retrying the package updates. If the same errors persist, please reopen with the exact Engine commit from Support Diagnostics and the current activation stack trace so we can investigate that installation.

<!-- gh-comment-id:6411618852 --> @SpicyMarinara commented on GitHub (Oct 26, 2026): Verified this report against current staging `5b7d81b83` and the exact published package archives. The existing compatibility repair in #8210 (merge `7bb1c9c19`) is present in that staging history; no additional runtime patch is needed for these failures. Results: - **Hierarchical Maps 1.7.1:** the unchanged `server.mjs` reproduces `At.innerType is not a function` with native Zod 4.6.7, then imports successfully with Engine’s actual managed Zod 3.25.76 snapshot mapping. - **Slurp2 0.4.1 and rollback 0.3.47:** both unchanged server modules reproduce the exact `Cannot read properties of undefined (reading 'curve')` error with native Zod 4.6.7, then import successfully with that managed Zod 3 mapping. - **Full activation:** complete manifest-verified Maps 1.7.1 and Slurp2 0.4.1 payloads pass Engine’s real snapshot, activation and self-check path and reach `active` / `ready` at the requested versions, with no rollback or errors; the probe recorded zero `fetch` requests. - The existing server dependency/compatibility regression also passes (1/1). These checks ran on macOS/Node with disposable data and the exact current staging source tree, not a physical Windows installation or the browser UI. The report was filed after #8210 merged; Engine 2.5.1 / capability API 1.384 alone cannot identify whether its checkout contained that repair, because the repair did not bump those versions. I am not treating the report date as proof of a stale installation. Closing as fixed by #8210, with the exact affected packages now validated. Update/rebuild staging and restart Engine before retrying the package updates. If the same errors persist, please reopen with the exact Engine commit from Support Diagnostics and the current activation stack trace so we can investigate that installation.
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-Engine#8277
No description provided.