Compare commits
4 commits
bdec0bdfe8
...
e1717a28fa
| Author | SHA1 | Date | |
|---|---|---|---|
| e1717a28fa | |||
| 385962ab69 | |||
| bc0c4b8b2c | |||
| 030e87edf5 |
5 changed files with 79 additions and 8 deletions
|
|
@ -5,6 +5,21 @@ this file is the curated, human-readable summary.
|
||||||
|
|
||||||
## Unreleased — Fast defaults with user-controlled source builds
|
## 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).**
|
- **Headless dual-target stabilization & detached boot proven (Run 13).**
|
||||||
Completed full 12-stage non-interactive headless installation on an 80 GiB
|
Completed full 12-stage non-interactive headless installation on an 80 GiB
|
||||||
disposable VM (`phoebus-headless-80g.qcow2`) without touching host disks.
|
disposable VM (`phoebus-headless-80g.qcow2`) without touching host disks.
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,21 @@ commit it. It should be short and current; use `git log` for detail.
|
||||||
`brave-browser`) and Flatpak (`calibre`, `gimp`, `flatseal`). Acceptance
|
`brave-browser`) and Flatpak (`calibre`, `gimp`, `flatseal`). Acceptance
|
||||||
suite passed 40/40.
|
suite passed 40/40.
|
||||||
- **Next:** `scripts/publish.sh` to push commits to `origin/main`.
|
- **Next:** `scripts/publish.sh` to push commits to `origin/main`.
|
||||||
|
- **Run 14 (IN FLIGHT, pristine record with all fixes):** new static
|
||||||
|
binaries from HEAD (`phoebus-installer` `183ec40b…`, `sys` `d5f7a46f…`);
|
||||||
|
driver pid 2485744, serial dir
|
||||||
|
`serial-install-20260928T091251Z-8e9c8076`, chain pid 2494536. Includes
|
||||||
|
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 (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):**
|
- **Seat/thunderbird/AI-timeout session (IMPLEMENTED + UNIT-TESTED, VM NOT RUN):**
|
||||||
P0 seat fix (seatd pkg + enabled before greetd, libseat systemd/builtin/
|
P0 seat fix (seatd pkg + enabled before greetd, libseat systemd/builtin/
|
||||||
server USE, `seat` in default groups, greeter `-G video,input,render,seat`,
|
server USE, `seat` in default groups, greeter `-G video,input,render,seat`,
|
||||||
|
|
|
||||||
|
|
@ -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 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 privacy boundary (facts only) | yes | yes | no | n/a |
|
||||||
| AI OS sandbox (systemd hardened unit) | yes | yes | no | no |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| `TargetRoot` symlink-escape guard | yes | yes | n/a | n/a |
|
||||||
| OpenCode server capability probe | yes | yes | real host probe + auth + policy | 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 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 |
|
| 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 |
|
| 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 |
|
| Mandatory AI requires a validated interaction | yes | yes | bridge + CLI | n/a |
|
||||||
|
|
|
||||||
|
|
@ -1134,3 +1134,41 @@ detached boot verification with the live ISO removed.
|
||||||
- **A separate physical computer for the OpenCode transport test is NOT
|
- **A separate physical computer for the OpenCode transport test is NOT
|
||||||
available**; that check is BLOCKED. The forwarded-hop and
|
available**; that check is BLOCKED. The forwarded-hop and
|
||||||
unauthenticated-LAN-refusal tests are host-local.
|
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).
|
||||||
|
|
|
||||||
|
|
@ -188,11 +188,11 @@ fn bootstrap(exec: &Exec, root: &Path, tarball: &Path) -> Result<()> {
|
||||||
// Every user must traverse the store and read profiles: the client
|
// Every user must traverse the store and read profiles: the client
|
||||||
// binary, the daemon socket and per-user generations all live under
|
// binary, the daemon socket and per-user generations all live under
|
||||||
// /nix. Staging (`cp -a`) preserves tarball modes and the live shell's
|
// /nix. Staging (`cp -a`) preserves tarball modes and the live shell's
|
||||||
// umask may be restrictive, so normalize the top-level integration
|
// umask may be restrictive, so the top-level integration paths are
|
||||||
// directories explicitly (never the store contents themselves). Proven
|
// normalized at the END of the bootstrap (after every write below).
|
||||||
// by VM boot: without this, `nix` is "command not found" for the user
|
// Proven by VM boot: without this, `nix` is "command not found" for the
|
||||||
// and `sys list --nix` reports Nix as not installed.
|
// user and `sys list --nix` reports Nix as not installed; /etc/nix and
|
||||||
normalize_integration_permissions(root);
|
// /etc/profile.d/nix.sh are unreadable for the same reason.
|
||||||
{
|
{
|
||||||
use std::os::unix::fs::PermissionsExt;
|
use std::os::unix::fs::PermissionsExt;
|
||||||
let sock = target_path(root, "nix/var/nix/daemon-socket");
|
let sock = target_path(root, "nix/var/nix/daemon-socket");
|
||||||
|
|
@ -258,6 +258,9 @@ fn bootstrap(exec: &Exec, root: &Path, tarball: &Path) -> Result<()> {
|
||||||
}
|
}
|
||||||
let _ = crate::portage::chroot(exec, root, "systemctl", &["enable", "nix-daemon.service"]);
|
let _ = crate::portage::chroot(exec, root, "systemctl", &["enable", "nix-daemon.service"]);
|
||||||
let _ = crate::portage::chroot(exec, root, "systemctl", &["enable", "nix-daemon.socket"]);
|
let _ = crate::portage::chroot(exec, root, "systemctl", &["enable", "nix-daemon.socket"]);
|
||||||
|
// Normalize AFTER every write above: the config, profile links and unit
|
||||||
|
// symlinks did not exist when the state directories were created.
|
||||||
|
normalize_integration_permissions(root);
|
||||||
exec.logger
|
exec.logger
|
||||||
.info(format!("Nix {NIX_VERSION} bootstrapped into the target"));
|
.info(format!("Nix {NIX_VERSION} bootstrapped into the target"));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue