AI Agents Can Keep Trying Long After They Should Stop. Where Should IT Draw the Line?
IT leader Derrick Diaz described how to use logs and alerts to spot problems and hard limits to stop repeated requests.

Imagine a database agent that merges every obvious duplicate in a test, then gets stuck on a pair of records in production. Once a workflow spans several systems, CIOs need to decide which problems warrant investigation and which trigger an immediate stop.
Derrick Diaz is an IT leader who built a global employee support function from the ground up as Information Technology Global Helpdesk Manager at Pinterest. He later served as Head of End User Support at Citadel, where he led technology support for trading floors and offices.
“There isn’t a person there with binoculars looking at it. You have logging and alerting in everything it has access to, based on the criteria you set,” Diaz said. In a database cleanup, that means setting a stopping rule for unresolved matches.
Test ambiguous cases: A useful test includes records with too little evidence to establish a match. That’s where the team finds out whether the agent knows when to stop searching. “If there’s Joe Smith and Joe Smith, and there’s no email or anything else to verify it, it’s going to start searching everywhere. It’s going to look in every place it has access to, trying to figure out which Joe Smith is the real Joe Smith and whether the records should be combined.” Diaz recommended checking once and stopping if the records still can’t be matched.
Trace each action: Once an agent moves between systems, the operator needs a record of what it did in each one. “I’m a belt-and-suspenders kind of person,” Diaz said. “You have logging that looks at access in every system the AI might have access to. Let’s say it’s your identity management system or your code repository.”
Logs show where the agent went and how often it went there. That history gives operators a baseline for spotting changes in behavior. To catch a bad forecast or a misplaced priority, someone still has to look at the work itself.
Review the work: For an office buildout, Diaz described using AI to sort emails from contractors and surface the ones he needed to read first. He estimated that AI cut the email work from two hours to ten minutes. He still decided what to do next. “I have to do the initiation and also the verification,” he said. “You need someone who can notice the ‘oops, my bad.’” He recalled questioning an implausible figure in a financial planning spreadsheet: “How did you get the answer to the cell?” The AI had used an industry average where the forecast called for company data. A plausible-looking number is misleading when it’s based on the wrong inputs.
The review takes time and experience. Diaz warned against cutting staff before teams know whose judgment they still need. In software work, for instance, a reviewer needs to know which data belongs in the workflow and how the agent is meant to use it. “You need a person there throughout the process to make sure the code is following the parameters you want it to follow, that it’s accessing the data the way you want it to, and that the logging is done correctly,” Diaz said. Those checks give a CIO a way to size the work that stays with the team. If an agent starts pulling from the wrong source, someone has to recognize the change, decide whether it’s acceptable, and correct it before the output reaches the people who’ll act on it.
Check production limits: In a test scenario Diaz described, a workflow appears ready for production. “You look at it, and it runs correctly. But you didn’t realize that in the sandbox, it had a guardrail on the number of API calls it could make.” The production workflow in this scenario has no cap, so each retry adds to the bill. Before rollout, the team needs to check where the cap is enforced and rerun the failure case with the limits that apply in production.
Set both thresholds: A once-a-day access schedule gives operators a baseline. “It should only be touching these systems once a day. If it starts touching them three times per day, you get an alert and you look into why.” The access log gives the operator a place to check whether the extra calls came from a scheduled cleanup or an unexpected repeat. If the agent keeps retrying a failed task, a hard cap stops it from making another paid request, even if nobody has seen the alert. “I would’ve set it up so that after a certain number of failures or attempts, it stops. Otherwise, it keeps trying over and over again, and you get charged each time it makes that query,” Diaz said.
The National Institute of Standards and Technology calls for monitoring AI behavior in production and assigning responsibility for intervening when a system departs from its intended use. Before launch, the team needs to verify that the alert reaches someone who can investigate and that the workflow stops at its limit. “You might have one that’s an alerting threshold and another that’s a shutdown threshold. You have that across every system it has access to.”
The views and opinions expressed are those of Derrick Diaz and do not represent the official policy or position of any organization.
If this caught your attention, that’s not accidental.
The best editorial systems don’t happen by accident. Outlever builds them.









