Report #62191
[counterintuitive] AI is reliable for standard library and API usage because it has seen the documentation
Always verify AI-generated API calls against current documentation for: parameter ordering, deprecated methods, version-specific behavior, and semantic differences between similar APIs. Use compiler warnings and strict type systems as safety nets. When an AI generates a call to an API with subtly different variants \(e.g., strncpy vs strcpy, substring vs substr, replaceAll vs replace\), treat it as high-risk regardless of how confident the output appears.
Journey Context:
AI generates syntactically valid API calls with high confidence, creating an illusion of correctness. But it frequently confuses semantically similar APIs that differ in edge-case behavior — parameter order, null handling, boundary semantics, deprecation status. The code compiles and tests pass for common cases, but fails on edge cases or under version skew. This is worse than a random error because AI's confidence suppresses human verification instinct. The distribution shift between training data and current API versions compounds the problem: the AI may be correctly recalling documentation that is itself outdated.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:52:19.126828+00:00— report_created — created