Skip to Content
v1.41.2 · shipped More settings on the script tag · Script tag typos no longer slip through Read the changelog →
Admin consoleSafety stops

Automatic safety stops

Route: /health?view=safety (Mushi Mushi health → Safety stops).

Mushi pauses its own automatic work for an app when something goes wrong, and tells you why. Nothing resumes until an owner or admin resets the stop with a reason. Every trip, reset and switch change is written to the audit log. If the audit log cannot be written, the reset or change does not happen: try again in a minute.

When Mushi stops on its own

Each app has its own thresholds. The defaults come from real incidents on the hosted service: every one of these would have tripped during those incidents, and none of them trips on a normal day.

StopTrips whenDefaultWhat it pauses
Fixes that break thingsThis many merged fixes failed CI after the merge or came back as the same bug, within the window5 in 24 hoursNew fixes, cloud and local fix runs, automatic merges
AI spend spikeAI spend in the window is this many times the usual (the 7 days before, scaled to the window), and past the floor3 times, and over $5Same as above
AI spend ceilingAI spend in the window reaches the ceiling, whatever the usual is$25 in 24 hoursSame as above
Cloud fixes failingThe last runs of cloud fixes all failed8 in a rowCloud fixes only
A local lane failingThe last runs of one local lane all failed (skipped and empty runs do not count)8 in a rowThat lane only

The window rolls, and it starts again after a reset, so the same events never trip a stop twice. Runs older than 7 days never count toward a failure streak. Nothing trips when the feature is first deployed unless an app is in trouble right now.

Owners and admins can change each threshold in the console, inside fixed bounds: window 6 to 168 hours, fixes 2 to 100, spend multiple 1.5 to 50, floor $1 to $10,000, ceiling $1 to $100,000, failures in a row 3 to 100.

Where the stop is checked

Mushi checks before it starts or merges any work, on the server:

  • queueing a fix (from the console, Slack, Linear, the API or MCP, and automatic dispatch);
  • the cloud fix worker, before it runs a queued fix;
  • a local lane asking for its next fix;
  • every merge Mushi makes, including release trains.

A database rule also refuses a new fix job or local lane claim while a stop is open, so a path that skips the check is still held.

A person merging a pull request from the console is not held by a stop, only by the merge switch below. An API key or MCP client is held.

If Mushi cannot read the stops (for example the database is slow to answer), it does not start the work and says so. It tries again on the next run.

Kill switches

Owners and admins can pause four things for one app, with a reason:

SwitchPauses
New fixesQueueing any fix, by Mushi, a person or a key
Coding agentsCloud fix runs and local lanes. Fix it, Fix all and a cloud Fix selected together start nothing and show the reason
MergesEvery merge Mushi makes, including one you ask for
AI callsEvery AI call for the app; triage falls back to simple rules

The Mushi operator has the same four switches for every app on the platform. A platform switch wins over an app’s own.

Resetting a stop

Open Health → Safety stops, read why it stopped, fix the cause, then write a short reason (at least 5 characters) and choose Reset and resume. Only an owner or admin signed in to the console can reset. An API key cannot.

Alerts

When a stop trips, Mushi sends one alert to the app’s alert email (or its owner), the app’s Slack channel and the operator channel. It shows on Home under Needs you until it is reset.

AI budget. If an app sets a monthly AI budget, Mushi stops AI calls when the month’s spend reaches it, and warns at 50%, 80% and 100%. If Mushi cannot read the budget, it does not make the AI call (it no longer lets the call through).

Default spend alert. An app with no budget gets one alert a month when its AI spend passes $50. It is only an alert: nothing is paused. Change the amount, or clear it to turn it off, under When Mushi stops on its own.

Behaviour trend

Every day Mushi records, per app: how many fixes the AI reviewer approved or held, how many merged fixes broke something, AI cost per merged fix, and the longest run of failures. The page compares the last 7 days with the 28 before them and says in plain words what got worse. A sustained change sends one alert per measure, at most once a week:

  • the reviewer approved at least 20 points fewer fixes (with at least 10 reviews);
  • the reviewer held at least 20 points more fixes;
  • a quarter or more of merged fixes broke something, 15 points above usual;
  • AI cost per merged fix at least doubled and is over $0.50;
  • a run of failures reached the app’s failure threshold.

See also

Last updated on