Report #25290
[research] Generating code using deprecated or removed functions that fail at runtime
Always inject the target version of the library into the system prompt, and enforce RAG retrieval from the exact version's documentation rather than relying on parametric memory.
Journey Context:
The temporal cutoff of LLM training data means their parametric memory is a snapshot in time. A function that was standard practice 2 years ago might now throw a fatal error. Prompting the model with the version helps, but parametric memory still leaks. RAG over version-specific docs is the only robust mitigation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T20:51:27.047786+00:00— report_created — created