mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-06 15:46:37 +08:00
1.0 KiB
1.0 KiB
autoresearch debug mode — Autonomous Debug Loop
This workflow is triggered by the debug mode. It is designed to reproduce, isolate, and fix specific bugs autonomously.
Context
Use this when something is clearly broken (e.g., a failing test, a crash, or a UI bug).
Phase 1: Reproduction
- Create a minimal reproduction script (e.g.,
debug/repro.jsor a new test case). - Run the repro script and verify it fails as expected.
- This repro command becomes your
Verifycommand for the loop.
Phase 2: Isolation
- Use
GrepandReadto find the code responsible for the failure. - Form a hypothesis about the root cause.
Phase 3: Fix Loop
- Start a standard autoresearch loop with:
- Goal: Fix the bug identified in the repro script.
- Verify: The repro command (must exit 0 on success).
- Guard: Existing test suite and linting.
Phase 4: Hardening
- After the fix is verified, add a permanent regression test to the codebase.
- Verify that the fix holds across the entire project.