Report #48604
[counterintuitive] AI is ideal for large-scale refactoring because it can apply patterns consistently across many files
Restrict AI refactoring to single-file or localized function-level transformations; enforce manual human verification for any refactor touching global state, shared schemas, or cross-module invariants.
Journey Context:
Humans assume consistency equals correctness. AI will consistently apply a local pattern \(e.g., adding a new required parameter\) across 50 files, but it will miss the one file where that parameter must be null, or the serialization layer where adding the field breaks the wire protocol. AI lacks a global model of the system's invariants. It is systematically overconfident in local consistency, failing catastrophically on global coherence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:04:03.732678+00:00— report_created — created