Skip to content

feat: round-1 DPO pipeline steps 1-2 (#389) + StopLoss early-abort watcher (#449) - #451

Merged
dahai80 merged 2 commits into
mainfrom
feat/adapt-round1-stoploss-449
Dec 2, 2026
Merged

dahai80 merged 2 commits into
mainfrom
feat/adapt-round1-stoploss-449

Conversation

@dahai80

@dahai80 dahai80 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

Two bench-side work items, no kernel changes.

#389 round-1 steps 1-2 (benchmarks/adapt/round1/)

  • exportSteps.py — run dir -> tool-step records (105 steps / 17 resolved tasks from the surviving 11-28 run)
  • draft_negatives.py — 27B drafts one negative per (step, failure mode) for the 5 named forensics modes, via fusion-gateway /v1/messages; --dry-run validates the pipeline model-free
  • build_pairs.py — deterministic step-level DPO pairs ({prompt, chosen, rejected}, same context prefix, diverging action), compatible with the trajectory-export DPO shape
  • Real drafting run deferred to tonight's GPU window (gateway breaker was half_open during build)

#449 StopLoss early-abort watcher (benchmarks/tb2/)

  • stoploss_lib.py — windowed tool-step features + pure-python logistic scorer + 6 naive baselines
  • stoploss_dataset.py — labels from verifier reward (capped-unresolved = positive, resolved = negative)
  • stoploss_eval.py — precision-first threshold calibration, held-out P/R, reclaimed-seconds and false-abort-cost reported separately
  • Adapter watcher: BENCH_STOPLOSS=1 + BENCH_STOPLOSS_MODEL, default OFF, log-only without weights; early kill marks aborted_early/abort_time_s metadata; verifier still runs
  • collect_results.py: stoploss early-abort summary line

Test plan

  • All scripts py_compile clean
  • Full round-1 pipeline dry-run verified end-to-end (dry-run negatives -> 15 pairs across all 5 modes)
  • StopLoss dataset+eval verified on synthetic trial fixtures (degenerate scores expected on fabricated data — mechanics only); fixtures cleaned
  • Live false-abort=0 gate remains an acceptance precondition before the flag ships on

Closes #449

🤖 Generated with Claude Code

dahai80 and others added 2 commits December 2, 2026 09:55
exportSteps (run dir -> tool-step records), draft_negatives (27B
drafting via gateway, 5 named failure modes, --dry-run), build_pairs
(deterministic step-level preference pairs, same-prefix prompt).
Real drafting run deferred to tonight's GPU window (gateway breaker
half_open at build time). Source run note: 11-28 17/20 (19/20 run
cleaned under data-hygiene rule).

Co-Authored-By: Claude Code <[email protected]>
stoploss_lib (windowed features + logistic scorer + 6 naive
baselines), stoploss_dataset (verifier-reward labels from trial
dirs), stoploss_eval (precision-first threshold calibration,
held-out P/R + reclaimed-seconds/false-abort-cost), watcher
integration in the external adapter (BENCH_STOPLOSS=1 +
BENCH_STOPLOSS_MODEL, default off, log-only without weights,
aborted_early metadata), collect_results reports reclaimed AND
false-abort cost. Closes #449 code slice; live false-abort=0 gate
still required before flag ships on.

Co-Authored-By: Claude Code <[email protected]>
@dahai80
dahai80 merged commit 5bb82b4 into main Dec 2, 2026
2 checks passed
@dahai80
dahai80 deleted the feat/adapt-round1-stoploss-449 branch December 2, 2026 01:56
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.

StopLoss-style early-abort monitor: reclaim GPU-hours burned on doomed runs

1 participant