Limit an AI Agent's Irreversible Actions Per Run
To limit irreversible actions an AI agent takes in a single run, you need a control that counts destructive calls separately from everything else the agent does. This is a different problem from stopping a runaway loop, and it is the one that keeps operators awake. A looping agent that calls get_status(id=42) forty times is embarrassing and cheap. An agent that reasons its way into ten issue_refund calls, or fires the same dunning email to your entire customer list, or deletes ten accounts because a webhook payload looked plausible — that is not embarrassing, it is a Monday-morning incident review. The failure isn't volume. It's a small number of destructive calls, each one individually reasonable, that together are unrecoverable.