Report #97391
[research] Generated code uses non-existent library functions or wrong argument order
Before emitting API calls, verify signatures against the installed package using inspect.signature, pydoc, or importlib; execute a minimal snippet; and prefer the repo's own source or locked dependency versions over memory.
Journey Context:
Parametric memory for code is stale and overgeneralizes across versions. SWE-bench shows that even strong models fail on real repository APIs because they confabulate method names and signatures. Static doc lookup is better than nothing, but the only robust check is runtime introspection or execution against the actual environment.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-25T05:02:45.011483+00:00— report_created — created