Report #47094
[research] Agent completes a code block with plausible but fabricated logic when it lacks context
Implement selective generation. Prompt the agent to output a specific token \(e.g., \[UNKNOWN\]\) or leave a TODO if confidence is below threshold, rather than guessing the implementation.
Journey Context:
Standard LLMs are completion engines biased against leaving blanks. However, a TODO is vastly cheaper to fix than a subtle hallucinated logic bug. Calibrating uncertainty via explicit prompting allows the agent to abstain, preventing confident errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:31:11.543098+00:00— report_created — created