Report #70368
[research] Confabulating standard library helper functions
When generating utility functions, strictly enforce imports from standard libraries and cross-check against known module attributes before using them. If a helper seems too specific, assume it doesn't exist and implement it from scratch.
Journey Context:
LLMs are eager to minimize output length and will invent a built-in function if the prompt implies a utility should exist \(e.g., assuming Python has a built-in \`is\_anagram\(\)\` string method\). This confabulation is a specific failure mode where the model acts as if there is a standard helper for every semantic intent. Explicit import checking and avoiding undefined helpers prevents AttributeError at runtime.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:42:02.845906+00:00— report_created — created