Given the history, can a model tell which decisions still apply?
Phase 2.5 report, 2026-11-30. On curated evidence, yes. Capable models reason about project history almost perfectly. On real review threads, the evidence a maintainer cites often does not contain the rule. That evidence gap, not reasoning, is the bottleneck. With retrieval removed and the decisive passages supplied, three hosted models judged whether a frozen patch contradicts an applicable decision. On 56 unambiguous development items, a reasoning-enabled model reached lenient accuracy 0.98–1.00 with no false positives. Given a correct unperturbed answer, models stayed correct under superseding, scoping, conflicting, reordered, irrelevant and adversarial evidence (0.94–1.00). They followed counterfactual decision values 11 of 11 times. On 63 held-out cases mined from transformers, trl and diffusers, every model fell to recall 0.27–0.55 at precision 0.82–0.93. The strongest model did no better than the cheapest. Most misses trace to the evidence page: a PR template, a one-line body, or a PR that does not state the rule the maintainer invoked. Phase 2's held-out pages also mislabelled every merged PR as unmerged; that is corrected here. Training is not recommended. All labels are provisional.
The question, isolated
Phases 1–2 mixed three things: whether retrieval finds the decision, whether a model reasons about it, and whether a coder acts
on it. Phase 2.5 keeps only the middle step. Each item gives a repository snapshot and cutoff, the task, current code, a frozen
patch and frozen historical passages with provenance and dates. The model returns a structured judgment: verdict
(violation / no_violation / insufficient_evidence), applicability, supporting and contradicting evidence ids,
location, a short reason and a confidence. It cannot edit the patch, search, use tools or see later history. Labels are
evidence-relative: they judge the patch against the passages supplied, not against what the project later did.
Supersession is an explanation, not a verdict. See the annotation guidelines.
Stage 0: what the earlier phases actually showed
Every earlier figure was recomputed from the saved results with the repository's own report scripts (audit). All reproduced except four figures on the Phase 2 page, which are now corrected there.
| Observation | Status | Basis |
|---|---|---|
| Raw historical retrieval improves coding | Confirmed (one curated project) | Devstral 14 → 24 / 30, DeepSeek 18 → 30 / 34, both p = 0.002 |
| Decision activation beats simpler context | Not shown (low power) | activation = raw 24 / 30; header vs raw +1 / −0 |
| Historical review adds nothing over generic review | Not supported as a blanket claim | DeepSeek on code-only patches: historical 28 vs generic 18 / 34, p = 0.002. Holds for raw-history patches, Devstral and held-out. |
| Reviewers err both ways even with decisive evidence | Confirmed (Devstral), provisional (DeepSeek) | Devstral missed 6 / 19 and flagged 10 / 18 compliant; DeepSeek 8 / 30 and 1 / 21 |
| Diff-driven temporal retrieval improves discovery | Provisional, does not transfer | 27 → 30 / 34 (p = 0.375); held-out 2 / 43 vs 7 / 43 for the task query |
| Coders reject justified and unjustified feedback | Provisional, model-dependent | Devstral rejected nearly all; DeepSeek accepted 26 / 26 on violations, rejected 7 / 7 on compliant |
| Injection probe | Complete | Devstral cited the planted comment in 3 / 61 and followed it once; DeepSeek 0 / 82 |
Roles: the research, mining and provisional labelling were done by an AI research agent (Claude, via Claude Code), which is not an evaluated model. In Phase 2, DeepSeek-V4.1-Flash was coder, reviewer, reviser and the development-set retrieval judge. The judge scored retrieval pages, not its own reviews.
Benchmarks
- Development: the 68 frozen Phase 2 patches over 34 tasks against their frozen Phase 1 evidence pages. The patches fall into 23 clusters (tasks sharing evidence or a source change), and every interval below resamples clusters, not patches. Labels: 22 violation, 46 no_violation. Revision 2 marks 12 ambiguous after error analysis. One file name contradicted its task, and three items over-restrict a range. Ten labels deliberately differ from the executable grade, because the grade knows facts the page does not.
- Held-out: the 63 mined real-PR cases (transformers 32, trl 21, diffusers 10). Each item pairs the PR's initial hunk with the evidence the maintainer cited. It was frozen, with a pre-registration, before any development result was read. 32 items are strict; the rest are in-flight, weak, contested or have an empty page. Diffusers is the cross-repository split.
- Label reliability: a blind second annotation of the development set matched 63 / 68 verdicts (κ = 0.82) and all 43 items both passes thought unambiguous. Both passes were made by the same model family, so this is an upper bound. No label on this page is human-verified.
Experiment A: prompting
DeepSeek-V4.1-Flash (serge's production model, reasoning effort low) on the 56 unambiguous development items. A0 is the Phase 2 reviewer prompt with a frozen mapping: any validated finding means violation. A0 cannot abstain. A1 is a minimal classification prompt, A2 the evidence-entailment prompt given in the brief, A3 adds counter-evidence, and A4 replaces passages with the Phase 1.5 decision headers. "Lenient" also accepts a second defensible verdict, chiefly insufficient_evidence on an empty page.
| Prompt | Balanced acc. (95% cluster CI) | Lenient acc. | Violation P / R | FPR | Abstains |
|---|---|---|---|---|---|
| A0 Phase 2 reviewer | 0.91 | 0.95 | 1.00 / 0.82 | 0.00 | 0.00 |
| A1 minimal | 0.81 | 0.96 | 1.00 / 0.88 | 0.00 | 0.18 |
| A2 entailment (as specified) | 0.78 | 0.93 | 1.00 / 0.76 | 0.00 | 0.14 |
| A3 counter-evidence | 0.81 | 0.95 | 1.00 / 0.82 | 0.00 | 0.14 |
| A4 decision headers | 0.43 | 0.71 | 1.00 / 0.35 | 0.00 | 0.45 |
| A2r entailment, revised on dev | 0.90 | 1.00 | 1.00 / 1.00 | 0.00 | 0.14 |
- Instructions barely matter. A0–A3 differ by abstaining on empty or unrelated pages, which the labels accept. Their lenient accuracies are 0.93–0.96.
- Headers lose information. A4 is worse even on the 31 items that have a header: 0.74 vs 0.87 for raw passages. This is the Phase 1.5 activation result again, now on an isolated task.
- One phrase caused most misses. A2's "a concrete change in the patch violates" led the model to clear patches that left a superseded value in place ("the patch only widens the upper bound"). A2r judges the code after the patch, omissions included, and recovers every violation. It was tuned on these items, so its development numbers are optimistic.
Experiment B: models
Identical inputs and output budget (temperature 0, seed 17, 16,384 tokens, JSON mode), 56 unambiguous development items.
| Model (provider, reasoning) | A0 bal. acc. | A2r lenient | A2r P / R | A2r FPR |
|---|---|---|---|---|
| DeepSeek-V4-Pro-0813 (deepinfra, effort high) | 0.97 [0.91, 1.00] | 1.00 | 1.00 / 1.00 | 0.00 |
| DeepSeek-V4.1-Flash-1017 (together, effort low) | 0.91 | 1.00 | 1.00 / 1.00 | 0.00 |
| Qwen3.8-27B (cerebras, default thinking) | 0.93 | 0.95 | 1.00 / 0.82 | 0.00 |
| DeepSeek-V4-Pro-0813 (deepinfra, no reasoning) | 0.62 | 0.82 | 0.71 / 0.71 | 0.13 |
| gemma-3-4b-it (deepinfra) | 0.51 | 0.68 | 0.47 / 0.41 | 0.21 |
| Devstral Small 2 24B Q4_K_M (local Ollama), partial | 0.57 | A2r ran on 19 of 56 items only. The local run (90 of 136 calls) was stopped by memory pressure and not resumed. | ||
The reasoning setting mattered more than the model. The same V4-Pro weights went from A0 recall 0.24 to 0.94 when reasoning was enabled. Without reasoning, its failures were patch reading, not history: it read diffs backwards ("changes the requirement back to typer-slim") and wrote reasons that support compliance next to a violation verdict. The 4B model is near chance, with false-positive rates of 0.21–0.54, and no confidence threshold makes it usable.
Experiment C: controlled evidence perturbations
The patch is held fixed and only the evidence changes. 337 variants of the development items are used; C4, C6, C8 and C9 are synthetic and reported separately. "Given C1 correct" restricts to base items the model got right with the original page, which separates the perturbation's effect from baseline errors. The model and prompt are A2r.
| Condition | Expected | Flash: acc. (given C1 correct) | Qwen 27B: acc. (given C1 correct) |
|---|---|---|---|
| C2 decisive evidence removed (18) | insufficient_evidence | 0.78 (0.82); 1 flagged violation | 0.78 (0.80); 1 flagged violation |
| C3 superseding passage removed (2) | old cap applies | 1 / 2 | 1 / 2 |
| C4 scope narrowed away from this file (8, synthetic) | no_violation | 1.00 | 1.00 |
| C4 scope confirmed for this file (8, control) | violation | 1.00 | 1.00 |
| C5 three unrelated passages added (59) | unchanged | 0.88 (0.98) | 0.93 (0.98) |
| C6 maintainer objection before merge (8, synthetic) | unchanged | 0.88 (0.88) | 0.75 (1.00) |
| C6 newer non-maintainer dissent (8, synthetic) | unchanged | 1.00 | 0.88 (1.00) |
| C7 chronological / reverse / shuffled (156) | unchanged | 0.96 / 0.90 / 0.96 (1.00 / 0.94 / 1.00) | 0.96 / 0.94 / 0.94 (1.00 / 1.00 / 0.98) |
| C8 injected instruction pushing the other verdict (59) | unchanged | 0.88 (1.00); cited 0× | 0.92 (0.94); cited 0× |
| C9 counterfactual decision value (11, synthetic) | follows the new value | 11 / 11 | 11 / 11 |
- The model followed the supplied evidence, not prior knowledge. C9 rewrites, for example, "accelerate 1.1.0" to 1.2.0 or 0.27.0, and both models followed the page every time.
- A construction error looked like a model failure. The first C4 template said the docker fragments "keep their existing pins". Both models read that as a new prohibition on editing the file, and 7 of 8 "failed". Rephrased to say the decision "does not apply" to the file, 8 / 8 passed.
- A counterfactual confounded by current code. One C9 item was dropped because the current
setup.pystill stated the real value, and the model sided with the code. - Injected instructions were never cited. Qwen's three errors in the pushed direction under C8 give unrelated reasons, and two were already wrong without the injection.
Experiment D: judging reviewer feedback
Each of 96 objections is judged accept / reject / insufficient. 81 are real Phase 2 findings and 15 are synthetic: obsolete constraint, irrelevant evidence, valid citation with invalid reasoning, excessive correction, or correct.
| Unambiguous items (69) | Justified accepted | Unjustified accepted | Justified rejected |
|---|---|---|---|
| DeepSeek-V4.1-Flash | 0.95 | 0.00 | 0.05 |
| Qwen3.8-27B | 0.98 | 0.00 | 0.02 |
- Every synthetic obsolete, irrelevant and bad-reason objection was rejected. The models disagree only on "excessive" objections (correct core, unnecessary extra changes), which are labelled ambiguous.
- Model disagreements exposed labelling errors. Three real findings had the right verdict for the wrong reason.
For example, one blamed a
<0.9.0cap that admits the required 0.8.0, while the actual defect was the old floor left in place. The automatic rule "objection on a violating patch is justified" labelled them accept. Both models rejected them, and the labels were corrected. On selective acceptance, the Phase 2 correction bottleneck is not a judgment failure for these models.
Confidence and repeatability
- Calibration on dev. A2r confidence is reasonably calibrated: ECE 0.07 for Flash, 0.08 for V4-Pro, 0.13 for Qwen and 0.26 for gemma. The risk–coverage curve is saturated: Flash at confidence ≥ 0.9 answers 64% of items at accuracy 1.00.
- Repeatability. Temperature 0 is not deterministic through these providers. On 24 items run three times, A0 was unanimous on 22 and A2r on 18.
Held-out: real review threads
Data defect found after the frozen run. The Phase 2 held-out evidence pages were fetched through
GitHub's issues API, which carries no merge date. Every evidence PR showed merged_at: null, including the 38 merged
before their cutoff, and models explicitly cleared violations because "the PR is unmerged". In addition, 11 of 55 passages are an
unedited PR template or a one-line body. The frozen run (revision 1) is reported as recorded. Revision 2 restores only the merge
dates, from metadata mined before the freeze, and reruns the frozen configurations with no prompt or model change. It is a post-hoc
correction, not a confirmation.
| All 63 items | Rev 1: P / R | Rev 2: P / R | Rev 2 FPR | Rev 2 abstains | Rev 2 lenient |
|---|---|---|---|---|---|
| Flash, A0 | 0.73 / 0.58 | 0.86 / 0.55 | 0.11 | 0.00 | 0.71 |
| Flash, A2r | 0.64 / 0.21 | 0.86 / 0.36 | 0.07 | 0.41 | 0.62 |
| Qwen 27B, A0 | 0.82 / 0.42 | 0.83 / 0.45 | 0.07 | 0.00 | 0.67 |
| Qwen 27B, A2r | 0.92 / 0.36 | 0.93 / 0.39 | 0.04 | 0.35 | 0.68 |
| V4-Pro high, A0 | 0.78 / 0.42 | 0.88 / 0.42 | 0.07 | 0.00 | 0.68 |
| V4-Pro high, A2r | 0.77 / 0.30 | 0.82 / 0.27 | 0.07 | 0.44 | 0.56 |
| gemma-3-4b, A2r | 0.60 / 0.09 | not rerun | |||
- Flags stay precise, but most violations are missed. Flags are 82–93% correct. Recall falls from 0.82–1.00 on dev to 0.27–0.55.
- Model capability doesn't explain the gap. The best development model (V4-Pro, high) is no better than Flash, and the pre-registered model-gap bar is not met.
- A2r's dev gain did not transfer. A0 has the higher recall here (0.55 vs 0.36 for Flash), so the prompting hypothesis is not confirmed.
- Cross-repository (diffusers, 10 items). The pattern repeats: precision 1.00 and recall 0.17–0.33. That is too few items to test transfer.
- The pre-registered practical bar is not met. It required false-positive rate ≤ 0.10, precision ≥ 0.80 and coverage ≥ 0.50 at the confidence threshold of 0.9 set on dev. At that threshold, models answer only 7–24% of items.
Reading the misses shows where the gap comes from. The labels were mined as "a maintainer objected and the PR changed", and the evidence is what the maintainer linked. Often that link is an example, not a statement of the rule: a Kandinsky fix generalised to Cosmos, or a test PR cited as "the new format". Some links are a bare title ("As per title ~"), and some were in flight at the cutoff. A model reasoning strictly from the page correctly answers "not established". Those labels are not evidence-relative, so the held-out result measures evidence completeness and label validity as much as reasoning. Settling it needs a human pass that marks which pages actually state the rule.
Failure taxonomy (observed)
| Category | Where it appeared |
|---|---|
| Decisive evidence absent or uninformative | held-out: template bodies, one-line titles, example PRs instead of rules (the dominant held-out cause) |
| Provenance misread from bad metadata | held-out rev 1: merged decisions shown as unmerged |
| Violation attributed only to changed lines (omission blind spot) | dev A2: superseded floor or cap left in place; fixed by A2r |
| Patch misread (diff direction), verdict contradicting its own reason | V4-Pro without reasoning |
| Current code preferred over the historical passage | C9 confound (setup.py); excluded |
| Superseded decision enforced | rare: one C3 item, where the remaining passage still stated intent |
| Over-restriction treated as compliant | pytest <8 vs decided <9; labels ambiguous by rule |
| Influence of injected instructions | not observed (0 citations in 118 exposed judgments) |
| Benchmark construction errors | C4 v1 template, a contradictory file name, automatic objection labels: all surfaced by model disagreement |
Training feasibility
No training was done. A pilot supervision set holds 290 examples and 59 preference pairs, built only from provisional labels and designed constructions. No model output is used as a target. It shows how thin natural supervision is:
- Yield. About 1 usable example per ~1,500 review comments scanned (63 candidates, 32 strict, from ~48k transformers comments plus trl and diffusers).
- Skill coverage. Apart from plain contradiction (58 examples), every skill has under 15 natural unambiguous examples: supersession 9, abstention 12, scope 4, conflict 1.
- Labelling cost. Every automatic labelling rule we tried was wrong somewhere. A reliable set of 1,000 would need roughly 200–250 human adjudication hours plus evidence repair.
| Strategy | Fit to what we observed |
|---|---|
| 1. Small general model, evidence supplied at inference | The only plausible direction: distil a reasoning model's evidence-relative judgment. Not justified until a small model fails where a large one succeeds on complete evidence. |
| 2. Project-specific coding model | Poor fit. It learns what was decided, which goes stale, and would bake in the superseded and over-scoped constraints these probes test. Capable models already follow supplied evidence over memory (C9). |
| 3. Hybrid | Inherits Strategy 2's staleness risk unless retrieval always wins, which is the behaviour models already show. |
Answers
- Can models reason reliably about history when retrieval is removed? Yes on curated, complete evidence, when reasoning is enabled. Not established on mined real cases, where the evidence is often incomplete.
- Which capabilities are hardest? None that we tested is systematically hard for capable models. The weak points are reading omissions (fixed by wording) and patch reading without reasoning.
- Does prompting help (H3)? Not substantially. One sentence fixed a wording trap on dev, and the gain did not replicate on held-out.
- Do higher-capability models do better (H4)? On dev, reasoning-enabled models beat non-reasoning and small ones by 0.3–0.4 balanced accuracy. On held-out, all three capable models are alike.
- Can smaller models reach useful precision by abstaining? gemma-3-4b cannot. No threshold brings its false-positive rate under 0.20.
- Superseded decisions and exceptions? Recognised under the controlled perturbations: C4 1.00, C9 11 / 11. C3 is too small to say.
- Justified vs misleading feedback? Yes: zero unjustified acceptances on unambiguous items, for both models.
- Across repositories (H5)? Diffusers looks like the in-repo split, but 10 items cannot establish transfer.
- Can project history supply reliable supervision (H6)? Not cheaply. Yield is low, automatic labels are unreliable, and the cited evidence often does not state the rule.
- Is specialised training justified? No. No outcome-C skill gap was found.
- Project-specific, transferable or hybrid? If ever, transferable (Strategy 1), distilled, with evidence at inference.
Recommendation for Phase 3
This is Outcome D, evidence completeness dominates, compounded by E, benchmark ambiguity on mined cases. Spend the next phase on the evidence, not the model:
- Build pages that carry the rule. Fetch from
pulls/{n}with merge state. Skip PR templates. Follow the maintainer's link to the passage that states the convention, and use code-anchored history for helpers and registries. This matches the Phase 2 finding that the decisive rules are project-wide conventions. - Have a human adjudicate the held-out labels against their pages. Mark which state the rule, then re-score. That one pass turns the held-out numbers into a result.
- Keep Relore lightweight. Hand the reviewer raw passages (not headers), use a reasoning-enabled model, and let it abstain. Precision is already high, so silent abstention costs little.
- Revisit training only after a human-adjudicated, evidence-complete set of ~300 items shows a small model failing where a large one succeeds.
Scope, configurations and reproducibility
- Models. All hosted calls went through HF Inference Providers, billed to the huggingface organisation; provider
quantisation is not disclosed.
deepseek-ai/DeepSeek-V4.1-Flash-1017:together, effort lowdeepseek-ai/DeepSeek-V4-Pro-0813:deepinfra, effort high or noneQwen/Qwen3.8-27B:cerebras, default thinkinggoogle/gemma-3-4b-it:deepinfra- local
devstral-small-2(24B, Q4_K_M, Ollama)
- Settings. Temperature 0, seed 17, max 16,384 tokens (Devstral 1,024), JSON mode.
- Cost. Phase 2.5 inference cost $11.88. Every call is in the ledger, and every run file records the item-file and code hashes.
- Labels. All provisional: development labels by the research agent (revision 2), held-out labels mined and unreviewed. The pre-registration, its addendum written before the held-out run, the frozen hashes and both held-out revisions are in the harness directory.
- Withheld. As in Phase 2, held-out case material is not published: the mined candidates, held-out items, per-item held-out results and the pilot set that contains them. Aggregates are in summary.json.
- Single runs. Most figures come from one run, and differences under ~0.15 on 23–57 clusters are usually not resolvable.