Captain / Documentation / Part 8. Where Captain runs

Lifeboat and Gate

Contents ↓

Two more tools take Captain programs, at very different stages. Lifeboat is a draft: nothing of it is built. Gate is built, in a first, deliberately small form, and its use of Captain is indirect.

Lifeboat: backup plans (a draft)

Lifeboat is a planned backup engine: back up what matters on any machine, take each application's data the way that application says is consistent, keep it encrypted where the machine that wrote it cannot destroy it, and prove every backup by restoring it. Its specification, spec/lifeboat/LIFEBOAT_V1.md, is a starter draft, and says so: nothing is built.

Captain's part in the design is the plan. A plan is a .lifeboat file, a Captain program whose entries may use only Lifeboat's tasks, in the way a .forge recipe may use only Forge's. The draft's illustration reads files under one directory and writes a snapshot to one named repository, with a retention rule. The point of making plans programs is the one this book keeps returning to: the checker's manifest would say what a plan may read and where it may write, before it runs, and a plan edited to read somewhere else would be a different program, with a different digest, which a machine would refuse unless it was signed again.

There is no Lifeboat::Tasks module in the checker yet, so a plan cannot be checked today, and this book shows none. Read the draft for the design: the repository format, the sources, the roles and keys, and restore drills.

Gate: qualifying a commit

Gate takes a repository and a full commit id, queues a qualification attempt, makes a fresh checkout of that commit, runs the project's own procedure there, has the result assessed, keeps the evidence, and issues a signed certificate. A negative assessment gets the same paperwork as a positive one, and an attempt whose assessment cannot be obtained and verified is marked incomplete, never passed.

Gate runs no Captain program of its own. A project's procedure is a list of steps in a committed .gate.toml, each a tool the host profile binds by path and digest. The usual step is a Bosun task, so the project's checked bosun.capt is what actually runs, and the assessment is made by a separate tool, also bound by the host profile, from a checker program committed in the project.

What is built is an initial implementation for Unix, on one host, for an operator-controlled qualification machine. It has no network listener, no remote runner and no operating-system sandbox, so it is not for untrusted submissions. spec/gate/README.md describes installing it, the host profile, the project contract and the evidence it keeps.