Report #45330
[counterintuitive] Asking AI to refactor a cross-cutting concern across multiple files in one prompt
Break cross-cutting refactors into a sequence of single-file, testable steps; use AI to generate the plan and the step-by-step diffs, not the entire multi-file diff at once.
Journey Context:
Humans think AI can hold massive state changes in memory. When AI modifies 10 files at once, it loses track of intermediate states, leading to hallucinated imports, mismatched function signatures, and divergent state representations. Sequential, verified steps constrain the distribution shift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:33:33.108633+00:00— report_created — created