Urgent.News

What's breaking now, across hundreds of outlets.

AI

Vaš AI agent treba kill switch

Ako imate LLM agenta u produkciji, evo checkliste za dan kad ga morate ugasiti: feature flag, fallback queue, circuit breaker, posao u tijeku, vježbe. Svaki AI agent koji radi u produkciji u nekom će trenutku trebati zaustaviti. Provider modela ima outage. Update modela promijeni ponašanje na način koji eval set nije uhvatio. Netko pronađe put za prompt injection. Loop noću počne pozivati alate i…

Original Portuguese headline Read in English

Every AI agent that operates in production will eventually need to be stopped. The model provider may experience an outage, a model update could change the agent's behavior in ways untested against the evaluation set, or someone might find a way to prompt inject the agent. Nighttime loops might start calling tools, causing the bill to skyrocket hour after hour.

None of this is rare, and none of this is under your control. Most teams know how to stop an agent: rollback, scale to zero, or a kill API key. Few know the crucial follow-up question: what happens to the work while the agent is stopped?

Design five things before you go live. Task switches and, where relevant, client switches. Operational staff can flip them in a few seconds, without a deploy or a production developer. Rollback is not a switch: it's slow and pulls everything else with it. Fallback. When an agent is stopped, the work returns to humans: a queue with ownership information and the same data the agent would have seen.

Fallback is often just a procedure that already existed before the agent. Keep it alive and documented, even if no one uses it for months. Have an automated circuit breaker that doesn't wait for a human. Set time limits on consumption, and quality signal thresholds collected over time, such as a sudden spike in stance probabilities or rejected recommendations.

The system should automatically switch to fallback and notify someone. Handling in progress jobs is easy. The hard part is what comes next: updating logs, notifying users whose messages haven't been sent yet. Steps must be idempotent, and the switch must define behavior: no new tasks, completed ones finish or park in a state from which they can continue.

Regular testing. A switch that's never used doesn't work. Test it in staging with every release and schedule it for production during business hours. Every activation must be logged: who, when, why, and when the agent is restarted. This log is tied to a decision ledger, explaining the gaps in the system. The architecture of a kill switch looks like an operational detail, but it changes design.

It forces agents to sit behind clear boundaries with structured inputs they can handle, and a human. It keeps manual paths alive. Systems designed this way are easier to test, easier to hand off, and degrade gracefully rather than collapsing. The EU AI Act explicitly mentions high-risk systems: human oversight must include the ability to stop the system with a click or a similar procedure that puts it in a safe state.

For companies serving third-party clients, this is the first question a partner will ask after an incident. The checklist for an LLM agent kill switch.

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 switch

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

More from Tuesday, 1 December 2026 →