feat(tier4): Add patch generation for auto-patching

- Add TIER4_PATCH_PROMPT to mma_prompts.py with unified diff format
- Add run_tier4_patch_generation function to ai_client.py
- Import mma_prompts in ai_client.py
- Add unit tests for patch generation
This commit is contained in:
2026-03-07 00:10:35 -05:00
parent 5277b11279
commit c8e8cb3bf3
5 changed files with 123 additions and 3 deletions

View File

@@ -5,8 +5,8 @@
## Phase 1: Patch Generation
Focus: Generate unified diff on test failure
- [ ] Task 1.1: Initialize MMA Environment
- [ ] Task 1.2: Extend Tier 4 prompt for patch generation
- [x] Task 1.1: Initialize MMA Environment
- [~] Task 1.2: Extend Tier 4 prompt for patch generation
- WHERE: `src/mma_prompts.py` or inline in `ai_client.py`
- WHAT: Prompt to generate unified diff
- HOW: