STET

flux-pr-4568

Zod (TypeScript) · W2 · GPT-5.1 Codex Mini

pass_with_warn

Tests passed. 3/3 commands passed. Strength: weak.

61.5% run pass rate
Tier 1
primary equivalencepassedneeds generated testsweak signal riskcommand source driftnon equivalentunsure
pnpm build
gold passagent pass
find . -name vitest.config.ts -exec sed -i 's/test: {/test: { testTimeout: 30000,/' {} +
gold passagent pass
npx vitest run packages/zod/src/v4/mini/tests/object.test.ts -t "z\.object\(\)\.check\(\)"
gold passagent pass

Partial score: 3/3

Publishable: noWeak signal risk: yesCache: miss

Trajectory

unknown · partial order only

Canonical trajectory missing; showing coarse derived order only.

patch written
Patch captured
#1

Stet captured agent.patch for this trial.

validation
Tests passed
#2
equivalence
Equivalence judgment
#3

non_equivalent

code review
Code review judgment
#4

unsure

decision
Final decision
#5

pass_with_warn

Quality

equivalence
non_equivalent
89% confidence
code review
unsure
2 findings
footprint
low (0.08)
behavioral
100.0%
cost
$1.03 · 2.8M

Equivalence Reasoning

behavioral

The patch only updates `v4/mini/schemas.ts` (including `check` and some mini wrapper generics), but it does not address other core inference paths required by the task intent, especially function adapter inference (`v4/core/function.ts`) and related schema typing updates (`v4/classic/schemas.ts` for `superRefine`/`pipe`). So the intended end-to-end input/output inference fix is incomplete.

Code Review

correctness: 2/4introduced bug risk: 2/4edge case handling: 2/4maintainability idioms: 3/4

The patch likely improves mini-schema inference for `check()` and related wrappers, but it does not appear to fully satisfy the intended broader v4 inference alignment across refinement/pipe/function-adapter paths.

2 findings
Implementation appears incomplete versus intended inference updates
major

The patch changes `ZodMiniType.check()` inference and some mini wrapper generics, but does not include corresponding updates for classic/core inference paths (notably refinements/pipes/function adapters) that the task description implies should also be aligned.

packages/zod/src/v4/mini/schemas.ts:5
Additional generic-surface changes beyond requested fix
minor

Changing `ZodMiniTransform`, `ZodMiniPipe`, and `ZodMiniCustom` to extend `ZodMiniType<...>` alters public generic relationships beyond the explicit `check()` fix; this may introduce subtle downstream typing regressions without broader validation.

packages/zod/src/v4/mini/schemas.ts:1116