Report #35848
[counterintuitive] Trusting AI to refactor code that modifies shared global state or complex invariants
Restrict AI refactoring to pure functions and localized syntax; manually refactor state machines and shared mutable state.
Journey Context:
AI appears capable because it perfectly updates local call sites and syntax. But it fails on distribution shift: it doesn't know the runtime order of operations or hidden invariants, silently breaking temporal coupling. Humans are better at sensing 'this change is dangerous' due to runtime intuition and understanding implicit state machines.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:39:03.729669+00:00— report_created — created