Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "An indexed excerpt and the current file disagree just before an edit. What should the agent do?" on CodeWiki (https://codewiki.com/practice/mcq/ai-era/agent-context-management/choose-authoritative-refresh/).
Context (verbatim from the page):
"""
An indexed excerpt and the current file disagree just before an edit. What should the agent do?
Treat the index as a locator, reread the file and applicable contract, then recompute the edit
Use the indexed excerpt because retrieval ranked it highly
Combine both versions line by line so neither is lost
Ask the model which version looks more idiomatic
"""
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.