diff options
Diffstat (limited to 'docs/INVARIANTS.md')
| -rw-r--r-- | docs/INVARIANTS.md | 20 |
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 |
