diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/DECISIONS.md | 56 |
1 files changed, 40 insertions, 16 deletions
diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md index 76c46c7..a32d67a 100644 --- a/docs/DECISIONS.md +++ b/docs/DECISIONS.md @@ -166,20 +166,44 @@ aging one out must not corrupt the other. **Cost.** A `purged_at` column on two tables, and a UI that has to say "bytes no longer held" rather than offering a download that 404s. -## The real-chroot integration tier is recorded as skipped, not silently absent - -§16a gates the tier that needs root, network and devtools. On this host the -tier was not run: it requires a privileged Arch chroot (`mkarchroot` over the -real mirror database), a signing key with a real passphrase, and outbound -network to the AUR, none of which the environment provides. - -**What stands in its place.** The shim tier drives the *unmodified* pipeline -against fake tools that produce real archives, and the crash tests kill real -processes with real signals. The parts the gated tier would exercise that the -shims cannot: `mkarchroot`'s actual root construction, `makechrootpkg`'s -copy-on-write snapshot semantics, GPG's passphrase handling, and the behaviour -of a PKGBUILD that escapes its sandbox in ways a symlink does not capture. - -**How to run it.** Install devtools, create a signing key, set `signing_key_id` -and leave `path_prepend` unset so the real tools are found on `PATH`, then +## The real-chroot tier: what was actually run, and where it stopped + +§16a gates the tier that needs root, network and devtools. It was not skipped +for lack of trying; it was run on a host with all three, and here is how far it +got. + +**What passed with the real tools.** Real `gpg` (a generated 2048-bit RSA key) +detached-signed the artifact the pipeline produced, and `gpg --verify` reported a +good signature. Real `repo-add -s -k` built a pacman database over that artifact +and signed it, and that signature verified too. So the claim "both the packages +and the `.db` are signed" is checked against real crypto, not the shim's fake +key. + +**What the attempt caught.** `mkarchroot` has no `-N` flag. The pipeline was +calling `mkarchroot -N <seed>`, which the shim accepted (it ignores unknown +flags) and the real tool rejected with a usage error — so the first real chroot +build would have died on its very first step, in a code path no shim test could +ever have caught. The seed's package list is now configuration +(`mkarchroot_args`, default `base`) and the call follows the real usage, +`mkarchroot <working-dir> <packages...>`. + +**Where it still stops.** `mkarchroot <dir> base` against a live mirror +downloaded and installed the base set into the chroot (437 MB, 14 packages, +install scripts ran), then failed in devtools' init stage with +`Failed to parse --bind(-ro)= argument : Invalid argument` from +`systemd-nspawn` 262, and with `etc/pacman.conf` unreadable inside the root. +That is a devtools/nspawn interaction inside an unprivileged container, not +something this codebase controls. + +**What therefore remains unverified by execution:** `makechrootpkg`'s +copy-on-write snapshot semantics, `systemd-nspawn` isolation behaviour, and GPG +passphrase handling through a real agent. The shim tier drives the *unmodified* +pipeline against fake tools that produce real archives, and the crash tests kill +real processes with real signals, so the step machine, the checkpoints and the +publish path are all exercised for real — it is the chroot boundary itself that +is modelled rather than crossed. + +**How to run it properly.** A privileged Arch host (or a container with the +nspawn capabilities devtools expects), devtools installed, a real signing key, +`signing_key_id` set, `path_prepend` left unset so the real tools are found, then subscribe to a real pkgbase and drive it through `aur-build serve`. |
