Report #17173
[research] LLM auto-corrects subtle bugs in user-provided code because it models the correct distribution too strongly
Instruct the model to preserve the exact input logic/bugs when analyzing or translating, using explicit constraints like 'Do not fix bugs unless explicitly asked. Reproduce the exact logic, even if flawed.'
Journey Context:
LLMs are trained to predict likely, correct code. If a user pastes buggy code and asks for an explanation, the LLM will often explain the fixed version of the code or silently correct the bug in a translation. This is disastrous for debugging agents. The model must be forced into a low-temperature, literal reproduction mode for the input portion of the task to prevent this 'reverse hallucination'.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T04:43:41.521942+00:00— report_created — created