Product
Platform overview Tomosu engine (open source) Tomosu Cloud Reliability rules
Solutions
Prevent outages before merge Reliability Radar Fix safety For developers For SRE and platform teams
Developers
Quickstart Documentation Contribute a rule
Resources
Blog Case studies Learn FAQ News
Company
Pricing About Contact Join the Waitlist
Theme

Fix pull requests and fix safety

An accepted fix is followed until it is merged, deployed and kept. tomosu fix prs and the Dashboard show every fix pull request and its status. With the paid fix safety plan, a fix that makes production worse reopens its finding and can be reverted with one pull request.

  • fix prs
  • fix timeline
  • fix revert
  • Updated

What happens when I accept a fix as a pull request?

Signed in with your code host, Accept opens a pull request with the fix, as you. On GitHub it:

  1. reads the file as it is now on the default branch and checks that the problem is still there and the fix still applies; if not, it says so and opens nothing;
  2. commits the fix to a branch tomosu/fix-<finding>, as you, with the fix marked in the code;
  3. opens the pull request with the risk, the change, the checks it passed and a link to the reasoning (no runtime evidence on a public repository);
  4. turns on auto-merge, so it merges once your required checks and reviews pass. It never pushes to the default branch and never bypasses branch protection.

On GitLab it is a merge request set to merge when the pipeline succeeds; on Bitbucket, a pull request left for review.

$ tomosu fix accept --pr f-4d16d40f4786 --engine http://localhost:7600
Accepted. Opened pull request #1 into main; later fixes for that branch go into it too.
http://127.0.0.1:7701/demo/shop/pull/1

The examples on this page come from the demo, whose stand-in GitHub runs on port 7701.

How do I see my fix pull requests?

The engine checks open fix pull requests every 5 minutes, so merges and closes show up without anyone signed in.

$ tomosu fix prs
1 opened · 0 merged · 1 open · 0 closed
open    demo/shop#1 (auto-merge)  01.external-call-timeouts  octo  http://127.0.0.1:7701/demo/shop/pull/1

In the console, the Dashboard’s Fixes in flight and Fix pull requests sections show the same, with time to merge and the fix source:

Fixes in flight on the Dashboard: counts of pull requests open, merged but not deployed, deployed, kept 14 days and reverted, the latest fix with its stage, and a locked card for production checks after every deploy.
Dashboard → Fixes in flight.

How is a fix followed to production?

After the pull request merges, the engine follows the fix. The marker in the code (# tomosu: <rule-id>) is recorded in every code index CI builds, so the engine sees the fix in the code at a later commit, deployed when a running service reports a commit that contains it, and kept once it has stayed 14 days.

$ tomosu fix timeline
f-4d16d40f4786  01.external-call-timeouts  demo/shop#1
  ✓ pull request opened                    2026-11-26 20:26
  🔒 checks followed and repaired           unlock to get this feature
    merged                                 
    in the code                            
    deployed                               
  🔒 production checked after the deploy    unlock to get this feature
    kept 14 days                           
  waiting for the repository's checks and reviews, then it merges itself
The fix safety timeline on a finding: pull request opened, checks followed and repaired (locked), merged, in the code, deployed, production checked after the deploy (locked), kept 14 days.
The same timeline on the finding page.
StagePlan
Pull request opened, merged, in the code, deployed, kept 14 daysFree
Checks followed and repairedPaid fix safety
Production checked after the deployPaid fix safety

With a Tomosu Cloud plan that includes fix safety, the engine sends each accepted fix’s stages and its service’s requests, error rate and average time per minute, under codes and never with code or names, and acts on Tomosu Cloud’s verdict:

  • a fix that made production worse reopens its finding;
  • an alert goes to your own Slack webhook or mail server (notify.slack_webhook, notify.email_to, notify.smtp_url);
  • the finding offers Open a revert pull request (tomosu fix revert <finding-id>), which takes the fix’s own change out of the code as it is now;
  • with fix_safety.auto_revert on, the engine opens that revert itself, with auto-merge. Turning it on is your Accept in advance.

cloud.channels.outcomes: false sends nothing, and the paid steps stay locked.

What is the CI/CD check before a fix pull request?

With a Pro plan, Settings → CI/CD check (ci_gate.enabled) adds a check in front of every fix pull request: Accept, Accept all and Auto Fix’s Apply plan. Before the pull request opens, the engine makes one request through Tomosu Cloud’s model and asks whether the changes are safe: security, behaviour, scope and correctness, plus your own instructions in My own CI/CD mode. A change it holds back gets a corrected version; answer with tomosu fix gate use <finding-id> corrected|original or tomosu fix gate apply <gate-id>. When the check cannot run, no pull request opens and the console says why. It is off by default.