mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-08 16:46:37 +08:00
1.3 KiB
1.3 KiB
Fix Workflow (autoresearch fix mode)
The fix workflow is a lightweight version of the debug loop. It is designed for situations where you have a specific, known failure (e.g., a TypeScript error or a lint violation) and you want to fix it without the overhead of full reproduction and isolation.
Protocol
1. Context Loading
- Read the error message or description provided in the command.
- Identify the affected file(s).
- Read the current state of those files.
2. Hypothesis
- Form a direct hypothesis on how to fix the specific error.
- The fix must be minimal and targeted.
3. Execution
- Apply the fix.
- Commit the change.
4. Verification
- Run the command that triggered the original failure (e.g.,
npx tscornpm run lint). - If a
Guardis set in the main autoresearch config, run that as well.
5. Decision
- If the error is gone and Guard passes: KEEP.
- If the error persists: RETRY (max 3 times) with a different approach.
- If it still fails after 3 tries: REVERT and report to the user.
When to use fix vs debug
- Use
fixfor mechanical errors: "Fix the lint error on line 42", "Fix the missing import inutils.ts". - Use
debugfor logical errors: "The login flow fails for users with specialized characters", "Database connection timeouts under high load".