Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 122 additions & 0 deletions docs/os/DESKTOP_OPERATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# Experimental desktop operation

The candidate adds NetworkManager, a user PipeWire/WirePlumber audio stack,
Wayfire session locking and a non-root graphical PolicyKit authentication agent.
These are ordinary Linux desktop/administration paths. They do not create PhiOS
operator decisions, bindings or leases and do not authorize an agent or browser
to perform a general desktop effect. The restricted installed proof broker and
its UID separation remain described in LINUX_PROOF_WORKFLOW.md.

## Open, lock and end the session

| Action | Current path |
| --- | --- |
| PhiOS terminal | Super+Enter |
| Ordinary Linux terminal | Super+Alt+Enter |
| Application launcher | Super+Space |
| PhiShell window | Super+P |
| Lock current Wayfire session | Super+L or the `Lock PhiOS session` launcher entry |
| Network settings | Super+N or the `Network settings` launcher entry |
| Logout | From the ordinary desktop terminal, `loginctl terminate-session "$XDG_SESSION_ID"`; the supervised session target stops |
| Restart / shutdown | `systemctl reboot` / `systemctl poweroff`, under ordinary logind/PolicyKit permission |

`phios-lock` runs the packaged swaylock under the current non-root Wayfire
session. Wayfire's session-lock plugin supplies the protocol; swaylock waits for
the compositor's locked acknowledgement before its daemonizing caller returns.
Unlock uses the current account's ordinary PAM password. The volatile live
password is public `phios`; installed users keep the fresh password they chose.
Root/headless invocation is refused. Automatic idle/suspend locking is not
enabled by this candidate; lock explicitly before a suspend test with
`phios-lock && systemctl suspend`, then observe the actual resume/unlock.
Suspend remains a physical hardware gate. No protection
against arbitrary root or malicious same-UID administrator code is inferred.

For deliberate ordinary administration, use the terminal's normal
password-authenticated sudo account on an installed system. The live account
retains only its narrow maintenance sudo commands. The graphical PolicyKit agent
uses the distribution's existing policies and PAM; it changes no policy to make
the live user an administrator or to bypass an authentication request. Its startup
is tested separately from any future specific graphical administration operation.

## Wired and wireless configuration

NetworkManager owns wired and Wi-Fi address/DNS configuration; systemd-resolved
provides the resolver. A second networkd/iwd configuration owner is not enabled.
NetworkManager's HTTP connectivity URL polling is explicitly disabled. Connect
a wired cable and inspect `nmcli device status`. The terminal interface is
`nmtui`; account or system-wide changes may require normal administrator
authentication. A driver/radio must actually exist before Wi-Fi can work.

For a user-private Wi-Fi connection from the real desktop terminal:

```sh
nmcli device wifi list
nmcli --ask device wifi connect 'YOUR_SSID' private yes
```

Replace the SSID. `--ask` prompts for credentials instead of placing a password
in arguments/history. Connection files belong to NetworkManager's protected
system store with their selected user permissions; they are outside PhiOS's
data-only backup. The live overlay is volatile. Matched root checkpoints include
installed system configuration, so a deliberate root restore also restores its
network profiles. Record hardware/DHCP/DNS results without publishing personal
SSID, passwords, MAC/IP details or private connection files.

## User audio

`phios-audio.target` starts PipeWire, its PulseAudio compatibility server,
WirePlumber and their sockets as the desktop user. The session stops these units
on logout and starts them again on reauthentication. No root audio daemon or
automatic microphone recording is added. Inspect actual devices/streams with
`wpctl status`; adjust the observed default output with `wpctl`, for example:

```sh
wpctl set-volume @DEFAULT_AUDIO_SINK@ 50%
wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
```

An unavailable output/microphone remains unavailable. Actual playback/capture,
device choice, mute/volume, HDMI/USB and suspend/resume on the named physical
machine are separate hardware tests.

## Candidate qualification scope

The new exact normal live gate attaches only a restricted QEMU user-network
Ethernet device on the documentation range `192.0.2.0/24`, without port forwarding,
and an emulated HDA device with a null audio backend. It checks the actual DHCP
address/server and the absence of an IPv4 gateway/DNS advertisement in this
restricted network, non-root service/process ownership and actual
PCM playback through the emulated ALSA sink. This does not test Internet DNS,
Wi-Fi association, physical speakers/microphones or a GPU driver.

The external QMP test invokes the actual Super+L binding, observes the lock,
tries a wrong password, then unlocks with the real public disposable PAM
credential. The installed lane repeats with the installer-created account's
fresh test password. Tests preserve lock/refusal/unlock screenshots, exact
source/ISO and serial evidence. The installed/update/recovery VM retains no NIC,
host disk, host audio device or shared folders.

The first normal attempt rejected the probe's incorrect expectation of gateway
and DNS DHCP options. libslirp deliberately omits both in restricted mode; the
corrected probe requires their absence and the actual lease/server. The failed
image/source, serial log and screenshot hashes are retained in
`evidence/desktop-attempts.json`. The installed signed QA lane passed its added
audio and PAM lock checks, but that does not qualify the failed normal image.
The second normal attempt captured the correct lease and isolation, then failed
because nmcli joined its DHCP options on one line. The corrected parser accepts
the observed joined/line forms while retaining exact unique server identity;
captured-output regression tests reject static, wrong, duplicate and forwarding
configurations. Service checks require each named unit individually; the live
lifecycle requires all session/audio/socket units inactive at logout and repeats
actual service/audio/network checks after graphical reauthentication.

The complete added qualification is pending actual CI. Earlier passed ISO hashes remain
valid only for their recorded earlier scope; do not claim these new features
qualified until their actual new artifact receipt passes. Physical hardware,
final signed transition and distribution delivery remain open.

Upstream references: [Wayfire configuration](https://github.com/WayfireWM/wayfire/blob/master/wayfire.ini),
[swaylock](https://github.com/swaywm/swaylock),
[NetworkManager/nmcli](https://www.networkmanager.dev/docs/api/latest/nmcli.html),
[WirePlumber](https://pipewire.pages.freedesktop.org/wireplumber/daemon/running.html),
[libslirp DHCP implementation](https://qemu.googlesource.com/libslirp/+/refs/heads/master/src/bootp.c).
6 changes: 4 additions & 2 deletions docs/os/HARDWARE_QUALIFICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ All compatibility results remain `not tested` until actual observations exist.
Record pass/fail/not available with evidence for resolution/rendering and
multiple displays; keyboard/mouse/keymap; wired networking and Wi-Fi association,
DHCP/DNS; audio playback/recording; sleep/resume; shutdown/restart; and storage
visibility. Record missing drivers and services honestly. Audio/session locking
and Wi-Fi configuration are not currently qualified product features. A blank
visibility. Record missing drivers and services honestly. The later desktop
candidate adds NetworkManager, user audio and manual PAM locking; its new
software/VM scope is recorded in DESKTOP_OPERATION.md. Physical audio and Wi-Fi
remain unqualified until actual observations exist. A blank
audio-card count or successful PCI enumeration is not audio/GPU compatibility.
Resolve observed blockers, build a new exact candidate and repeat affected
tests before moving to installation.
Expand Down
8 changes: 6 additions & 2 deletions docs/os/RELEASE_ARTIFACTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ actual image paths and refuses a mismatch with the requested fixture scope.
The normal volatile `phios`/`phios` account remains the documented live login;
that public live account does not become an installed user/password.

The external VM harness uses only the finished ISO and fresh OVMF variables,
with no target disk, network or shared folders. It logs in through normal
The external normal live VM harness uses only the finished ISO and fresh OVMF
variables, without a target disk or shared folders. Its added desktop gate uses
restricted virtual Ethernet with no external forwarding and synthetic HDA with
a null audio backend; no host audio is attached. It logs in through normal
serial PAM using that public live account, observes the actual non-root
Wayfire/Chromium/HTTP services, tests an observer restart, logs out, enters the
same account at the real greetd keyboard/PAM prompt and checks the restarted
Expand All @@ -23,6 +25,8 @@ into the image. Logs/screenshots and the exact ISO/source hash are retained.
The separate exact normal-image installed lane described below adds bounded
installation/data/recovery/Linux proof evidence for that same ISO. Real hardware
and the future final signed update transition remain additional release gates.
The installed/recovery lanes retain no NIC or shared folders. See
DESKTOP_OPERATION.md for the precise DHCP, user-audio and PAM-lock scope.

## Artifact inventory

Expand Down
2 changes: 2 additions & 0 deletions docs/os/RELEASE_CONTRACT.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Python package versions and OS versions are independent. OS tags start with
- Local observation of host, services, processes, devices and native packages.
- A non-root Wayfire session, Chromium application window, Waybar and terminal.
- Supervised user services with bounded loopback ports and private state umask.
- Candidate NetworkManager wired/Wi-Fi configuration, user audio and manual
PAM screen locking; exact new qualification is described in DESKTOP_OPERATION.md.
- Optional governed history when an operator supplies an enabled memory config.
- Curiosity projection access, with consequential persistence approval held.

Expand Down
18 changes: 16 additions & 2 deletions docs/os/RELEASE_HANDOFF.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,29 @@ Review and merge only in stack order after assessing each stated boundary:
| [275](https://github.com/MichaelWave369/PhiOS/pull/275) | Exact inventories, notices, SBOM/provenance and normal live-image gate |
| [276](https://github.com/MichaelWave369/PhiOS/pull/276) | Restricted Linux proof broker, hardware handoff and bundled frontend inventory |
| [277](https://github.com/MichaelWave369/PhiOS/pull/277) | Exact normal-image installed/recovery gate and explicit serial password login |
| [278](https://github.com/MichaelWave369/PhiOS/pull/278) | Always-reported same-source `release-gate` and reusable qualification jobs |
| [279](https://github.com/MichaelWave369/PhiOS/pull/279) | NetworkManager, user audio, manual PAM locking and their actual desktop probes |

Review the follow-on always-reported qualification gate after this stack; its
normal and QA jobs reuse the existing exact-image procedures. See
The aggregate gate passed all nine jobs in run 36816117488 for source
`5a1431f4758029a9c04abfb5471351e9abf88a3f`, with 2,279 Python tests passed and
six existing optional skips. Its actual normal and signed QA scopes and exact
hashes are in `evidence/qualification-gate-5a1431f4.json`. The later desktop
candidate has a different source/artifact and its own pending qualification.
The aggregate normal and QA jobs reuse the existing exact-image procedures. See
BUILD_AND_QUALIFY.md for the `release-gate` required-status handoff.
Review source and tests, not just a green check. Main and OS release-tag protection
still require maintainer configuration. Keep publication separate from the
existing Python `v*`/PyPI workflow. Evidence never promotes an adapter, enrolls a
signing identity or grants execution/publication authority.

Repository protection was rechecked on 2026-10-01. Main still points to
`dad7a7d7cd53874926ad366f19d3fc0fa6b99a49`; its branch response reports no
required checks. The sole active branch ruleset `protec` (13863077) contains
deletion/non-fast-forward rules and no required status or review rule. Configure
the reviewed `release-gate` requirement and main/OS-tag release protections
through maintainer administration before merging/publishing. This candidate
does not claim those settings were applied.

## Remaining work in order

1. **Observe the supplied Skytech on the exact normal live media.** Follow
Expand Down
Loading
Loading