Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions docs/methodology.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,48 @@ Relative to size-only median Recall@3: **-3.3%**. Product gate: **FAIL**.
Eligible held-out repositories: **6**.

The headline is computed only on repositories excluded entirely from fitting. Features use strict `landed_at < as_of`; labels may use fixes landing within the following 12 months. Raw merge-level results are in `per-merge.csv`.

## Interpretation

The holdout estimate is underpowered. Only 6 of 10 held-out repositories produced an
eligible unit, and one repository contributed almost all held-out units. It is not valid
evidence for either success or failure on its own.

The paired all-corpus comparison is more informative. Across the same 709 eligible units,
v2 beat size-only on 53, tied on 586, and lost on 70. Mean Recall@3 was 0.695 for v2 and
0.706 for size-only; mean effort-aware Popt was 0.531 and 0.520 respectively. This run
therefore found no measurable history advantage over ranking by changed lines.

Recall@3 also counts bug lines, which structurally favors large files and diffs. The result
does not establish that history has no signal; it establishes that this protocol cannot
separate that signal from size strongly enough to support the product claim.

## Pre-registered final retest (P3b)

This protocol was fixed before inspecting any P3b result. There will be no second retest.

- Replay the 24 months after the training cutoff rather than 6 months.
- Sample at most 40 eligible units per repository with a deterministic seed recorded in
the output. Sampling is uniform within each repository and occurs before scoring.
- Label each changed file as binary: whether a later fix landing within 12 months blames
that file. Bug-line counts are not used by the primary metric.
- Primary metric: file-level Recall@3, evaluated on paired rankings for the exact same
units.
- Primary comparison: Devscope v2 minus size-only, summarized with a paired,
repository-stratified bootstrap. Repositories, then units within repositories, are
resampled with replacement.
- Gate: the bootstrap 95% confidence interval for the paired Recall@3 difference must
exclude zero on the positive side. If it does not, risk ranking is dropped permanently.
- Report eligible and sampled units per repository, all paired win/tie/loss counts, Popt,
the fixed random seed, and the raw per-unit CSV. No corpus, feature, label, sampling, or
gate change is allowed after the run starts.

## Co-change utility test

This is a separate measurement of the MCP behavior, not a substitute for the P3b gate.
For commits that change a file with a high-confidence partner (confidence at least 0.5,
support at least 3), compare omitted-partner commits with commits that include the partner.
Measure whether a fix touching the partner lands within 30 days. Report both rates, their
paired repository-level difference, a repository-stratified bootstrap interval, and the
full eligible counts. This result may be used as a product headline only if the interval
excludes zero on the positive side.
Loading