THE PROBLEM
Bugs that only show up in production
Bugs between servers, workers, queues and clients pass review and pass CI. Then they come back as a ticket that says “can’t reproduce”.
Works with any stack, including Python and Node.js backends, React clients, RabbitMQ, Kafka and Redis. Multiple servers, multiple clients.
ZEROSPEC
The first plain-English spec format for distributed systems. Write down what must hold and what you assume: for the whole system, each program, and any critical module. ZeroOps gives every line a verdict.
system.zero
2 hold · 2 violated · 2 given
Notifications, the whole system: API, queue workers, WebSocket service (several instances), browser inbox, Redis, MongoDB.
WHAT MUST HOLD
1.
✗ Violated
2.
✗ Violated
3.
✓ Holds
4.
✓ Holds
WHAT WE ASSUME
5.
Given
6.
Given
Item 1 violated · 4-step scenario
1. Worker A creates the notification for subscriber S.
2. Worker A crashes before marking the job done.
3. The queue runs the job again on worker B.
4. Worker B creates a second notification. S sees it twice.
→ worker/send-message.ts · no unique key on (job, subscriber) · fix suggested
Three levels, one format
system.zero at the repo root, one .zero per program, and one in the folder of any critical module. Reviewed in pull requests like the code it describes.
Assumptions are explicit
What each part relies on is written down. Program and module assumptions are checked against the code around them and come back discharged or undischarged.
Every line gets a verdict
Holds, or violated with the exact sequence of events that breaks it. No vague warnings, no flaky reruns.
COMPARISON
Checked for every input value
Every interleaving, crash and retry
Specs in plain English
Minimal failing trace when it breaks
Re-run on every pull request
Unit tests
Hand-picked inputs
One schedule, usually the happy path
Test code to write and maintain
Flaky failures you can’t reproduce
Passes if the bug isn’t in the test
HOW IT WORKS
No new language. No code changes. Read-only access.
