Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A comment says order cancellation is idempotent. What is the best next check?" on CodeWiki (https://codewiki.com/practice/mcq/ai-era/unfamiliar-code-reading/choose-invariant-evidence/).
Context (verbatim from the page):
"""
A comment says order cancellation is idempotent. What is the best next check?
Call cancellation twice on the same paid order and assert the state plus refund and event counts
Search for the word idempotent in more comments
Confirm the cancellation function returns the same object type
Ask the model to restate why idempotency is desirable
"""
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.