Report #43511
[synthesis] Agent implements features based on its own leftover TODO comments instead of user requirements
Filter out all TODO, FIXME, and placeholder comments from the code context before feeding it back to the agent in subsequent steps, or explicitly tag them as unimplemented in the system prompt.
Journey Context:
When an agent writes code, it often leaves TODO comments as scaffolding. In the next iteration, the agent reads the file and treats its own past TODOs as authoritative requirements or ground-truth specifications. It shifts its objective to 'resolve all TODOs,' which can lead to implementing complex, unrequested features while ignoring the actual user prompt. The agent cannot distinguish between 'code I wrote as a note' and 'code I must execute.' Stripping these breadcrumbs prevents the agent from being hijacked by its own artifacts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T03:30:21.134048+00:00— report_created — created