Can the missing evidence be reconstructed from the repository itself?

Phase 3 is closed (2026-12-01). Its negative result is accepted as stated below: the tested evidence configurations did not measurably improve model judgments on this benchmark. It does not establish that historical code evidence is generally useless, and it does not support a more elaborate memory architecture. Human adjudication of the 51-case queue is pending, so every Phase 2.5/3 label remains provisional, and no later phase uses those labels as training targets or primary evaluation labels. $18.91 of $30 was spent; the remainder is frozen. The next investigation, Phase 4, changes the question from judging code to writing it (closure note).

Phase 3 evidence log, in progress. Last updated 2026-12-01 (steps 1–4 of 6). Every label on this page is provisional: blind AI passes, no human adjudication yet. Step 3 result: on all 63 cases, both annotation passes agree that the cited PRs' diffs on files the patch does not touch made 6 more cases sufficient and 1 fewer (21 → 26 of 63). Diffs on the patch's own files added 1. This is directional, not established (exact p = 0.125), and the annotators' own inconsistency is of the same order. Step 4 result: it does not improve model judgments. Phase 2.5's frozen reasoning setup was run on the same cases with pre-registered criteria, and all of them failed. Adding other-file diffs changed the number of correct verdicts by 0 for DeepSeek-V4.1-Flash, 0 for Qwen3.8-27B and −3 for DeepSeek-V4-Pro. With both kinds of diff, false alarms rose for all three models (Flash 3 → 9). The richer evidence makes models abstain less and call more violations, but not more correctly. Repeat calls to the same Flash prompt disagree in about 18 of 63 cases, which is more than any effect the evidence could produce.

Phase 2.5 found that models reason well about history when the decisive evidence is on the page, and that on 63 real held-out review cases it usually is not. Phase 3 asks whether that evidence can be rebuilt from GitHub alone, before any reasoning is tested again. So far: correcting the evidence pages' metadata and text raises the cases with sufficient evidence from 6 to 14 of 63. Adding the cited PRs' own diffs on the patched files raises it to 19. On a 12-case diagnostic sample, the cited PR's diff on other files that share a distinctive symbol with the patch is the only added source that made more cases sufficient (6 → 9). Following references and blaming the code changed no case's sufficiency.

Plan

Six steps. Constraints for all of them: no language model at indexing time, no graph database, no persisted inferred rules, a strict history cutoff (a reviewer sees nothing created after it), and held-out case material is never published here. Only counts, scripts and guides are published.

StepWhatStatus
1Evidence repair audit: re-fetch every cited artifact, measure what the frozen pages got wrongDone, provisional
2Code-aware reconstruction prototype on 15 casesDone, provisional
3Ablation of evidence sources on all 63 casesDone, provisional
4Phase 2.5's frozen reasoning configuration on the reconstructed evidenceDone: claim not supported ($7.03)
5A new held-out setNot started
6Mining supervision from the reconstructed evidenceNot started

Step 1: what the held-out evidence pages got wrong

Every cited issue and PR of the 63 held-out cases was re-fetched from the GitHub pull-request API (318 cached requests, read-only): merge state, commits, changed files and review and issue comments split at the cutoff (audit_fetch.py, dossier.py). Facts, no judgment:

Two blind annotation passes then judged each case's evidence sufficiency at three levels (guide). Agreement: κ 0.66, 0.73 and 0.76 on the three levels.

Evidence level (63 cases)Sufficient, both passesSufficient, either pass
Frozen page shown to the Phase 2.5 models614
Re-fetched text: correct merge state, author's own text, pre-cutoff maintainer comments1421
+ cited PR's diff on the patch's own files1925

Benchmark validity: neither pass confirmed 11 of the 63 benchmark judgments, mostly because the cited PR was in flight at the cutoff, a reviewer's preference was mined as a rule, or a control had no evidence. Both passes rate 27 cases suitable for evaluation as they stand, and about 25 more after repair. At least one pass rates 8 unsuitable.

Correction found in step 2. Step 1's “+ diff” level used each cited PR's final diff. For a PR still open at the cutoff, that includes later commits. Re-deriving those diffs from the last commit before the cutoff (leak_check.py): 13 cited PRs were unmerged at their cutoff, and 4 of their same-file diffs differ. None of those 4 cases is one where the diff level raised sufficiency, so 6 → 14 → 19 stands.

Step 2: rebuilding the missing evidence

Fifteen cases, chosen by a fixed rule from step 1's labels: 12 diagnostic cases that were still insufficient and whose missing piece looked recoverable (an unfetched reference, a rule that exists only in code, or an example rather than a stated rule), and 3 controls that both passes called genuinely ambiguous, which should stay that way. For each case, stage2.py adds four kinds of evidence, without clones or local models. Each kind is kept separate so it can be ablated:

Result: 92 artifacts (blame 36, references 27, cited text 14, sibling diffs 13, same-file diffs 2) from 279 GitHub requests. The leakage audit checked every artifact, diff commit and comment date against the cutoff. It also checked that no artifact is the target PR and that none contains the objection. No problems were found. Eight artifacts contain a line of the eventual correction (an import, a raise ValueError(, a dictionary key). All of them predate the cutoff, so these are generic lines, not leaks. Two included comments were edited after the cutoff, and their current text is shown.

Two new blind passes then judged each case at five cumulative levels (guide).

Level (12 diagnostic cases)Sufficient, bothEitherκ (sufficient or not)
L1 cited text, correct metadata680.67
L2 + same-file diff at cutoff680.67
L3 + sibling diff9110.43
L4 + references9110.43
L5 + blame9110.43

Do not compare step 2's levels with step 1's. Both passes put 6 of the 12 diagnostic cases at “sufficient” on L1 text alone, yet step 1's passes found each of them short at text + code in at least one pass. The step 2 view shows every non-bot comment made before the cutoff, where step 1 showed maintainer comments only, and different annotators judged it. The increments within step 2 are informative. The absolute levels across steps are not. Agreement also falls to κ 0.43 once sibling diffs are added. That level needs human adjudication most.

Step 3: evidence ablation on all 63 cases

Five evidence arms per case, built by ablation.py. Only the cited artifacts are used. Blame and reference traversal are off.

ArmEvidence
A0The frozen Relore evidence page, exactly as the Phase 2/2.5 models saw it
A1The cited artifacts re-fetched: merge state at the cutoff, the author's own text, and pre-cutoff comments, review comments and review bodies
A2A1 + the cited PRs' diffs on the files the patch touches
A3A1 + the cited PRs' diffs on files the patch does not touch (step 2's rule, unchanged: same directory, same file role, or a distinctive shared symbol)
A4A1 + both kinds of diff

Cutoff fidelity

Blind annotation

One guide for every arm (guide), with the same annotator configuration throughout (Claude, via Claude Code). Each item is one case with one arm's evidence, under an opaque id and with no arm name. Arms whose evidence is byte-identical for a case were annotated once, so the 315 case-arms come to 185 items. Each pass split them into shards that never hold two items of the same case. Passes A and B used different shard assignments and orders. Protocol deviation: the annotators shared a scratch directory, and four of them were briefly shown one item from another shard. The five labels whose annotator thereby saw a second arm of the same case were redone by fresh single-item annotators. All five came back with the same sufficiency label. Annotation used about 3.0 million tokens across 17 annotator runs.

Evidence sufficiency by arm (63 cases)

ArmSufficient, both passesEitherPass APass Bκ (sufficient or not)κ (6 categories)Evidence tokens, mean / median / max
A0 frozen page131413140.950.93359 / 441 / 1,081
A1 corrected text212624230.830.792,480 / 1,270 / 35,603
A2 + same-file diffs222725240.830.802,743 / 1,625 / 35,603
A3 + other-file diffs263028280.870.882,847 / 1,671 / 37,067
A4 + both252927270.870.863,109 / 2,194 / 37,067

Tokens are the JSON-serialised evidence under the DeepSeek-V3.2 tokenizer. Same-file diffs exist for 26 cases and other-file diffs for 32. A2 equals A1 in 37 cases, A3 equals A1 in 31, and A4 equals A1 in 19. Without the 12 truncated patches: 15 / 15 / 18 / 18 of 51 for A1–A4, with the same +6 / −1 for A1 → A3. Step 3's absolute counts are not comparable with steps 1–2, which used different guides and views. Its arms are comparable with each other.

Paired transitions (sufficient by both passes)

ChangeImprovedDegradedExact McNemar pPass A alonePass B alone
A0 → A1 (repair text and metadata)800.008+11 / −0+9 / −0
A1 → A2 (same-file diffs)101.0+1 / −0+1 / −0
A1 → A3 (other-file diffs)610.125+5 / −1+6 / −1
A1 → A4 (both)620.29+5 / −2+6 / −2
A3 → A4 (add same-file to other-file)011.0+0 / −1+0 / −1

Human adjudication

A prioritized queue of 51 cases with compact per-case dossiers was prepared. It covers:

Each dossier holds the task, the patch excerpt, the claim, both passes' labels per arm, the constraint with and without code, and the decisive hunk inline. The dossiers contain held-out material and are private.

Step 4: does reconstructed evidence change judgments?

No. The design and success criteria were committed before the first call (pre-registration). It is Phase 2.5's frozen configuration and A2r structured-judgment prompt (an earlier draft named the A0 prompt, and was corrected before any call), run on all 63 cases paired across four arms, with Phase 2.5 revision 2's labels as gold:

Models:

That is 855 calls, $7.03 in all (Flash $1.92, Qwen $1.86, Pro $3.25), and the budget ledger now stands at $18.91 of $30.

Calls that failed or could not be parsed count as wrong: 17 Flash parse failures out of 513 calls, and 4 Qwen calls. Two of the Qwen calls exceeded the provider's limit on the largest case, which fails in both arms compared. Replication check: A0 reproduces the published Phase 2.5 Flash A2r run, with 26 correct against 25 published, the same abstention rate of 0.41, and violation recall 0.42 against 0.36.

Model · armCorrect / 63Violation recallPrecisionFalse alarmsInsufficient-evidence rate
Flash · A0260.420.8820.41
Flash · A1230.330.7930.29
Flash · A3230.390.7250.25
Flash · A4220.450.6390.24
Qwen · A0 / A1 / A3 / A428 / 26 / 26 / 230.39 / 0.36 / 0.39 / 0.390.93 / 0.86 / 0.81 / 0.681 / 2 / 3 / 60.35 / 0.29 / 0.22 / 0.21
Pro (high) · A0 / A1 / A3 / A426 / 30 / 27 / 250.33 / 0.52 / 0.48 / 0.520.85 / 0.77 / 0.73 / 0.632 / 5 / 6 / 100.33 / 0.24 / 0.22 / 0.19
Pre-registered criterionResultPassed
1. Flash A1 → A3: net gain ≥ 4, one-sided p ≤ 0.10, at least half of the gains among the 7 annotated cases+2 / −2, net 0, p = 0.69; 1 of the 2 gains annotatedNo
2. At most one new false alarm (A1 → A3 and A1 → A4)3 → 5 (A3), 3 → 9 (A4)No
3. Net gain larger than the repeat-to-repeat flipsnet 0; 19 of 63 A3 cases flip across 3 identical callsNo
4. Secondary: A0 → A1 raises violation recall, p ≤ 0.050.42 → 0.33No
5. Same sign for the other two modelsQwen net 0, Pro net −3 (undefined when Flash is 0)—

What this settles and what it does not. It settles the immediate question: on this benchmark, adding historical code evidence gives a small, provisional gain in annotated sufficiency and no measurable gain in model judgments. It does not show code evidence is useless. The gold labels are provisional and unadjudicated, 12 patches are truncated, and only one rendering was tried. Per the plan, no retrieval work, no training and no new phase start from this result. The natural next check is the human adjudication queue: if human reviewers reject the gold labels on the cases that changed, both numbers move.

Reproduce

The scripts read the held-out candidates, which are not published, and call the GitHub API through the operator's own gh login, with every response cached. Order: audit_fetch.py, dossier.py, stage2.py, stage2_view.py, leak_check.py, then for step 3 ablation.py, ablation_items.py, ablation_analyze.py, then for step 4 step4_items.py, Phase 2.5's reason.py (A2r) and step4_score.py. Step 3's aggregates are in ablation-results.json and step 4's in step4-score.json. Roles: the mining, the reconstruction and both annotation passes were done by an AI research agent (Claude, via Claude Code), directed and reviewed by a human maintainer.