Dependency patches

Root installation applies these exact-version patches with patch-package --error-on-fail. Product bundles use the pinned dependencies.

zod@4.6.5

Recursive schemas can retain their last parse context and input graph, and exceptional exits can leave entries on the allocation stack. The patch keeps memoization local to a parse and restores allocation state in finally, preserving cycles, aliases and reentrant parsing.

When updating the dependency, verify its behavior before replacing or removing the patch. Keep the patched package version and the root lockfile synchronized.