summaryrefslogtreecommitdiffstats
path: root/docs/INVARIANTS.md
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-19 12:11:32 +0000
committeraur-build <aur-build@localhost>2026-11-19 12:11:32 +0000
commit43a2bfaaac60bc378135ad90c46c9d42777aeb1e (patch)
treef0269a513275490abb250697ed1ffc6aec2ba8a2 /docs/INVARIANTS.md
parentfa921c26bade47634506b57b32713421f976ae22 (diff)
downloadaur-build-43a2bfaaac60bc378135ad90c46c9d42777aeb1e.tar.gz
aur-build-43a2bfaaac60bc378135ad90c46c9d42777aeb1e.zip
docs: the sandbox decisions, recorded where decisions get recorded
DECISIONS.md gains the three entries this work turned on: signing moved hub-side to ingest (the build machine must never hold the key), the devtools chroot is gone (the sandbox is the isolation boundary, and I9 gets stronger with it), and dependencies arrive pinned by digest via pacman -U rather than being resolved at build time. Each states the pressure, the choice, and the cost — including the costs: the unsigned window between build and ingest, the makechrootpkg-convention PKGBUILD tail to hunt in the gated tier, and the official-package pinning that is honestly still future work. DESIGN.md's step table and §8.3 now describe what the code does, and a new §8a documents the sandbox-backend seam: loopback, remote, kata, and the TTL as the guarantee under every leak. INVARIANTS.md's I9 note moves from 'enforced by the chroot' to 'enforced by the sandbox' — the pipeline's own hygiene test still pins what it always pinned. The README's testing section names the new shim surface and the two new test tiers, and the gated-tier list reflects the kata live tier in place of the retired real-chroot one.
Diffstat (limited to 'docs/INVARIANTS.md')
-rw-r--r--docs/INVARIANTS.md20
1 files changed, 13 insertions, 7 deletions
diff --git a/docs/INVARIANTS.md b/docs/INVARIANTS.md
index c148961..80a98aa 100644
--- a/docs/INVARIANTS.md
+++ b/docs/INVARIANTS.md
@@ -21,17 +21,23 @@ with `cargo test --test <file> <name>`.
## What I9 does and does not cover
-The full statement of I9 is enforced by the chroot, and the chroot tier is gated
-behind root and network (§16a). What is *not* gated, and what
-`i9_a_build_cannot_smuggle_bytes_in_from_outside_its_own_staging_dir` pins, is
-the pipeline's own hygiene: `collect` scans the srcdir for `*.pkg.tar.zst` and
-`ingest` copies whatever those paths resolve to into the content-addressed
+The full statement of I9 is enforced by the sandbox: with a remote or kata
+backend the build code runs on a machine that holds no database, no mirrors,
+and — since signing moved to hub-side ingest — not even the signing key. The
+boundary is now a VM, which is stronger than the chroot it replaced. What is
+*not* gated, and what
+`i9_a_build_cannot_smuggle_bytes_in_from_outside_its_own_staging_dir` pins,
+is the pipeline's own hygiene: `collect` scans the srcdir for `*.pkg.tar.zst`
+and `ingest` copies whatever those paths resolve to into the content-addressed
store, from where the bytes are served from our repo and signed with our key. A
build that could make one of those paths be a symlink to the keyring or the
-database would turn a missing chroot into a signed artifact of our own secrets.
+database would turn a missing sandbox into a signed artifact of our own secrets.
The test acts that attack out — the shim plants a symlink to the database file —
and asserts the build fails closed, the store is untouched, and nothing
-publishes.
+publishes. The provisioning layer adds its own I9-adjacent assertions: staged
+blobs are re-hashed by the hub before a sandbox sees them, and a sandbox whose
+`pacman -Q` misreports its world fails the build closed
+(`failure_modes::an_incomplete_closure_fails_closed_as_a_world_mismatch`).
## Invariants that are properties of the schema, not of a code path