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

The rules catalogue

Every finding comes from a rule: a deterministic check written in YAML and CEL. The rules catalogue lists each one with its category, status and track record. Rules are the same before merge and at runtime, and a model never decides whether a rule fires.

  • tomosu rules stats
  • rules catalog
  • Console: Community Rules
  • Updated

What is a rule?

A rule (also called a check) is a deterministic test written in YAML with a CEL condition, or a Go analyzer for deeper analyses. Pre-merge rules look at code facts; runtime rules look at production numbers. Both share category ids (01 Stability, 13 Database performance, R08 Database runtime health), which is how a pre-merge finding and a runtime signal about the same failure are joined.

Each rule ships with examples of code it must flag and code it must leave alone, and passes them in CI before release. Every active community rule is listed by name in Community rules.

What do the statuses mean?

StatusRuns?Shown?
candidateNo: described, no detection logic yetNo
shadowYes, and countedNo. New rules start here.
active, trustedYesYes
retired, deferredNoNo

How do I browse the rules?

Community Rules lists every rule with filters for origin, status, kind, language and category, and a report card: how many rules there are, how many are active, how many findings they produced, and how many were accepted or rejected.

The Community Rules page: filters, the report card with counts of rules, active rules, rules with detection, catalogued rules, findings shown, accepted and rejected, and a table of the rules with the most findings.
Community Rules and its report card.

In the terminal, list them from a running engine:

$ tomosu rules catalog list --engine http://localhost:7600
candidate community  01.circuit-breaker  Circuit breaker present
candidate community  01.db-transaction-wrappers  Database transaction wrappers
active    community  01.external-call-timeouts  External call timeouts
active    community  01.external-call-timeouts.go  External call timeouts (Go)
active    community  01.external-call-timeouts.js  External call timeouts (JavaScript)
active    community  01.external-call-timeouts.rs  External call timeouts (Rust)
candidate community  01.graceful-shutdown  Graceful shutdown handler
active    community  01.graceful-shutdown.js  Graceful shutdown handler (JavaScript)
candidate community  01.keepalive-shorter-than-load-balancer  Server keep-alive shorter than the load balancer's idle timeout
active    community  01.model-call-timeouts  Model call without an explicit timeout
candidate community  01.panic-on-bad-input  Request path panics on unexpected input
active    community  01.panic-on-bad-input.rs  Request path panics on unexpected input
active    community  01.retry-backoff  Retry policy with backoff
active    community  01.retry-backoff.js  Retry policy with backoff (JavaScript)
candidate community  01.server-timeouts-missing  Inbound server has no read, header or idle timeouts
active    community  01.server-timeouts-missing.go  Inbound server has no read, header or idle timeouts
…
819 rule(s)

Or summarize a rules folder, for example in a checkout of the rules:

$ tomosu rules stats rules/v1
checks:        1062
pre-merge:     646 (473 paired with runtime)
runtime:       416
implemented:   355
scored:        355
by status:     map[active:355 candidate:66 deferred:398 retired:243]
by tier:       map[community:1062]

Can I change one rule on my engine?

Yes. On a rule’s page, or with tomosu rules catalog, you can make your own version of a rule, test it on its examples and your code, save it, and roll back to an earlier version:

tomosu rules catalog customize 01.external-call-timeouts --engine http://localhost:7600
tomosu rules catalog test 01.external-call-timeouts --file check.yaml --engine http://localhost:7600
tomosu rules catalog save 01.external-call-timeouts --file check.yaml --engine http://localhost:7600
tomosu rules catalog rollback 01.external-call-timeouts --version 1 --engine http://localhost:7600

Your changes stay on your engine. To share an improvement with everyone, contribute it.

What is a rule’s track record?

Every finding a rule raises, and what people did with it, counts towards that rule: shown, accepted, rejected (with the reason), fixes merged, kept or reverted. The record shows on each finding’s Track record card, on the rule’s page and in tomosu explain. A rule that people reject too often is fixed at its cause or retired.