What does a finding contain?
| Part | What it tells you |
|---|---|
| Rule | The check that matched, with its id (13.n-plus-one) and category (13, Database performance). |
| Origin label | Where the evidence comes from: Pre-merge review, Runtime, or Pre-merge + Runtime. |
| Severity | Critical, High or Low, from the rule’s weight and the origin. Evidence from production raises it. |
| Confidence | How sure the engine is that the problem is real, as a percentage. It starts from 70% for a rule match. |
| Location | Repository, commit, file, line and function. |
| Fix route | How the fix was found (below). |
| Fix | A drop-in change, a change drafted by Tomosu Agent, or written guidance, with a note on any behaviour change. |
| Evidence | For runtime findings: the signal, when and how strongly it fired, and how the code was linked. Always redacted. |
What do the fix routes mean?
| Route | Meaning |
|---|---|
| Rule Passed with Code Fix | A rule matched and its own template wrote the fix. |
| Rule updated by Tomosu Agent | A rule matched but had no template, so Tomosu Agent drafted a fix that passed the same checks. |
| Rule Passed with Guidance | A rule matched; the fix is written guidance. |
| New rule discovered by Tomosu Agent | No rule matched. Tomosu Agent named the problem, and the engine checked its claim against the code. |
| Runtime signal | Production 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:

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

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:
- What matched: the rule, and the code facts that satisfied it;
- Runtime evidence: which signal fired, when, how strongly, on which version;
- How code and production were linked, and how confidently;
- Why it matters: the production failure it prevents;
- Why this fix: what changes, the behaviour note, the checks it passed;
- Track record: how often this rule’s fixes were accepted and kept;
- Ranking: origin, weight and the strongest code link;
- 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.