Skip to content

FPFNFIXAPEX: defer unused diagnostic evidence parsing - #2177

Open
aidenybai wants to merge 1 commit into
mainfrom
codex/fpfn-shared-lazy-evidence
Open

aidenybai wants to merge 1 commit into
mainfrom
codex/fpfn-shared-lazy-evidence

Conversation

@aidenybai

Copy link
Copy Markdown
Member

Read diagnostic source snippets without eagerly constructing a TypeScript AST. Forwarded-handler evidence parses the cached source snapshot only when its AST is needed. This removes unused TypeScript loader work while preserving diagnostic spans, snippets, fingerprints, and the report shape.

Regression coverage includes UTF-8 byte offsets, CRLF, cached source snapshots, option changes, file failures, and lazy parser failures. The existing forwarded-handler and scan-cache suites remain covered.

Validation: all required test, lint, typecheck, format, generator, build, and JSON smoke commands exited zero; 62 focused evidence/cache tests passed. The committed build has 175 verified own artifacts and five verified runtime edges. The strict intermediate artifact audit retained one declaration-only literal-union ordering failure; an independent exact-byte review qualified that finite type-equivalent difference, with the other 174 artifacts and JavaScript unchanged.

On one synthetic general workload with 128 components, 11 selected files, and 256 exact diagnostic objects, nine samples per revision/cohort measured cold median 852.8→733.6 ms and hot 432.0→381.4 ms. Total CPU and maximum RSS decreased in both cohorts. Dedicated CPU/rule captures were separate; 10,672 raw CPU samples had no discarded nonpositive offsets. Hot primary-rule attribution remains partial. These results cover this finite local workload; affected rule branches are validated separately.

The patch Changeset applies to react-doctor. Package versions remain 0.9.18. Hosted parity and RDE were not run because their credentials were unavailable; no hosted parity claim is made.

@pkg-pr-new

pkg-pr-new Bot commented Oct 21, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/eslint-plugin-react-doctor@2177
npm i https://pkg.pr.new/oxlint-plugin-react-doctor@2177
npm i https://pkg.pr.new/react-doctor@2177

commit: adcd927

@github-actions

Copy link
Copy Markdown
Contributor

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit adcd927.

@github-actions

Copy link
Copy Markdown
Contributor

Interactive terminal E2E

Terminal Control verified the built CLI at adcd927 in a real PTY:

  • selected a project interactively and observed Scanning... before the three-second Git delay completed
  • waited for the clean result and exercised the compact report
  • opened copy context and the GitHub Actions confirmation, then cancelled safely

Download the edited MP4 and PNG evidence

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant