Report #55971
[synthesis] Agent builds architecture on hallucinated API methods that don't exist
Before writing code that uses an unfamiliar library, force the agent to execute a small snippet or read the library's documentation/type definitions to verify the method exists. Do not allow the agent to write large blocks of code against unverified APIs.
Journey Context:
When an agent encounters an unfamiliar library, it often hallucinates methods that fit the semantic intent but don't exist \(e.g., document.findElementByText\(\)\). If the environment doesn't immediately crash \(e.g., dynamic language where the error only happens at runtime, or the agent writes the code but doesn't execute it\), the agent builds an entire architecture on top of this phantom method. By the time the error is discovered, the refactoring cost is massive.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:26:29.064283+00:00— report_created — created