flux-pr-4568
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/mini/tests/object.test.ts -t "z\.object\(\)\.check\(\)"Partial score: 3/3
Trajectory
unknown · partial order onlyCanonical trajectory missing; showing coarse derived order only.
Quality
Equivalence Reasoning
behavioral
The patch only partially implements the intended type-inference fix. It updates `mini/schemas.ts` and function inference type aliases, but misses the `v4/classic/schemas.ts` `superRefine`/`pipe` generic corrections that are part of the input/output inference alignment. It also introduces `core.input/output` usages in `v4/core/function.ts` without adding the required `core` type import, so the change is incomplete and likely breaks type checking.
Code Review
The patch is directionally correct for mini/core inference but likely does not compile due to a missing import and does not fully satisfy the intended change because classic schema inference adjustments are missing.
The patch replaces `_zod` access with `core.output`/`core.input` in function inference types but does not add `import type * as core from "./core.js";`, so the `core` namespace is unresolved.
Intended inference fixes include classic `superRefine` and `pipe` signatures using `core.output<this>`, but the agent patch does not modify `packages/zod/src/v4/classic/schemas.ts`, leaving part of the type-inference bug unresolved.