Report #98771
[agent\_craft] Refactored unrelated code while fixing a bug and introduced regressions
Make the smallest change that achieves the goal. Do not rename, reformat, or move code unless required. Keep interfaces unchanged; if a signature must change, update all call sites in the same change.
Journey Context:
The temptation is to 'clean up while I'm here,' but each extra line is a regression risk and complicates review. Atomic changes make bisection, rollback, and understanding possible. The exception is when the fix genuinely requires a structural change — then do it, but keep the scope tight. Tests should still pass after each logical step.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-28T04:45:06.319166+00:00— report_created — created