From e1717a28fa8ef246a4fe1bccf02d897c7dd88e7a Mon Sep 17 00:00:00 2001 From: Phoebus Date: Mon, 28 Sep 2026 11:46:27 -0700 Subject: [PATCH] docs(evidence): record run 15 golden reinstall and boot --- docs/CHANGELOG.md | 15 ++++++++++++++ docs/HANDOFF.md | 14 +++++++------ docs/STATUS.md | 6 +++--- docs/VM-BOOT-VERIFICATION.md | 38 ++++++++++++++++++++++++++++++++++++ 4 files changed, 64 insertions(+), 9 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index e73aea7..d0ac7a3 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -5,6 +5,21 @@ this file is the curated, human-readable summary. ## Unreleased — Fast defaults with user-controlled source builds +- **Pristine reinstall + full boot acceptance (Run 15, 2026-09-28).** + Rebuilt static binaries from HEAD and reinstalled clean on a fresh + disposable 80 GiB VM: `INSTALL-RC=0`, no secret leak, 347/347 desktop + packages, detached boot (systemd running, 0 failed units, seatd active), + `sys-acceptance.sh` 40/40, Nix per-user enumeration green + (`nixpkgs#hello` as `phoebus` → `sys list --nix` reports + `hello 2.12.3 [per-user:phoebus]`), and live `sys ask` green + (`AI_LIVE_RC=0`, valid plan + approval digest from + `opencode-go/muse-spark-1.3-contributor` via the guest loopback tunnel). + Fixes since run 13, all unit-tested: nix integration permissions + normalized after all bootstrap writes (`/nix` traversable, `/etc/nix*` + world-readable), opencode backend defaults to the `Local` adapter kind, + serial driver matches the zsh `❯` prompt, `NO_EQUALS` for check markers + under zsh, setsid acceptance (polkit tty hang), tunnel `settimeout(None)` + for slow model replies. - **Headless dual-target stabilization & detached boot proven (Run 13).** Completed full 12-stage non-interactive headless installation on an 80 GiB disposable VM (`phoebus-headless-80g.qcow2`) without touching host disks. diff --git a/docs/HANDOFF.md b/docs/HANDOFF.md index 9990c56..76efeb0 100644 --- a/docs/HANDOFF.md +++ b/docs/HANDOFF.md @@ -55,12 +55,14 @@ commit it. It should be short and current; use `git log` for detail. the nix file-perm fix (`c806c98`), opencode Local default (`2261c54`), zsh-prompt + equals fixes, setsid acceptance, and the guest loopback tunnel (`fwd.py`, with the `settimeout(None)` long-reply fix). -- **Run 15 (IN FLIGHT):** `bc0c4b8` moves the nix normalize AFTER all - bootstrap writes (run 14 proved `/etc/nix*` stayed root-only: normalize - ran before the files existed). Driver pid 741077, serial dir - `serial-install-20260928T132731Z-b5f8629a`, chain pid 750063. Run 14 - otherwise fully green: INSTALL-RC=0, 40/40 acceptance, seatd active, - AI_LIVE_RC=0 (valid plan + digest from muse-spark-1.3-contributor). +- **Run 15 (COMPLETE GOLDEN, 2026-09-28):** `INSTALL-RC=0` (driver 4/4, + serial `serial-install-20260928T132731Z-b5f8629a`), no leak; detached + boot driver 4/4 (`serial-boot-20260928T183131Z-953e4677`: systemd + running, 0 failed, seatd active, clean poweroff); 40/40 acceptance; nix + per-user hello enumerated from install perms alone (`/etc/nix*` + world-readable — the `bc0c4b8` ordering fix proven); `AI_LIVE_RC=0` + (valid plan + digest, muse-spark-1.3-contributor). Evidence in + VM-BOOT-VERIFICATION.md / STATUS.md / CHANGELOG.md. Next: publish. - **Seat/thunderbird/AI-timeout session (IMPLEMENTED + UNIT-TESTED, VM NOT RUN):** P0 seat fix (seatd pkg + enabled before greetd, libseat systemd/builtin/ server USE, `seat` in default groups, greeter `-G video,input,render,seat`, diff --git a/docs/STATUS.md b/docs/STATUS.md index 039f7eb..695beab 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -96,7 +96,7 @@ Booting that recovery entry offline remains a manual gate. | AI guided install (DeepSeek/OpenAI) | yes | yes | fixture path only (no live call) | n/a | | AI privacy boundary (facts only) | yes | yes | no | n/a | | AI OS sandbox (systemd hardened unit) | yes | yes | no | no | -| Installed assistant (`sys ask`) | yes | yes | fixture path only (no live call) | n/a | +| Installed assistant (`sys ask`) | yes | yes | yes (live call 2026-09-28: `sys ask "list installed packages"` via `--ai-backend opencode` to host `opencode serve` through a guest loopback tunnel, model `opencode-go/muse-spark-1.3-contributor`, valid Assistant Plan + approval digest, `AI_LIVE_RC=0`; the `show system status` phrasing elicits schema-noncompliant JSON from this model and is fail-closed rejected) | n/a | | Resolved package effects + approval binding (carried through execution) | yes | yes (empty vs unestablished; drift + prior-step allowance) | no | n/a | | Privileged approval ledger (replacement/replay/concurrency/interruption) | yes | yes (privileged entry point) | no | n/a | | Canonical digest recomputed at the privileged boundary (all plan kinds) | yes | yes (adversarial: swapped action resealed, every kind) | no | n/a | @@ -134,7 +134,7 @@ Booting that recovery entry offline remains a manual gate. | Installed-package inventory (`sys list`, all lanes, `--legacy`) | yes | yes (VDB/Flatpak/Snap/AppImage; **Nix active-profile packages** vs generations/store; custom ebuild never double-counted) | yes (VM read-only group) | no | | Package information (`sys info`, `--legacy`) | yes | yes (installed/available, version/deps/size/provenance; ambiguity flagged) | yes (VM read-only group) | no | | Cross-source update check/apply (`sys updates`, `apply updates`) | yes | yes (exact per-source transactions with full Flatpak commits/snap revisions, pinned and revalidated; manual/project-specific refused) | Flatpak verified in VM (reviewed ref+commit, pinned update, verified); direct Snap refresh with no newer revision VM-verified, exact Snap apply-updates transaction unit-tested only; Portage verified | no | -| Nix active-profile inventory (`sys list --nix`) | yes | yes (manifest v1/v2/v3; scope; generations vs store) | yes (NIX_ENABLED=yes install: real `nodejs-slim` profile listed and filtered; a re-run correctly reported a dangling profile. **2026-09-26 on the fresh unpinned install**: bootstrap present (`/nix/store` populated, `default` link valid, `nix 2.24.9` runs); `sys list --nix` truthfully reports the base system profile has no package manifest. GC-dangling repro: `nix-collect-garbage` is not on root's PATH; user-level install/GC repro attempted — see VM evidence) | no | +| Nix active-profile inventory (`sys list --nix`) | yes | yes (manifest v1/v2/v3; scope; generations vs store) | yes (NIX_ENABLED=yes install: real `nodejs-slim` profile listed and filtered; a re-run correctly reported a dangling profile. **2026-09-26 on the fresh unpinned install**: bootstrap present (`/nix/store` populated, `default` link valid, `nix 2.24.9` runs); `sys list --nix` truthfully reports the base system profile has no package manifest. GC-dangling repro: `nix-collect-garbage` is not on root's PATH; user-level install/GC repro attempted — see VM evidence. **2026-09-28 run 15**: modern XDG per-user profiles enumerated — `nix profile install nixpkgs#hello` as `phoebus` into `~/.local/state/nix/profiles/profile`, `sys list --nix` reports `hello 2.12.3 [per-user:phoebus]` with 824 store paths noted separately; installer now normalizes `/nix` + `/etc/nix*` permissions so unprivileged clients work) | no | | Catalogue maintenance (`depclean`, `clean cache`, `owners`, `deps`/`rdeps`) | yes | yes (structured depclean effects; cache-cleanup dry-run review + failure propagation; VDB dependency metadata) | yes (VM: depclean + cache-cleanup journeys; deps read-only) | no | | AI-default catalogue routing (source flags constrain, never bypass) | yes | yes (investigation loop, full backend classification + optional-backend rewrite, fallback offers exact `--legacy` command) | yes (read-only routing cases) | no | | Alternate-root catalogue/update/maintenance rooting | yes | yes (chroot for Portage/Flatpak/Nix; Snap refused; recording-runner no-host-command tests) | yes (VM: alternate-root Snap refused) | no | @@ -153,7 +153,7 @@ Booting that recovery entry offline remains a manual gate. | `TargetRoot` symlink-escape guard | yes | yes | n/a | n/a | | OpenCode server capability probe | yes | yes | real host probe + auth + policy | n/a | | OpenCode proposal adapter (real inference) | yes | yes | real model (`deepseek-v4-flash`) | n/a | -| OpenCode in GUI / CLI / `sys ask` | yes | yes | GUI AI step + `sys ask` live | n/a | +| OpenCode in GUI / CLI / `sys ask` | yes | yes | yes (GUI AI step; `sys ask` live 2026-09-28 via opencode backend + muse-spark, valid plan + digest) | n/a | | OpenCode full graphical install | yes | yes | yes (12 stages, 174 packages, detached boot) | n/a | | GUI readiness refresh / AI revalidation / keyboard nav | yes | yes (Rust) | VM harness regressions | n/a | | Mandatory AI requires a validated interaction | yes | yes | bridge + CLI | n/a | diff --git a/docs/VM-BOOT-VERIFICATION.md b/docs/VM-BOOT-VERIFICATION.md index f5d3b0a..51307c0 100644 --- a/docs/VM-BOOT-VERIFICATION.md +++ b/docs/VM-BOOT-VERIFICATION.md @@ -1134,3 +1134,41 @@ detached boot verification with the live ISO removed. - **A separate physical computer for the OpenCode transport test is NOT available**; that check is BLOCKED. The forwarded-hop and unauthenticated-LAN-refusal tests are host-local. + +## Run 15 — pristine reinstall with all fixes + full boot acceptance (2026-09-28) + +Disposable 80 GiB qcow2 `phoebus-headless-80g.qcow2`, 8 vCPU/8 GiB, headless +(`-display none`, serial stdio). Static binaries from HEAD +(`phoebus-installer` `183ec40b…`, `sys` `d5f7a46f…`). + +- Install: `serial-install-20260928T132731Z-b5f8629a`, + `===INSTALL-RC=0===`, `NO_SECRET_LEAK`, driver `PASS=4`. All 12 stages, + 347 desktop packages, finalize VDB check green. +- Detached boot: `serial-boot-20260928T183131Z-953e4677` (ISO detached, + `-boot order=c`), driver `PASS=4` (disk, login, systemd-running, + clean-poweroff). `cat /proc/1/comm` → `systemd`, + `systemctl is-system-running` → `running`, 0 failed units, + `seatd.service` active, `/run/seatd.sock` present (group `seat`), + `phoebus` in groups incl. `seat`. +- `sys-acceptance.sh`: `SUMMARY PASS=40 FAIL=0` (run detached from the + console tty via `setsid` so a polkit appstream-refresh prompt cannot + block it; direct `flatpak list` on a console still asks once, as designed). +- Nix per-user enumeration (the `active_profile_links` fix): with the + installer-side permission normalize in place, `/etc/nix/` is + `drwxr-xr-x`, `nix.conf`/`nix.sh` are `-rw-r--r--`, `nix profile install + nixpkgs#hello --profile ~/.local/state/nix/profiles/profile` succeeds + (hello 2.12.3 from cache.nixos.org), and `sys list --nix --legacy` + reports `legacyPackages.x86_64-linux.hello 2.12.3 [per-user:phoebus] + (installed)` with 824 store paths noted separately. +- Live AI (`AI_LIVE_RC=0`): `sys ask "list installed packages" + --ai-backend opencode --opencode-server http://127.0.0.1:4096 + --opencode-provider opencode-go --opencode-model + muse-spark-1.3-contributor` reached the host `opencode serve` through a + guest loopback tunnel (`fwd.py`, required by the transport's + plain-http-to-loopback-only policy) and returned a valid Assistant Plan + with approval digest `ea23c64b…` (907 Portage results from evidence). + Note: the `show system status` phrasing elicits schema-noncompliant JSON + from this model (fail-closed rejection works); the inventory phrasing is + the verified gate. The tunnel needed `settimeout(None)`: `create_connection` + leaves its timeout on the socket and killed replies slower than 30 s + (curl exit 52).