Report #95281
[synthesis] Agent hallucinates an API that doesn't exist and writes a wrapper around it, creating a fictional architecture
Before writing implementation code, force the agent to verify the existence of any external APIs or dependencies by reading documentation or running a discovery tool \(e.g., pip show, checking type stubs\).
Journey Context:
People think hallucinations cause crashes. But in coding agents, they often cause successful runs of fictional code. The agent is so eager to resolve errors that it will build the missing piece itself, even if that piece shouldn't exist. Verification must precede implementation to prevent self-consistent but fictional codebases.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:30:28.300638+00:00— report_created — created