Skip to content

fix: round-1 drafting anti-copy quality guard (supersedes #455) - #458

Merged
dahai80 merged 1 commit into
mainfrom
fix/round1-draft-quality-v2
Dec 2, 2026
Merged

dahai80 merged 1 commit into
mainfrom
fix/round1-draft-quality-v2

Conversation

@dahai80

@dahai80 dahai80 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • draft_negative detects a drafted negative identical to the chosen action (drafter copying = poison for DPO) and retries with an explicit anti-copy instruction, 4 attempts total
  • Rebased on main; duplicate resume implementation dropped (resume landed in feat: drafting resume mode + round-1 steps 1-2 results (#389) #456), conflict resolved in favor of main's thread-pool + unconditional resume

Validation

  • py_compile clean; dry-run resume smoke green
  • Live smoke vs idle 27B (6 real calls, engine_starvation + tool_call_format): all drafts distinct from chosen; filepath-typo and prior-step-repeat variants observed

Supersedes and closes #455.

🤖 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 merged commit dabf62d into main Dec 2, 2026
1 check passed
@dahai80
dahai80 deleted the fix/round1-draft-quality-v2 branch December 2, 2026 03:19
@dahai80 dahai80 mentioned this pull request 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