Repository navigation
docs(research): register the second look at the testing program and the #1672 prediction - #1673
antonwolfy wants to merge 4 commits into
Conversation
intel#1672 prediction Adds ten records under I018 from a second pass over the fix history behind intel#1595. Experiments X044-X049: whether the seven fix families hold the bugs that change results (refuted), a gate that a fix PR has a test failing on its base (refuted), Markdown readers against markdown-it-py on five past fixes (supported), unit invariance of the statistics on eight float fixes (refuted), tree-sitter-bash and bashlex as a reference for the shell readers (refuted), and which PRs wrote the code that fix PRs change (refuted). X050 is the prediction of intel#1672, registered as planned before its check lands. Findings F032-F034: the fix series are not where most bugs that change results are; where a reference parser exists, one differential check covers the fixes of a hand-written reader; a quarter of the fixes change code that an earlier fix wrote, within days. Signed-off-by: Anton Volkov <antonwolfy@gmail.com>
There was a problem hiding this comment.
🟡 Changes recommended
Active findings identify a title filter that can hide relevant misses and an overstatement that test-collection failures prove the fix.
2 open issues
What changed in this PR
2 new findings.
This records-only PR adds ten research records under I018, supporting #1595’s testing strategy and registering #1672’s prediction before implementation. No runtime code changes.
Changes:
- Records six retrospective experiments on fix history and testing approaches.
- Registers a four-week prediction for the Markdown reference check.
- Adds three findings summarizing the evidence and its limitations.
| File | Description |
|---|---|
dokimi/research/records/finding/F034.md |
Summarizes repeat fixes and test-gate evidence. |
dokimi/research/records/finding/F033.md |
Summarizes reference-parser checks. |
dokimi/research/records/finding/F032.md |
Relates fix families to result-changing bugs. |
dokimi/research/records/experiment/X050.md |
Registers the Markdown check’s prediction. |
dokimi/research/records/experiment/X049.md |
Traces fixed lines to originating PRs. |
dokimi/research/records/experiment/X048.md |
Evaluates shell reference parsers. |
dokimi/research/records/experiment/X047.md |
Records statistical scale-invariance checks. |
dokimi/research/records/experiment/X046.md |
Records Markdown differential-check results. |
dokimi/research/records/experiment/X045.md |
Evaluates tests replayed without fixes. |
dokimi/research/records/experiment/X044.md |
Classifies fix families and verdict impact. |
Review effort: Balanced
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 10 selected item(s). CI at Review details
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1673 +/- ##
==========================================
- Coverage 96.44% 96.43% -0.01%
==========================================
Files 585 585
Lines 76600 76612 +12
Branches 13175 13176 +1
==========================================
+ Hits 73876 73881 +5
- Misses 1671 1673 +2
- Partials 1053 1058 +5 🚀 New features to boost your workflow:
|
…, the fail-on-base result qualified Review of the records of this PR. X044: both finder lists left out the bugs whose finder the PR and issue text does not name, 14 of the 114 in no family and 7 of the 53. They are in the record now, so each list adds up. X050: misses are read from every organic fix PR that changes a covered reader, whatever its title. The title match is for the rate only, as intel#1672's prediction has it. X045 and F034: in 45 of the 50 sampled fix PRs a test fails on an assertion without the fix. In the other 5 the tests cannot be collected or hang without it, which shows that they depend on the fix, not that they check the behaviour it repairs. Signed-off-by: Anton Volkov <antonwolfy@gmail.com>
F032 said that most of the verdict bugs outside the families got only a unit test of the one site. For the 61 such bugs that is 30, under half. The record now gives the counts for both populations: 39 of the 61 have no class-level check and 30 a unit test of the one site, and among the 53 whose trigger is not contrived it is 37 and 28, as X044 has it. Signed-off-by: Anton Volkov <antonwolfy@gmail.com>
…t of intel#1672 uses The CommonMark spec examples are published under CC BY-SA 4.0, so the test of intel#1672 takes its inputs from a set of block constructs that we enumerate ourselves: 557 documents from 35 kinds of block in 6 containers, at 1 to 3 spaces of indentation, and in pairs. X046 gets the replay on that set. With it and the repository's Markdown files the check flags the same 4 of 5 fixes as with the spec examples. The record says that this replay is not a blind one, what the spec examples have that our set lacks, and what our set reports on main (319 discrepancies in 37 groups). X050 names the inputs and the baseline of 319 discrepancies, and plans a decision for each of the 37 groups. F033 notes that our own set flagged the same fixes as the format's examples. Signed-off-by: Anton Volkov <antonwolfy@gmail.com>

Summary
Part of #1595. Four commits: the records, two with fixes from review, and one that moves X046 and X050 to the inputs the test of #1672 will use. Ten records under I018 from a second pass over the fix history behind #1595, and the prediction of #1672, registered before its check lands. The results were posted on #1595 in two comments (first, second). Records only: no code changes.
Changes
refuted): whether the seven fix families hold the bugs that change results. 61 of the 86 sampled bugs that could change a number or a verdict are in no family. Encoding and regexes hold none.refuted): a gate that a fix PR has a test failing on its base. Replayed on 50 sampled fix PRs, every one has a test that does not pass on its base, so the gate would have refused nothing. In 45 a test fails on an assertion; in the other 5 the tests cannot be collected or hang, which shows that they depend on the fix, not that they check its behaviour. 27% of the new test functions pass without the fix, and by their names most of them check the other side of the boundary the fix moved.supported): Markdown readers againstmarkdown-it-py, on the CommonMark spec examples and 228 real files. The check flags 4 of 5 past fixes of three readers at their parents. On the Oct 20 snapshot it reports 496 discrepancies on real files, which a real run found a month later (trace prefilter extracts Markdown scaffolding and misses ordering protection #973, Skill novelty walkthrough disagrees with analyze and probe artifacts #974). The spec examples are CC BY-SA 4.0, so the test of Markdown readers: test them against markdown-it-py, with a baseline that only shrinks #1672 uses a set of block constructs that we enumerate ourselves. The replay on that set flags the same 4 of 5, and the record says that it is not a blind one.refuted): unit invariance of the statistics on eight float fixes. It flags 2 of the 8, both at scales no run produces.refuted): tree-sitter-bash and bashlex as a reference for the shell readers. Neither reads common heredoc forms as bash does.refuted): which PRs wrote the code that fix PRs change. In 105 of 418 fix PRs most of the fixed lines came from an earlier fix PR, at a median age of 4 days. Each fix PR is followed by 0.74 fix PRs that change its lines, and each feature PR by 1.82.planned): the prediction of Markdown readers: test them against markdown-it-py, with a baseline that only shrinks #1672. In the 4 weeks after its check merges, no organic fix of a block the check compares in a covered reader, and fix PRs that name a Markdown block in their title significantly below 1.4 per 100 merged PRs. Misses are read from every organic fix PR that changes a covered reader, whatever its title. Its outcome is filled in after the window, a negative one included.Risk
Records only. Two things to read with care:
medconfidence.Testing
python scripts/research_register.py check:OK: 154 records.query --type experiment --where outcome=plannedlists X041-X043 and X050 with their whole titles.tests/test_research_register.py: 86 passed.make ci-localon a review host: 0 failed, 38 passed, 16 skipped. Its full test run was 36,256 passed and 28 skipped. It ran before two later edits of the records: one word in X046 ("files" for "skills") the review fixes of the second and third commits (wording in X044, X045, X050, F032 and F034), and the fourth commit (X046, X050 and F033 on our own construct set). On this head,research_register.py checkandtests/test_research_register.pywere run again. The skips are steps that need GitHub event data or another job's matrix output, micromamba or semgrep, and jobs that do not run on a PR. Python 3.11, 3.12 and 3.14 and CI's merge commit were not covered.dokimi/dokimi/,dokimi/data/orpyproject.tomlchanges.Open questions
Revert
A plain revert removes the ten files. Nothing else is stored, and no schema changes. A revert after X050's window has started would also remove the prediction it is judged against.
Checklist
pytestpasses (no new tests: the records are checked bytests/test_research_register.py)ruff,mypy, and schema checks passAGENTS.mdraise/exit and test names the doc, contract or issue it traces to (none added).github/.licenserc.yaml)