Audit React Doctor against ReactBench or similar diagnostic benchmark corpora for confirmed false positives, false negatives, taxonomy gaps, and verifier artifa
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-benchmark-fp-fn-audit-5f72fdb28782 ,按照其中的说明把「benchmark-fp-fn-audit」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Perform an evidence-backed audit of React Doctor diagnostics across a benchmark corpus. Read the complete rule documentation, quantify the distribution of failures, inspect every relevant trial artifact, and independently perform a second pass for additional false positives and false negatives.
For this benchmark, use:
/home/aidenybai/Developer/react-bench-internal/jobs/ReactBench-v1.1-beta-rd-0.9.3-consolidated-final-20260801
Read the complete React Doctor rule documentation from:
https://www.react.doctor/docs/rules
Read these repository review materials when they exist:
/home/aidenybai/Developer/react-bench-internal/docs/aiden-review
Do not treat prior reviews or reports as ground truth. Use them as leads and reverify every claim against the current benchmark revision.
For every inspected trial, locate and read:
verifier/model.patchverifier/rd-before.jsonverifier/rd-after.jsonverifier/rd.logresult.jsonrg --filesInspect all trial directories, including primary and verified variants. Normalize duplicate task names and repeated patch hashes before computing task-level statistics.
Classify findings conservatively:
Do not call a target-task miss a false negative. Do not call a diagnostic a false positive merely because the model failed tests. react_doctor=1 is a gate result, not proof that the code is correct.
Every confirmed finding must cite the exact trial, file, line or code span, rule documentation, diagnostic delta, task behavior, and test result. Separate strict rule misses from out-of-taxonomy gaps.
Use rg --files to enumerate trial artifacts. Record the benchmark revision, trial count, missing artifacts, duplicate variants, malformed reports, and available task reviews. Do not silently skip incomplete trials.
Recompute distributions from raw rd.log, rd-before.json, and rd-after.json data. Rank by trial coverage before raw occurrence count. Report:
NEW or introduced-diagnostic failures;NEW deltas;STILL target misses;Always recompute before relying on a prior summary. Large files can inflate occurrence counts, so show both occurrence count and affected-trial count.
Prioritize high-coverage rules and exact introduced-diagnostic failures, especially:
exhaustive-deps
no-giant-component
js-set-map-lookups
no-array-index-as-key
js-combine-iterations
effect-needs-cleanup
no-adjust-state-on-prop-change
button-has-type
prefer-module-scope-static-value
no-static-element-interactions
prefer-module-scope-pure-function
no-pass-data-to-parent
no-pass-live-state-to-parent
no-derived-state
no-ref-current-in-render
click-events-have-key-events
rerender-lazy-ref-init
only-export-components
rerender-lazy-state-init
For each high-impact cluster, inspect representative positives, representative negatives, the largest task concentration, and sibling trials with different outcomes.
Search every trial for additional candidates, not just the known clusters. Apply these heuristics:
Map, Set, and equivalent containers.useMemo, wrappers, and helper functions; preserve provenance for trusted serializers such as KaTeX.Known leads to independently recheck, without presuming their classification:
fix-react-rdh-nteract-semiotic-a__5uDDmgx
write-react-glific-glific-fronte__22Gg4p2
fix-react-jumperexchange-jumper__2GBTh7Z
write-react-frankchen021-datasto__2N6xFwQ
fix-react-viclafouch-mui-tel-inp__hQXzJgB
fix-react-floating-ui-floating-u__27iKG4t
fix-react-formidablelabs-victory__2uwi2vz
fix-react-igordanchenko-yet-anot__2GZGZYT
fix-react-rdh-appflowy-io-appflo__vK9uEUy
Write audit-only outputs under the benchmark directory:
audit/rd-0.9.3-second-pass.md
audit/rd-0.9.3-second-pass.jsonl
audit/rd-0.9.3-rule-distribution.tsv
Do not edit React Doctor source, benchmark source, task tests, or verifier data. The JSONL must contain one record per finding with:
{
"id": "...",
"classification": "confirmed_fp | confirmed_fn | taxonomy_gap | harness_artifact | candidate",
"confidence": "high | medium | low",
"rule": "...",
"task": "...",
"trial": "...",
"file": "...",
"lines": "...",
"evidence": "...",
"baselineDiagnostics": "...",
"headDiagnostics": "...",
"testStatus": "...",
"rdStatus": "...",
"rationale": "...",
"recommendedAction": "..."
}
The Markdown report must contain: corpus/methodology, distributions, confirmed FPs, confirmed FNs, taxonomy gaps, harness artifacts, manual-adjudication candidates, prioritized rule fixes, and limitations.
Prioritize fixes using:
affected trial coverage × confidence × reproducibility
Never make a code change as part of this skill unless the user separately requests implementation of a confirmed rule fix.