STET

flux-pr-4861

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 equivalentfail
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/discriminated-unions.test.ts -t "pipes"
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

fail

decision
Final decision
#5

pass_with_warn

Quality

equivalence
non_equivalent
99% confidence
code review
fail
2 findings
footprint
high (1.00)
behavioral
100.0%
cost
$0.78 · 1.9M

Equivalence Reasoning

behavioral

The agent patch appears to add generated `node_modules/.bin/*` wrapper scripts (under `app/node_modules`) and does not show any changes to discriminated union or pipe schema logic. It does not address preserving/propagating discriminator property metadata through piped schemas, which is the core required behavior.

Code Review

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

The agent patch is very unlikely to satisfy the task: it appears to add generated node_modules binary wrappers rather than implementing the discriminated-union pipe metadata fix in Zod source code.

2 findings
Patch does not implement discriminated-union pipe fix
major

Expected changes in Zod discriminated-union/pipe internals are absent in the provided patch; instead it adds generated node_modules launcher scripts, so the intended behavior change is not delivered.

app/node_modules/.bin/attw:1
Introduces environment-specific hardcoded paths
major

Scripts embed absolute /app pnpm store paths in NODE_PATH, which is non-portable and can fail outside the originating environment.

app/node_modules/.bin/attw:13