Report #96387
[research] Generating plausible but non-existent library functions, classes, or deprecated API signatures
Never rely on parametric memory for specific API signatures. Always inject up-to-date documentation via RAG or tool-use, and constrain generation \(e.g., grammar decoding or strict prompt boundaries\) to only use the provided API schema.
Journey Context:
Code LLMs are trained on massive GitHub corpora, leading them to confidently invent methods that 'should' exist based on class naming conventions \(e.g., utils.parse\_json\_strict\(\)\). This is a specific manifestation of parametric memory override. The fix requires a hard rule: APIs are external state and must be treated as untrusted unless provided in the prompt context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:22:09.199006+00:00— report_created — created