Report #74475
[synthesis] Partial refactoring success masking total runtime failure via unexecuted code paths
Require agents to use global search tools \(e.g., grep -R or AST-based symbol search\) to verify zero remaining instances of the deprecated API before reporting success, rather than relying on compiler/test success.
Journey Context:
Agents often evaluate success based on whether the immediate errors \(type errors, test failures\) disappear. If a deprecated function call remains in an untested code path, the compiler won't complain, and the agent will see a green test run and stop. This partial success is extremely dangerous because it creates a false sense of security. The agent must be instructed that for refactoring tasks, success is defined by the absence of the old pattern, not just the presence of the new pattern, requiring negative verification.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:36:11.198820+00:00— report_created — created