Commit graph

213 commits

Author SHA1 Message Date
dfdb53f937 fix(sys): harden operand validation and add an adversarial input battery
Some checks are pending
ci / test (push) Waiting to run
2026-09-28 23:42:34 -07:00
e1717a28fa docs(evidence): record run 15 golden reinstall and boot
Some checks are pending
ci / test (push) Waiting to run
2026-09-28 11:46:27 -07:00
385962ab69 docs(handoff): record run 15 2026-09-28 06:29:01 -07:00
bc0c4b8b2c fix(nix): normalize after all bootstrap writes 2026-09-28 06:25:09 -07:00
030e87edf5 docs(handoff): record run 14 2026-09-28 02:14:30 -07:00
bdec0bdfe8 docs: record golden run 13 install and detached boot proof
Some checks are pending
ci / test (push) Waiting to run
2026-09-28 02:09:14 -07:00
c806c98267 fix(nix): normalize integration file permissions to 0644 2026-09-28 02:09:10 -07:00
7124c8ed5c fix(nix): keep integration dirs traversable for all users 2026-09-28 00:49:35 -07:00
2261c5483c fix(ai): default opencode backend to Local adapter kind 2026-09-28 00:35:22 -07:00
bea96f543d fix(vm): disable zsh equals-expansion for check markers 2026-09-27 23:40:08 -07:00
497cba6b81 fix(vm): match zsh prompt in serial driver login 2026-09-27 23:19:04 -07:00
78d5680a79 docs(handoff): record runs 11-13 2026-09-27 17:27:20 -07:00
2b8559f113 fix(install): match VDB name-version dirs in finalize verify 2026-09-27 17:22:55 -07:00
de2d7918c3 docs(handoff): record runs 10-12 2026-09-27 12:32:41 -07:00
add7dfc873 fix(desktop): build seatd server for the systemd unit 2026-09-27 12:28:14 -07:00
24b11ebb98 fix(vm): allow full Mango install within driver timeout 2026-09-27 08:27:38 -07:00
0dc6663c34 docs(handoff): record self-heal runs 3-10 2026-09-27 05:40:50 -07:00
233a3e2f7f fix(install): scope xapp closure USE deps 2026-09-27 05:36:27 -07:00
8a0dfdf965 fix(install): scope nemo introspection closure + mpv lua 2026-09-27 03:53:21 -07:00
0036529f51 fix(install): scope libxmlb introspection for nemo 2026-09-27 01:54:49 -07:00
f480c9c3b7 fix(install): correct matugen category to x11-misc 2026-09-26 23:52:59 -07:00
3abdc872e2 fix(install): select lua target for swayimg 2026-09-26 21:34:09 -07:00
6972511315 fix(install): keyword zsh itself for the plugin lane 2026-09-26 19:34:08 -07:00
ff104ddc49 fix(install): scoped keywords for zsh plugin lane 2026-09-26 18:59:53 -07:00
5ea4bb1885 fix(install): install login shell in base before users_configure 2026-09-26 18:17:34 -07:00
bf72ca8de9 docs(handoff): record Brave-pin self-heal and run 2 2026-09-26 16:52:17 -07:00
0aa31a36a0 fix(install): record reviewed Brave overlay pin 2026-09-26 16:46:09 -07:00
aecfd3262e docs(handoff): record in-flight headless stabilization run 2026-09-26 16:10:28 -07:00
406f9b4b33 fix(nix): enumerate modern per-user profiles in sys list 2026-09-26 16:05:16 -07:00
9573f2e37a feat(desktop): seat management, thunderbird-bin fast default, AI timeout
Some checks failed
ci / test (push) Has been cancelled
P0 seat fix: sys-auth/seatd installed and enabled before greetd,
gui-libs/libseat with systemd+builtin+server USE, seat in default user
groups, greeter in video/input/render/seat, and a bounded 3 s seat wait
in phoebus-session-mango (LIBSEAT_BACKEND deliberately unset so every
compiled backend stays available).

P1 fast install: mail-client/thunderbird-bin replaces the source build
in workstation_packages; Thunderbird joins fast_default_deliveries and
SOURCE_CONVERSIONS (source target mail-client/thunderbird, honest
45-90 min estimate), the preference-neutrality guard covers it, and the
first-login welcome names it. All lanes and the mandatory-AI install
requirement are unchanged.

AI robustness: CurlTransport max-time 120 s -> 300 s default,
overrideable via PHOEBUS_AI_TIMEOUT (fail-closed parsing; zero refused)
for both direct and sandboxed sends.

Verified: cargo fmt --check, clippy --workspace --all-targets -- -D
warnings, cargo test --workspace 759/759 (was 757), bash -n on the
session script. Seat-VM reverification, thunderbird VM journeys, and
live CPU-inference proof are NotRun (no VM run this session).
2026-09-26 15:41:19 -07:00
5369a89b4b feat(shell): modernize default Zsh seed and login environment
Some checks are pending
ci / test (push) Waiting to run
Fixes the %F{ yellow } color bug (Phoebus Gold 214), drops the no-op
site-functions probe, puts fpath before a cached compinit (full audit at
most once per 24h), adds Kitty/application-mode keybindings, replaces
cross-tab SHARE_HISTORY with INC_APPEND_HISTORY, and adds a builtin
vcs_info git branch plus an exit-status prompt arrow. New ZSH_ZPROFILE
bridges /etc/profile (env-update paths, Nix/Flatpak profile.d) into Zsh
login sessions and adds ~/.local/bin to PATH. Seeding stays once-only;
root stays on Bash; /bin/sh untouched.

Verified: cargo fmt --check, clippy --workspace --all-targets -- -D
warnings, cargo test --workspace 757/757, zsh -n on both files plus an
interactive startup smoke test on host zsh 5.9. Installed-session
behavior awaits the disposable VM.
2026-09-26 15:31:10 -07:00
962e125208 docs(dual-boot): safe GRUB chainload of systemd-boot plus login notes
Phoebus stays systemd-boot + BLS (proven baseline, ADR 0002); external GRUB
chainloads EFI/systemd/systemd-bootx64.efi so sys undo BLS rewrites (ADR
0007) keep working and LUKS2/Argon2id is never exposed to GRUB cryptodisk.
The direct-kernel alternative is documented as fragile with the correct
rd.luks.name command line. No installer change.
2026-09-26 15:31:06 -07:00
053fd3d28d docs(vm): record fast-defaults ISO build and content verification
Some checks are pending
ci / test (push) Waiting to run
2026-09-26 15:01:41 -07:00
e747baf3a1 feat(install): fast prebuilt defaults with user-controlled source builds
Some checks are pending
ci / test (push) Waiting to run
2026-09-26 14:36:38 -07:00
ccc868b762 feat(workstation): Mango apps, Zsh, cursor, ccache, AI handoff, startup check, assistant themes
Some checks are pending
ci / test (push) Waiting to run
2026-09-26 10:08:47 -07:00
4f36b056b4 docs(vm): record 20260926 ISO rebuild, unpinned install, tamper, recovery, seat and nix evidence
Some checks are pending
ci / test (push) Waiting to run
2026-09-26 02:05:41 -07:00
0b41781745 feat(vm): rebuild live ISO from HEAD, harden run-vm.sh, open interactive VM 2026-09-25 21:14:59 -07:00
11c0ee0014 fix(security): fixed trust anchor, executable release gates, strengthened rollback
Some checks are pending
ci / test (push) Waiting to run
2026-09-25 20:48:07 -07:00
33d7959c3c docs: record hardening pass evidence (stage3, boot security, rollback)
Some checks are pending
ci / test (push) Waiting to run
2026-09-25 20:13:16 -07:00
5f6999631a fix(vm): rollback gate proves a real mutation and restore
The gate could pass vacuously: the guest ran unprivileged (every
mutation refused), used a pre-installed break package, restored the
newest snapshot instead of its own, and the driver never asserted the
root marker was gone. Now the driver authenticates sudo with unique
end markers and a verified timestamp, both phases run as root with
explicit --legacy, the break uses app-misc/hello (verified absent,
verified changed), undo targets the recorded snapshot id, and the
driver asserts the break changed the package DB and the root marker
is absent after the detached reboot.
2026-09-25 20:02:43 -07:00
744059b6a2 fix(vm): provision Gentoo release key; truthful rollback gate
Live image ships gnupg plus the Gentoo release key, fingerprint-checked
at build time against the published release-key fingerprints, so the
fail-closed DIGESTS verification cannot be silently skipped.

Rollback harness: authenticate sudo (unique end markers, verified
timestamp, abort instead of hanging), run both guest phases as root,
use explicit --legacy for snapshot/break/undo, fix the verify SYS path,
emit the real systemd state, and preserve the phase-1 transcript.
2026-09-25 19:49:50 -07:00
95e0d05344 fix(core): reject unimplemented secureboot/uki at validation
The installed boot path is plain unsigned BLS. kernel.uki=true and
kernel.secureboot=true are now rejected by validate_config (which the
CLI, TUI and GUI bridge all share) with errors naming the limitation.
The plan preview reports the real BLS path unconditionally and never
renders the requested flags as active. Golden plan updated; parsing,
validation and rendering regressions added.
2026-09-25 19:49:41 -07:00
216267064c fix(executor): fail closed on every stage3 verification failure
The unpinned stage3 path warned and continued when the DIGESTS download
failed, when no SHA-512 entry matched, when gpg or the Gentoo release key
was missing, when the key import failed, and when gpg could not start.
All of these now stop the install before extraction, as do a bad
signature and a hash mismatch. The pinned path requires a valid 64-hex
pin (placeholder refused) before any network use. require_tools covers
gpg/sha256sum/sha512sum and stage_install checks them first.

16 regression tests cover every failure branch (nonzero exit and
cannot-start for hash, probe, import and verify) plus both positive
paths.
2026-09-25 19:49:37 -07:00
15b69f524d docs: record quality-pass evidence (boxed ExecError, splits, VM acceptance)
Some checks are pending
ci / test (push) Waiting to run
Changelog entry for the 2026-09-26 refactor; STATUS corrected to the
current 38-case sys matrix with the new static-binary evidence; VM boot
verification gains the sys-acceptance-refactor run; handoff updated.
Verified with cargo test --workspace (692/692) and the disposable-VM
matrix (guest PASS=38 FAIL=0, driver PASS=41 FAIL=0).
2026-09-25 18:50:19 -07:00
2dd48d1fe8 refactor(installer): split gui_bridge.rs into protocol/bridge/tests modules
Move the 2763-line typed GUI bridge into focused modules with no UI or
wire-format change: mod.rs keeps the docs and re-exports so
gui_bridge::{Bridge, run_stdio, PROTOCOL_VERSION} paths are unchanged;
protocol.rs holds protocol version 1, the request/secret types, the JSON
progress observer, the disk-change phase, and the newline-delimited JSON
writer; bridge.rs holds the single Bridge owning the installer, request
dispatch, installation support, secret handling, and progress events;
tests.rs holds the regression suite verbatim. Items shared across the
boundary are pub(super) with explicit imports; no glob re-exports and no
service.rs-style leftover file.

cargo fmt clean; cargo clippy --workspace --all-targets -- -D warnings
clean; cargo test --workspace passes (692 passed, 0 failed, identical
to the pre-split baseline).
2026-09-25 18:40:01 -07:00
1bf31c5a72 refactor(installer): split service.rs into mod/plan/validation/execution/tests
Move the 4218-line shared service layer into focused modules with no
behavior change: mod.rs keeps the plan types, render, and shared helpers
with explicit re-exports so every phoebus_installer::service::* path,
the serialized plan format, approval digests, replay protection, and
privileged validation behavior are unchanged; plan.rs holds PlanStore
and the planning APIs; validation.rs holds seals, digests, and the
privileged validation boundary; execution.rs holds validated elevated
execution; tests.rs holds the regression suite verbatim. Sibling-private
helpers (constrain_action, plan_integrity, reviewed_steps,
validate_effect_bindings, ServiceConfirm) are pub(super) with explicit
imports; no glob re-exports.

cargo fmt clean; cargo clippy --workspace --all-targets -- -D warnings
clean; cargo test --workspace passes (692 passed, 0 failed, identical
to the pre-split baseline; plan_golden and adversarial digest tests
unchanged).
2026-09-25 18:34:36 -07:00
e69bfb9aef refactor(executor): box ExecError command details, clear Clippy -D warnings gate
Box the CommandFailure payload so ExecError shrinks 128 -> 96 bytes and
Result<T, ExecError> passes result_large_err without per-site boxing.
Preserve the display text, redacted stdout/stderr capture, and the stderr
tail used for update failures; update the constructor and every match
site. Add regression tests for the error text, captured output, and the
96-byte size bound.

Resolve the remaining Clippy warnings without blanket allows: a type
alias for the snap-entry tuple in actions.rs, a CommandRecord params
struct for Logger::command in log.rs, and DiskPhase variant renames in
gui_bridge.rs. cargo clippy --workspace --all-targets -- -D warnings is
clean; cargo test --workspace passes (692 tests).
2026-09-25 18:26:08 -07:00
7c5d4c5ca6 fix(sys): make Snap first-use setup reviewable and VM-tested
Some checks are pending
ci / test (push) Waiting to run
2026-09-25 18:07:13 -07:00
3bdeb08f76 fix(sys): exact Flatpak commit binding, non-destructive cleanup previews, reverse deps; record VM evidence
Some checks are pending
ci / test (push) Waiting to run
2026-09-25 16:18:26 -07:00
ec1f7c5b0b fix(sys): safe cleanup previews, exact Flatpak/Snap update transactions, and correct reverse dependencies 2026-09-25 11:24:53 -07:00