Skip to content

Patch Zod constrained collection validation - #33

Merged
jacobprall merged 1 commit into
mainfrom
codex/issue-23-patch-zod
Oct 28, 2026
Merged

jacobprall merged 1 commit into
mainfrom
codex/issue-23-patch-zod

Conversation

@starmorph

Copy link
Copy Markdown
Contributor

The frozen Zod 4.6.5 dependency validates every element of an oversized constrained collection before rejecting its size. Raise the supported minimum and locked resolution to 4.6.6, which applies the size bound first, and add coverage through the real Transcript schema.

The bounded regression produced 2,001 validation issues for 1,000 malformed messages before the update and now produces one size error. Valid boundaries and individual-message validation remain covered. This demonstrates excess validation work; it does not establish an unauthenticated HTTP crash.

Validation: frozen reinstall, focused tests (5 passed), independently rerun typecheck and full suite (84 passed, 1 live-model test skipped), and diff checks passed. The dependency diff contains only Zod resolution and its peer contexts.

A successful snapshot refresh is needed to update the validator inside bundled runners.

References: reviewed advisory, maintainer fix.

Fixes #23.

@jacobprall
jacobprall merged commit 3efd88a into main Oct 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[P2] Update the locked Zod dependency to a patched version

2 participants