Urgent.News

What's breaking now, across hundreds of outlets.

AI

Il vostro agente AI ha bisogno di un interruttore

Se avete un agente LLM in produzione, ecco una checklist per il giorno in cui dovrete spegnerlo: feature flag, coda di riserva, circuit breaker, lavoro a metà, prove. Ogni agente AI che lavora in produzione prima o poi andrà fermato. Il fornitore del modello ha un disservizio. Un aggiornamento del modello cambia il comportamento in un modo che l'insieme di casi di prova non aveva colto. Qualcuno…

Original Italian headline Read in English

When working with an AI agent in production, it's essential to have a checklist for when you need to shut it down. A feature flag, backup queue, circuit breaker, in-progress work, and tests are all crucial elements. At some point, every AI agent in production will need to be turned off. The model provider may experience an outage.

A model update alters the behavior in an unforeseen way. Someone finds a way to prompt inject. A routine begins calling tools overnight, and the bill grows over time. None of these issues are uncommon, and none are under your control. Almost everyone knows how to stop an agent: rollback, zero replicas, API key revocation. Few understand what to do with the work while the agent is offline.

If the honest answer is "stop everything," the project hasn't delivered a functional feature. Five things to design before testing: a switch outside the model and outside the release, a per-task and per-customer flag that the support team can activate in seconds without a deploy or developer intervention, no rollback, a backup path, and automated cut-offs.

When an agent is offline, the work should return to people: a queue with a responsible person, with the same data they would have seen from the agent. This path should be kept alive and documented, even if nobody uses it for months. Automatic cut-offs. Some stops don't wait for a person. A circuit breaker for model errors and timeouts, a spending cap for the time window, and thresholds for quality signals like sudden spikes in unavailability or rejected proposals.

When it triggers, the system automatically switches to the backup path and someone receives an alert. One rule for half-finished work: it's easy to stop new practices, but difficult to stop the ongoing ones: updated records, pending messages. These steps must be idempotent, and the switch must have a defined behavior: no new practices, existing ones continue or pause in a state from which someone can resume.

Periodic testing. A switch that has never been used doesn't work. Test it in testing and production at regular intervals during working hours, and log every activation: who, when, why, and when the agent was restarted. That log should be next to the decision ledger, as it explains the gaps. Why is it an architectural choice? The switch seems like a minor operational detail, but it changes the project.

It forces the agent to stay behind the clear boundary of a task, with structured inputs that even a person knows how to work with. It mandates idempotent steps and keeps the manual path alive. For a .NET software house, these are items to include in the project document and quote, not added after the first incident. The AI Act explicitly states in high-risk systems that human oversight includes the possibility of stopping the system with a stop button or a similar procedure that brings it to a safe state.

Even outside that boundary, the customer who signs the contract will ask the same question after the first incident. If tomorrow at 10 AM you need to shut down the agent, who will do the work at 10:05?

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

Your AI agent needs a kill switch

If you have an LLM agent in production, here is a checklist for the day you have to turn it off: feature flag, fallback queue, circuit breaker, job in progress, exercises.

  • Design five critical elements before deploying AI agents in production.
  • Implement task and client switches for immediate agent stoppage.
  • Operational staff can activate switches in seconds, bypassing deploys.

More from Tuesday, 1 December 2026 →