Field notes

Build the off switch first

In this field note 4 sections

Every automation project has a launch plan. Very few have a stop plan.

The launch plan covers what happens when the system is on: what it reads, what it writes, who it helps. The stop plan covers the afternoon it needs to be off. A vendor changes an API. A model update starts answering a little differently. A rule that worked for months meets an input nobody expected, and the agent sends the wrong thing to the wrong people.

That afternoon will come. The only question is whether you planned for it.

Four questions before launch

We ask these before any agent or automation touches real work.

  1. How do you pause it? It should be one action that anyone on the list can take in under a minute. A setting, a flag, a button. Not “open a ticket with the developer” and not a code deploy.
  2. Who is allowed to pause it? Name the people. Make sure they do not need to ask permission first. The person who notices the problem at 4pm on a Friday should be able to stop it at 4pm on a Friday.
  3. What happens to the work while it is paused? The manual process has to still exist, written down, with someone who knows how to run it. If the automation replaced the only person who knew the job, pausing it means the job stops.
  4. How do you find what it already did? A readable log of every action it took, with enough detail to undo or correct each one. Cleanup should be a list you work through, not an investigation.

If you cannot answer one of these, you are not ready to launch. That is not a failure. It is the cheapest moment to find out.

Pull the switch once on purpose

Answering the questions on paper is not enough. Before launch, pause the system for real.

Turn it off in the middle of a normal day. Watch what happens. Does the work pile up somewhere visible, or does it silently disappear? Does the manual fallback actually run? When you turn it back on, does it pick up where it left off, or does it try to redo everything it missed at once?

You will almost always find something. A queue nobody was watching. A fallback document that was out of date. A restart that double-sends. It is much better to find these on a calm Tuesday than during an incident.

If pausing the system feels scary in a test, it will be worse on a bad day. That feeling is the signal to fix it before launch.

Make stopping boring

The goal is for pausing to be a non-event. Someone sees something odd, they pause it, the manual process takes over, and the team looks at the log the next morning. No emergency calls, no guessing what went out.

A few design choices make that much easier:

  1. Keep a person on the irreversible steps. If a human approves anything that cannot be undone (payments, customer emails, record changes), then stopping the system mid-run leaves drafts, not damage.
  2. Write to a log first, act second. If every action is recorded before it happens, you always know where it stopped.
  3. Make restart explicit. After a pause, a person decides when it resumes and what it does with the backlog.

How we use this at Viking Labs

We scope agent builds and productized automations this way, and custom software when a template will not fit. The off switch, the people who can use it, the manual fallback, and the log are part of the build, not an afterthought. We test the pause before launch.

ResearcherFlow, the product we run ourselves, follows the same pattern. Flow proposes weekly updates and next experiments, and nothing lands in the workspace until a researcher says yes. Stopping it doesn’t leave a half-finished mess, because those proposals wait for a person.

A system you can stop calmly is a system you can trust to run.

If you have one workflow you would like to automate, with the off switch built in, map the first build: tell us the workflow

Jon Marrs · About Viking Labs

2 responses to “Build the off switch first”

  1. […] week we wrote about building the off switch first: how you pause an agent, who is allowed to, and how you see what it already did. This release is […]

  2. […] weeks ago we wrote about building the off switch first. The agreement is the other half. The off switch is for when something goes wrong. The agreement is […]

Leave a Reply

Map Your First Build