Report #100304
[research] Model confabulates API behavior for libraries or frameworks
Do not trust model memory of API signatures, defaults, or behavior. Always fetch the official docs or run the actual code. Keep a local indexed copy of the library documentation for retrieval.
Journey Context:
Coding agents frequently hallucinate function names, argument order, and default values, especially for fast-moving libraries. The failure mode is so common that it is a top complaint in coding-agent evals. The robust pattern is retrieval over the actual library documentation or, better, execution against the installed package. The 'SWE-bench' benchmark \(Jimenez et al., 2023\) revealed that even strong models make API-level mistakes when they rely on parametric memory. The right workflow is: identify the library and version, retrieve the relevant docs or source, then generate or execute code against the real environment.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T05:00:08.961374+00:00— report_created — created