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

Read a finding

A finding is one reliability risk at one place in your code, with the evidence behind it. It carries an origin label (Pre-merge review, Runtime, or Pre-merge + Runtime), a severity, a confidence, and a fix or written guidance. tomosu explain and the finding page show the full reasoning.

  • tomosu explain
  • tomosu findings
  • Console: Findings
  • Updated

What does a finding contain?

PartWhat it tells you
RuleThe check that matched, with its id (13.n-plus-one) and category (13, Database performance).
Origin labelWhere the evidence comes from: Pre-merge review, Runtime, or Pre-merge + Runtime.
SeverityCritical, High or Low, from the rule’s weight and the origin. Evidence from production raises it.
ConfidenceHow sure the engine is that the problem is real, as a percentage. It starts from 70% for a rule match.
LocationRepository, commit, file, line and function.
Fix routeHow the fix was found (below).
FixA drop-in change, a change drafted by Tomosu Agent, or written guidance, with a note on any behaviour change.
EvidenceFor runtime findings: the signal, when and how strongly it fired, and how the code was linked. Always redacted.

What do the fix routes mean?

RouteMeaning
Rule Passed with Code FixA rule matched and its own template wrote the fix.
Rule updated by Tomosu AgentA rule matched but had no template, so Tomosu Agent drafted a fix that passed the same checks.
Rule Passed with GuidanceA rule matched; the fix is written guidance.
New rule discovered by Tomosu AgentNo rule matched. Tomosu Agent named the problem, and the engine checked its claim against the code.
Runtime signalProduction shows a problem that no code fix has been found for yet: suspects and guidance only.

How do I read a finding in the console?

Open Findings and choose one. The top of the page has the labels, the change and how the finding connects to production:

A Pre-merge + Runtime finding for N+1 query detection in the orders function: Critical, 96% confidence, the change drafted by Tomosu Agent that fetches all order lines in one query, and How this connects from the finding through the function and the GET /orders endpoint to the shop service and its database.
A finding production has confirmed: N+1 query detection in orders.

Below it, the Why cards sum up the reasoning; each opens with More:

The Why cards of a finding: what matched, seen in production with a 90% code link, why it matters, the fix and its checks, confidence with each step that raised it, track record, and Tomosu Agent's verdict.
Why: what matched, what production shows, and the confidence step by step.

How do I see the reasoning in the terminal?

tomosu explain prints the same reasoning trail. Add --engine URL to ask a running engine, which knows the production evidence; add --json for JSON.

$ tomosu explain f-59b39e4aaf1c --engine http://localhost:7600
f-59b39e4aaf1c  [Pre-merge + Runtime]

1. What matched
   N+1 query detection (13.n-plus-one), category 13, version 1
   app.py:97 in orders · demo/shop @ demo-1
   call to db.cursor.execute with no keyword arguments
   paired production signal R08.repeated-query-per-request fired on GET /orders → SELECT → sqlite

2. Runtime evidence
   Same query repeated many times per request: GET /orders → SELECT → sqlite · active
     demo / shop · version demo-1 · last 5m vs the 1h before
     first seen 2026-11-27 02:10 UTC, last seen 02:14 UTC
     calls 3192 · calls per request 21 · avg succeeded 0 ms · p50 1 ms · p99 1 ms · requests that repeated the call 100.0% · requests 152

3. How code and production were linked
   http-route, confidence 90%: called while serving GET /orders; handler for GET /orders; matched to this code by function and kind of call

4. Why it matters
   A database read runs once per loop iteration, so one request issues as many queries as there are rows.
   One query per row slows pages as data grows.

5. Why this fix
   Fetch all rows in one query before the loop (WHERE id = ANY(...), IN (...), select_related/prefetch_related or a join) and look them up in memory.
   Behaviour change: The draft rewrites existing lines, not only adds code; review the behavior change.

6. Track record
   No track record yet for this check (applied, kept and impact are collected once learning signals are on).

7. Ranking
   Pre-merge + Runtime · weight 0.75 · strongest code link 90%
   Priority scores (PRI) are not enabled.

8. Tomosu Agent (your own model)
   Verified: Tomosu Agent agrees.
   Step 1: validate: the model confirmed the finding
   Step 2: draft attempt 1: verified (the file still parses; function names, parameters and decorators are unchanged; the check no longer matches the changed code)
   Runs on: openai-compatible practice

The trail always has the same parts:

  1. What matched: the rule, and the code facts that satisfied it;
  2. Runtime evidence: which signal fired, when, how strongly, on which version;
  3. How code and production were linked, and how confidently;
  4. Why it matters: the production failure it prevents;
  5. Why this fix: what changes, the behaviour note, the checks it passed;
  6. Track record: how often this rule’s fixes were accepted and kept;
  7. Ranking: origin, weight and the strongest code link;
  8. Tomosu Agent, when model assist is on: its verdict and every step it took.

A finding without production evidence says so in parts 2 and 3. The trail is built from facts, not from a model; a model’s note, when there is one, is labeled.

How do I list findings in the terminal?

tomosu findings is the Findings page, with the same filters: --view, --repo, --origin, --severity.

$ tomosu findings --origin runtime --engine http://localhost:7600
Critical runtime            r-5316574653e6  HTTP 500: seen in production  demo/partners app.py:14
Critical runtime            r-3b759d214f10  HTTP 500: seen in production  demo/partners app.py:30
High     runtime            r-646909b1836a  Small share of requests extremely slow  demo/partners app.py:14
High     runtime            r-bd315e1156f0  Failed requests take longer than successful ones  demo/partners app.py:14
High     runtime            r-4e0cc2701913  Small share of requests extremely slow  demo/partners app.py:24
Critical runtime            f-3bc42ca3d16d  Production reports an error from this line  demo/shop app.py:140
High     runtime            r-62ba5f9d2f83  Too many requests slower than the target  demo/partners app.py:14
High     runtime            r-37d3937b0b0a  Requests rejected at the concurrency limit  demo/partners app.py:14
…
12 finding(s)

Ids starting r- belong to runtime signals; ids starting f- belong to code. An id changes when the code it points at changes.