Skip to content

Complete leakage-safe P3 backtest - #10

Merged
EhsanAzish80 merged 3 commits into
mainfrom
bench/backtest
Dec 5, 2026
Merged

EhsanAzish80 merged 3 commits into
mainfrom
bench/backtest

Conversation

@EhsanAzish80

Copy link
Copy Markdown
Owner

Summary

  • add the approved 50-repository, first-parent P3 replay with a six-year index warm-up and complete-clone validation
  • fit global logistic weights and Platt calibration on 40 training repositories only
  • correct labels to use fix landing time, original intro paths, and merge-introduced lines
  • version resumable shards and publish raw per-merge CSV, summary JSON, Popt, and methodology
  • update evidence goldens and report integration for fitted weights

Verified benchmark

  • 50/50 pinned repositories indexed with Engine 6 and SQLite integrity checks
  • 312,102 indexed commits
  • 709 eligible evaluation units; 3,545 per-method result rows
  • 40 training repositories; 10 fixed-seed holdouts; 6 holdouts had eligible units
  • held-out median Lift@3: 1.36 (95% bootstrap CI 0.00–3.41)
  • relative to size-only median Recall@3: -3.3%
  • product gate: FAIL

This is intentionally reported as a failed product gate. Per the spec, it does not support premium risk-ranking positioning or a Lift@3 release headline.

Checks

  • .venv/bin/ruff check src tests scripts
  • .venv/bin/mypy src
  • 219 passed, 6 skipped
  • signed commit b48e4ed

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

🔍 Devscope Health Check

Devscope: A · Low risk · Easy onboarding · 0.53 test-file ratio · 0.05s ⚡

Updated: Sat, 05 Dec 2026 10:41:08 GMT

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 60.98131% with 167 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/devscope/bench/replay.py 38.63% 81 Missing ⚠️
src/devscope/bench/runner.py 0.00% 42 Missing ⚠️
src/devscope/cli.py 24.24% 25 Missing ⚠️
src/devscope/bench/report.py 80.00% 13 Missing ⚠️
src/devscope/bench/fit.py 96.59% 3 Missing ⚠️
src/devscope/bench/metrics.py 95.16% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@EhsanAzish80
EhsanAzish80 merged commit a56d500 into main Dec 5, 2026
5 checks passed
@EhsanAzish80
EhsanAzish80 deleted the bench/backtest branch December 5, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants