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 trace the repository’s parity harness and fixture-generation path, then update the compiler behavior, snapshots, and exact known-failure count.
- Assistant
rgisn’t installed here, so I’m switching tofind/grepand keeping the search scoped to repository sources and tests. - Assistant
The oracle already has broad generic fixtures, but only one untyped
defineOptionscase. I’m running the full differential coverage now to establish the actual divergence set before adding the missing TypeScript cases. - Assistant
The key compiler gap is now clear: TypeScript
defineOptionsoutput must wrap the options merge in Vue’s_defineComponent, while the current code emits onlyObject.assign. I’m adding focused oracle cases for that path plus a generic-parameter case, then I’ll regenerate/verify the snapshot corpus and recalculate the failure budget. - Assistant
The three added differential cases now pass, so the remaining known-divergence set is empty. I’ve raised the SFC/total coverage floors to 162/688; next I’m running both the oracle runner tests and the SFC snapshot suite to catch any closure/output regressions.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.