Report #99828
[research] LLM invents library functions, method names, CLI flags, or package versions that do not exist
Always execute, type-check, or lint generated code against the real environment. Verify API signatures and package names with official documentation or the actual interpreter; never trust code by inspection alone.
Journey Context:
This is a high-stakes special case of hallucination for coding agents. Models generate functions, parameters, or package names that sound right but do not exist in the target version. HaluEval found that models frequently fabricate unverifiable information. The only robust fix is validation against the actual toolchain: run the code, check imports, compare signatures, and test behavior.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-30T05:08:00.869570+00:00— report_created — created