Test-first bug fixing Enforce a disciplined bug-fixing workflow that prevents regression and parallelizes fix attempts. Core workflow When a bug is reported, follow these steps in order: Phase 1: Reproduce and document 1. Understand the bug — Gather details about expected vs actual behavior 2. Identify the test location — Determine where tests live in the project (check for , , , , patterns) 3. Write a failing test — Create a test that demonstrates the bug Phase 2: Fix with subagents 4. Launch fix subagents — Use the Task tool with to attempt fixes 5. Run the test — Verify the fix by running…