test(eval): field-pattern regression fixture with xfail-tracked coverage gaps (6F.2)#44
Merged
officialCodeWork merged 1 commit intoJul 15, 2026
Conversation
…age gaps (6F.2) New fixture eval/fixtures/field-patterns mirrors the shapes the 2026-07-15 ih-frontend validation used where every gate scored 1.000 but the field run failed: tsconfig-path-alias barrel imports, Loadable(lazy(() => import())) page elements, route arrays composed in a separate file and passed to createBrowserRouter as an identifier, an RTK Query store, and tests rendering through a custom providers wrapper. Golden asserts target behavior; 9 checks the scanner cannot satisfy yet are marked expectedFail naming the enabling step (6F.3 aliases/instances, 6F.4 RTK Query, 6F.5 object-config routes). Unexpected-pass gating removes stale marks the moment a capability lands. Scanning the fixture confirmed the field diagnosis: the @ui alias import yields no instance node at all for UsersPage's <Grid/>, and 0 route/data-source/hook nodes exist. Relative two-hop barrel rename and covered-by through the custom wrapper already work and stay as passing checks. checks.ts: xfail-marked attributions no longer feed the lineage precision/recall tallies while marked, so known-missing capabilities don't depress global metrics. Eval: 280 pass / 0 fail / 9 xfail / 0 unexpected-pass, gate OK, metrics 1.000. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the fixture-vs-reality blind spot the 2026-07-15 field validation exposed: every gate scored 1.000 while the real-codebase run got 28% instance resolution, 0 RTK data sources, and 0 route nodes. This fixture (
eval/fixtures/field-patterns) replicates those exact shapes:components/index.ts→ui/index.ts→ definition) and tsconfig-path aliases (@ui,@store/*)Loadable(lazy(() => import()))page elementscreateBrowserRouteras an imported identifiercreateApibase + twoinjectEndpointsslices (string-form and object-formquery, abuilder.mutation)renderWithProviderswrapperMechanism
The golden asserts target behavior. 9 checks the scanner can't satisfy yet carry
expectedFailnaming the enabling step — 6F.3 (DataGrid instances + blast radius), 6F.4 (endpoint attributions), 6F.5 (routes, effect, journey). The harness's unexpected-pass gate removes stale marks the moment a capability lands.checks.tschange: xfail-marked attributions stay out of the lineage precision/recall tallies while marked — a known-missing capability shouldn't depress global metrics.Confirmed by the scan
@uialias import yields no instance node at all for UsersPage's<Grid/>— matching the field's "72% never linked" diagnosiscovered-bythrough the custom wrapper — so 6F.6 must find the actual field-breaking coverage variantVerification
pnpm eval: 280 pass · 0 fail · 9 xfail · 0 unexpected-pass, gate OK, all metrics 1.000🤖 Generated with Claude Code