The open-source engine ships with 218 pre-merge checks in 6 languages and 137 runtime signals. They are the community rules: open under Apache-2.0, deterministic, and grouped by the same category ids before merge and in production. Every active one is listed below.
218 pre-merge checks
137 runtime signals
Python · JS/TS · Go · Rust · SQL
Updated
What are the community rules?
They are the rules that ship with the open-source engine, licensed under Apache-2.0 and open for good. Each one is a deterministic check with examples of code it must flag and code it must leave alone. A model never decides whether a rule fires. This page lists every active community rule: 218 pre-merge checks across 6 languages (Python, JavaScript, TypeScript, Go, Rust, SQL) and 137 runtime signals from OpenTelemetry data.
The same list is in the console under Community Rules, with each rule’s track record on your own code, and in the terminal with tomosu rules catalog list. Pre-merge checks and runtime signals share category ids, so a finding in code and a signal in production about the same failure are joined. Pro rules come from Tomosu Cloud and are not listed here.
Which pre-merge checks are there?
218 checks on code, run by tomosu scan, in CI and on pull requests. A check written for several languages is one row here, with each language it covers.
Outbound calls without explicit timeouts hang until worker capacity is exhausted.
Graceful shutdown handler 01.graceful-shutdown
JavaScript, TypeScript
Deploys and restarts drop in-flight requests.
Inbound server has no read, header or idle timeouts 01.server-timeouts-missing
Go
Slow or stalled clients hold connections open until the service runs out of connections, threads or file handles (the Slowloris pattern).
Model call without an explicit timeout 01.model-call-timeouts
Python
This model call has no timeout of its own, so it falls back to the SDK default, which for the OpenAI and Anthropic SDKs is ten minutes.
Request path panics on unexpected input 01.panic-on-bad-input
Rust
One malformed request crashes the handler or the whole process: Rust unwrap/expect, Go type assertion without the ok check or write to a nil map, unguarded JSON.parse.
Retry policy with backoff 01.retry-backoff
Python, JavaScript, TypeScript
Immediate retries multiply load on a dependency that is already failing.
Observability 02 · 5
Check
Languages
What it catches
Unbounded values used as metric labels 02.unbounded-metric-labels
Python, JavaScript, TypeScript, Go, Rust
The monitoring system runs out of memory, taking alerting down, or the monitoring bill spikes.
Unsampled logging added to a hot path 02.unsampled-hot-path-logging
Python
Log pipelines saturate and drop other services' logs; error logging adds load during incidents.
Support Readiness 10 · 4
Check
Languages
What it catches
Error log lacks request or record identifiers 10.error-log-missing-ids
Python, JavaScript, TypeScript, Go
Thousands of identical lines appear and on-call cannot tell which customers are affected.
Original cause dropped when rewrapping errors 10.cause-dropped-on-rewrap
Go
Logs show only a generic failure; retry logic can no longer tell a timeout from a bad request.
Traffic Management 11 · 8
Check
Languages
What it catches
Full queue drops silently or blocks forever 11.full-queue-drops-or-blocks
Python
Events vanish under load with no record, or request threads pile up behind a stalled consumer.
The queue absorbs overload invisibly until memory runs out; queued work is lost on restart.
Unlimited parallel calls sized by input 11.unbounded-parallel-calls
JavaScript, TypeScript, Rust
A large input triggers thousands of simultaneous calls, exhausting connections and overloading the downstream.
Async Messaging 12 · 9
Check
Languages
What it catches
Bad message redelivered forever 12.bad-message-redelivered-forever
Python, JavaScript, TypeScript
One unprocessable message occupies a worker in a loop and blocks everything behind it.
Dead letter queue configured 12.dlq-configured
Python, JavaScript, TypeScript
Unprocessable messages loop or disappear.
Fire-and-forget prevention 12.fire-and-forget
Python, JavaScript, TypeScript
Publishes are not checked, so failed sends go unnoticed.
Message acknowledged before work is safely done 12.ack-before-work-done
Python
A crash between acknowledgment and completion silently loses messages such as payments or orders.
Queue consumer with no prefetch or batch limit 12.consumer-unbounded-prefetch
Python, JavaScript, TypeScript
The broker pushes more messages than the consumer can hold or finish in time: memory spikes, and consumers are repeatedly dropped from the group and reshuffled.
Database Performance 13 · 14
Check
Languages
What it catches
Bulk data backfill run in one transaction 13.backfill-one-transaction
SQL
Locks are held for the whole backfill, replicas lag, and a late failure rolls everything back.
Constraint added with immediate full validation 13.constraint-full-validation
SQL
Writes are blocked during the scan, or the migration fails on existing bad rows.
Index built with a blocking table lock 13.index-blocking-lock
SQL
All writes to the table stop during the build and timeouts cascade.
Migration runs without lock or statement timeouts 13.migration-without-timeouts
SQL
A quick change waits behind a long transaction and every later query queues behind it.
N+1 query detection 13.n-plus-one
Python, JavaScript, TypeScript, Go, Rust
One query per row slows pages as data grows.
Pagination enforced on list queries 13.pagination-on-list-queries
JavaScript, TypeScript
Unbounded list queries grow with data and time out.
Required-value rule added to live table unsafely 13.required-value-added-unsafely
SQL
The table is locked while every row is checked, or inserts from old servers fail during rollout.
Schema change rewrites entire table under lock 13.table-rewrite-under-lock
SQL
The table is unavailable for minutes to hours; narrowing a type can truncate values.
Search with a leading wildcard 13.leading-wildcard-like
Python, JavaScript, TypeScript, SQL
LIKE '%term' cannot use an index, so every search scans the whole table and slows as data grows.
SELECT * prevention 13.select-star
Python, JavaScript, TypeScript
Reads that grow silently as columns are added.
Timers, Clocks & Backoff 17 · 12
Check
Languages
What it catches
Backoff has no cap or overflows 17.backoff-uncapped-or-overflows
Python, JavaScript, TypeScript
After a long outage delays flip to zero and all clients hammer the recovering dependency.
Calendar math ignores leap days and daylight saving 17.calendar-math-dst-leap
Python, JavaScript, TypeScript
Jobs fail on specific days, run twice or not at all on clock-change days.
Error path skips the loop's wait 17.error-path-skips-wait
Python, JavaScript, TypeScript
When a dependency is down the loop spins at full speed, flooding logs and hammering it.
Negative remaining time reaches timer or deadline 17.negative-remaining-time
Python
Renewal fires in a tight loop, or work starts with an already-expired deadline.
Periodic runs overlap or are silently skipped 17.periodic-runs-overlap-or-skip
JavaScript, TypeScript
A slow run overlaps the next and processes the same batch twice, or runs are skipped.
Periodic work synchronized across all servers 17.periodic-work-synchronized
Python, JavaScript, TypeScript
Every server calls a shared dependency at the same instant, creating load spikes.
Time unit mismatch between seconds and milliseconds 17.time-unit-mismatch
Python, JavaScript, TypeScript
Every call times out right after deploy, or expiries are a thousand times too long.
Concurrency Safety 18 · 18
Check
Languages
What it catches
Background task captures a changing variable 18.task-captures-changing-variable
Go
Work applied to the wrong item: some items processed twice, others skipped.
Blocking call or inconsistent order while holding locks 18.blocking-under-lock
Python, Go
Requests freeze waiting on each other, or one slow call stalls everything behind a shared lock.
Blocking lock held across an await 18.lock-held-across-await
Python
A task keeps a thread-blocking lock while it waits, stalling or deadlocking every other task on that runtime.
Blocking work on the event loop 18.blocking-on-event-loop
Python, JavaScript, TypeScript, Rust
One slow synchronous call freezing every concurrent request on the process.
Cleanup deferred inside a loop 18.defer-in-loop
Go
Every file or connection opened in the loop stays open until the whole function returns, exhausting file handles or the connection pool.
Lock not released on every exit path 18.lock-not-released
Python, Go
One failed request leaves a mutex held, every later request blocks forever, and the service looks healthy while serving nothing.
Shared map modified without synchronization 18.shared-map-unsynchronized
Python, Go
The process aborting with "fatal error: concurrent map writes" under load.
Timeout or cancel does not stop the work 18.cancel-does-not-stop-work
Python, Go
Abandoned requests keep consuming connections and slots; late completions apply duplicate changes.
Timers created repeatedly and never stopped 18.timer-leak-in-loop
Go
Timers pile up in memory until the process slows or runs out of memory: Go time.After inside a for-select loop, JavaScript setInterval never cleared.
Unawaited async call crashes process or loses work 18.unawaited-async-call
Python, JavaScript, TypeScript
Work silently dropped, and unhandled rejections that terminate the process on Node 15 and later.
Unhandled crash in a background worker 18.background-worker-unhandled-crash
Go
One malformed item crashes the service and each replacement hits it again: a crash loop everywhere.
A periodic job stops forever after one error and the service fails hours later.
Broad error handler shuts the process down 21.broad-handler-exits-process
Rust
A brief upstream glitch seen by every instance at once makes every instance abort, turning a blip into an outage everywhere.
Cancel or shutdown signal swallowed 21.cancel-signal-swallowed
Python
Shutdown hangs until force-killed, cutting work mid-write and duplicating processing.
Error detected but success returned 21.error-detected-success-returned
Go
The caller is told the operation succeeded and moves on, but the write never happened, so data is silently lost.
Error ignored from final save or commit 21.final-commit-error-ignored
Go
Truncated or missing output is reported as success when disks fill or connections drop.
Fallback value hides failure as valid answer 21.fallback-hides-failure
Python, JavaScript, TypeScript, Rust
A failed dependency is served to users as an empty or default answer, with nothing recording it.
Returned error explicitly discarded 21.error-value-discarded
Go
A failure is thrown away with no log, metric or retry, and the request reports success: Go _ = f(), Rust let _ = or .ok() on a Result, JavaScript .catch(() => {}).
To-do placeholder left in error handling 21.todo-in-error-handling
Python, JavaScript, TypeScript, Go, Rust
A rare failure has no real handling and leaves jobs hung.
Partial Failure & Retry Safety 22 · 14
Check
Languages
What it catches
Bulk operation result not checked per item 22.bulk-result-not-checked
Python, JavaScript, TypeScript, Go
Some items are silently rejected while everything reports success.
Duplicate-protection key changes between retries 22.idempotency-key-changes
Python, JavaScript, TypeScript
Duplicates slip through even though protection appears to be in place.
Retry has no attempt cap or overall deadline 22.retry-no-cap-or-deadline
Python, JavaScript, TypeScript
A caller held forever by a dependency that stays down.
Retry inside a database transaction 22.retry-inside-db-transaction
Python
Locks and connections are held through retries, spreading the outage to the database.
Retry repeats payments or other one-time actions 22.retry-repeats-one-time-action
Python, JavaScript, TypeScript
Duplicate charges, orders or messages when a reply is lost rather than the request.
Retrying errors that can never succeed 22.retrying-permanent-errors
Python, JavaScript, TypeScript, Go, Rust
Invalid requests are retried pointlessly and one bad message blocks a queue.
Resource Lifecycle 23 · 13
Check
Languages
What it catches
HTTP client keeps too few idle connections per host 23.http-client-low-idle-conns
Go
Under load the client opens and closes connections constantly, exhausting outbound ports and adding a handshake to every call.
In-memory map or cache grows without limit 23.unbounded-inmemory-cache
Python
Memory grows on every server until it is killed; unique keys speed it up.
New client or pool created per request 23.client-per-request
Python, JavaScript, TypeScript, Go, Rust
Connections pile up with traffic and downstreams see connection storms.
Pooled connection not returned on error 23.pooled-connection-not-returned
Python, JavaScript, TypeScript
Each failed request drains one database connection until every request waits forever.
Query cursor not closed on early exit 23.cursor-not-closed
Go
Each leaked cursor ties up a connection until the pool is exhausted.
Response body not closed on every path 23.response-body-not-closed
Go
Leaked HTTP connections whenever a dependency returns errors, until the service runs out of connections.
Timer or listener added per request, never removed 23.listener-per-request
JavaScript, TypeScript
Memory and processor use grow with every request until the service is killed.
Transaction left open on early exit 23.transaction-open-on-early-exit
Go
An abandoned transaction holds locks and connections run out during error bursts.
Whole response or file read into memory 23.whole-payload-in-memory
Go
A single large upload or response exhausts memory and kills the service.
Caching Resilience 24 · 9
Check
Languages
What it catches
Cache entries all expire at the same moment 24.synchronized-expiry
Python
The whole cache expires together, sending a wave of load at intervals or after deploys.
One cache call per item in a loop 24.cache-call-per-item
Python, JavaScript, TypeScript, Go, Rust
A request makes hundreds of sequential cache round trips instead of one multi-get or pipeline, so latency grows with the size of the data.
Popular cache entry expiry causes recompute stampede 24.expiry-stampede
Python
Every concurrent request rebuilds a popular entry at once, spiking backend load.
Whole-keyspace or unbounded cache command in application code 24.blocking-cache-command
Python, JavaScript, TypeScript, Go
KEYS *, FLUSHALL, or reading an unbounded set or hash in one command freezes a single-threaded cache for every caller.
Failure-Path Signal Coverage 27 · 7
Check
Languages
What it catches
Failure branch emits no log or metric 27.failure-branch-no-signal
Python, JavaScript, TypeScript, Rust
Operations fail with no dashboard change; customers report it first.
Retries and retry exhaustion emit no signal 27.retries-no-signal
Python, JavaScript, TypeScript, Go, Rust
A dependency fails a third of calls yet error rates look flat.
Security 03 · 4
Check
Languages
What it catches
No hardcoded secrets 03.no-hardcoded-secrets
Python, JavaScript, TypeScript, Go
Credentials committed to the repository are exposed to everyone with read access and survive in history after removal.
PII masking in logs 03.pii-masking-in-logs
Python
Personal data written into log aggregators is exposed to anyone with log access, creating regulatory risk.
Agent Execution Tracing A01 · 5
Check
Languages
What it catches
Agent failures swallowed without recording terminal error A01.failures-swallowed
Python, JavaScript, TypeScript
Suppressed exceptions make failed work appear healthy.
Model call made outside a trace span A01.model-call-outside-span
Python, JavaScript, TypeScript
Missing model-call context makes an incorrect answer difficult to reconstruct.
Tool invocation not logged with name, argument hash and outcome A01.tool-invocation-not-logged
Python
An unexplained account action creates investigation and recovery delays.
Retries and Error Recovery (agentic) A04 · 3
Check
Languages
What it catches
Permanent failures retried without classification A04.permanent-failures-retried
Python
Retrying an unchanged invalid request cannot restore service.
Tool or model retries have no effective attempt bound A04.no-attempt-bound
Python
Persistent faults trap agents in repeated execution.
Transient retries ignore backoff, jitter or server retry guidance A04.ignores-backoff-retry-after
Transactions treat all EXEC outcomes as all-or-nothing success or rollback.
MOVED handled in code E08.redis-moved
Python, JavaScript, TypeScript, Go, Rust
Cluster clients lack slot-map refresh handling.
OOM handled in code E08.redis-oom
Python, JavaScript, TypeScript, Go, Rust
Memory-denied writes use retry-only recovery.
TRYAGAIN handled in code E08.redis-tryagain
Python, JavaScript, TypeScript, Go
Resharding recovery lacks bounded delay and deadline handling.
AI Provider Errors E18 · 9
Check
Languages
What it catches
Claude 429 rate_limit_error handled in code E18.claude-429
Python, JavaScript, TypeScript
A retry storm on a throttled account, and retries of spend limits that retrying cannot clear.
Claude 529 overloaded_error handled in code E18.claude-529
Python
Vendor overload status is omitted from the recovery policy.
Gemini 429 RESOURCE_EXHAUSTED handled in code E18.gemini-429
Python
Quota exhaustion and shared-capacity overload use the same unconditional retries.
OpenAI 429 credit/spend/usage limit codes handled in code E18.openai-429-billing
Python, JavaScript, TypeScript
Billing and usage-limit failures enter transient rate-limit retries.
OpenAI 429 rate limits / slow_down handled in code E18.openai-429-rate
Python, JavaScript, TypeScript
A retry storm on a throttled account, on top of the SDK's own retries.
OpenAI 500 / 503 server_is_overloaded handled in code E18.openai-500-503
Python
Provider failover lacks compatible model, budget and task checks.
Which runtime signals are there?
137 signals computed from the OpenTelemetry traces, metrics and logs your services already send, on any language. When one fires, the engine looks at the code it points to and ranks the pre-merge findings that can explain it.
SQLSTATE 08006 / 08007 in production E06.pg-08006-08007.runtime
Traces
Connection loss is followed by an unverified replay of a write or commit.
SQLSTATE 22001 / 22003 / 22P02 in production E06.pg-22001-22003-22P02.runtime
Traces
Rejected values repeat or are silently truncated/coerced.
SQLSTATE 23502 / 23503 / 23514 in production E06.pg-23502-23503-23514.runtime
Traces
Constraint failures recur or are swallowed.
SQLSTATE 23505 in production E06.pg-23505.runtime
Traces
A duplicate-key conflict is reported as success without matching the intended record.
SQLSTATE 25P02 in production E06.pg-25P02.runtime
Traces
Commands keep using an already-failed transaction.
SQLSTATE 28P01 / 42501 in production E06.pg-28P01-42501.runtime
Traces
Access errors persist across attempts with unchanged identity.
SQLSTATE 40001 / 40P01 in production E06.pg-40001-40P01.runtime
Traces
Retries reuse stale transaction decisions or exceed their attempt budget.
SQLSTATE 42601 / 42703 / 42P01 / 42883 in production E06.pg-42601-42703-42P01-42883.runtime
Traces
Syntax or missing schema objects fail after deployment.
SQLSTATE 53100 / 53200 / 53300 in production E06.pg-53100-53200-53300.runtime
Traces
Resource failures or pool pressure breach capacity thresholds.
SQLSTATE 55P03 in production E06.pg-55P03.runtime
Traces
Lock acquisition failures exceed the contention budget.
SQLSTATE 57014 in production E06.pg-57014.runtime
Traces
Cancelled statements leave unresolved earlier operations or trigger unlimited retries.
SQLSTATE 57P01 / 57P03 in production E06.pg-57P01-57P03.runtime
Traces
Requests keep targeting a shutting-down or unavailable database.
SQLSTATE XX001 in production E06.pg-XX001.runtime
Traces
Corruption errors are ignored or affected results continue downstream.
Cache and Cluster Errors (Redis) E08 · 6
Signal
Needs
What it means
CLUSTERDOWN in production E08.redis-clusterdown.runtime
Traces
The cluster stays unavailable or fallback violates the data contract.
CROSSSLOT in production E08.redis-crossslot.runtime
Traces
The same incompatible key set is repeatedly submitted.
EXECABORT / null EXEC / EXEC item errors in production E08.redis-exec-outcomes.runtime
Traces
WATCH conflicts, rejection or item errors hide in successful-looking results.
MOVED in production E08.redis-moved.runtime
Traces
Requests keep targeting the old slot owner.
OOM in production E08.redis-oom.runtime
Traces
Write failures persist at the memory limit.
TRYAGAIN in production E08.redis-tryagain.runtime
Traces
Attempts continue beyond the task recovery budget.
Network and Operating System Errors E13 · 1
Signal
Needs
What it means
EACCES / EPERM / PermissionError in production E13.eacces-eperm.runtime
–
The same operation remains denied by the operating system.
AI Provider Errors E18 · 6
Signal
Needs
What it means
Claude 429 rate_limit_error in production E18.claude-429.runtime
Traces
429s continue without cause-appropriate pacing or account action.
Claude 529 overloaded_error in production E18.claude-529.runtime
Traces
Overload responses cause uncontrolled replay or immediate false completion.
Gemini 429 RESOURCE_EXHAUSTED in production E18.gemini-429.runtime
Traces
Exhaustion persists without capacity-specific mitigation.
OpenAI 429 credit/spend/usage limit codes in production E18.openai-429-billing.runtime
Traces
Calls continue after a persistent credit, spend or usage restriction.
OpenAI 429 rate limits / slow_down in production E18.openai-429-rate.runtime
Traces
Rate or ramp limits persist while aggregate retry traffic increases.
OpenAI 500 / 503 server_is_overloaded in production E18.openai-500-503.runtime
Traces
Provider failures persist or fallback changes required task behavior.
Where do these rules come from?
From the rules/v1 folder of the engine’s repository: one folder per check, with its check.yaml and its tests. Only rules with status active are listed; rules in shadow run and are counted but are not shown yet. To change one on your engine, see the rules catalogue; to add one, see Write a rule.