Report #91619
[counterintuitive] Why does AI suggest packages or API methods that don't exist?
Always validate AI-suggested dependencies and API endpoints against official package registries \(npm, PyPI\) and current documentation before writing installation commands.
Journey Context:
Humans assume that if an AI confidently writes 'import analytics from next-analytics', the package exists. AI predicts the most likely token sequence based on naming conventions \(e.g., 'next-' prefix ecosystem\), leading to hallucinated packages or mixing v1/v2 API methods. This creates a supply chain risk \(if attackers create the suggested package later\) or silent runtime failures. AI appears capable but fails on distribution shift of library versions and existence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:22:30.957106+00:00— report_created — created