An invoice-extraction service returns JSON that is occasionally cut off mid-object. The API call returns HTTP 200, and the response has a stop_reason of max_tokens. The team has wrapped the parse in a retry with exponential backoff.
An agent in production began giving confident but wrong summaries after a deployment. The prompt did not change. A trace shows several turns where an assistant message requesting two tools is followed by a user turn with one result block.
Where does the fault lie, and what should be done first?
A scheduled Claude Code job has started taking far longer than usual. Exit codes are zero, the output is correct, and nothing appears in the application error log.
What is the most useful next step?
You can change answers until you check. Nothing is saved or sent anywhere.