# Signed package integration test Run the fixture on a Linux build machine with V, vpac, GnuPG, bsdtar, repo-add, sha256sum and unprivileged user/network namespaces. Set `archives` to the directory containing the source-built package archives. ```sh work=$(mktemp -d) v -o "$work/feed" tests/feed.v "$work/feed" keys "$work/keys" "$work/feed" publish "$work/keys" "$work/repo" x86_64 \ "$archives"/musl-*.pkg.tar.zst "$archives"/busybox-*.pkg.tar.zst "$work/feed" install "$work/keys" "$work/repo" x86_64 "$work/sdk" musl busybox ``` Each destination must be new. The publisher verifies each package signature, embeds signatures in the signed repository database, verifies both index signatures and records archive SHA-256 values in `repo/packages.tsv`. The installer checks the database and package signatures through vpac while syncing and resolving package names. Its isolated client keeps the root, database, cache, configuration and log under `sdk/`. `combined-feed.py` can publish a larger package pool and ask vpac to install specific roots. Pass `--install NAME` once for each requested root. The default installs every package in the selection. On both architectures, the worker published four packages and requested only musl and netbase. The clean clients contained exactly those two validated package records. The receipts are in `foundation/partial-install-01`, SHA-256 `0067690951845492e39732b5bb932a6cbfe619b7f51bbbf6dcf63b9e2a763898`. A builder with its own unprivileged service account and private state directory can use `feed install KEY_STATE REPO ARCH NEW_CLIENT --fakeroot PACKAGE_NAME...` when user namespaces are unavailable. This runs vpac under fakeroot and keeps the same signed file repository and new client directory. Target post-transaction hooks need permission to enter the installed root. For the worker's x86_64 font test, systemd granted the dynamic user `CAP_SYS_CHROOT` within its private user namespace using `PrivateUsers=yes`, `CapabilityBoundingSet=CAP_SYS_CHROOT` and `AmbientCapabilities=CAP_SYS_CHROOT`. The install fixture also checks vpac's transaction log for hook errors. Without that capability, vpac returned zero after a hook failed and the fixture rejected the result. For a foreign-architecture build SDK, `feed install --cross-sdk` masks the bitmap font hook during the transaction and runs the packaged `mkfontscale` with user-mode QEMU and the installed musl loader. The mask lives in the worker's client hook directory and is removed after installation. The AArch64 proof installed 11 signed packages, audited 725 owned paths and 20 ELFs, and generated `fonts.dir` with 335 entries. The installed root retained the original hook for Vinix. See `xorg/arm/abi16/cross-font-sdk-01`, receipt SHA-256 `2d6362b78953c336f2ce42cc7e8c24dfc355945ea557a3475058fe74decc5b5c`. For a separate consumer, transfer the repository directory and obtain the expected fingerprint independently from the test owner. Import the public key into a client-only keyring. ```sh "$work/feed" trust "$work/client-keys" "$work/repo/test-signer.asc" "$fingerprint" "$work/feed" install "$work/client-keys" "$work/repo" x86_64 "$work/client" musl busybox ``` ### Reject damaged signatures and packages The rejection test needs a test signing key, the corresponding consumer keyring and a published feed with at least two packages. It installs a dependency-free package from the pristine feed, then uses independent repository copies and fresh roots for three negative transactions. ```sh PATH="$work:$PATH" python3 tests/feed-rejection.py "$work/keys" "$work/repo" "$work/rejection" x86_64 musl ``` The copies contain a database signed for another index, a one-byte change to a package, or an intact package carrying another package’s signature. In the last case the fixture signs the modified database with the trusted test key. Each rejected transaction must report an integrity error and leave the root and local package records empty. The worker recorded all four outcomes under `foundation/rejection-02/`. ### Upgrade an installed root The worker tested BusyBox `1.38.0-3` upgrading to `1.38.0-4`, followed by the first install of `vinix-release`. The earlier recipe is at `cab3ed4:busybox/PKGBUILD.vile`. With these archives in `archives` and test keys from the first step, publish two snapshots and keep the same client directory for both transactions. ```sh old="$work/upgrade-old" new="$work/upgrade-new" client="$work/upgrade-client" "$work/feed" publish "$work/keys" "$old" x86_64 \ "$archives"/musl-*.pkg.tar.zst "$archives"/busybox-1.38.0-3-x86_64.pkg.tar.zst "$work/feed" install "$work/keys" "$old" x86_64 "$client" --fakeroot musl busybox test -d "$client/db/local/busybox-1.38.0-3" "$work/feed" publish "$work/keys" "$new" x86_64 \ "$archives"/musl-*.pkg.tar.zst "$archives"/busybox-1.38.0-4-x86_64.pkg.tar.zst \ "$archives"/vinix-release-0.1.0-1-any.pkg.tar.zst sed 's|/upgrade-old/|/upgrade-new/|' "$client/config.vile" > "$client/upgrade.vile" fakeroot -- vpac --config "$client/upgrade.vile" u --sync --noconfirm fakeroot -- vpac --config "$client/upgrade.vile" i --noconfirm vinix-release test -d "$client/db/local/busybox-1.38.0-4" test ! -d "$client/db/local/busybox-1.38.0-3" grep -Fx bin/uname "$client/db/local/busybox-1.38.0-4/files" grep -Fx usr/bin/uname "$client/db/local/vinix-release-0.1.0-1/files" test "$(readlink "$client/root/usr/bin/uname")" = ../../bin/uname grep -Fx ID=vinix "$client/root/etc/os-release" ``` ### Preserve account databases on upgrade The account seed keeps Vinix's locked root account and supplies a locked `nobody` account for vpac downloads. The fixture signs and installs the actual release 1 and release 2 archives in separate repositories. ```sh PATH="$work:$PATH" python3 tests/accounts-upgrade.py "$old_accounts_archive" \ "$new_accounts_archive" "$work/keys" "$work/accounts-upgrade" "$arch" ``` The worker installed and upgraded fresh clients for both target architectures. vpac kept their locally edited databases, retained mode 0600 on shadow and wrote the new defaults into the matching `.pacnew` files. The release 2 cold installs independently validated `nobody` with UID and GID 65534, a locked shadow entry and `/bin/false` as its shell. See `foundation/actual-account-upgrade-02` and `foundation/sandbox-user-accounts-01`, receipt SHA-256 `89fb3e0ec55471b79580ec5fe16d0585f4048a0b36c3157f8c9296a018eabc04` and `21df3c7374876be520ba8fac62f6fb47a46255bac27b7618a56cf1bfc422fb60`. ### Reuse a signed SDK Use the combined-feed fixture to select one version per package from receipted builds, sign the selected archives, install every package by name and audit the resulting root. An input can be a `feed publish` package table, a directory of SHA-256 receipts or an individual receipt. Identically versioned archives must have the same digest. Architecture-independent archives can be reused between target feeds. ```sh PATH="$work:$PATH" python3 tests/combined-feed.py "$arch" "$work/keys" \ "$work/audit" "$work/combined" "$first_repo/packages.tsv" "$later_artifacts" ``` In the x86_64 run, vpac originally refused to install four libraries together because they all shipped the generated `/usr/share/info/dir`. The rebuilt libgpg-error, libassuan, libgcrypt and libunistring packages each retain their own manuals. The combined installation then passed with 66 signed records, 13,518 owned files and links, and 217 target ELFs. The worker keeps the selection, publish, install and audit logs under `foundation/combined-02`. The receipt manifest at `foundation/receipts/combined-02.sha256` has SHA-256 `5a3ea7383f19cc4fcc247ea75e87ada4f0e857c9ac56cbee3f3bf973012122dc`. The arm64 run combined the signed musl and Linux header SDK with GMP, MPFR, MPC, the BSD compatibility headers, CA data, the public keyring and the Vinix account, filesystem and network defaults. The clean-root audit found 11 signed package records, 1,346 owned files and links, and nine target ELFs. Its four dependency stages and the filesystem policy check are under `foundation/arm-base-01`. The receipt manifest has SHA-256 `2ec471799105369ea1ba4b9c18b8c3ecfd13083beff91a4efbd359950f0faf41`. The larger x86_64 root in `foundation/combined-hooks-03` passed a cold install of 106 signed packages. Its generated `/usr/share/fonts/X11/misc/fonts.dir` indexed 335 fonts. The audit checked 17,128 owned files and links and 273 target ELFs. All 106 packages had their dependency providers in the feed. Of the 3,899 matching published input/layer/path observations, 1,133 had an expected owner in this root, 117 had a different owner and 2,649 still lacked an owner. The receipt manifest has SHA-256 `fc1aa7c5b7f6f126d5c3df984844b6f98dd994514146d796f0df559d00527b8b`. For a later SDK, publish the cumulative archive set to a new repository directory and install the desired package names into a new SDK. A remote builder can unpack a relative snapshot and set `VPAC_MAKEPKG_ROOT` and `VPAC_MAKEPKG_DB` to its extracted `root` and `db` directories. ```sh tar --format=ustar --owner=0 --group=0 --zstd -cf "$work/sdk.tar.zst" -C "$work/sdk" root db sha256sum "$work/sdk.tar.zst" ``` To boot the packages, pass an existing Vinix amd64 BIOS ISO to the diskless test. The runner uses the ISO's kernel and Limine boot files. Its `--musl` mode links a V probe with the installed musl SDK, checks its loader checksum in Vinix and exercises the Vinix `malloc_trim` implementation. BusyBox supplies PID 1, ash and the applets. The serial transcript is written to `guest/serial.log`. ```sh v -o "$work/boot" tests/busybox/boot.v "$work/boot" "$work/sdk/root" "$vinix_iso" "$work/guest" --musl ``` ### Boot the packaged command-line userland Publish the following 27 target packages to a fresh feed. The November 29 run used BusyBox `1.38.0-4` and Zsh `5.9.2-2`. Select one archive per name. Run from the ports checkout on the worker with `bsdtar`, `xorriso`, `timeout` and QEMU on PATH. ```sh set -- musl linux-headers busybox vinix-release ca-certificates-bundle zlib bzip2 \ brotli zstd xz expat libffi libcap libuuid ncurses pkgconf vim make openssl \ pcre2 gmp libpng nghttp2 c-ares zsh scanelf musl-utils "$work/feed" install "$work/client-keys" "$userland_feed" x86_64 "$work/userland" --fakeroot "$@" v -o "$work/audit" tests/installed-root.v "$work/audit" x86_64 "$work/userland" v -o "$work/boot" tests/busybox/boot.v "$work/boot" "$work/userland/root" "$vinix_iso" "$work/userland-guest" --userland ``` The x86_64 audit verified 27 signed package records, 9,583 owned files and links, and 110 target ELFs. Inside Vinix, the fixture loaded Zsh modules, edited a file with Vim, ran a Makefile, round-tripped compressed files, resolved pkg-config modules, parsed XML and verified the packaged ISRG root through OpenSSL. The serial log ends with `VPAC USERLAND GUEST PASS`. The worker keeps it under `musl-busybox-CqkBEA/foundation/userland-guest-01/serial.log` (SHA-256 `237592ae4c71ca99438e4fba943472c44c6890f60495a43204202c7ba2eb0837`). Boot harness revision `0a0ab0a` supports this run. To run another package fixture in the same boot environment, use `boot ROOT ISO OUTPUT --fixture SCRIPT` on x86_64 or `--aarch64-fixture SCRIPT` on arm64. BusyBox init invokes the script on the guest console. The test must print `VPAC FIXTURE GUEST PASS` on a line by itself and shut down the guest. The x86_64 worker replayed the userland checks through this entry point in `foundation/fixture-replay-01`. Its receipt manifest has SHA-256 `9aefb17b4cce7db8ec99f96e297b8acc244ee61a55401fb3165213a01f02f55d`. ### Seed a fresh image with a distributor's verification key Provide a public OpenPGP certificate and its full fingerprint from the trusted release configuration. Choose a new numeric package version each time the public material changes. Prepare the source port in worker state, build it through Vile and install it into the new image using the builder's existing trusted keyring. ```sh python3 tools/keyring.py prepare "$public_certificate" "$trusted_fingerprint" "$version" "$work/vinix-keyring" vpac --native-build "$work/vinix-keyring/PKGBUILD.vile" "$work/keyring.manifest" # Include the archive listed in keyring.manifest when publishing the signed feed. feed install "$builder_keys" "$repo" x86_64 "$work/new-client" --fakeroot musl vinix-keyring python3 tools/keyring.py seed "$work/new-client/root" "$trusted_fingerprint" ``` `vinix-keyring` owns the public certificate and fingerprint in `/usr/share/vpac/keyrings/`. Image assembly initializes the mutable GnuPG keybox and trust database under `/etc/vpac.d/gnupg/`. The seed operation accepts a new destination or the empty directory installed by the vpac port. The builder compares the independently supplied fingerprint before packaging and again before seeding. The worker used a disposable test signer in `foundation/keyring-04`. It rejected a wrong pin, installed the signed keyring, seeded an empty vpac key directory, verified the signed database and used that keyring alone for an offline vpac install of musl into another empty root. A second seed attempt preserved the existing keyring. The checksum manifest has SHA-256 `3ffb71fb6832d43af1cb2ec588d2d6a75ece24060d22bd1e70be59392a64d30d`. The target-vpac guest transaction and provisioning the release signer's public certificate remain release checks. ### Assemble an image with an offline repository A public-only consumer can live below a long staging path. `feed trust` checks the fingerprint in a short private GnuPG directory and copies the public keybox and trust database to the consumer. Fresh clients for both architectures installed four packages from the signed layout feed. A wrong fingerprint and a by-name attempt to install the absent `vinix-release-desktop` both failed. The worker keeps the successful install receipts in `foundation/public-trust-install-03/consumer-with-a-deep-image-generation-directory`, manifest SHA-256 `28b5580486b8c36bd67df12b3e51924f96685aae447326aaacca88e6a32fede5`, and the partial-feed rejection in `foundation/partial-desktop-reject-03`, manifest SHA-256 `ad53b5e5fdcd0461ee72b5a9b9c0fb3c4a8b7e878c100f722c3e3c54ddf7dbc8`. Start with a fresh `feed install` client that includes `vinix-keyring`. Run this on the build worker with GNU cp, GnuPG and the installed-root auditor. The resulting `$output/root` is the input to the architecture's image builder. ```sh python3 tools/stage-image.py "$arch" "$client" "$repo" "$output" "$work/audit" "$trusted_fingerprint" ``` The tool audits the package-owned root, makes a separate copy, and seeds the verification keyring using the distributor's fingerprint. It copies the local package records into `/var/lib/vpac/local`, checks their versions against the signed database, and installs the repository under `/var/lib/vinix/repository/$arch`. It verifies the database, file index and each included package signature, and compares the payload hashes with the signed database. The sync cache receives independent copies of the database and signature. Assembly exposes the final root only after these checks pass. Pass the native desktop programs and assets in a staging directory with `--native-layer`. Assembly rejects a native file at a package-owned path and preserves hard links within the layer. `native-layer.tsv` records the installed file hashes and the symbolic link targets. `--initramfs` writes the root-owned USTAR archive for Vinix's ISO builder. ```sh python3 tools/stage-image.py "$arch" "$client" "$repo" "$output" "$work/audit" \ "$trusted_fingerprint" --native-layer "$desktop_layer" --initramfs ``` Use `$output/initramfs.tar` as `VINIX_AMD64_INITRAMFS` or `VINIX_AARCH64_INITRAMFS` in Vinix's architecture-specific ISO assembly command. Run `python3 tests/native-layer.py` for the layer regression checks. `tools/release-inputs.py` uses `--initramfs-only` for release assembly. The temporary root shares package files when it is on the same filesystem as the cold client, and only the archive and manifests are retained. The worker assembled signed seed archives for both architectures and checked the cold clients' file hashes, ownership, permissions, inodes and link counts before and after. See `foundation/ports-initramfs-only-proof-01`, receipt SHA-256 `bd3c147af90c8237c412f6bc141748144535f92c8e2a6afcc241d9d15a49d23d`. Run `python3 tools/check-iso-initramfs.py "$output/initramfs.tar" "$iso"` against each assembled ISO before accepting its release evidence. The checker compares the embedded tar payload byte for byte with the audited input and verifies the image identity that the ISO builder writes into the gzip header and appends to the tar. Run `python3 tests/iso-initramfs.py` to exercise rejection of altered payloads, wrong identities and added tar entries. Use `--stream` on a worker with `bsdtar` to verify the compressed ISO member without extracting a temporary copy. The same byte and identity checks apply, including when the ISO member arrives through a pipe. Both architecture-specific Vinix builders assembled test ISOs with the small, signed seed fixtures and the candidate kernels. The checker verified both embedded initramfs files and rejected the x86_64 ISO when given the AArch64 input. See `foundation/ports-candidate-iso-payload-proof-01`, receipt SHA-256 `cec4ae5654fe6a4c9967fd4d6e45ccf654c11902a0c16fa81eb3ab616037b2be`. For the private x86_64 desktop preview, the worker used the candidate kernel and source-built desktop layer, audited 70 installed packages, and verified the signatures and recipe coverage of 152 seed archives. The ISO payload matched the staged initramfs byte for byte, and a live QEMU KVM boot rendered the desktop at 1024×768 with 35 sampled colors. See `foundation/vpac-preview-amd64-01`, receipt SHA-256 `abf20c0c661261dd4e2950a998ace2717b8151a8980d184226aae321adc2311b`. The preview uses the worker's test signer. The x86_64 ISO proof in `foundation/native-layer-image-01` cold-installed 45 signed packages and audited 7,761 owned files and links and 162 target ELFs. The native layer used five checksum-pinned programs from the November 28 Vinix release. Assembly preserved the signed database, program modes and relative app link. An attempted replacement of the package-owned `usr/bin/pkg` failed before exposing an output root or archive. The worker compared the ISO's embedded initramfs with the staged archive, then booted the ISO in QEMU. The fixture reached registration at 1024×768 and sampled at least 24 framebuffer colors. The receipt SHA-256 is `6cbcbaa46d5642228b8ec8512270916de131968e47dc4776f2e6843d00dbd143`. The cold and staged roots are archived in `foundation/archived-native-layer-proof-roots-01`, receipt SHA-256 `d398eb5cdf41ff6f666a976d4c9e3f23570035a5b8a5e0b6f7d8fb395434e549`. Use `recycled-tar/restore.sh` in the proof directory to recover the original USTAR archive from the checked gzip copy. The recovery receipt SHA-256 is `3ad2c9c703ac8d0494cbd8486808967575ac4f178924e60a76b85f48f5c9fd58`. The separate service build in `foundation/vpac-desktop-services-02` used the SDK extracted from the signed x86_64 release root. Vinix's desktop service builder linked `vinix-session`, `vinix-timesync` and `vinix-service-runner` as static x86_64 ELFs against the source-built GCC and musl packages. The receipt SHA-256 is `68b1094001b212c2ec7996d15dc249ccaec5fc75fa296bbb58cad24f3909c139`. The worker built the x86_64 compositor, desktop services, login programs and Software tools against the signed SDK and staged 76 native files and links over a cold 70-package root. The November 28 release kernel booted that ext2 root in QEMU. The guest checked the source-built program digests, reached graphical registration and sampled at least 24 framebuffer colors at 1024×768. The harness replaced the version-check hook only inside the disposable disk and verified the staged hook's original digest afterward. See `foundation/vpac-desktop-native-amd64-01` and `foundation/release-native-desktop-amd64-01`, receipt SHA-256 `4ecd161061699dbe4364d11c2c6863f7bbf3687a719b291e72c74539ce4a845e` and `3c0c7c289cc76b60200210d00276bd36a3df8f0bd21429a9a1d4aeb047ae6330`. The AArch64 compositor, services, login programs and Software tools also built against the signed SDK. The staged compositor and its `/usr/libexec/vinix-desktop-system` fallback share an inode. QEMU booted the source-built native layer over a cold 69-package release root, checked the expected program digests and reached registration with the watchdog active and at least 24 sampled framebuffer colors at 1024×768. See `foundation/vpac-desktop-native-aarch64-01` and `foundation/release-native-desktop-arm64-01`, receipt SHA-256 `3e611f9b21eeb66537f738543e3da0a7be537194401eba0c5647119142d80bf6` and `5a07a05229796defdf34e15f59a154e9e59b77e4cbd38ecd4096e9968bf90769`. The worker checked 11 x86_64 and 12 AArch64 ELF paths across the two native layers. Each ELF matched the target machine, had no dynamic interpreter, and had congruent load addresses and file offsets for the Vinix page size. See `foundation/source-native-layer-elf-audit-01/elf.tsv`, receipt SHA-256 `312847528c4662f4b1eb75824ae1cab9dd1e4eb8f9f5ab9e8bf738c9c60883ac`. The source-built x86_64 desktop disk, staged root and package cache are recoverable from `foundation/archived-native-desktop-amd64-01/restore-paths`, receipt SHA-256 `dc8245eb5cdc058a7c32f6d9acfc1920ae62dfd80a96bbe901436a84634c3b27`. The checked archive moved to disk-backed storage as recorded in `foundation/offloaded-audit-bundles-03`, receipt SHA-256 `ea9a3cd35d5ba4b177eb9ad14879e883c3aea6c2dd2384aaa5d9971dd9a4b160`. The remaining x86_64 desktop staging directory and both completed desktop builders' temporary directories are in `foundation/archived-desktop-stage-scratch-03/completed-desktop-stage-scratch.tar.zst`. Verify `receipts.sha256` and `archives.sha256` in that directory, then extract from the worker project directory to restore `restore-paths`. The primary desktop proof manifest still verifies in place. The archive receipt SHA-256 is `c1409baf0e34a4d88906922500e0b03fdf2dfc8fa4c216bef0a55dd94ed3d4df`. The AArch64 desktop disk, staged root and cold client are recoverable from `foundation/archived-native-desktop-arm64-01/desktop-guest.tar.zst`. The worker moved the archive to disk-backed storage as recorded in `foundation/offloaded-audit-bundles-04`, receipt SHA-256 `f35251f4fc53ea2a59f802ee610c9db4ffe419f2ddd0a04e283e4961e128bbee`. Restore the archive to the worker before extracting it from the project directory to recover the paths in `restore-paths`. The archive receipt SHA-256 is `c6547584b10663b6ce1b413b55e8045883630836d7547a981afc4fb82fad1693`. ### Assemble release inputs For Vinix's release driver with `--ports-inputs` support, prepare one directory per architecture. Use a signed feed containing both desktop and X11, a cold desktop client, and a second client with X11 installed in addition to the same desktop versions. Pass a native layer built from the selected Vinix source revision and the release signer's independently obtained fingerprint. ```sh python3 tools/release-inputs.py "$arch" "$repo" "$desktop_client" "$desktop_x11_client" \ "$native_layer" "$auditor" "$release_inputs/$release_arch" \ "$fingerprint" "$vinix_commit" "$release_tag" --archive-coverage "$coverage" \ --prepared-x11 "$sidecar_directory" ``` Use `amd64` or `arm64` for `release_arch`. The tool checks the native desktop and login ELF targets, rejects collisions with files from either installed client, requires the signed seed to contain the installed versions from both clients, and adds the release tag to the initramfs. It writes the initramfs, X11 overlay, build info and checksum files together. The ISO driver checks the checksums and build info against its selected release before building the kernel. Pass `--prepared-x11` if `tools/bundle-x11.py` already assembled the sidecar from these clients. Release assembly copies the checked archive, verifies its checksum and compares its uncompressed payload against the audited files, modes and links from both clients. Omitting the option builds the sidecar during release-input assembly. The worker replayed sidecar reuse with symlinks and hard links, rejected a changed checksum and a same-size payload change, and staged the signed three-package seed on both architectures. See `foundation/ports-prepared-sidecar-proof-01`, receipt SHA-256 `94e083bbc5db1cfe2a5ff191fee163043288a3dc574434d0e1a8fce3fac5175f`. `python3 tests/release-inputs.py` covers the output format and wrong-architecture rejection. The worker also confirmed the tag in a signed test initramfs and rejected a second client requiring a package missing from the signed seed. See `foundation/ports-release-inputs-contract-02`, receipt SHA-256 `75e7b4ae23a4f0ea27f93dfd740d37d1ed3abc4cfbea906ec957186c65a1e543`. The candidate uses `--archive-coverage` with the complete scan from `tools/release-archives.py`. The stage tool matches the version, archive name and digest from the signed index to a verified source archive for every seeded package. The worker staged three exact packages on each target, rejected a correctly signed older x86_64 musl archive, and rejected an AArch64 musl digest mismatch. Both failures stopped before exposing an initramfs. See `foundation/ports-seed-archive-proof-02`, receipt SHA-256 `6cbe4c5c50067e318e182c0a5b936b51cf1760cc0aaa1672a9e570d12da9afc0`. The full amd64 candidate inputs passed the release driver's input checker for Vinix revision `9faf6dd8` and release tag `vinix-ports-candidate-20261130`. The prepared initramfs contains the 70-package installed desktop and the 152-package signed offline feed. Its SHA-256 is `aa79953561b17e7fbf6342fbb7cf20d557ab8a2f030801daefca6d2c5b0074e6`. See `foundation/ports-candidate-inputs-01/amd64`, receipt SHA-256 `f5459f55895f3f348b36e0864a3d46872f7642c688a52b20af64edc59882e83b`. The matching arm64 inputs passed with a 69-package installed desktop and 152 signed offline packages. The prepared initramfs SHA-256 is `e0e73713401c4706ff3d316b545010993c7cd291c5d9b5ef03d67ae0a700185a`. See `foundation/ports-candidate-inputs-01/arm64`, receipt SHA-256 `2f407d9b90413f0648bb44a0a443a8a22bb9a1555cfd1652d93d40a37a7c12fd`. Run the closure check against the matching source plan and the already audited clients. It checks every seed version and archive digest against the verified source coverage and compares both installed version sets with the planned runtime dependencies. ```sh python3 tests/release-runtime-closure.py "$plan" "$coverage" "$repo/packages.tsv" \ "$desktop_client" "$desktop_x11_client" "$report" ``` Both cold installs match their respective 70-package or 69-package desktop closure and the 138-package desktop and X11 closure. Each signed offline feed carries the complete runtime closure and 14 extra packages. The six other verified outputs are `busybox-bootstrap`, `elfutils`, `encodings`, `pkgconf`, `spirv-tools` and `util-macros`. The five with Alpine counterparts had no file matches in the published image or sidecar inventory. The worker rejected a missing X11 metapackage, a changed seed digest and a desktop-only client supplied for the X11 root. See `foundation/release-runtime-closure-01`, receipt SHA-256 `b82a76b60a01c45712d34823d033ebba793d5cd7ddad96540a7cba9ce99e8c18`. The worker independently rechecked both refreshed test feeds for `vinix-ports-candidate-20261201` against the pinned test signer. In each feed, both index signatures and all 152 detached package signatures verified. The two indexes agreed on package records, the embedded signatures matched the detached files, and every archive's version and SHA-256 matched the source build inventory. See `foundation/release-mode-migration-feed-recheck-01`, receipt SHA-256 `b119ef96cabcfe3c1a64de081e0b2af1b88a74914c47ec72c15c3e5a0ce9125a`. The x86_64 desktop and desktop-plus-X11 clients passed musl's relocation check for 150 and 190 executables, respectively. Run `tests/exec-linkage.py` with `--proot` and `--fixed-address-report` against each client using the installed-root auditor that handles metapackages. See `foundation/release-final-amd64-linkage-02`, receipt SHA-256 `fd16a5321add5f9c8fb0411548267b279a6c53f0d39439763c170b1ace45067a`. All 24 fixed-address GCC program paths started directly in each client. The version probes returned zero for 22 paths. The two helpers returned their command-line diagnostics for missing compiler environment or generator inputs. The desktop client's GCC then linked two translation units with `-O2 -flto`, invoking `lto-wrapper` and `lto1`, and the linked program returned zero. See `foundation/release-final-amd64-fixed-exec-01` and `foundation/release-final-amd64-lto-01`, receipt SHA-256 `a3db878e21d551d101c36086f06302ef27cb130223340eb8b1147c409705f2af` and `3bf7c01dd311e51781ebf27fde1e5c170a7a2645707e2b6864989122a280a4a8`. The AArch64 desktop and desktop-plus-X11 clients also passed the loader check for 150 and 190 executables in QEMU user mode. The worker generated the program lists with `tests/exec-linkage.py --fixture` and ran each client’s musl loader with QEMU’s `-L` set to that client root. See `foundation/release-final-arm64-linkage-02`, receipt SHA-256 `2c27ea80fd2fe0978cb4a3eee7019f8655c44b519c92f46fa3c88cf1c3aa60a0`. On the refreshed signed roots, the same loader checks relocated 150 dynamic executables in each desktop profile and 190 in each desktop-plus-X11 profile. See `foundation/release-mode-migration-linkage-01`, receipt SHA-256 `f0156b485e0fe917d428559cdb89758c4da75605cd771c8d3f17641dd11dea79`. The final x86_64 desktop client passed the expanded `tests/toolchain/Makefile` LTO fixture. It ran `gcc-ar`, `gcc-ranlib` and `gcc-nm` on an archive containing an LTO-only object, verified the archive member and `fill_rows` symbol, then linked and ran the program. See `foundation/release-final-amd64-gcc-wrappers-01`, receipt SHA-256 `1586a6eb39c3ba58f141a1845bd9197cdf5f1afdee5e7b9cc5c9213041d957e6`. The AArch64 `gcc-ar` probe requires a full guest check. In QEMU user mode with `-L`, `newfstatat` found the packaged LTO plugin, then `faccessat` returned `ENOENT` for the same path. The probe saved both calls and the installed plugin checksum. See `foundation/release-final-arm64-gcc-wrapper-path-01`, receipt SHA-256 `7f906221129b4798c60f84052b0ef18f36e6ab25a138a735849555930ab0e576`. The worker stores each prepared input directory in `inputs.sqfs`. It compared every file byte for byte with the original on a read-only mount and rechecked `inputs/SHA256SUMS` before freeing the raw copies. To replay without a mount, verify `compact-filesystem.sha256`, unpack the image with `unsquashfs -d "$output" inputs.sqfs`, and verify `SHA256SUMS` in the extracted directory. The compact storage receipt SHA-256 values are `66f093bc6d841c3d2593b02307fa7039551b249cedc1d5d314ae5c3486b624e0` for amd64 and `043fee4d6dea91c3c277dc62ee28cfe95c4c8ce5aa4431fe7a03587efef3bc61` for arm64. Both full release ISOs passed the streamed comparison against their respective prepared initramfs files, including the image identifiers. The candidate manifest lists SHA-256 `57f8d17a7bcbd675113b121e9f2234954b6c8c0cef7de226e702e22423882515` for `vinix-amd64.iso` and `c918af6fa4006eddd44ba6eaf69f66f79b4b7351c22c9c95f2b95cbf0df4d3f4` for `vinix-arm64.iso`. See `foundation/ports-candidate-embedded-inputs-01`, receipt SHA-256 `9dc3c348677731c6fea75093f39453b3961d4d08c008363a48458c925d34b75f`. The refreshed ISOs use the clean desktop roots from the updated signed feeds. Both embedded initramfs files matched the prepared inputs and contain the public compiler directories and `vinix-pkg` permission migration. The ISO SHA-256 values are `cec1969a3bb048b2196d562a7e51785f72d4d96e3e9271992f3ebfd26a26784d` for amd64 and `6a00c11c4885f3e016e10aada37c3302628a7fd9b5fc38d7e7d831c1ac4e866c` for arm64. See `foundation/release-mode-migration-images-01`, receipt SHA-256 `447cd2c0f8c4129ad52a10a1124bde821ed80458cd2a116b403d2ab5d2125b6f`. The refreshed amd64 ISO passed the plain QEMU desktop check at 2 GiB. The first-run dialog rendered with a visible cursor and responded to keyboard and relative pointer input. The worker checked the ISO before and after the boot. See `foundation/release-mode-migration-amd64-live-01`, receipt SHA-256 `bdb3eef07dcbb2ba4f9f4eff2474e282fe66c280ddc2fb0e6dd994a84b184d39`. The refreshed amd64 ISO installed onto a blank SATA disk in QEMU and reached the desktop with all 14,442 initramfs entries extracted. The test harness verified a complete GPT and Vinix system partition. The same disk booted with the ISO detached under UEFI and BIOS. All three guests reached 1024×768 and responded to keyboard and pointer input. See `foundation/release-mode-migration-x64-sata-01`, receipt SHA-256 `dfdfe49b5efbc67c174024cde4ea43434e3cc3b6b0f6fe5058045bd09f815657`. The refreshed amd64 ISO also passed the UEFI erase-and-install case on a prepartitioned NVMe disk. The harness verified the new GPT and Vinix system partition. The NVMe disk booted with the ISO detached, and both guests reached the desktop and passed keyboard and pointer checks. See `foundation/release-mode-migration-x64-nvme-01`, receipt SHA-256 `70306ef796f88806e679d1a325a2b2b37cd94faea11fa3fa8bb753cca9195813`. The refreshed ISOs passed all ten official QEMU checks. AArch64 completed the virtio install, booted from the installed disk with the ISO detached, and reached the desktop from USB. Each case verified keyboard and pointer input. The worker checked the release assets before and after the full matrix and saved the serial logs and framebuffer captures in `boot-evidence.tar`. See `foundation/release-mode-migration-boot-matrix-01`, receipt SHA-256 `90d9893724186b2bc0fe907689b0f284b1025f18371b4199c251a1b31c8b4429`. The original amd64 ISO passed the plain QEMU live boot at 2 GiB, including cursor movement and keyboard input in the first-run dialog. The first run reached decompression at the 180-second deadline. The replay used the 900-second desktop wait from Vinix commit `ba1b76ac`, checked the same ISO before and after the boot, and recorded the serial log and five framebuffer captures. See `foundation/ports-candidate-default-qemu-retry-01`, receipt SHA-256 `2777f90db13d2e274e803e074902e295e8aeb1320a4439c90e217a1f7d719dc9`. In the first amd64 matrix, BIOS live boot reached the desktop and passed the keyboard and pointer checks. The SATA UEFI installer reached at least 4,200 of the 14,438 initramfs entries before the 1,200-second test deadline. The worker sampled the serial log, allocated disk bytes and QEMU block counters during that run. See `foundation/ports-candidate-amd64-uefi-progress-01`, receipt SHA-256 `b44c2fda2fabb2148b3484b673cc1736cddd0b2887f13c17f1b796aa9b83b25e`. The longer installer replay uses the same release ISO and keeps the disposable disk in worker memory for the install and subsequent disk-only boots. The NVMe erase-and-install case reached at least 12,000 entries before the same deadline. The test detected the unfinished installation and did not attempt the disk-only boot. See `foundation/ports-candidate-amd64-nvme-progress-01`, receipt SHA-256 `f715fb705f6890f82a578b0a31a211c51a0d95f8fb009bb6c2abaa7293226098`. The first arm64 boot faulted while reading `ICC_SRE_EL1`. The worker resolved the saved exception address against the kernel extracted from the candidate ISO. Vinix commit `45cad82a` makes the arm64 test request GICv3, matching the normal arm64 QEMU launcher. The same ISO then passed GIC initialization in a 2 GiB smoke boot. See `foundation/ports-candidate-arm64-gic-02` and `foundation/ports-candidate-arm64-gic-smoke-01`, receipt SHA-256 `303c911d500ecb4ae349c92b39330a4594441478b22e4cb71630e6d8c41cf070` and `b1a156944a3fa8e1090fd6348a07ea57c2a1eaa6daf4908620d2b63856611f36`. The original arm64 ISO then passed the full QEMU virtio install, disk-only boot and USB live boot. All three reached the desktop at 1024×768 and passed keyboard and pointer checks. See `foundation/ports-candidate-installer-replay-01/arm64`, receipt SHA-256 `1fa7b9defc0b2b3539430de072caf3af1f0d5a9d3ddd308485b514efd8cd037f`. The worker verified the replay's scratch storage under `/dev/shm`. Its sparse 4 GiB raw QEMU disk initially allocated 4 KiB. A 64 MiB write was flushed, reopened read-only and compared to the written pattern. See `foundation/ports-candidate-installer-tmpfs-proof-01`, receipt SHA-256 `84d6b029d0f7817bd93662d091fcf1a59356903e3ff6d8c5106b64689f02d3a7`. The AArch64 sidecar preflight used the release driver's SDK extraction list and a signed Vinix musl and GCC SDK to build the static iOS runner from Vinix commit `01665ff6`. The worker reused the cross-compiled mbed TLS archive for the final link. The runner's four ELF load segments passed the 16 KiB congruence check, and `qemu-aarch64` ran `run-ios --help`. See `foundation/ports-candidate-ios-sdk-01`, receipt SHA-256 `b5130a6c933a169dfbd3951e3f015be9bbefd6143f368c7e8813f2e3ee3f83ba`. The release driver built the final arm64 runtime with the SDK from the prepared initramfs. The worker verified the asset's checksum, static ELF linkage and 16 KiB segment congruence, and ran its `--help` through QEMU user mode. See `foundation/ports-candidate-ios-output-01`, receipt SHA-256 `6311034fef24a706e9f7a57f3d08c6a7f54543e2d11b428b0a9884e1aa24e1cb`. The candidate release worktree built and linked both Vinix kernels with the Makefile from `6e4cb463`, using two compile jobs. The worker checked the two ELF machine types and hashed both binaries before ISO assembly. See `foundation/ports-candidate-kernels-01`, receipt SHA-256 `deef1918e5124396283aa9ac23ca1e0f8e461d2618d878b7da46b812d463e9b2`. The worker saved both preflight kernel binaries before the release driver reused the build directories. Verify the frozen copies with `binaries.sha256` in `foundation/frozen-candidate-kernels-01`, receipt SHA-256 `342df0a4fddd60b3b188d6ad4b7eb818ba4068f13fb8434184677f089fee0f68`. The candidate kernels also booted QEMU fixture ISOs assembled with the pinned November 28 Limine binaries and the previously signed BusyBox HTTPS roots. The worker compared the kernel and fixture bytes in each boot tree and verified that both HTTPS fixtures passed. See `foundation/ports-candidate-kernel-https-01`, receipt SHA-256 `80b984851d93b2dcb6c8072958a328e7b4471b180bf221be9f84b8df0f51b6ef`. Vinix commit `9faf6dd8` makes these prepared inputs the default for `scripts/deploy-iso.sh`. The real release driver passed the focused fixture's two-architecture handoff, amd64 build-only, malformed X11 checksum, oversize X11 bundle and concurrent assembly cases with local stubs. Run `tests/packages/iso-release-assets-check.v` with `--ports-inputs` to replay the targeted cases. See `foundation/ports-default-release-fixture-01`, receipt SHA-256 `9e7789e0e945485c64751c86065e3c2ea9863bd69e2de745c280083d8f646376`. The candidate release worktree built the AArch64 Limine 12.9.3 EFI loader from the pinned source with the Vinix base-revision patch. It also checked the pinned AMD64 EFI loader and shared UEFI CD image. See `foundation/ports-candidate-limine-01`, receipt SHA-256 `ff2570d381a5b5968984cea25676f30664c9efeae6167b2b171ac0cd120f904a`. To publish only the runtime closure selected by the release plan, use `tools/release-feed.py` with the matching `coverage.tsv`. It follows runtime dependency edges and rechecks every planned archive's version and SHA-256 before signing. The worker cold-installed `busybox-init` by name from this feed and audited six packages, 832 owned paths and 15 ELFs. The same test refused an incomplete X11 closure and a changed archive digest before creating either repository. See `foundation/exact-release-feed-proof-01`, receipt SHA-256 `e50d2c759f1e0045a9ef6e42522e02e6de4cfd03d9f51d6b5d6045d23d5cbdc3`. ```sh python3 tools/release-feed.py "$arch" "$worker" "$plan" "$coverage" \ "$key_state" "$repo" vinix-release-desktop ``` On both targets, the worker installed musl and the public key package, then assembled a three-package offline repository. Using the build-box vpac with its paths directed into each resulting image, it installed the third package, `netbase`, from the embedded repository and recorded its ownership in that image. The logs are in `foundation/offline-stage-01` with receipt manifest SHA-256 `98bfcbdaed3aa81690bcdac5a8b0edbdfd91f5ab6ae8a7cc9f3fdd50e6252fb1`. Changing the netbase archive after signing caused assembly to fail its signed index checksum check before exposing the output root. The rejection log in `foundation/offline-stage-rejection-01` has receipt manifest SHA-256 `e15be9b8ba76c5c115a622e7fa57997c1bcb9ca99a3319e18b3daf489ecc3c8d`. The installed-root auditor checks each nonempty ELF load segment against the released kernel page size, 4 KiB on x86_64 and 16 KiB on aarch64. It also checks required symbol-version namespaces against the actual resolved package-owned provider using GNU readelf and objdump. The 106-package x86_64 root and the corrected arm64 loader passed. An old arm64 BusyBox failed its segment congruence check. An x86_64 libcrypto with its original SONAME and a changed version tag failed the OpenSSL consumer check. See `foundation/load-and-versions-02`, receipt SHA-256 `fd32f6b69db215ff6b79ec1f58c8457cf7f514dd162fbde410d9f6882072b979`. Use `tests/exec-linkage.py` as well to exercise actual dynamic symbol resolution. Run the target vpac binary on the release kernel with `python3 tests/vpac-guest.py "$arch" "$repo" "$test_keys" "$fingerprint_file" "$update_receipt" "$auditor" "$boot" "$iso" "$output"`. Use a signed initial feed containing netbase and CA bundle release 2 and pass the receipt for CA bundle release 3. The guest has no network interface. The fixture tests a same-length package modification, authentic installation, local and remote lookup, and a signed in-place upgrade. Pass `--scenario install` or `--scenario upgrade` to replay either operation on a fresh copy of the same image inputs. The runner defaults to 720 seconds under QEMU TCG. `VINIX_QEMU_TIMEOUT` overrides that limit in seconds. Set `VINIX_QEMU_ACCEL=kvm` when the host matches the guest architecture and the worker can open `/dev/kvm`. For the public `pkg` command, install `vinix-pkg`, `busybox-init`, `vinix-keyring`, `vinix-accounts` and `vinix-filesystem` from a signed feed that also contains `netbase`. Stage the installed root under `umask 077` and boot it using `python3 tests/disk-root.py "$arch" "$image/root" tests/userland/pkg.sh "$iso" "$boot" "$output"`. The x86_64 guest refreshed the signed seed index, looked up an exact name and an unmatched prefix, installed `netbase` with signature validation, checked file ownership, and removed the package. The worker verified 41 signed installed records and a 43-package seed. The directory and index modes allow the unprivileged downloader to read the seed and reach its sync work directory. The GnuPG home has mode 0700. See `foundation/vinix-pkg-guest-02`, receipt SHA-256 `695cd4c4b62a2554363b733683985ea7d655bc848e24ecec7368a944eb551c47`. Run `vpac-guest.py` with `--scenario upgrade --package-command pkg` to exercise the public upgrade path. The initial feed needs `vinix-pkg`. Pass `--staged-root "$image/root"` to reuse a clean staged image from the same signed feed on the build volume. The x86_64 replay upgraded the CA bundle to `20261020-3` and checked the signature validation record, the new certificate link and its owner. The original staged root retained release 2. The runner rejected a staged root with a different signed database before creating a guest image. See `foundation/vinix-pkg-upgrade-01` and `foundation/vinix-pkg-upgrade-mismatched-root-01`, receipt SHA-256 `efa7b96701b2f2aeb7afd3ac8398adb3859b818d1dbf90efc1856e44f9059038` and `b670332301bc1005b8dff21a1a6e4342147015a9e6723da2e0b09ddd35f3fe7b`. Add `--upgrade-https` to serve the signed update on guest loopback TLS and switch the disposable guest's vpac repository URL to that endpoint. The fixture uses the packaged curl and OpenSSL, and the upgrade checks vpac's signature validation record with the normal package and database signature requirements enabled. With `--signed-update "$previous_update_feed"`, the runner compares the existing signed package against the build receipt before staging it and its indexes. The first x86_64 HTTPS run installed the signed update on the candidate kernel. Its test disk and roots can be restored using `replay.sha256` and `restore-paths` in `foundation/ports-candidate-https-upgrades-02/amd64`, archive evidence SHA-256 `a9835ee287eaca1832782f70d46c4a59438751230a7955178b1bd41cfde7679f`. Both candidate kernels passed the signed upgrade over HTTPS with the fixture CA installed by subject hash. The peer certificate trust was separate from the CA package being upgraded. See `foundation/ports-candidate-https-upgrades-03`, receipt SHA-256 `f4024926fd2ed4666f73fd7c0b65ef5b2e20771ee2a2904c97be0fa7eb25ee33`. The original ext2 files from `vinix-pkg-guest-01`, `vinix-pkg-upgrade-01` and `vpac-transaction-08` are compressed in `foundation/archived-pkg-fixture-disks-01`. Its `restore.tsv` gives their original paths, uncompressed checksums, modes and timestamps. Restore each needed file with `zstd -d --sparse` before rerunning its disk receipt checks. Each expanded archive matched the original checksum before relocation. The archive receipt manifest has SHA-256 `c5b49fbb69cddfe2fcb3828cd1b7316d48b4f1ef90a155fa369f2ba63a32bbf9`. To exercise the original release binaries against the installed libraries on a worker of the same architecture, run `python3 tests/exec-linkage.py "$arch" "$client" "$auditor" --proot "$proot" --release "$archive" "$sha256" "$report"`. The probe binds one original executable over its guest path and runs the installed musl loader with `--list`. A negative control changed a library import in the original input and verified that the installed loader diagnosed the changed SONAME. In the 129-package x86_64 root, 52 of 95 dynamic image executables relocated, 27 reported failures and 16 fixed-address executables needed direct execution. Twelve of 17 X11 sidecar executables relocated. See `foundation/release-binary-relocation-02`, receipt SHA-256 `8483666ef4294f1ac5d44c1eb637a8f5200be4e613e635d835ef4f86e7ffa37b`. Directly starting the release `cpp` and `cc1` in that root expanded `__SIZEOF_POINTER__` to 8. See `foundation/release-original-exec-02`, receipt SHA-256 `b9f1659e4669df9f3d4aeddea37fd9b85abc40f9d55045fff1fc7096f091a209`.