Read first
docs/self-hosting/development-machine: the root, the git road, the checksdocs/self-hosting/toolchain: whatjust toolchainbuilds and installsdocs/self-hosting/updating: slots, bases, whatjust installdrivesdocs/architecture/filesystem: checksummed images and the ownership map
Rules a change must keep
- Trust nothing on a root image: read it only through
fs_tree.py's bound
ls -l listings, and refuse an install before writing when the guest left
something the manifest does not name.
- A host tree's manifest and a seal's record live in
<image>.host/, on the
host. The image's copies are the guest's to rewrite; never treat them as
authority.
- A tree's owner comes from the ownership map and the image's owners record,
never from the host directory's owner or modes.
- A seed tree is copied only onto a root without its directory. Never refresh
/src: it is the guest's work.
- Blocks the guest owns stay un-attested through a grow and a refresh; a
trailer counts only past the filesystem's extent.
- Keep both pins on each git daemon (
--interpolated-path, and
--strict-paths with one directory). Keep sshd publickey-only behind its
ForceCommand, logging with -E: stderr is the connection.
- Nothing listens on a host port for the guest; peers run per connection
through guestfwd.
build_kernel.shstays POSIX sh on/bin/shand the coreutils; host-only
steps carry the guard (_host).
- What a base carries is
scripts/lib/base.shalone. - Tests run git and
justin the clone as the session
(slopos_userland::selfhost): git refuses a clone another uid owns.
just testnever needsjust toolchain: a toolchain rung passes with a
note on a root that carries none.
Checks
python3 scripts/fs_tree.py --self-test: tree installs, manifests, refusalspython3 scripts/gen_verity.py --self-test: seals, the record, guest-owned blocksjust test-toolchain: the image installed by its root, vendored clone, the ladder, a clone across a power-offjust test-selfhost: the guest's build ofHEAD, graded by itsjust precommitand the host's suitejust test-install-guest: a guest build installed into a slot and booted
Not yet in the docs
Read pending.md beside this file when it exists. A change that adds or alters an invariant the docs do not state appends it there in the same commit.