Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which wording defines a reviewable failure contract?" on CodeWiki (https://codewiki.com/practice/mcq/ai-era/code-prompt-vocabulary/choose-failure-contract/).
Context (verbatim from the page):
"""
Which wording defines a reviewable failure contract?
For insufficient seats, return { ok: false, error: INSUFFICIENT_SEATS }, leave inventory unchanged, and send no confirmation
Handle every reservation error gracefully
Catch exceptions and write useful logs
Never let anything bad happen during reservation
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Coding in the AI era. Where you are unsure, say so.