interplane.Get Omega
Read in your language

interplane-install

This project has not described itself yet.

Brought by drakestapleton

branch main Branches Tags History

interplane-install / README.md

151 lines · 10684 bytes Raw Blame History Source

interplane-install

One command that puts Omega and your own Interplane on your own machine, owned by you.

git clone https://interplane.io/projects/interplane-install/repo.git interplane-install
sh interplane-install/install.sh

The clone form installs exactly the commit you checked out, whatever branch it is on, when you run sh interplane-install/install.sh (or the same file through a symlink or a symlinked folder). Check which one you have before you run it: git -C interplane-install rev-parse HEAD is the commit shown on https://interplane.io/drakestapleton/interplane-install, and the installer prints the commit it put in your store on its Installer: line. It refuses, and installs nothing, when the folder is not a Git checkout (a copy or an unpacked archive), when install.sh itself has changes that are not committed (that file decides which compilers and tools are installed), or when your store already has a newer installer. Uncommitted changes to other tracked files are not installed (it says so). The installer is the one thing here that nothing else checks for you.

There is also a piped form, sh < install.sh, and a lone install.sh with no checkout beside it is treated the same way. It has no checkout, so the installer and the interplane command come from interplane.io at that moment (it says so): it takes the newest installer the site serves, or your store's copy when the site's does not continue from it, and you trust the site for it. Run from a folder that happens to be a clone, a pipe still takes the site's installer, not that folder's. Inspect the file first if you do not trust the site.

When it is done you have:

interplane list                          the projects in your store
interplane new NAME [--public]           a new empty project (private unless --public)
interplane import SOURCE [NAME] [--public] [--branch BRANCH]
interplane get NAME [FOLDER]             a working copy to change
interplane land NAME [FOLDER]            record the working copy's branch head, signed
interplane verify [NAME]                 check every signed record
interplane share [--listen ADDR] [--port PORT]   serve public projects read-only over git://
interplane where                         where your store, key and tools are

Private projects are never served. Visibility is set when a project is made and is part of its signed first record. Omega, Interplane and the installer arrive as private projects.

share uses Git's own git:// service. It is read-only, it has no encryption and no sign-in, and it serves the Git history only, not your signed records, so the people you share with cannot yet check your signatures. Unless you pass --listen, only your own machine can reach it; --listen 0.0.0.0 opens it to every network the machine is on.

Your store and your key are readable only by your own account on the machine. A folder you name with --store that already exists must be empty or already a store (otherwise nothing is changed); it is made private the same way, and the installer says so when other accounts could get in. A working copy made with interplane get follows your own umask, and for a private project get says when other accounts on the machine can read it.

Running the installer again finishes a run that was killed part-way and brings the three installed projects up to the newest main the source serves. Each new head is recorded as a signed landing under your key, marked as not reviewed here: it is whatever the source served, not something pinned or checked by this installer. What is built and installed (the compilers and the store tool) is always the pins of the installer you ran, and that installer is the one recorded in your store: an installer older than the one in your store is refused, and an install.sh with changes that are not committed is refused. The omc in ~/.local/bin is replaced by a new release's compiler only while it is a file this installer put there (the installer keeps a list of their SHA-256); a file you put there yourself is kept, and the last lines say so. If the source's main does not descend from your copy, or the source cannot be reached, your copy is kept and it says so (with what git said). A password or token in INTERPLANE_SOURCE is never printed or written. The interplane command and the store tool's folder are rebuilt whole on every run, so a kill at any point cannot leave them half made; the previous one is kept beside it as .prev.

What it runs on

64-bit Arm Linux today. That is where Omega's compiler runs. On any other machine the installer says so and writes nothing. Macs and Intel or AMD processors are not supported yet.

Run so far: an NVIDIA DGX Spark, and an Ubuntu 24.04 container on it (4 KiB memory pages). Not run yet: a Raspberry Pi, an Arm cloud server, Linux on an Apple Silicon Mac. Pi 5 and Apple Silicon kernels often use 16 KiB pages, which this compiler has not been tried on.

It needs bash, git 2.29 or newer (the installer checks), ssh-keygen able to -Y sign and -Y verify (tried with OpenSSH 9.6; no other version has been tried), flock and the usual coreutils. On Debian or Ubuntu: sudo apt install bash git openssh-client util-linux coreutils diffutils gawk sed. It needs no root and writes only under your home folder, plus the folder you name with --store.

How the pieces are checked

WhatWhere it comes fromHow it is checked
omcOmega source (omega-mv), seed/out/omc at the release pinned in install.shthe commit must be on the main the installer uses; the file's SHA-256 must be the pinned one
store tool iplInterplane source (interplane-forge) at the commit pinned in install.shbuilt from source; its compiler, sha2.om and chain.om are the ones that commit's ipl/PIN names, by SHA-256 (ipl/build.sh refuses others); its own test gate runs on your machine, 81 seconds on a DGX Spark (--quick skips it)
your projectsyour storeipl signs every record with your key and refuses a project whose chain does not verify against the owner pin in ~/.config/interplane/owner-pins. The sources in them are not pinned: a rerun records the source's newest main as it was served

Where things go: the store at ~/.local/share/interplane/store (or --store DIR), tools and compilers under ~/.local/share/interplane, your key and settings in ~/.config/interplane, commands in ~/.local/bin.

Your owner key has no passphrase and is readable only by you. Keep a copy of ~/.config/interplane/owner-key somewhere safe: whoever holds it can sign for your projects, and without it you cannot add to them.

Not built yet

Gate

bash tests/run.sh SOURCE     # SOURCE: a folder with omega-mv/repo.git and interplane-forge/repo.git, or https://interplane.io/projects

Installs into fresh home folders and checks what a person gets (the compiler builds and runs a program, the store verifies, a landing, an import, sharing) and that each thing that must be refused is refused (another processor, a git that is too old, a missing program, a source of Omega or of Interplane without the pinned commit, either compiler with the wrong SHA-256, an owner pin for another key, a different --store than the one you have, a folder with other files in it as the store, a rewritten history, a private project over git:// even with a stray export mark, a push to a share, an altered byte in a chain, a copy of the installer with no checkout, an install.sh with uncommitted changes, an installer older than the one in your store, a password in an import address or in the source address, also one with an @ in it). It also upgrades an install with a newer installer, with a newer Omega release (the omc this installer put there is replaced; one of yours is kept), brings Omega up to a newer main from the source and keeps your copy when the source is unrelated or unreachable, installs the exact commit of a detached checkout and of a checkout reached through a symlinked folder or a symlinked install.sh, makes the tool and command checkouts again after a kill, finishes installs, an import, a new project and a landing that were stopped part-way, installs through a pipe (also its help, also when the folder you are in is a clone), installs into a store folder you name, and gives a working copy of a private project the mode your umask gives it. After every run that succeeds it checks that what is on the machine is what the final lines say (the omc, the store tool's commit, the command, the installer, a store that verifies). It then runs deliberately broken copies of the installer, one fault each, that the gate's own cases must reject, and checks that every kind of defect listed in tests/LESSONS.tsv has a passing case. Ends with GATE PASS cases=N mutants_killed=M with M the number of broken copies it made.

Before a review, REVIEW-LESSONS.md says what earlier reviews found and what the reviewer's brief must quote.

This installer is POSIX shell because it has to run before Omega exists on the machine; the interplane command is shell glue around ipl in the same way ipl is, and moves to Omega with ipl's own decisions.