96 lines
5.3 KiB
Markdown
96 lines
5.3 KiB
Markdown
# Handoff
|
|
|
|
Rolling note between work sessions. **Update this file before you finish**, then
|
|
commit it. It should be short and current; use `git log` for detail.
|
|
|
|
- **Last updated:** this session (2026-09-24), End-to-end graphical installation
|
|
and detached first-boot verification: full 6-step graphical wizard completed
|
|
(all 12 stages, 174 packages), detached first-boot verified (systemd running,
|
|
LUKS2 unlock, `sys` operational, `tuigreet` active), greetd TOML syntax fix,
|
|
and live ISO freshness automation.
|
|
- **Current focus:**
|
|
1. **Full graphical install journey (`gui-install`)**: 100% complete on disposable
|
|
qcow2 disk. Completed 12 stages (`storage_prepare`, `stage_install`,
|
|
`fstab_generate`, `portage_configure`, `packages_base`, `kernel_install`,
|
|
`nvidia_drivers`, `boot_install`, `users_configure`, `services_configure`,
|
|
`desktop_install`, `finalize`) and emerged 174 desktop packages.
|
|
2. **Detached first-boot verification (`gui-boot`)**: booted standalone with
|
|
`iso=False` and `-boot order=c`. Verified firmware -> systemd-boot -> LUKS2
|
|
decrypt -> Btrfs subvolumes (`@`, `@home`, `@var`, `@snapshots`, `@swap`) ->
|
|
systemd `running` (0 failed units) -> serial login -> `sys` operational.
|
|
3. **Greetd greeter fix**: single-line command string in `/etc/greetd/config.toml`
|
|
resolving TOML basic string multiline error; verified `tuigreet` rendered
|
|
cleanly on the booted system (`01-boot-desktop.png`).
|
|
4. **Live ISO freshness invariant**: `scripts/ensure-live-iso.sh` automatically
|
|
recompiles static binaries and repacks the live ISO whenever source files
|
|
are newer than the ISO.
|
|
5. **Fast installation kernel profile**: default kernel profile set to
|
|
`KernelProfile::Safe` (`sys-kernel/gentoo-kernel-bin`), preventing 100+ min
|
|
kernel compilation from source during installation.
|
|
- **Last verified (this session):**
|
|
- `cargo fmt --all -- --check`, `cargo clippy --workspace --all-targets`
|
|
and `cargo test --workspace` (508 tests pass across all crates).
|
|
- Live ISO repack: `installer/live/phoebus-installer-amd64.iso` fresh and verified.
|
|
- Full graphical installation: `gui-gui-install-20260924T144711Z-feab515b`
|
|
(`gui-install-completes` PASS, `07-gi-07-complete.png` captured).
|
|
- Standalone detached first boot: `gui-boot-20260924T183545Z-4b5de282`
|
|
(6/6 PASS, systemd running, `sys` binary operational, `tuigreet` active).
|
|
- **Not yet verified this session:** the **AI-selected** journey
|
|
(`sys install <app>` with a connected model). It is unit-tested with scripted
|
|
transports but was not run against a live provider because no authorised
|
|
provider/credential exists in this environment.
|
|
- **Public repo:** <https://git.phoebus.club/phoebus/phoebus_os>
|
|
(remote `origin`, SSH port 2222).
|
|
|
|
## Next actions (in order)
|
|
|
|
1. **AI-selected install journey (needs an authorised provider)**: boot the
|
|
installed disposable disk (`/var/tmp/phoebus-vm/disks/test-disk.qcow2`),
|
|
serve the built `sys` and a 0600 key file, then:
|
|
```sh
|
|
sudo sys --ai-provider deepseek --ai-api-key-file /run/phoebus/ai.key \
|
|
install <application>
|
|
# and the no-model control in the same run:
|
|
PHOEBUS_AI_PROVIDER= sudo sys install <application>
|
|
```
|
|
Confirm the model requests evidence, the resolver confirms the candidate,
|
|
the plan is presented before approval, and the transaction is recorded. No
|
|
credential is available here; do not invent one.
|
|
2. **Rollback VM acceptance** (`serial-driver.py rollback`) on a cloned
|
|
disposable image of the installed system.
|
|
3. **NVIDIA hardware acceptance (BLOCKED)**: needs an NVIDIA GPU.
|
|
4. **Interactive graphical user session** login into Mango / DankMaterialShell
|
|
under a physical seat or nested Wayland compositor.
|
|
|
|
## Known blockers / risks
|
|
|
|
- **A full VM install still takes hours** (base stage ~116 min). Use the already
|
|
installed disposable disk (clone it) for `sys install` journeys rather than a
|
|
fresh install.
|
|
- **No NVIDIA GPU** (and no authorised passthrough).
|
|
- **Snap needs network and AppArmor** for meaningful confinement; the lane
|
|
detects confinement honestly.
|
|
- **AppImage provides no sandbox**; do not describe it as one.
|
|
- **Custom ebuilds remain separately reviewed, untrusted artifacts**; the
|
|
install workflow never builds one during investigation.
|
|
- **OpenCode transport** concatenates messages, so multi-turn investigation is
|
|
best-effort there; the direct providers carry the full conversation.
|
|
- Harness artifacts live under `/var/tmp/phoebus-vm/` (outside git).
|
|
|
|
## Environment notes
|
|
|
|
- Dev host: Ubuntu 26.04. QEMU/OVMF/xorriso/rustfmt/clippy/ImageMagick/visudo
|
|
present. `flatpak` and `snap` clients are present on the host (not proof of
|
|
the VM lanes).
|
|
- VM harnesses: `installer/tests/vm/{gui-driver,serial-driver,appliance-driver,live-driver}.py`
|
|
and `sys-acceptance.sh`. `DISK` must be a disposable qcow2; never `/dev/*`.
|
|
- Serve fixtures from `/home/dominic/vmlab/serve` with
|
|
`python3 -m http.server 8000 --bind 127.0.0.1` (reachable as `10.0.2.2:8000`).
|
|
- The static binaries for the VM: `make static` builds `phoebus-installer` and
|
|
`sys` under `installer-rs/target/x86_64-unknown-linux-gnu/release/`.
|
|
|
|
## Definition of a good stopping point
|
|
|
|
- `make test` passes; `docs/STATUS.md` and `docs/CHANGELOG.md` updated;
|
|
`docs/HANDOFF.md` updated; committed (via `scripts/agent-commit.sh`) and
|
|
pushed (`scripts/publish.sh`).
|