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.
| Step | What | Status |
|---|---|---|
| 1 | Evidence repair audit: re-fetch every cited artifact, measure what the frozen pages got wrong | Done, provisional |
| 2 | Code-aware reconstruction prototype on 15 cases | Done, provisional |
| 3 | Ablation of evidence sources on all 63 cases | Done, provisional |
| 4 | Phase 2.5's frozen reasoning configuration on the reconstructed evidence | Done: claim not supported ($7.03) |
| 5 | A new held-out set | Not started |
| 6 | Mining supervision from the reconstructed evidence | Not 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:
- Merge state was wrong for 38 of 38 PRs merged before their cutoff: the page said
merged_at: null. - 13 of 63 cases cite no evidence at all. Most are controls and cases labelled insufficient.
- Of 55 evidence rows (51 PRs, 4 issues), none was created after its cutoff. But 10 cited PRs were still open at the cutoff and merged later, and 3 were never merged.
- 17 of 55 bodies are PR templates. 10 have under 200 characters of the author's own text, and 5 have none. The frozen snippet was capped at 1,500 characters, and 34 rows hit the cap.
- Only 29 of the 51 cited PRs touch a file the proposed patch touches. The others show the rule in other files.
- 33 cited PRs have review comments made before the cutoff, and 25 artifacts reference further PRs or issues. The frozen pages contained neither.
- 4 mining errors: a cutoff a year before its objection, a justification that exists only after the cutoff, an expected value that disagrees with its patch, and an empty patch.
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 passes | Sufficient, either pass |
|---|---|---|
| Frozen page shown to the Phase 2.5 models | 6 | 14 |
| Re-fetched text: correct merge state, author's own text, pre-cutoff maintainer comments | 14 | 21 |
| + cited PR's diff on the patch's own files | 19 | 25 |
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:
- Same-file diff, as of the cutoff. A PR merged before the cutoff contributes its final diff. An in-flight PR contributes its base compared with its last commit before the cutoff.
- Sibling diff. Files of the cited PR other than the patch's own: the same directory, the same file role in another model
(
modeling_*.py), or any file whose changed lines contain a distinctive symbol of the patch. Hunks are chosen by symbol overlap within the frozen 2,500-character cap. - Reference traversal. Issues and PRs referenced from the cited artifacts' text and pre-cutoff comments: depth ≤ 2, at most 4 per case, created before the cutoff, maintainer comments only.
- Blame. GitHub GraphQL blame of the patched lines (±8) at the snapshot. Those lines lead to their introducing PRs, merged before the cutoff, at most 3 per case. Blame timed out (HTTP 502) on 5 large files. For those, the fallback ranks the file's last 30 commits by distinctive patch symbols, which ranks by topic rather than line ownership.
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, both | Either | κ (sufficient or not) |
|---|---|---|---|
| L1 cited text, correct metadata | 6 | 8 | 0.67 |
| L2 + same-file diff at cutoff | 6 | 8 | 0.67 |
| L3 + sibling diff | 9 | 11 | 0.43 |
| L4 + references | 9 | 11 | 0.43 |
| L5 + blame | 9 | 11 | 0.43 |
- Sibling diffs are the only source that made more cases sufficient: 3 of 12 in both passes, and 5 in at least one. In all three, the decisive hunk was in a file the patch never touches: another model's test file in the same directory, other models' modeling files changed by the same PR, or documentation and notebooks the same PR updated. One of the three was found only by the shared-symbol rule.
- References strengthened one case from implicit to explicit and made none newly sufficient.
- Blame added nothing to sufficiency and is the largest and noisiest source. Both passes rate the full bundle's noise high in 6 of 15 cases. Introducing PRs of nearby lines are usually unrelated refactors.
- One case remains empty: it cites no evidence, and the path-history fallback found only unrelated PRs.
- Controls: 2 of 3 stayed insufficient or ambiguous, as intended. Both passes moved the third to implicit through a sibling diff, so its step 1 ambiguity was a retrieval gap. One control's patch turned out to be truncated to a hunk header, a further mining error.
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.
| Arm | Evidence |
|---|---|
| A0 | The frozen Relore evidence page, exactly as the Phase 2/2.5 models saw it |
| A1 | The cited artifacts re-fetched: merge state at the cutoff, the author's own text, and pre-cutoff comments, review comments and review bodies |
| A2 | A1 + the cited PRs' diffs on the files the patch touches |
| A3 | A1 + 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) |
| A4 | A1 + both kinds of diff |
Cutoff fidelity
- Text: every body, comment and review whose GitHub
lastEditedAtfalls at or after the cutoff was replaced by its last revision before the cutoff, from GitHub's edit history. 7 were edited after the cutoff, all 7 were recovered, and none had to be excluded. - Diffs: 49 cited-PR diffs were verified as of the cutoff. A PR merged before the cutoff contributes its final diff. A PR still open contributes its base compared with its last pre-cutoff commit, and only if its timeline shows no force-push at or after the cutoff. 2 PRs were force-pushed later, so their diffs are excluded. One residual risk cannot be checked through the API: a commit dated before the cutoff but pushed after it.
- Patches: the stored patch of 12 of the 63 cases is truncated. One is empty, one is a hunk header with no body, and in the other 10 the body shows under 30% of the new lines its own header declares. One of them shows a single line of a 35-line addition; that is the mining error step 2 found. 12 more patches omit some changed lines but still show the lines in question, and 9 only trim context. The dataset is unchanged; every flag is recorded as a correction. The patch is identical in every arm, so this does not bias the comparison.
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)
| Arm | Sufficient, both passes | Either | Pass A | Pass B | κ (sufficient or not) | κ (6 categories) | Evidence tokens, mean / median / max |
|---|---|---|---|---|---|---|---|
| A0 frozen page | 13 | 14 | 13 | 14 | 0.95 | 0.93 | 359 / 441 / 1,081 |
| A1 corrected text | 21 | 26 | 24 | 23 | 0.83 | 0.79 | 2,480 / 1,270 / 35,603 |
| A2 + same-file diffs | 22 | 27 | 25 | 24 | 0.83 | 0.80 | 2,743 / 1,625 / 35,603 |
| A3 + other-file diffs | 26 | 30 | 28 | 28 | 0.87 | 0.88 | 2,847 / 1,671 / 37,067 |
| A4 + both | 25 | 29 | 27 | 27 | 0.87 | 0.86 | 3,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)
| Change | Improved | Degraded | Exact McNemar p | Pass A alone | Pass B alone |
|---|---|---|---|---|---|
| A0 → A1 (repair text and metadata) | 8 | 0 | 0.008 | +11 / −0 | +9 / −0 |
| A1 → A2 (same-file diffs) | 1 | 0 | 1.0 | +1 / −0 | +1 / −0 |
| A1 → A3 (other-file diffs) | 6 | 1 | 0.125 | +5 / −1 | +6 / −1 |
| A1 → A4 (both) | 6 | 2 | 0.29 | +5 / −2 | +6 / −2 |
| A3 → A4 (add same-file to other-file) | 0 | 1 | 1.0 | +0 / −1 | +0 / −1 |
- The six cases that became sufficient only with other-file diffs are the step 2 finding, now on the full set. In all six,
the cited PR was merged before the cutoff and the diff was verified as of the cutoff.
- How the decisive file relates to the patch: 4 share a distinctive symbol with it, 1 has the same file role in another model, and in 1 the annotators named the PR's text as decisive, though the case became sufficient only once the diffs were added.
- The constraint was inferred from code, not stated, in 5 of 6.
- Annotators judged it a mandatory rule in 4 and an implementation pattern in 2. Those 2 are exactly the risk a human must check.
- Same-file diffs barely matter on this benchmark: one case improved, and the cited PR touches the patch's file in only 26.
- More evidence sometimes lowered a label. 6 of the 126 case-passes (4 cases) are non-monotone: a pass rated a smaller evidence set sufficient and a larger one not. In two of them, a pass downgraded after the shared-symbol rule added diffs from unrelated models or modules, which is that rule's noise cost. That noise is about the size of the effect being measured, so the +6 should be read as at most +6.
- Remaining ambiguity: 2 cases are still judged ambiguous at A4.
- Invalid: 4 cases are labelled invalid in some arm. One has an empty patch, and two have patches cut off before the change the claim depends on. In the fourth, the full evidence shows the rule was only proposed, in a PR still open at the cutoff. No case has both passes calling the benchmark judgment unjustified at A4.
Human adjudication
A prioritized queue of 51 cases with compact per-case dossiers was prepared. It covers:
- 9 cases sufficient only with other-file diffs;
- 3 where the passes disagree;
- 15 where the inferred constraint changes with code;
- 1 where a pattern may have been read as a rule;
- 23 with temporal or mining uncertainty.
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:
- A0: the evidence exactly as Phase 2.5 revision 2 gave it;
- A1, A3, A4: step 3's arms rendered as Phase 2.5 passages. Every body, comment and diff is a passage with an id, author, date and merge state at the cutoff.
Models:
- DeepSeek-V4.1-Flash, 3 repeats;
- Qwen3.8-27B, once;
- DeepSeek-V4-Pro at high effort, once.
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 · arm | Correct / 63 | Violation recall | Precision | False alarms | Insufficient-evidence rate |
|---|---|---|---|---|---|
| Flash · A0 | 26 | 0.42 | 0.88 | 2 | 0.41 |
| Flash · A1 | 23 | 0.33 | 0.79 | 3 | 0.29 |
| Flash · A3 | 23 | 0.39 | 0.72 | 5 | 0.25 |
| Flash · A4 | 22 | 0.45 | 0.63 | 9 | 0.24 |
| Qwen · A0 / A1 / A3 / A4 | 28 / 26 / 26 / 23 | 0.39 / 0.36 / 0.39 / 0.39 | 0.93 / 0.86 / 0.81 / 0.68 | 1 / 2 / 3 / 6 | 0.35 / 0.29 / 0.22 / 0.21 |
| Pro (high) · A0 / A1 / A3 / A4 | 26 / 30 / 27 / 25 | 0.33 / 0.52 / 0.48 / 0.52 | 0.85 / 0.77 / 0.73 / 0.63 | 2 / 5 / 6 / 10 | 0.33 / 0.24 / 0.22 / 0.19 |
| Pre-registered criterion | Result | Passed |
|---|---|---|
| 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 annotated | No |
| 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 flips | net 0; 19 of 63 A3 cases flip across 3 identical calls | No |
| 4. Secondary: A0 → A1 raises violation recall, p ≤ 0.05 | 0.42 → 0.33 | No |
| 5. Same sign for the other two models | Qwen net 0, Pro net −3 (undefined when Flash is 0) | — |
- Other-file diffs do not help judgments. A1 → A3 nets 0, 0 and −3 across the three models. With both kinds of diff (A4) it is −1, −3 and −5. On the 49 cases left after dropping truncated patches and invalid cases, A1 → A3 turns slightly positive for all three models (Flash +2 / −0, Qwen +3 / −1, Pro +2 / −1), none of it significant and all within the repeat noise. A4 stays negative.
- More evidence makes models bolder, not more accurate. From A0 to A4, every model gives up on fewer cases (Flash 0.41 → 0.24) and calls more violations, but precision falls (Flash 0.88 → 0.63) and false alarms rise threefold or more. The extra diffs mostly show the reviewer more code, and the models read it as reasons to object.
- The text repair is inconsistent too. From A0 to A1, Pro gains 4 cases net (p = 0.21), while Flash loses 3 and Qwen loses 2.
- The 7 cases annotators found sufficient once code was added stay mostly wrong in every arm: at most 3 of 7 are correct for any model. Better evidence, as annotators judge it, is not evidence a model uses.
- Noise dominates. At temperature 0 with a fixed seed, the hosted Flash endpoint disagreed with itself in 15–19 of 63 cases per arm across 3 repeats. Single-run comparisons on this benchmark cannot resolve effects of a few cases. That also limits Phase 2.5's own single-run numbers.
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.