Skip to content

docs(research): register the second look at the testing program and the #1672 prediction - #1673

Open
antonwolfy wants to merge 4 commits into
intel:mainfrom
antonwolfy:docs/register-testing-second-look
Open

antonwolfy wants to merge 4 commits into
intel:mainfrom
antonwolfy:docs/register-testing-second-look

Conversation

@antonwolfy

@antonwolfy antonwolfy commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

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

  • X044 (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.
  • X045 (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.
  • X046 (supported): Markdown readers against markdown-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.
  • X047 (refuted): unit invariance of the statistics on eight float fixes. It flags 2 of the 8, both at scales no run produces.
  • X048 (refuted): tree-sitter-bash and bashlex as a reference for the shell readers. Neither reads common heredoc forms as bash does.
  • X049 (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.
  • X050 (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.
  • F032: the fix series are not where most bugs that change results are (X044, X047). Of the 61 verdict bugs outside the families, 39 got no class-level check in the classification.
  • F033: where a reference parser exists, one differential check covers the fixes of a hand-written reader; for shell there is none (X046, X048).
  • F034: a quarter of the fixes change code that an earlier fix wrote, within days; the tests of a fix do depend on the fix, so a gate on that refuses nothing (X045, X049).

Risk

Records only. Two things to read with care:

  • The hypotheses of X044 and X049 state the assumptions behind items 1 and 2 of Testing umbrella: checks for the bug classes behind our fix series #1595. They were written down with the analysis, not before it, and each record says so.
  • X044 and F032 rest on one model's labels of PR and issue text, with no second rater on that sample. F032 says so and has med confidence.

Testing

  • python scripts/research_register.py check: OK: 154 records. query --type experiment --where outcome=planned lists X041-X043 and X050 with their whole titles.
  • tests/test_research_register.py: 86 passed.
  • make ci-local on 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 check and tests/test_research_register.py were 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.
  • Each number in the records was checked against the data it came from before the commit. That check caught one count: the real Markdown files of X046 are 228, not 226 as first posted. The comment on Testing umbrella: checks for the bug classes behind our fix series #1595 and Markdown readers: test them against markdown-it-py, with a baseline that only shrinks #1672 are corrected.
  • No changelog fragment: nothing under dokimi/dokimi/, dokimi/data/ or pyproject.toml changes.

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

  • Tests added/updated and pytest passes (no new tests: the records are checked by tests/test_research_register.py)
  • ruff, mypy, and schema checks pass
  • Docs updated (or N/A) — see the docs-drift checklist in CONTRIBUTING.md (N/A: no command, flag or path changes)
  • Self-reviewed per "Before opening a PR" in AGENTS.md
  • Each new raise/exit and test names the doc, contract or issue it traces to (none added)
  • No ad-hoc run artifacts committed
  • New files carry the SPDX license header (or are exempt in .github/.licenserc.yaml)

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>
@antonwolfy
antonwolfy requested a review from a team as a code owner December 6, 2026 13:50
Copilot AI balanced review requested due to automatic review settings December 6, 2026 13:50
@antonwolfy antonwolfy added the testing-strategy Part of #1595: checks for the bug classes behind our fix series, their sweeps and research label Dec 6, 2026
@antonwolfy antonwolfy self-assigned this Dec 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread dokimi/research/records/finding/F034.md Resolved
@exai-bot

exai-bot commented Dec 6, 2026 •

Copy link
Copy Markdown

✅ OpenCodeReview: Review complete: 0 finding(s) across 10 selected item(s).

CI at 3aee30b: 17 passing, 4 skipped.

Review details
  • Commit reviewed: 3aee30b against merge base 19e5222
  • Coverage: 10 files in 2 groups
  • Engine: OpenCodeReview v1.13.5-exai.4.8f73eada, us.openai.gpt-6.1-sol
  • Usage: 143k tokens (69k from cache), 1m9s
  • Tool calls: 23 (17 file_read, 2 linked_items, 1 code_search, 1 file_read_diff, 1 pr_comments, 1 pr_threads)
  • Research experiment records X044–X050: 7 files
  • Research finding records F032–F034: 3 files

@codecov-commenter

codecov-commenter commented Dec 6, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.43%. Comparing base (19e5222) to head (3aee30b).
⚠️ Report is 1 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

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     

see 12 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…, 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>
Comment thread dokimi/research/records/finding/F032.md Resolved
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>

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

testing-strategy Part of #1595: checks for the bug classes behind our fix series, their sweeps and research

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants