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 layout, parity tooling, fixtures, and current git state. Then I’ll identify the normalization and snapshot-generation paths, reproduce the targeted coverage failure, make the smallest source/snapshot/budget changes, and run the relevant parity tests before submitting.
- Assistant
The repository is a Rust/TypeScript workspace, so I’m locating the Vue differential oracle and its fixture/snapshot commands rather than assuming a test framework. I’ll also inspect package scripts and any tracked budget files to establish the exact intended workflow.
- Assistant
The targeted fixture already contains several generic cases, but the tracked expected snapshot appears to predate or mismatch the current TypeScript differential corpus. The coverage budget is currently empty, and its unit test explicitly enforces zero; I’ll run the coverage binary now to enumerate the real divergences and compare the fixture parser/oracle normalization code.
- Assistant
Coverage is currently green at 685/685, confirming the existing corpus is internally consistent but not necessarily complete for the requested upstream cases. The oracle already has a
required: truenormalization, but it is only a few literal substitutions; I’ll strengthen it to normalize the default property representation robustly, add the missing TypeScriptdefineOptions/generic differential fixtures, and regenerate the SFC snapshot through the repository’s official Vue compiler generator. - Assistant
The differential run now reports exactly three failures, all on the newly added TypeScript
defineOptionscases; they are the known Vize divergence (Vize wraps these option-only components withdefineComponent, while Vue’s output does not). I’ve recorded those exact case identities in the budget, while leaving generic TypeScript cases as passing coverage. I’ll run the coverage unit test and inspect the final diff for accidental changes before submission.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.