STET

flux-pr-3535

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

pass_with_warn

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

61.5% run pass rate
Tier 1
primary testspassednon equivalentfail
yarn build
gold passagent pass
find . -name vitest.config.ts -exec sed -i 's/test: {/test: { testTimeout: 30000,/' {} +
gold passagent pass
yarn test
gold passagent pass

Partial score: 3/3

Publishable: noCache: 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
90% confidence
code review
fail
1 finding
footprint
low (0.22)
behavioral
100.0%
cost
$0.37 · 737K

Equivalence Reasoning

behavioral

The patch does allow readonly inputs, but it weakens the `create` type constraint from a non-empty tuple to `ReadonlyArray<...>`. That drops an existing typing guarantee (non-empty options, and stricter tuple-based shape), so it does not fully preserve the intended type-safety guarantees.

Code Review

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

The patch is close but likely does not fully satisfy the intended change because it relaxes `create` too far; readonly support was added, but the non-empty tuple typing guarantee was lost.

1 finding
Non-empty options guarantee removed in discriminated union create
major

The `create` generic changed from a non-empty tuple (`[first, ...rest]`) to `ReadonlyArray`, which permits empty arrays and weakens the intended typing guarantees for discriminated union construction.

src/types.ts:3245