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.

ObservationStatusBasis
Raw historical retrieval improves codingConfirmed (one curated project)Devstral 14 → 24 / 30, DeepSeek 18 → 30 / 34, both p = 0.002
Decision activation beats simpler contextNot shown (low power)activation = raw 24 / 30; header vs raw +1 / −0
Historical review adds nothing over generic reviewNot supported as a blanket claimDeepSeek 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 evidenceConfirmed (Devstral), provisional (DeepSeek)Devstral missed 6 / 19 and flagged 10 / 18 compliant; DeepSeek 8 / 30 and 1 / 21
Diff-driven temporal retrieval improves discoveryProvisional, does not transfer27 → 30 / 34 (p = 0.375); held-out 2 / 43 vs 7 / 43 for the task query
Coders reject justified and unjustified feedbackProvisional, model-dependentDevstral rejected nearly all; DeepSeek accepted 26 / 26 on violations, rejected 7 / 7 on compliant
Injection probeCompleteDevstral 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

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.

PromptBalanced acc. (95% cluster CI)Lenient acc.Violation P / RFPRAbstains
A0 Phase 2 reviewer0.910.951.00 / 0.820.000.00
A1 minimal0.810.961.00 / 0.880.000.18
A2 entailment (as specified)0.780.931.00 / 0.760.000.14
A3 counter-evidence0.810.951.00 / 0.820.000.14
A4 decision headers0.430.711.00 / 0.350.000.45
A2r entailment, revised on dev0.901.001.00 / 1.000.000.14

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 lenientA2r P / RA2r FPR
DeepSeek-V4-Pro-0813 (deepinfra, effort high)0.97 [0.91, 1.00]1.001.00 / 1.000.00
DeepSeek-V4.1-Flash-1017 (together, effort low)0.911.001.00 / 1.000.00
Qwen3.8-27B (cerebras, default thinking)0.930.951.00 / 0.820.00
DeepSeek-V4-Pro-0813 (deepinfra, no reasoning)0.620.820.71 / 0.710.13
gemma-3-4b-it (deepinfra)0.510.680.47 / 0.410.21
Devstral Small 2 24B Q4_K_M (local Ollama), partial0.57A2r 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.

ConditionExpectedFlash: acc. (given C1 correct)Qwen 27B: acc. (given C1 correct)
C2 decisive evidence removed (18)insufficient_evidence0.78 (0.82); 1 flagged violation0.78 (0.80); 1 flagged violation
C3 superseding passage removed (2)old cap applies1 / 21 / 2
C4 scope narrowed away from this file (8, synthetic)no_violation1.001.00
C4 scope confirmed for this file (8, control)violation1.001.00
C5 three unrelated passages added (59)unchanged0.88 (0.98)0.93 (0.98)
C6 maintainer objection before merge (8, synthetic)unchanged0.88 (0.88)0.75 (1.00)
C6 newer non-maintainer dissent (8, synthetic)unchanged1.000.88 (1.00)
C7 chronological / reverse / shuffled (156)unchanged0.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)unchanged0.88 (1.00); cited 0×0.92 (0.94); cited 0×
C9 counterfactual decision value (11, synthetic)follows the new value11 / 1111 / 11

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 acceptedUnjustified acceptedJustified rejected
DeepSeek-V4.1-Flash0.950.000.05
Qwen3.8-27B0.980.000.02

Confidence and repeatability

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 itemsRev 1: P / RRev 2: P / RRev 2 FPRRev 2 abstainsRev 2 lenient
Flash, A00.73 / 0.580.86 / 0.550.110.000.71
Flash, A2r0.64 / 0.210.86 / 0.360.070.410.62
Qwen 27B, A00.82 / 0.420.83 / 0.450.070.000.67
Qwen 27B, A2r0.92 / 0.360.93 / 0.390.040.350.68
V4-Pro high, A00.78 / 0.420.88 / 0.420.070.000.68
V4-Pro high, A2r0.77 / 0.300.82 / 0.270.070.440.56
gemma-3-4b, A2r0.60 / 0.09not rerun

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)

CategoryWhere it appeared
Decisive evidence absent or uninformativeheld-out: template bodies, one-line titles, example PRs instead of rules (the dominant held-out cause)
Provenance misread from bad metadataheld-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 reasonV4-Pro without reasoning
Current code preferred over the historical passageC9 confound (setup.py); excluded
Superseded decision enforcedrare: one C3 item, where the remaining passage still stated intent
Over-restriction treated as compliantpytest <8 vs decided <9; labels ambiguous by rule
Influence of injected instructionsnot observed (0 citations in 118 exposed judgments)
Benchmark construction errorsC4 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:

StrategyFit to what we observed
1. Small general model, evidence supplied at inferenceThe 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 modelPoor 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. HybridInherits Strategy 2's staleness risk unless retrieval always wins, which is the behaviour models already show.

Answers

  1. 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.
  2. 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.
  3. Does prompting help (H3)? Not substantially. One sentence fixed a wording trap on dev, and the gain did not replicate on held-out.
  4. 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.
  5. Can smaller models reach useful precision by abstaining? gemma-3-4b cannot. No threshold brings its false-positive rate under 0.20.
  6. Superseded decisions and exceptions? Recognised under the controlled perturbations: C4 1.00, C9 11 / 11. C3 is too small to say.
  7. Justified vs misleading feedback? Yes: zero unjustified acceptances on unambiguous items, for both models.
  8. Across repositories (H5)? Diffusers looks like the in-repo split, but 10 items cannot establish transfer.
  9. 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.
  10. Is specialised training justified? No. No outcome-C skill gap was found.
  11. 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:

  1. 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.
  2. 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.
  3. 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.
  4. 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