flux-pr-4970
Zod (TypeScript) · W2 · GPT-5.4
Tests passed. 3/3 commands passed. Strength: weak.
pnpm buildfind . -name vitest.config.ts -exec sed -i 's/test: {/test: { testTimeout: 30000,/' {} +npx vitest run packages/zod/src/v4/classic/tests/union.test.ts -t "surface\ continuable\ errors\ only\ if\ they\ exist"Partial score: 3/3
Trajectory
unknown · partial order onlyCanonical trajectory missing; showing coarse derived order only.
Quality
Equivalence Reasoning
stylistic
Agent patch implements all core intents: union handling now only returns a non-aborted branch when exactly one exists, empty literal schemas are rejected at construction, docs include `normalize()` in string transforms, and version is bumped to 4.0.9. Differences from gold are limited to wording/comments and added tests.
Code Review
The agent patch likely satisfies the intended 4.0.9 changes: deterministic union resolution for the single surviving branch, rejection of empty literal schemas, and normalization added to string transform docs, with aligned version bumps and supporting tests.