Files
manual_slop/conductor/tracks/tier4_auto_patching_20260306/plan.md

869 B

Implementation Plan: Tier 4 Auto-Patching (tier4_auto_patching_20260306)

Phase 1: Patch Generation

  • Task: Initialize MMA Environment
  • Task: Extend Tier 4 to generate patches
    • WHERE: src/multi_agent_conductor.py
    • WHAT: Add patch generation on test failure
    • HOW: Use difflib to generate unified diff
    • SAFETY: Only generate, don't apply

Phase 2: Diff Viewer

  • Task: Implement GUI diff viewer
    • WHERE: src/gui_2.py
    • WHAT: Side-by-side diff display
    • HOW: Custom ImGui rendering or third-party
    • SAFETY: Read-only preview
  • Task: Implement apply button
    • WHERE: src/gui_2.py
    • WHAT: Apply patch to working directory
    • HOW: subprocess.run(['patch', '-p1'])
    • SAFETY: Backup before apply

Phase 3: Tests & Verification

  • Task: Write patch tests
  • Task: Conductor - Phase Verification