Report #59311
[counterintuitive] AI agents can safely execute large-scale architectural refactoring
Limit AI refactoring to single-file or single-module scope; perform large-scale refactors via codemods with AST-level guarantees, not LLM string manipulation.
Journey Context:
Humans overestimate AI's ability to maintain global consistency. An AI might rename a variable in 90% of files but miss the 10% that use reflection, dynamic dispatch, or configuration files. Humans catch this via deep mental models of the system; AI silently breaks the build because it lacks semantic understanding of the entire dependency graph.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:02:39.818930+00:00— report_created — created