From df61a1476e936a138dbdc83d06def36db8b203eb Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Sun, 6 Dec 2026 15:18:42 +0100 Subject: [PATCH] docs(research): X041-X043 read their misses from every organic fix, not only the keyword matches As registered, the three planned predictions of #1619, #1620 and #1621 read for a miss only the fix PRs that their keyword family matches. A fix of a shape the check covers, with other words in its title and description, would not have been read, and the outcome could have been "supported" with a miss in the window. Each record now reads every organic fix PR in the window that touches the package: the title and the description, and the diff where those do not decide it. The keyword match stays for the rate only, so the baselines and thresholds do not change. Each record says so under a dated "Amendments" heading, with whether its window had started. X043's window started on 2026-12-05, and no fix of the window had been read yet. The windows of X041 and X042 have not started. docs/research-register.md names the heading: a change to the method of a planned or running experiment before its outcome goes under "Amendments". Signed-off-by: Anton Volkov --- dokimi/docs/research-register.md | 4 +++- dokimi/research/records/experiment/X041.md | 7 +++++-- dokimi/research/records/experiment/X042.md | 7 +++++-- dokimi/research/records/experiment/X043.md | 7 +++++-- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/dokimi/docs/research-register.md b/dokimi/docs/research-register.md index ca0d51142..b8e722456 100644 --- a/dokimi/docs/research-register.md +++ b/dokimi/docs/research-register.md @@ -31,7 +31,9 @@ An experiment that turns out wrong is not deleted: set `retracted: true` and say what was wrong with it. `retracted` means the whole experiment is invalid, so `check` fails any finding that still cites it; query, export and render keep it, marked. When only part of a result is withdrawn, keep the outcome, leave `retracted` unset and list the withdrawn claims -under a `## Corrections` heading. Every record has a `date` (`YYYY-MM-DD`) and optional `links` (required on +under a `## Corrections` heading. When the method of a `planned` or `running` experiment changes +before its outcome, say so under a `## Amendments` heading: the date, what changed, and whether +its window had started. Every record has a `date` (`YYYY-MM-DD`) and optional `links` (required on `implref`), which must be public `github.com/intel/` or `github.com/napetrov/` URLs. The register is public: leave out internal hosts, paths, names and raw traces, and describe local evidence in words ("local run, 96 runs"). diff --git a/dokimi/research/records/experiment/X041.md b/dokimi/research/records/experiment/X041.md index 3996a90bc..937575717 100644 --- a/dokimi/research/records/experiment/X041.md +++ b/dokimi/research/records/experiment/X041.md @@ -20,10 +20,10 @@ SPDX-License-Identifier: Apache-2.0 Registered before the check lands. #1619 sweeps the 93 sites of X040's R1 and adds the check with an empty baseline, as its own CI step. - **Window:** the 4 weeks after the check's PR merges. -- **Counted:** merged PRs that fix package code and match the encoding family's keywords in the title and the first 600 characters of the body, as in the study behind #1595 (weekly, in the metrics comment linked above). PRs labelled `testing-strategy` belong to the program and are not counted. +- **Counted for the rate:** merged PRs that fix package code and match the encoding family's keywords in the title and the first 600 characters of the body, as in the study behind #1595 (weekly, in the metrics comment linked above). PRs labelled `testing-strategy` belong to the program and are not counted. - **Baseline:** 30 organic encoding fixes from 2026-10-13 to 2026-12-02, out of 918 merged PRs, which is 3.3 per 100. - **Test:** one-sided Poisson at the window's own count of merged PRs, p < 0.05. At the baseline's 126 merged PRs a week, the threshold is 9 fixes, against 16.5 expected. -- **Misses:** each encoding fix in the window is read by hand. +- **Misses:** every organic fix PR in the window that touches the package is read by hand, whatever its title: the title and the description, and the diff where those do not decide it. The keyword match above is for the rate only. - A fix of a `.encode()`, `write_text` or `open(..., "w")` in the package, with UTF-8 and no `errors=`, is a miss. - A fix elsewhere (an encode through a helper, `bytes()`, a decode) is out of scope and is reported apart. On history, about 5 of the series' 19 fixes were of this kind. - **Reported, with no threshold:** @@ -34,3 +34,6 @@ Registered before the check lands. #1619 sweeps the 93 sites of X040's R1 and ad - **Supported:** no miss, and the rate is significantly below the baseline. - **Refuted:** a miss, or a rate that is not significantly below the baseline, a smaller rate with p ≥ 0.05 included. Under #1595 the check is then narrowed or dropped. - **The rate is weak evidence here.** The series fell from 11 fixes a week to 2 at the end of November, before any gate. The misses carry the result. + +## Amendments +- **2026-12-06, how misses are found.** As first registered, only the fixes that the keyword family matches were read for a miss. A fix of a covered shape with other words in its title and description would not have been read, and the outcome could have been `supported` with a miss in the window. Now every organic fix PR that touches the package is read. This makes the test stricter and leaves the rate as it was. The window had not started: the check's PR had not merged. diff --git a/dokimi/research/records/experiment/X042.md b/dokimi/research/records/experiment/X042.md index c641cb152..9230e33e3 100644 --- a/dokimi/research/records/experiment/X042.md +++ b/dokimi/research/records/experiment/X042.md @@ -20,10 +20,10 @@ SPDX-License-Identifier: Apache-2.0 Registered before the check lands. #1620 fixes the 7 bug sites of X040's R2, records the other 31 in a baseline with a reason each (handled, own directory, own package, no effect, unclear), and gates new sites, as its own CI step. - **Window:** the 4 weeks after the check's PR merges. -- **Counted:** merged PRs that fix package code and match the listing family's keywords in the title and the first 600 characters of the body, as in the study behind #1595. PRs labelled `testing-strategy` belong to the program and are not counted. +- **Counted for the rate:** merged PRs that fix package code and match the listing family's keywords in the title and the first 600 characters of the body, as in the study behind #1595. PRs labelled `testing-strategy` belong to the program and are not counted. - **Baseline:** 22 organic listing fixes from 2026-10-13 to 2026-12-02, out of 918 merged PRs, which is 2.4 per 100. Unlike the encoding series, this one was still running, with 10 fixes in its last week. - **Test:** one-sided Poisson at the window's own count of merged PRs, p < 0.05. At 126 merged PRs a week, the threshold is 6 fixes, against 12 expected. -- **Misses:** each listing fix in the window is read by hand. +- **Misses:** every organic fix PR in the window that touches the package is read by hand, whatever its title: the title and the description, and the diff where those do not decide it. The keyword match above is for the rate only. - A fix of an `os.walk` with no `onerror=`, a `Path.glob`, `rglob`, `glob.glob` or `iglob` in the package is a miss. - A fix of a baseline row as a bug means its label was wrong. - A fix of another shape (a directory without search permission, an `except OSError` around a listing, `rmtree` with `ignore_errors`) is out of scope and is reported apart. @@ -32,3 +32,6 @@ Registered before the check lands. #1620 fixes the 7 bug sites of X040's R2, rec ## Prediction - **Supported:** no miss, no baseline row fixed as a bug, and the rate is significantly below the baseline. - **Refuted:** any of the three fails. Under #1595 the check or its labels are then narrowed or dropped. + +## Amendments +- **2026-12-06, how misses are found.** As first registered, only the fixes that the keyword family matches were read for a miss. A fix of a covered shape with other words in its title and description would not have been read, and the outcome could have been `supported` with a miss in the window. Now every organic fix PR that touches the package is read. This makes the test stricter and leaves the rate as it was. The window had not started: the check's PR had not opened. diff --git a/dokimi/research/records/experiment/X043.md b/dokimi/research/records/experiment/X043.md index d0af6f067..858bc51a4 100644 --- a/dokimi/research/records/experiment/X043.md +++ b/dokimi/research/records/experiment/X043.md @@ -20,10 +20,10 @@ SPDX-License-Identifier: Apache-2.0 The contract has been in the test suite since 2026-12-02, with an allowlist that only shrinks (X038). This record is written before its window starts, the day after it. - **Window:** 2026-12-05 to 2027-01-01, 4 weeks. -- **Counted:** merged PRs that fix package code and match the bad-input family's keywords in the title and the first 600 characters of the body, as in the study behind #1595. PRs labelled `testing-strategy` belong to the program and are not counted. +- **Counted for the rate:** merged PRs that fix package code and match the bad-input family's keywords in the title and the first 600 characters of the body, as in the study behind #1595. PRs labelled `testing-strategy` belong to the program and are not counted. - **Baseline:** 53 organic bad-input fixes from 2026-10-13 to 2026-12-02, out of 918 merged PRs, which is 5.8 per 100. The rate per merged PR keeps the late-December dip in volume out of the test. - **Test:** one-sided Poisson at the window's own count of merged PRs, p < 0.05. At 126 merged PRs a week, the threshold is 20 fixes, against 29 expected. -- **Misses:** each bad-input fix in the window is read by hand. +- **Misses:** every organic fix PR in the window that touches the package is read by hand, whatever its title: the title and the description, and the diff where those do not decide it. The keyword match above is for the rate only. - A fix of a fault the contract generates for a path parameter it reaches is a miss. The faults are a missing path, a directory, an unreadable path, a dangling link, a path outside the root, an empty file, invalid UTF-8, truncated JSON and JSON of the wrong type. - A fix of any other case is out of scope and is reported apart. Most such cases are a wrong shape inside a valid file, the target of #1621's second step, which gets its own record when its PR opens. - **Reported, with no threshold:** @@ -34,3 +34,6 @@ The contract has been in the test suite since 2026-12-02, with an allowlist that ## Prediction - **Supported:** no miss, and the rate is significantly below the baseline. - **Refuted:** a miss, or a rate that is not significantly below the baseline, a smaller rate with p ≥ 0.05 included. + +## Amendments +- **2026-12-06, how misses are found.** As first registered, only the fixes that the keyword family matches were read for a miss. A fix of a covered shape with other words in its title and description would not have been read, and the outcome could have been `supported` with a miss in the window. Now every organic fix PR that touches the package is read. This makes the test stricter and leaves the rate as it was. The window had started on 2026-12-05. No fix of the window had been read yet.