glossary

Experiments

Kill switch

A kill switch is a control that returns every session to the last known agent version immediately, so a bad prompt, model or tool leaves live traffic without waiting for a deploy.

Abracadabra Team Glossary

How it works

Something is wrong in production and it is wrong now. A payments agent is suggesting the full order total as a refund. The kill switch puts every session, including ones already in flight, onto the last known version. Last known means a version labelled for this purpose before the incident, not whatever the previous deploy happened to contain. The switch does not wait for a build. If it waits for a deploy, it is a rollback procedure, and the bad prompt keeps refunding people during the wait.

A feature flag can turn a change off for a share of new sessions and leave a sticky value on sessions already running. That stickiness is right during a test, because a person should not change version mid-task. It is wrong during an incident. The person halfway through a refund is the person who most needs the safe prompt. The kill switch overrides stickiness and sets the served version to the last known one for everyone, immediately.

A worked example

Refund sessions forced back to the last prompt

Example, not a measured result.
Payments support agent. It can propose a refund amount.
Last known version, labelled before launch: refund-prompt-v4.
A new prompt, v5, starts suggesting the full order total.
The kill switch is thrown. No deploy.
Every session, including 40 already mid-refund on v5, is served v4 on the next turn.
New sessions enter on v4 only.
In this example the bad window is 15 minutes.
40 in-flight sessions would have kept v5 under ordinary flag stickiness.
The switch is not “lower the percentage”.
The percentage is now 0, and stickiness does not win.

Illustrative example, not a production trace and not a measured result.

What goes wrong

  • Nothing was labelled last known. The switch returns people to the previous deploy, which still contains the bad refund line, or to an older prompt that fails a different way. Immediate is not the same as safe.
  • The control is a deploy pipeline. The build takes 25 minutes. During those minutes v5 keeps suggesting the full total, so the team has a rollback and not a kill switch.
  • The switch changes the default for new sessions and leaves sticky sessions on v5. The 40 people already in a refund stay on the bad prompt, which is the opposite of returning everyone.

How to measure it

Time the gap between the decision and the last session still served the bad version. Count in-flight sessions moved, and count sessions that remained on the bad version after the switch. The second count is the miss.

Confirm the version they landed on is the labelled last known body, by prompt id, not merely an older deploy. Then compare task success on the restored version with the short bad window, and read the refunds proposed in that window.

Further reading

How Abracadabra helps

After the switch, compare task success for that task and cohort with the period before the bad version, and open the conversations that were still on it when the switch was thrown.

Experimentation, canary releases and guarded rollouts are in early access. Today, compare task success before and after a change on the same task and cohort, and open the conversations behind a drop.

Request access to read this on your own agent.

See it in your own agent's conversations.

Each task, the step where it stops, and the conversations behind every count. Free during early access.