mirror of
https://github.com/val1813/kwcode.git
synced 2026-09-03 06:34:30 +08:00
Core fixes: - checkpoint.restore() no longer overwrites partial progress - error[-3000:] captures FAILURES block (was [:3000] missing it) - verifier: no rollback when tests partially pass - LOGIC_ERROR tasks use whole_file_refactor (not hashline) - retry preserves locator_output (avoids codegen from scratch) - syntax errors don't consume retry budget (max 2 free) D-step (context preparation): - attribute_failures_to_files: test failure → source file attribution - extract_fault_functions: function-level fault localization from stack trace - ROOT CAUSE priority: test assertions rank above crash location - _extract_failing_test_code: inject test source with expected values - AST interface extraction for multi-file context - Skip files without attributed failures - Failure batching (max 3 per prompt) Generator improvements: - _run_whole_file_refactor with multi-file context - _run_targeted_fix for retry (preserves progress) - _clean_code_output: strip CJK explanation + markdown residue - scope_check prevents whole-file overwrite of single function - Minimal system prompt for multi-file tasks Results: 3/15 PASS (t04/t06/t07), +83 tests across 15 tasks. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>