Q105 [Scenario]: A junior developer uses Copilot to implement password hashing and accepts a suggestion calling bcrypt.hash_password_secure(). During testing, the build fails with an AttributeError. What happened?
Copilot generated an AI Hallucination—synthesizing a plausible-sounding method name that does not exist in the official bcrypt library. This highlights the necessity of human review, compiler validation, and static analysis.
Key Takeaways
Generative AI predicts likely text strings, not validated library indexes.
Always verify generated method signatures against official framework docs.
Knowledge Check
What phenomenon occurred when Copilot generated bcrypt.hash_password_secure()?