P5b G6 retest — walk 3 against file level (agent-labelled)¶
Status: passed under the owner's convention (SPEC v1.6.7, ADR 0012 r0.8), 2026-10-23. Failed under the pre-registered labelling rule. This report gives both.
| Reading | Symbol FI | File FI | FI threshold (½ × file) | Missed difference | Verdict |
|---|---|---|---|---|---|
| Owner convention: a pure move invalidates (the gate) | 18.7 % [11.1, 26.6] | 79.7 % | ≤ 39.8 % | +0.0 pp | pass |
| Pre-registered: a pure move does not invalidate | 70.4 % [63.0, 77.8] | 92.6 % | ≤ 46.3 % | +0.0 pp | fail |
The owner decided the convention after the labels and scores were known. The labellers' two texts conflicted on exactly this point (see "Labelling inconsistency"), and the verdict turns on it. The reason given: the product breaks a moved symbol's anchor and requires a rebind, so firing there is not a false alarm.
The labels themselves were not changed. The convention is applied by the
scorer (--moves-invalidate): a Broken pair labelled n counts as
invalidating. All 38 such labels here (and 38 in the first run) give a pure
move or rename as their rationale.
The gate output is p5b-g6-final-score.txt. Symbol
level (walk 3) meets the G6 thresholds for the recommended configuration on
this evidence, with the limitations below. The first run's report is
p5b-g6-report.md; under the owner's convention it still
fails (missed +12.0 pp), which is what walk 3 fixed.
Design (fixed before labelling, d87e748)¶
ADR 0012 §9 r0.7, SPEC v1.6.6.
- Predictor. Walk 3: a symbol fires when its span or its same-file context (the items it names) changes, or when it breaks.
- Repositories and commits. The same three repositories and 1,000 commits as the first run.
- Symbols. Ranks 6–10 per file, disjoint from the first run (the training set): 53 symbols. ripgrep has 38, fd 10 and click 5.
- Pairs. Only pairs whose symbol is live at the parent: 1,251.
- Automatic check. The replay disagrees with the blob recomputation 0 times, and no host file has a parse error.
- Sample. Same strata, 35 per stratum: 287 pairs, because click's fired stratum has only 8.
- Labels. Nine new blind agent labellers. Totals: 25
y, 262n, 0unsure; 266 high and 21 medium confidence.labels.tsvhas each label's labeller, confidence, rationale and evidence SHA-256;evidence.json.gzis the evidence bundle. - Thresholds. FI ≤ ½ × file FI, and missed ≤ file missed + 2 pp, on weighted point estimates.
Results (pre-registered reading)¶
The full output is in p5b-g6-r2-score.txt; the gate
reading is in p5b-g6-final-score.txt.
| Stratum (file, symbol fired): invalidating / labelled (population) | click | fd | ripgrep |
|---|---|---|---|
| n, n | 0/35 (623) | 1/35 (139) | 0/35 (165) |
| y, n | 0/35 (45) | 0/35 (148) | 0/35 (50) |
| y, y | 4/8 (8) | 20/34 (34) | 0/35 (39) |
| Weighted | Symbol (walk 3) | File | Threshold | |
|---|---|---|---|---|
| False invalidation | 70.4 % [63.0, 77.8] | 92.6 % [90.7, 94.4] | ≤ 46.3 % | fails |
| Missed invalidation | 14.2 % | 14.2 % | ||
| Missed difference | +0.0 pp | ≤ +2 pp | passes | |
| Missed given host changed | 0.0 % | reported |
| Variant (not the gate) | Symbol FI | File FI | Missed difference | Both thresholds |
|---|---|---|---|---|
| Span only (walk 2's rule) on the same pairs | 66.7 % | 92.6 % | +0.0 pp | FI fails |
| Pure moves counted as invalidating (the owner convention, the gate) | 18.7 % [11.1, 26.6] | 79.7 % | +0.0 pp | pass |
Why¶
- Missed invalidation is solved on fresh data. The first run's gap of +13.1 pp is now +0.0 pp. No invalidating pair was missed where the host changed.
- Pure moves dominate false invalidation. ripgrep's fired stratum is 38
symbols broken by one commit,
fdd8510("move all source code in crates directory"), which moved every file with identical code. The labelling rule calls such movesn, so all 35 sampled pairs are false invalidations. They carry about half of the fired population's weight. Counting moves as invalidating instead gives 18.7 %. - Same-file context adds a few false invalidations. Walk 3 fired 9 pairs
on context alone. Most are
tests::tokens_with_basename, which mentionsCommandSetandExecutionMode; their edits (anEqderive, a generic argument) did not change what the test checks. Span only, the FI would be 66.7 % instead of 70.4 %. - Behaviour-preserving rewrites remain. Examples are clippy edits (a
dropped
&,unwrap_or→unwrap_or_else),%→format→ f-strings, and a semicolon discarding a new return value. - One normaliser gap. P5B-G6R-211: rustfmt reflowed a
whereclause and added a trailing comma, and the span changed. The walk drops a trailing comma only before a closing bracket, and awhereclause ends before{. This is a T45 gap to close in a later walk revision; it is not changed here.
Labelling inconsistency (disclosed)¶
The batch template, generated by symbol_replay batches, listed "removed or
renamed" under y. The labeller prompt said a pure move or rename with
identical code is n. Both runs used both texts. Labellers mostly followed
the prompt:
- first run: Broken pairs 38
nand 3y; - retest: 38
nand 6y.
One labeller flagged the conflict. The "moves invalidating" variant shows the other reading. The template is now fixed to match the prompt.
Limitations¶
- These are agent labels, not human ground truth.
- The sample is small. click's fired stratum has 8 pairs; ripgrep's fired stratum is a single commit.
- Few invalidating pairs exist outside fired strata: 1 of 210, so missed rates rest on very few positives.
- The verdict turns on one convention (whether a pure move invalidates) and on one repository-wide move. The three repositories' supported anchor files have few symbols left beyond rank 10, so a third disjoint sample here would be smaller still.
Reproduction¶
symbol_replay prepare <clone> docs/gates/p5a-g6/<repo>.tsv <repo>.tsv --ranks 6-10 --live-at-parent
symbol_replay sample sample.tsv click.tsv fd.tsv ripgrep.tsv --id-prefix P5B-G6R-
symbol_replay score docs/gates/p5b-g6-r2/sample.tsv docs/gates/p5b-g6-r2/labels.tsv --moves-invalidate # the gate
symbol_replay score docs/gates/p5b-g6-r2/sample.tsv docs/gates/p5b-g6-r2/labels.tsv # pre-registered
symbol_replay predict docs/gates/p5b-g6-r2/sample.tsv <clones> pred.tsv # span-only diagnostic (column span_fired)
Walk 4 rescore (2026-10-26, ADR 0012 r0.9)¶
The independent implementation review changed the predictor (walk 4, ADR 0012 r0.9). The owner chose to rescore rather than relabel:
- the same 287 labels and the same strata, drawn under walk 3;
- each pair's symbol event recomputed from the commit's blobs by the walk-4
normaliser (
symbol_replay rehash, thenscore --predictions).
The method was checked first. A walk-3 binary built with the same rehash
reproduces the replay on 286 of 287 pairs. The exception is P5B-G6R-211,
whose replay predates the r0.8 where-clause comma fix.
Walk 4 and walk 3 then agree on all 287 pairs.
| Reading | Symbol FI | File FI | FI threshold | Missed difference | Verdict |
|---|---|---|---|---|---|
| Owner convention (the gate) | 17.5 % [10.0, 25.4] | 79.7 % | ≤ 39.8 % | +0.0 pp | pass |
| Pre-registered | 70.0 % [61.9, 77.8] | 92.6 % | ≤ 46.3 % | +0.0 pp | fail |
The 17.5 % equals r0.8's diagnostic for walk 3 with the comma fix. Output:
p5b-g6-walk4-score.txt; predictions:
p5b-g6-r2/rehash-walk4.tsv.
Limitation. The 287 sampled pairs come from hosts without parse errors, so walk 4's error rules do not show here. Walk 4's text and context fixes change no sampled event.