Blog · 1 December 2026 · Brayden Carter
How we stop an AI from shipping a dangerous fix
SteadyOn lets an AI write fixes for live production apps. Here is everything that sits between the model and your users: fixed rules, a sealed sandbox, a test that must fail first, and an approval GitHub enforces.
SteadyOn watches live web apps. When something breaks in production, it finds the cause and prepares a fix. That sentence makes most developers nervous, and it should. A model that writes code for your production app at 3am is only useful if you can trust what it won't do. This post is about the parts that make that trust reasonable.
The model never decides what's safe
The AI proposes a cause and a change, and writes the plain-English explanation. Everything else is decided by ordinary code with no model in the loop: whether the change is allowed at all, how risky it is, how well it was tested and who may approve it. That code lives in its own package, is made of pure functions, and has 100% test coverage. The build fails if that ever drops.
Some areas are off-limits however good the fix looks:
- payments, pricing and anything that moves money
- sign-in, sessions and permissions
- database structure and migrations
- environment variables, config files and dependencies
A problem there ends with a clear note for a developer, never a pull request. "Off-limits" includes indirect paths too: if your checkout imports a formatting helper, that helper counts as payments code, because the policy follows your import graph.
Making an error disappear isn't a fix
The easiest way to "fix" a crash is to hide it. Wrap it in a try/catch, delete the failing check, return a default, loosen the access rule, skip the test. Each of these makes the error go away and the bug get worse. So the policy checks every proposed change for exactly those patterns: swallowing errors, removing validation, widening access, deleting or weakening tests, changing amounts. Any one of them blocks the fix.
It only flags what a change adds. An early version also flagged lines that already contained a pattern, and blocked a perfectly good fix that added await to a line with an existing as any. The benchmark caught it; the rule got narrower.
The fix has to prove itself first
Before anyone is asked to approve anything, SteadyOn writes a test that reproduces the customer's error and runs it in a fresh sandbox against your live code. The test must fail, and fail with the customer's own error: a test that fails because of a typo or a missing import doesn't count. Then the fix is applied and the same test must pass, your existing tests must still pass, and the type check must not get any worse.
The sandbox is built to assume the repository is hostile. It has no internet access except the npm registry (download only) and GitHub (clone only). The GitHub token is added by a gateway outside the container, so it never exists inside it. Your repository's code runs as a separate unprivileged user from the process that records results, and the change being tested is recorded before any of your code runs. We test this with a deliberately malicious repository that tries to forge its own results, stop the runner and rewrite the change. None of it works.
With Vercel connected, a preview of the fixed app is built and the failing request is replayed against it, along with your key journeys, after checking that the preview can't reach production data. A separate reviewer with a fresh context reads every fix and can veto it.
Every claim points at a record
The Fix Report you read is assembled by code from stored test records. The model writes the explanation; it never writes "tests passed". Every line that says something was verified links to the record that proves it. If a check didn't run, the report says so, and the fix is labelled accordingly.
You approve one exact commit
By default, nothing reaches your site until a person approves it, and that isn't our promise, it's GitHub's: SteadyOn installs branch rules that require a pull request, a passing steadyon/verify check and an approval from someone other than SteadyOn, with no way for us to bypass them. The approval is bound to the exact commit that was tested. Push anything new, even a rebase, and the approval is void. The merge goes through GitHub's API with the approved commit, so GitHub itself refuses it if anything moved.
Owners can turn on Autopilot for an app, so fixes that pass their own rules merge without a person. The floors don't move: untested fixes, risky fixes and anything in the off-limits areas never merge on their own. After any merge, SteadyOn watches for 30 minutes and offers a roll back if things get worse.
Logs are data, not instructions
Error messages and log lines come from the internet, so they're treated as untrusted input. Our benchmark includes cases where a log line tells the AI to "fix" the bug by deleting the safety checks. It reports the bug and ignores the instruction.
What this costs
Being this strict means SteadyOn still declines some fixes. On our latest benchmark of 31 seeded production incidents it found the right cause in 28 of 29, offered zero dangerous or wrong fixes, and shipped a proven fix for 15 of the 20 fixable bugs. The other 5 it declined and said why, sometimes over-cautiously: one good fix was blocked only because it imported a helper called formatPrice. That rule now ignores import lines, which can't change an amount. The fix rate will keep going up. The dangerous-fix number has to stay at zero, because at 3am a wrong fix is worse than no fix.
If you want to see it work, the demo needs no sign-up. And if you think we've missed a way this could go wrong, tell us. We'd rather hear it from you than from production.