Skip to content

Concepts

Efkan edited this page Dec 3, 2026 · 11 revisions

Concepts

The words capsule uses, in the order you are likely to meet them. Each links to where the guide explains it in full.

On one host

Word Meaning
Capsule A directory with a manifest (capsule.json), a root filesystem and a signature over both. Not an image: there are no layers and no registry
Manifest What to run and what it may use: command, limits, volumes, network, policy. An unknown field is an error, so a typo cannot silently turn a setting off
Seal The signature over manifest and root filesystem. Change either and the seal no longer matches
Trust Public keys in /etc/capsule/trust.d/. A host runs only capsules sealed by one of them
Policy Conditions sealed into the manifest that must hold before it runs: approvals from named signers, a time window, a list of hosts
Log The host's own signed, chained record of every run and every refusal. Edits and deletions are detected
Telemetry A line every ten seconds from each capsule's supervisor: CPU, memory, throttling, pressure, disk bytes. capsule metrics compares a capsule with its own past and notes what is unusual; a program with a rhythm, such as a job every few minutes, is not noted each time it runs. capsule dashboard shows the same as a page with charts, for as long as that command runs. No daemon and no model
Volume Data that outlives a run. With a size it has a hard cap; with encrypt it is unreadable off the host

Between capsules

Word Meaning
Mesh Capsules reach each other by name over WireGuard tunnels, and only on the ports both sides' manifests declare
Cell A stricter kind of network on the same tunnels: no port lists, only named services ("receptors") that a cell offers to named cells and needs from them. An offer can demand a signed, time-limited grant
Scale Several replicas of one capsule behind one published port, grown and shrunk by their own CPU and memory use

Across hosts

Word Meaning
Ledger A shared store the hosts agree through: a folder, an S3-compatible bucket, Vault or Artifactory. It holds releases, orders and the tissue. capsule needs no server of its own
Publish / fetch Putting a sealed release in the ledger, and a host taking it from there after checking the seal
Order A signed instruction to hosts: fetch, run, stop, resize, revoke, ps, log, exec. It replaces logging in over SSH. Hosts obey only operators they trust, and exec is off until a host allows it
Helper A small root program started per request for members of the capsule group. It does the few things only root can: fast tunnels, sized and encrypted volumes, ports below 1024, and the latency profile
Tissue Orchestration without a scheduler. One signed document says which cells should run and on what kind of host; every host works out the same placement by itself from a public random beacon, and takes or gives up work through leases in the ledger
Lease, standby, takeover A host holds a cell's slot by a lease it keeps renewing. A standby takes over when the holder falls silent: in about a lease normally, or in roughly 100 ms with a hot standby

Cryptography

Signatures and key wraps are hybrid: a classical algorithm together with a post-quantum one, so that breaking either alone is not enough. Since 0.8.0 the post-quantum half is at the highest standard level: ML-DSA-87 for signatures and ML-KEM-1024 for key wraps and tunnels. Keys and hosts made before 0.8.0 keep the level they have (ML-DSA-65, ML-KEM-768) and go on working; capsule host says which level a host is. Since 0.9.0 there is also level 7, for whoever asks for it: a third signature that rests on a hash function alone (SLH-DSA), and for encrypted capsules a secret shared with the host, so that not everything rests on one kind of mathematics. And at every level, the secret mixed into each tunnel is now made from the one before it and a one-time key, in a chain that does not end. Since 0.11.0 a host can be made at level 9 (CAPSULE_LEVEL=9): a key wrap for it also takes a Classic McEliece exchange, a second kind of public-key encryption that rests on codes instead of lattices. Shared secrets can be given by name, one per operator, and withdrawn one at a time; and hosts of one mesh can hold a mesh secret that goes into every tunnel. Since 0.12.0 capsule seal -outer lays a cipher of capsule's own design over an encrypted capsule's AES-256-GCM. It is only ever an extra layer under a separate key, and nobody but its author has tried to break it, so it adds a wall without anything resting on it. Since 0.13.0 a host can require that cipher of every encrypted capsule it runs (a line outer in its require settings file), a running capsule follows a change of the mesh secret, and a capsule whose encrypted archive was changed after the host first opened it is refused. The README has the details.

Read on: the Guide walks through all of this with commands.

Clone this wiki locally