Compare commits

..

No commits in common. "e1717a28fa8ef246a4fe1bccf02d897c7dd88e7a" and "bdec0bdfe8d2cacd8089e280291a4851d2ecf7ea" have entirely different histories.

5 changed files with 8 additions and 79 deletions

View file

@ -5,21 +5,6 @@ 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.

View file

@ -48,21 +48,6 @@ commit it. It should be short and current; use `git log` for detail.
`brave-browser`) and Flatpak (`calibre`, `gimp`, `flatseal`). Acceptance
suite passed 40/40.
- **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):**
P0 seat fix (seatd pkg + enabled before greetd, libseat systemd/builtin/
server USE, `seat` in default groups, greeter `-G video,input,render,seat`,

View file

@ -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 | 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 |
| Installed assistant (`sys ask`) | yes | yes | fixture path only (no live call) | 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. **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 |
| 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 |
| 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 | yes (GUI AI step; `sys ask` live 2026-09-28 via opencode backend + muse-spark, valid plan + digest) | n/a |
| OpenCode in GUI / CLI / `sys ask` | yes | yes | GUI AI step + `sys ask` live | 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 |

View file

@ -1134,41 +1134,3 @@ 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).

View file

@ -188,11 +188,11 @@ fn bootstrap(exec: &Exec, root: &Path, tarball: &Path) -> Result<()> {
// Every user must traverse the store and read profiles: the client
// binary, the daemon socket and per-user generations all live under
// /nix. Staging (`cp -a`) preserves tarball modes and the live shell's
// umask may be restrictive, so the top-level integration paths are
// normalized at the END of the bootstrap (after every write below).
// Proven by VM boot: without this, `nix` is "command not found" for the
// user and `sys list --nix` reports Nix as not installed; /etc/nix and
// /etc/profile.d/nix.sh are unreadable for the same reason.
// umask may be restrictive, so normalize the top-level integration
// directories explicitly (never the store contents themselves). Proven
// by VM boot: without this, `nix` is "command not found" for the user
// and `sys list --nix` reports Nix as not installed.
normalize_integration_permissions(root);
{
use std::os::unix::fs::PermissionsExt;
let sock = target_path(root, "nix/var/nix/daemon-socket");
@ -258,9 +258,6 @@ 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.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
.info(format!("Nix {NIX_VERSION} bootstrapped into the target"));