ISSUE DESCRIPTION Compiler parity: add the current Script Setup TypeScript differential…
- User
ISSUE DESCRIPTION
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.
ADDITIONAL ADVICE
Since you are given a git repository, you can use git commands to simplify your work. For example, if you made a mistake and want to revert your changes, you can use
git checkout <file>to restore the file to its original state. You can also reset all changes in the repository usinggit reset --hardcommand. Additionally, you can usegit stashandgit stash popto temporarily save your changes and restore them later. Finally, you can see the changes that you've made (which will be submitted when you callsubmit) usinggit statusorgit diffcommands. However you don't need to usegit addorgit commitbefore submitting your changes. In fact,submitonly submits currently unstaged changes because it usesgit diffto get the changes that need to be submitted.CHECKLIST
Before submitting your solution, please go over the following checklist and make sure you've done everything:
- If an error was reported in the issue description, I have successfully reproduced it.
- If an error was reported in the issue description, I have confirmed that my fix resolves the error.
- Assistant
I’ll first inspect the repository structure, parity tooling, fixtures, and current git state. Then I’ll identify the Script Setup TypeScript corpus, reproduce the parity command, implement normalization or fixture updates as appropriate, regenerate expected outputs using the project’s Vue oracle, update the known-failure count, and run the focused and relevant existing tests.
- Assistant
The repository already contains the normalization helper and a unit test for
required: true, but the tracked differential fixture currently has only one JavaScriptdefineOptionscase. The current TypeScript corpus has generic cases, while the SFC differential fixture does not cover the requested TypeScriptdefineOptionsvariants. I’ll add the upstream-shaped variants to the differential fixture, regenerate its Vue-compiler snapshot, and use the coverage oracle to discover the exact remaining divergences before adjusting the known-failure budget. - Assistant
The three new TypeScript
defineOptionscases initially exposed missing expected entries; after generating the TypeScript snapshots from the real Vue compiler and adding those outputs to the differential snapshot, the oracle reports 72/72 Script Setup cases and 688/688 overall. No divergences remain, so the accurate known-failure budget is zero rather than adding suppressions. I’ll now run focused tests and inspect the final diff for accidental changes.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.