phoebus_os/docs/adr
Phoebus 297f3201ff
Some checks are pending
ci / test (push) Waiting to run
feat(sys): hardware-aware lane selection and new lanes
Replace the fixed category routing (ADR 0006) with a shared, inspectable,
hardware- and preference-aware selection policy over resolved candidates from
Portage (source/binary/vendor), Nix, Flatpak, Snap, AppImage and the Phoebus
overlay. The policy keeps base components under Portage, separates hard
constraints from preferences, honours and persists explicit choices, errors
instead of silently switching lanes, and reuses an already-installed lane.

- phoebus-core::selection: the pure policy (16 tests: base-system, low-memory
  vs high-core, sandbox requirement, GPU/arch/storage rejection, explicit
  preference, unavailable backend, reproducibility, render).
- phoebus-executor::chooser: resolves real metadata and hardware facts.
- phoebus-executor::{snap,appimage,ebuild}: new lanes. Snap detects daemon and
  confinement and installs app-containers/snapd through Portage; AppImage
  adopts images with a pinned SHA-256, checks the ELF architecture without
  executing, integrates a desktop entry and preserves user data on removal; the
  custom ebuild overlay binds approval to the ebuild content digest and builds
  through Portage's sandbox.
- Typed actions choose_package / set_package_preference / snap_* / appimage_* /
  custom_ebuild_* with strict validators; the assistant prompt and schema are
  reconciled (no category routing; custom ebuilds are untrusted).
- Installed sys: the installer locates the trusted static binary, copies it to
  /usr/local/bin/sys and proves it runs in the target chroot before the
  recovery snapshot, failing closed if absent; the VM harness fetches sys.
- docs/SYS.md: command/action reference and acceptance matrix; ADR 0006 revised.

Host gates pass: fmt, clippy (no new warnings), workspace tests, make test,
release and static sys builds. VM lane journeys remain pending (see HANDOFF).
2026-09-23 18:35:26 -07:00
..
0001-rust-installer.md feat(git): add session context, host doctor, ADRs and git hygiene 2026-09-20 02:36:32 -07:00
0002-bls-over-uki.md feat(git): add session context, host doctor, ADRs and git hygiene 2026-09-20 02:36:32 -07:00
0003-desktop-systemd-profile.md feat(git): add session context, host doctor, ADRs and git hygiene 2026-09-20 02:36:32 -07:00
0004-portage-verify-keyring.md feat(git): add session context, host doctor, ADRs and git hygiene 2026-09-20 02:36:32 -07:00
0005-debian-live-appliance.md feat(desktop): make Mango + DankMaterialShell the default and build a live desktop ISO 2026-09-21 06:47:22 -07:00
0006-package-lanes.md feat(sys): hardware-aware lane selection and new lanes 2026-09-23 18:35:26 -07:00
0007-coherent-rollback.md feat(desktop): add Mango + DankMaterialShell profile with rollback, assistant and release foundations 2026-09-21 03:46:52 -07:00
0008-nix-isolation-lifecycle.md feat(desktop): add Mango + DankMaterialShell profile with rollback, assistant and release foundations 2026-09-21 03:46:52 -07:00
0009-mango-dankmaterialshell-desktop.md feat(desktop): make Mango + DankMaterialShell the default and build a live desktop ISO 2026-09-21 06:47:22 -07:00
0010-graphical-installer-frontend.md feat(installer): graphical welcome and install wizard over a typed bridge 2026-09-21 13:13:40 -07:00
0011-opencode-connection-boundary.md feat(gui): select and validate OpenCode from the installer 2026-09-22 02:36:36 -07:00
0012-nvidia-driver-policy.md docs: reconcile NVIDIA, verification and harness status 2026-09-23 06:28:30 -07:00
README.md feat(sys): hardware-aware lane selection and new lanes 2026-09-23 18:35:26 -07:00

Architecture Decision Records

Short records of significant decisions, so a new session understands why rather than only what. Add a new numbered file for each meaningful decision and link it here.

ADR Title Status
0001 Rust installer as production; Bash retained as reference Accepted
0002 BLS entries instead of UKI for the boot path Accepted
0003 Desktop installs inherit the Gentoo desktop/systemd profile Accepted
0004 Relax the getuto keyring for the dropped-privilege verifier Accepted
0005 Debian-Live appliance ISO with a Gentoo target Accepted
0006 Package lanes and hardware-aware software selection Accepted (revised 2026-09-24)
0007 Coherent rollback and recovery Accepted
0008 Nix lifecycle, build isolation, and packaging Accepted
0009 Mango + DankMaterialShell desktop option Accepted
0010 Graphical installer frontend and typed bridge Accepted
0011 OpenCode connection boundary Accepted
0012 NVIDIA accelerated-driver policy and payload Accepted

Format: Context / Decision / Consequences / Status.