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.
- I have thought about edge cases and made sure my fix handles them as well.
- I have run existing tests in the repository that might have been affected by the change I made and confirmed that they pass. I want you to list every bullet from this checklist and write your reasoning for why you think you did it or didn't need to.
Repository has been uploaded and your shell is currently at the repository root. Time to solve the issue!
(Current directory: /vize, current file: none) bash-$
- Assistant
I'll start by exploring the repository structure and understanding the Vue differential-parity setup for Script Setup TypeScript cases.
- Assistant
Let me look for differential parity related files and Script Setup TypeScript cases.
- Assistant
Let me explore further around compiler parity and script setup typescript.
- Assistant
Let me search more specifically for differential parity oracle and known failures.
- Assistant
Let me look for the differential parity oracle specifically, and known failure budget.
- Assistant
Strange, no results. Let me try without restrictive globs.
- Assistant
Hmm nothing. Let me search for vue compiler differential comparison.
- Assistant
Let me search for differential fixtures more carefully. Maybe it's in crates.
- Assistant
Interesting - rg is returning no results for defineOptions even though we saw
.snapfiles with that name. Let me try grep. - Assistant
Let me look at the fixtures for SFC and how coverage/parity works. Also search for vue differential oracle.
- Assistant
Found the known-failure budget and expected-output generator. I'll inspect those next.
- Assistant
Let me continue reading the SFC compilation path and script-setup fixtures.
- Assistant
Let me inspect normalization, the script-setup fixtures, and the known-failure unit tests more closely.
- Assistant
Checking git history and whether fixtures or known-failures still need updates.
- Assistant
Looking at the recent parity commit and what's currently in the fixtures vs snapshots.
- Assistant
I'll run the coverage oracle to see the current pass/fail budget for script-setup cases.
- Assistant
Everything currently passes. Checking TypeScript snapshot tests and whether new differential cases still need to be added.
- Assistant
Looking at the SFC snapshot tests next—they may be where the TypeScript differential cases live.
- Assistant
Let me look more carefully at the snapshot_tests and how fixtures relate. Also search for "differential" more thoroughly, and look at git branches or TODOs.
- Assistant
Checking for task-related files or uncommitted patches that describe the intended changes.
- Assistant
Let me see if know failures used to be non-empty and what was removed. Also look at git history of coverage.rs
- Assistant
Regenerating the script-setup expected snapshots from the real Vue compiler to expose any remaining divergences.
- Assistant
I'll install dependencies next so we can regenerate expected snapshots from Vue.
- Assistant
Need to set up pnpm or use corepack/npm.
- Assistant
No node available. Let me check if there's nix or something.
- Assistant
I'll install Node so we can regenerate the Vue expected snapshots.
- Assistant
Good, node is available. Now let me install pnpm and dependencies.
- Assistant
Good. Now let me regenerate script-setup and see the diff against current expected.
- Assistant
Need to use tsx or something. Let me check how to run ts files.
- Assistant
I need a newer Node and a TypeScript runner to execute the generator.
- Assistant
Also note that node 22 can run TypeScript with --experimental-strip-types maybe. Let me try tsx.
- Assistant
Regenerating diverges from the stored oracle. Next I'll inspect Vue's defineOptions tests and what extra cases we should add.
- Assistant
Hmm packages might be at root or tests.
- Assistant
I'll inspect defineOptions compilation and invent precise TS fixture cases next.
- Assistant
I'll compile a few Vue cases to compare TS defineOptions and generic outputs.
- Assistant
Need to run from tests directory where node_modules resolves.
- Assistant
Hmm, need to put the script in the tests folder.
- Assistant
I'll restore the original snap, add the TS
defineOptionscases, then regenerate from Vue and update the known-failure budget. - Assistant
Adding the TypeScript
defineOptionscases to the fixture, then regenerating expected snapshots. - Assistant
I'll add TS defineOptions cases after the existing defineOptions case.
- Assistant
Now regenerate the expected snapshots for script-setup.
- Assistant
I'll inspect a few failure diffs to confirm normalization is correct and not creating false known failures.
- Assistant
Checking whether known failures must actually still fail so the budget stays accurate.
- Assistant
Updating the known-failure budget and minimum pass counts in coverage.rs.
- Assistant
Now update the unit test at the bottom.
- Assistant
I'll update the unit test and enforce that observed failures match the known-failure budget exactly.
- Assistant
There's an extra brace at the end of the file—I'll remove it.
- Assistant
Running coverage and the unit test next to verify the budget is exact.
- Assistant
Checking how new fixture cases interact with the TypeScript insta snapshot set.
- Assistant
I'll generate the new TypeScript insta snapshots for the added defineOptions cases so snapshot tests don't fail.
- Assistant
There may also be JS snapshots. Let me check.
- Assistant
There's also a JS snapshots path - let me check snapshot_tests for js.
- Assistant
Checking whether docs or release gates hardcode the old pass counts.
- Assistant
Wait - git status doesn't show the new snapshots? Let me check.
- Assistant
Untracked snapshot files won't show in
git diff. I'll stage them with intent-to-add so they're included. - Assistant
Verifying a clean coverage exit, then checking whether docs enforce the old pass counts.
- Assistant
Confirming new snapshot contents appear in the diff that submit will use.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
claude-sonnet-5Compare side by side →
claude-sonnet-5Compare side by side →
claude-sonnet-5Compare side by side →
claude-sonnet-5Compare side by side →
claude-sonnet-5Compare side by side →
Qwen/Qwen3.6-35B-A3BCompare side by side →
Qwen/Qwen3.6-35B-A3BCompare side by side →
Qwen/Qwen3.6-35B-A3BCompare side by side →
Qwen/Qwen3.6-35B-A3BCompare side by side →
Qwen/Qwen3.6-35B-A3BCompare side by side →
Qwen/Qwen3.6-27BCompare side by side →
Qwen/Qwen3.6-27BCompare side by side →