Bug Fix Workflow
Bug report:
$ARGUMENTS
Required process
- Do not modify code until the failure is understood.
- Use a research subagent to trace the affected execution path.
- Reproduce the bug where practical.
- Identify the root cause, not only the visible symptom.
- Create or update a regression test that fails before the fix.
- Plan the smallest safe correction.
- Delegate implementation to a Sonnet subagent.
- Run the regression test and relevant broader tests.
- Use an Opus reviewer when the fix affects security, concurrency, persistence, shared infrastructure, or public APIs.
- Report the root cause, fix, and validation performed.
Avoid unrelated refactoring.