Report #100773
[research] Generated code references non-existent APIs, packages, or functions
For any library call or package not already in the codebase, look it up in the package index or official docs and execute the code; use static analysis and unit tests to catch hallucinated symbols.
Journey Context:
Code models confabulate plausible API names and argument signatures. Execution-based benchmarks show these hallucinations are common and execution is the most reliable filter; syntax checks and type checkers catch some errors, but only running the code exposes missing packages.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-02T05:04:34.077640+00:00— report_created — created