STET

flux-pr-4811

Zod (TypeScript) · W2 · GPT-5.4

pass_with_warn

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

69.2% run pass rate
Tier 1
primary equivalencepassedequivalentneeds generated testsweak signal riskcommand source drift
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/classic/tests/to-json-schema.test.ts -t "number\ constraints\ draft\-4|literal\ draft\-4"
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

equivalent

code review
Code review judgment
#4

fail

decision
Final decision
#5

pass_with_warn

Quality

equivalence
equivalent
88% confidence
code review
fail · 49/100
2 findings
footprint
medium (0.48)
behavioral
100.0%
cost
$1.05 · 1.5M

Equivalence Reasoning

stylistic

The patch implements draft-04 support end-to-end (target typing/docs, `$schema` URI, draft-04 exclusive bound booleans, `const`→single-value `enum`, draft-aware record/property-name handling, and legacy ref/allOf behavior) while preserving draft-7 and draft-2020-12 paths. It also includes an unrelated generated vitest cache file under `node_modules`, which is extraneous but not a core behavioral miss.

Code Review

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

The patch largely implements draft-04 support, but it introduces extra behavioral changes in draft-4 record handling and includes a committed test-cache artifact, so it is unlikely to be accepted as-is.

2 findings
Draft-4 record fallback over-constrains keys
major

For draft-4, `record` now rewrites some key schemas into `patternProperties`/`properties` and sets `additionalProperties: false`, which can reject keys that were previously accepted under the simpler downgrade path when `propertyNames` is unavailable.

packages/zod/src/v4/core/to-json-schema.ts:444
Generated vitest cache artifact was committed
major

The patch includes a `node_modules/.vite/.../results.json` file, which is build/test output and should not be in source control. This creates churn and CI/environment-dependent noise.

node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json:1