Skip to content

fix: round-1 drafting quality guard + --resume - #455

Closed
dahai80 wants to merge 1 commit into
mainfrom
fix/round1-draft-quality
Closed

dahai80 wants to merge 1 commit into
mainfrom
fix/round1-draft-quality

Conversation

@dahai80

@dahai80 dahai80 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Drafter copying the correct action verbatim = identical chosen/rejected pair = poison for DPO. draft_negative now detects it and retries once with an explicit anti-copy instruction; 4 attempts total with backoff
  • --resume: keep real records from the existing out file, draft only missing (step, mode) slots — transient gateway refusals no longer re-bill 500+ successful calls
  • build_pairs already had the deterministic identical-pair filter (unchanged)

Validation

  • First real run forensics: 467/525 drafted, 58 lost to connection refused; identical-to-chosen detected in engine_starvation/scope_miss modes
  • --resume smoke via --dry-run: 467 real kept + 58 re-emitted = 525 total
  • Resume run for the 58 in flight on the live gateway

🤖 Generated with Claude Code

First real drafting run exposed two gaps:
- The 27B drafter sometimes copies the correct action verbatim
  (engine_starvation / scope_miss modes) — an identical 'negative'
  is poison for DPO. draft_negative now detects chosen==drafted and
  retries once with an explicit anti-copy instruction (4 attempts
  total, up from 2, transient-refusal backoff kept). build_pairs
  already filters identical pairs deterministically.
- 58/525 drafts were lost to transient gateway connection refusals
  with no way to redo only those. --resume keeps real records from
  the existing out file and drafts only the missing (step, mode)
  slots; dry-run placeholders are not carried over.

Co-Authored-By: Claude Code <[email protected]>
@dahai80

dahai80 commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

Superseded by the rebased version (#458) — resume part landed in #456, anti-copy guard carried over rebased on main.

@dahai80 dahai80 closed this Dec 2, 2026
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.

1 participant