Commit graph

116 commits

Author SHA1 Message Date
b3dfb79883 fix(installer): allow wheel users to authenticate polkit prompts
Some checks are pending
ci / test (push) Waiting to run
2026-10-01 07:54:31 -07:00
b8152054b6 fix(installer): harden boot recovery and desktop reliability
Some checks are pending
ci / test (push) Waiting to run
2026-10-01 07:03:42 -07:00
29d2cfd37a test(executor): synchronize PHOEBUS_AI_TIMEOUT test modifications with a mutex
Some checks are pending
ci / test (push) Waiting to run
2026-09-30 04:59:28 -07:00
bed56cd52a fix(storage): harden Btrfs swapfile creation and lock drop ownership 2026-09-30 04:57:33 -07:00
60913995a2 fix(core): audit codebase for panics, race conditions and agent protocols
Some checks are pending
ci / test (push) Waiting to run
2026-09-30 04:49:00 -07:00
c52840645c feat(stability): harden mutation locking, coordinated snapshots, and health inspection
Some checks are pending
ci / test (push) Waiting to run
- Introduce SystemLock with safe PID-liveness detection via /proc/<pid> to prevent concurrent mutation collisions and reclaim stale locks
- Coordinate paired @ and @var Btrfs snapshots for all high-risk mutations to prevent Portage VDB database drift during rollbacks
- Persist transaction log via tempfile + sync_all + atomic rename to ensure durability against unexpected power loss
- Add SystemAction::SystemStatus and sys status/health query reporting boot assessment counters, reboot state, storage headroom, and package lane readiness
- Unify natural language verbs (update/updates -> CheckUpdates, upgrade -> ApplyUpdates) and dynamic candidate-aware legacy install guidance
2026-09-30 04:19:14 -07:00
6d48ad38fc feat(stability): add boot assessment, preflight storage gates, tiered channels and userspace agent framework
- systemd Automatic Boot Assessment: BLS +<tries> parsing/formatting and phoebus-boot-confirm.service
- Preflight safety gates: 10 GiB storage preflight check and atomic @ and @var pre-update snapshots
- Tiered update channels: Core, Proven (default), Edge
- Userspace AI agent framework: agent_jail Bubblewrap isolation, desktop_config undoable mutations, phoebus-mcp server, sys propose staging bridge
- Fixed parent directory creation race condition in personal storage
- Verified with cargo fmt, clippy, and full workspace test suite
2026-09-30 03:40:41 -07:00
1ced5f84a2 docs(kernel): state the real source-kernel build time; record the VM journey
Some checks are pending
ci / test (push) Waiting to run
2026-09-29 10:48:10 -07:00
f18505aee9 fix(kernel): match the VDB record exactly and use loader/entries for BLS
Some checks are pending
ci / test (push) Waiting to run
2026-09-29 07:34:51 -07:00
531b9f0ea5 feat(kernel): add a balanced source-kernel choice alongside bin and tuned
Some checks are pending
ci / test (push) Waiting to run
2026-09-29 05:56:34 -07:00
aeb46aceee refactor(ai): make the OpenCode transport a standard sandboxed transport
Some checks are pending
ci / test (push) Waiting to run
2026-09-29 04:58:22 -07:00
52dbdf4422 fix(sys): keep read-only Flatpak probes non-interactive; document AI kind values
Some checks are pending
ci / test (push) Waiting to run
2026-09-29 04:28:12 -07:00
d96aae1cfa feat(ai): show a concrete action example; record VM live-agent and local-model evidence
Some checks are pending
ci / test (push) Waiting to run
2026-09-29 03:29:46 -07:00
1d982a3760 fix(sys): run the AI sandbox in the user scope and unblock unprivileged AI plans
Some checks are pending
ci / test (push) Waiting to run
2026-09-29 02:32:45 -07:00
9d6781e300 test(sys): cover the connected-model AI path end to end
Some checks are pending
ci / test (push) Waiting to run
2026-09-29 00:23:44 -07:00
5b3f3c44e5 fix(sys): close AI credential, privacy and privilege-gate gaps
Some checks are pending
ci / test (push) Waiting to run
2026-09-29 00:18:31 -07:00
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
bc0c4b8b2c fix(nix): normalize after all bootstrap writes 2026-09-28 06:25:09 -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
2b8559f113 fix(install): match VDB name-version dirs in finalize verify 2026-09-27 17:22:55 -07:00
add7dfc873 fix(desktop): build seatd server for the systemd unit 2026-09-27 12:28:14 -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
0aa31a36a0 fix(install): record reviewed Brave overlay pin 2026-09-26 16:46:09 -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
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
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
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
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
bab5f413ed fix(sys): aggregate cleanup intents into plan binding; record VM acceptance and defect evidence
Some checks are pending
ci / test (push) Waiting to run
2026-09-25 05:35:08 -07:00
58e0f70879 fix(sys): close host/target, revalidation, update-effect and inspection defects in the package catalogue 2026-09-25 03:51:02 -07:00
05d7075341 feat(sys): complete the package-management interface (search/list/info/updates/maintenance)
Some checks are pending
ci / test (push) Waiting to run
2026-09-25 03:11:18 -07:00
b579633ab1 fix(install,admin): use the legacy sys probe at finalize and keep personal preferences out of the system transaction log
Some checks are pending
ci / test (push) Waiting to run
2026-09-24 21:23:47 -07:00