Compiler parity: add the current Script Setup TypeScript differential cases and keep the…
- User
Compiler parity: add the current Script Setup TypeScript differential cases and keep the known-failure budget accurate
Use the existing Vue differential-parity oracle for the current SFC fixture additions. Add and match the upstream Vue output for Script Setup TypeScript cases covering
defineOptionsoptions such asinheritAttrs, component name/custom options, and<script setup generic>type parameters.Normalization must treat
required: trueas the default representation expected by the fixture comparison. Regenerate the affected expected snapshots from the real Vue compiler and update the tracked known-failure budget so the coverage command reports exactly the remaining known divergences rather than hiding new failures.Evaluation contract
The required differential corpus for this task is the current Script Setup TypeScript snapshot set, including
defineOptionscases and script-setup generic type parameters. Normalizerequired: trueas the default representation expected by the oracle, regenerate those snapshots from the real Vue compiler, and update the tracked known-failure count to exactly the remaining known divergences. Passing a different parity-fixture subset does not satisfy this task.Interface
No new interfaces are introduced.
- Assistant
I’ll inspect the differential fixture/oracle setup and repository guidance first, then update the compiler behavior, snapshots, and exact known-failure count before running the focused coverage command.
- Assistant
rgisn’t installed in this environment, so I’m falling back tofind/grepand narrowing the search to test and compiler directories. - Assistant
The checked-in corpus currently has 60 Script Setup cases and zero tracked failures. I found the oracle generator and a normalization rule that currently erases Vue’s
required: true; I’m running the baseline coverage now to identify the true remaining divergences before changing that representation. - Assistant
Baseline is 685/685. The requested additions will intentionally make the corpus stricter, so I’m installing the lockfile-pinned local test dependencies in offline mode to regenerate the oracle from the actual bundled Vue compiler, then I’ll distinguish implementation fixes from genuine tracked divergences.
- Assistant
Canonicalizing omissions to Vue’s
required: truerepresentation exposed seven genuine divergences that the old erasing normalization hid—exactly the budget issue described. I’m inspecting those diffs now; the Script Setup generic/type cases belong in the tracked debt, while I’ll verify whether the nullable patch is a normalization edge case before setting the exact budget. - Assistant
The canonicalizer now handles every runtime prop on a collapsed compiler-output line, so it preserves Vue’s representation without creating false failures. The expanded corpus is 688/688 with zero remaining known divergences; I’ve raised the pass floor accordingly and am doing the final formatter and focused test pass.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.