How we build: the versatile premises
The twelve premises behind every piece of software versatile.sh ships: what each one means in practice and what it rules out.
Short answer
versatile.sh builds software on twelve premises: flexible, extensible, decoupled, robust, scalable, elegant, no lock-in, your data on your infrastructure, open standards, a person in control, secure by default and observable. Each premise is a rule we apply when we design and review, and each one rules out a specific shortcut. Together they mean you can run our software how you want, where you want, with what you want.
Contents
- What are the versatile premises?
- How do we keep software flexible and free of lock-in?
- How do we extend a system without touching what works?
- Why do pieces meet only through contracts and events?
- What does robust mean when a process crashes?
- How do we scale and stay elegant?
- Who stays in control, and how do we keep it safe and visible?
- How do we use the premises in a design review?
What are the versatile premises?
They are twelve rules that every piece we design has to satisfy before it ships. Our thesis is short: run anywhere, run anything, be versatile. The premises turn that thesis into decisions an engineer can check in a design review.
| Premise | In one line | What it rules out |
|---|---|---|
| Flexible | Run it how you want, where you want, with what you want. | A single blessed way to deploy or operate. |
| Extensible | Add what is missing without touching what works. | Forking the core to add a feature. |
| Decoupled | Pieces stand apart and meet only through contracts and events. | Shared internals, hidden calls, welded parts. |
| Robust | Work survives a crash and never runs twice by accident. | Lost work, double writes and hacks. |
| Scalable | Each call carries only what it needs. | Loading everything just in case; unmeasured claims. |
| Elegant | Few rules, small cores, nothing written twice. | Duplicated code and leaked abstractions. |
| No lock-in | Agnostic of vendor, model and cloud. | A piece you cannot swap. |
| Your data, your infrastructure | Runs where your data lives. | Shipping your data somewhere it does not need to go. |
| Open standards | Standard protocols and versioned, checked contracts at every boundary. | Private formats and silent contract changes. |
| A person in control | Software does the work; a person decides what matters. | Unreviewed decisions and actions nobody can trace. |
| Secure by default | Closed unless allowed, least privilege, secrets never logged. | Open-by-accident access and data mixed across companies. |
| Observable | Easy to see what happened and why. | Guessing from symptoms after the fact. |
How do we keep software flexible and free of lock-in?
We never assume where the software runs or what it runs with, so you choose both. As we put it: run it how you want, where you want, with what you want. In practice that covers three premises at once.
- Flexible: the same piece runs on a laptop, in your data centre or in any cloud, with the same behaviour.
- No lock-in: we stay agnostic of vendor, model and cloud. Any piece can be swapped without rewriting the rest.
- Your data, your infrastructure: the software goes to where your data lives, not the other way round.
This rules out designs that only work with one provider, one hosting model or one storage choice. If a feature only makes sense on a single vendor, it is the wrong design.
How do we extend a system without touching what works?
Every part exposes ports, and each port can be filled by a built-in piece, an in-memory stand-in or one of yours, chosen by configuration. The built-in piece is what most people use. The in-memory stand-in makes a full local run and fast tests possible with nothing installed. Yours is any implementation that honours the same contract.
Switching between them is a configuration change, not a code change. This rules out forks, patches to the core and feature flags buried in the code to support one customer.
Why do pieces meet only through contracts and events?
Because a piece that only knows a contract can be replaced, upgraded or scaled on its own. Decoupled means pieces stand apart and nothing is welded: no shared tables, no reaching into another piece's internals, no hidden calls.
Open standards keep those meeting points honest. Every boundary speaks a standard protocol and has a versioned contract that is checked automatically, so a breaking change fails a build instead of a customer.
What does robust mean when a process crashes?
It means work that was accepted is finished after the crash, exactly once. We record progress durably before we act, so a restart resumes where it stopped instead of starting over or giving up.
- Every write is idempotent: the same request sent twice has the effect of one.
- Retries are safe by design, not by luck.
- No hacks: no sleeps to hide races, no manual fixes in production, no special cases that only one person understands.
How do we scale and stay elegant?
We scale by making each call carry only what it needs, and we stay elegant by keeping the rules few and the cores small. A call that reads one field reads one field; a request that needs one piece starts one piece.
We publish numbers only when we have measured them, on a stated setup. Elegant means nothing is written twice, abstractions do not leak their internals to callers, and a reader can hold each core in their head.
Who stays in control, and how do we keep it safe and visible?
A person stays in control: software does the work, a person decides what matters, and every action can be audited. Three premises work together here.
- A person in control: consequential actions wait for a human decision, and every action records who or what did it and why.
- Secure by default: everything is closed unless allowed, each piece gets the least privilege it needs, secrets are never logged, and each company's data is kept apart.
- Observable: logs, metrics and traces make it easy to see what happened and why, without attaching a debugger to production.
How do we use the premises in a design review?
We turn them into questions and a design must answer all of them before it is built. A no is not a veto; it is a trade-off we write down and own.
- Can it run on a laptop, on premises and in any cloud?
- Can each dependency be swapped by configuration?
- Does it talk to other pieces only through a versioned contract or an event?
- What happens if the process dies halfway, and what if the request arrives twice?
- Is there any code written twice, or any internal detail visible to callers?
- Who approves the actions that matter, and where is that recorded?
- What is closed by default, and which secrets could end up in a log?
- When it fails at night, how will we know what happened and why?
Questions and answers
- Are the premises a marketing list or engineering rules?
- They are engineering rules. Each one maps to concrete checks in design and code review: whether a dependency can be swapped by configuration, whether a write is idempotent, whether a boundary has a versioned contract, whether secrets can reach a log. When a design breaks a premise, we either change the design or write down the trade-off and who owns it.
- What is an in-memory stand-in?
- It is an implementation of a port that keeps everything in memory and needs nothing installed. It behaves like the built-in piece for the same contract, so you can run the whole system locally and run tests in seconds. It is not meant for production data, but it proves that the port is real and that your own implementation can replace it.
- Does no lock-in mean you support every vendor?
- No. It means nothing in the design depends on one vendor, model or cloud. We ship a built-in option and an in-memory stand-in for each port, and the contract is public, so any other provider can be plugged in by you or by us. Support for a specific provider is a piece you add, not a rewrite of the core.
- How do you keep work from running twice?
- Every write carries a key that identifies the request, and the system records the result under that key. If the same request arrives again, after a retry or a crash, the stored result is returned instead of repeating the work. Progress is recorded durably before each step, so a restart resumes from the last finished step.
- Why insist that a person decides?
- Because software is good at doing work and bad at owning consequences. We let software handle the repetitive part and route the decisions that matter, such as spending money, deleting data or changing access, to a person. Every action is recorded with who or what did it and why, so it can be audited and reversed when needed.
- Why only publish measured numbers?
- Because an unmeasured number is a guess that readers will treat as a promise. When we talk about throughput, latency or cost, we state the setup, the load and how we measured it. If we have not measured something yet, we say so and describe the design choice instead, such as carrying only what each call needs.