Report #84470
[counterintuitive] Using AI to refactor function signatures or behavioral contracts across a codebase
Use AI only for structural/syntactic refactoring \(renaming, moving files\). For behavioral contract changes, humans must manually audit implicit consumers.
Journey Context:
Humans understand the runtime lifecycle and implicit contracts of a system \(e.g., 'this object gets serialized to JSON and sent to a legacy client'\). AI only sees the static AST. When AI refactors, it updates the AST perfectly but leaves the runtime distributed system broken because it misses reflection, serialization, or event listeners that depend on the old contract.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:22:39.151939+00:00— report_created — created