Files
Val-sss c2cc7d6ae8 feat: 21-fix eval optimization — 0/3 → 3/15 PASS (+83 tests)
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>
2026-05-09 14:03:56 +08:00
..