- Open Source
- Community Powered
- Evidence-Backed
Reliability Intelligence
Every rule is a production failure someone already lived through, turned into a check and a fix.
Tomosu’s rules matrix holds 218 pre-merge checks for Python, JavaScript, TypeScript, Go, Rust and SQL, and 137 runtime signals from OpenTelemetry. Each rule names the failure it prevents, ships with tests and a safe fix, and gets sharper as engines report which fixes held.
- The failure
- A POST is retried without an idempotency key, so a lost reply means the action happens twice.
- The fix
- One idempotency key before the loop, sent on every attempt:
headers={"Idempotency-Key": key}. - At runtime
- Paired with
R11.retry-amplification. - Tests
- Positive and negative examples, run on every change.
More than a lint rule. A lesson from production.
Every Tomosu rule carries six things, so a finding is something you can trust and act on in seconds.
- 1The failure it preventsNamed in plain words: a double charge, a hung request, a database melting under one query per row.
- 2How it is detectedDeterministic and auditable. The same code always gets the same answer, with the facts that matched.
- 3A safe fixAdditive and drop-in: no logic change, signatures kept, imports included. You accept it as a pull request.
- 4Its production signalThe runtime signal that shows the same failure happening live, so code and production confirm each other.
- 5Its testsPositive and negative examples, written from scratch or public code, run on every change to the rule.
- 6Its track recordWhich findings teams accepted, which fixes they kept, and what changed in production afterwards.
The same rule before merge and in production.
A pre-merge check and its runtime signal share one rule ID. When the check matches your code and the signal fires in production on that same function, the finding is labelled Pre-merge + Runtime and ranked first: the risk is not theoretical, it is already happening.
- Before merge. The check finds the pattern in your code or pull request.
- In production. The paired signal shows the failure on live traffic.
- Ranked first. Both together, with the fix, at the top of your list.
What the checks catch in your code
Every category is named for the failure it prevents, in Python, JavaScript, TypeScript, Go, Rust and SQL.
See every check by nameSlow dependencies
One slow dependency cascading into an outage
Useless logs
Logs that exist but say nothing useful
Leaked secrets
Credentials in the repo, personal data in logs
Support readiness
“Something went wrong” is all anyone has
Traffic overload
One client taking down the API
Database load
One query per row in production
Concurrency
Shared state, locks, async and cancellation bugs
Error handling
An error detected, then handled wrongly
Retries and duplicates
Operations that half-succeed or run twice
Leaked resources
Leaked connections, bodies, cursors and files
Caching
A cache that fails unsafely
Silent failures
Failures that leave no log or metric
AI agents
Retries that cannot succeed, runs with no budget
What the signals watch in production
Computed from standard OpenTelemetry, for any language.
See every signal by nameLatency
p99 far slower, bimodal latency, failures slower than success
Traffic
Surges, drops, clients giving up, load shedding
Saturation
CPU, memory, threads, event loop, file handles, ports, OOM kills
Databases and caches
Refused connections, slow queries, repeated queries, mass expiry
Dependencies
Timeouts, resets, DNS, throttling, retry amplification
Errors and logs
Crashes, retries exhausted, error share doubling, secrets in logs
Error codes
HTTP 429 and 5xx, OpenAI, Anthropic and Gemini rate limits
Proven before release, measured after.
Rules earn their place. Noisy ones are tightened or retired; ones whose fixes hold earn trust.
- 1ContributedFrom the community, or learned from patterns seen across many teams.
- 2TestedIt must pass its own examples, stay within time limits and use sandboxed logic only.
- 3Shadow modeIt runs silently across engines and only counts, so noise is caught before anyone sees it.
- 4ReleasedTo every engine, with credit to its contributor.
- 5ProvenAccepted, kept and production impact are tracked, and feed the next version.
Open, forever
Readable, permissively licensed and never relicensed. They run in every engine, offline, with no account.
Production-learned, delivered encrypted
Sharper rules learned from real outcomes, updated daily and opened only inside your engine. Detection logic is never shown.
Lived through an outage? Turn it into a rule.
Your contribution stays open source forever, with your name on it and its impact shown back to you.
Write a full rule
A YAML rule with its examples and the failure it prevents, tested locally with rules new, rules test and rules try.
Share a rule idea
Describe the failure, show the code and the fix. Maintainers turn good ideas into rules.
Contribute in one click
Turn a false positive or a custom rule into a contribution from the console. You review exactly what is sent.
Rules questions
What is a Tomosu reliability rule?
A check for one way software fails in production: the failure it prevents, the code facts that detect it, a fix with no logic change, and tests.
Are the rules open source?
Community rules are open and stay open under a permissive license, with DCO sign-off and no contributor agreement. Pro rules come encrypted from Tomosu Cloud.
How do rules get better?
Engines report which findings were accepted or rejected and which fixes were kept or reverted. Noisy rules are tightened; rules whose fixes hold earn trust.