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
12 changes: 11 additions & 1 deletion docs/os/BUILD_AND_QUALIFY.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ for an installed system or place private data in this live image. The reserved
`phios-agent` account cannot read the operator home and runs no agent by default.

The browser keeps Chromium's sandbox. The compositor's autostart imports its
Wayland environment before starting `phios-session.target`. Transport, curiosity
Wayland environment after validating its socket, then stops/starts
`phios-session.target` to rebind any active services from a previous session. Transport, curiosity
projection, optional history, browser and Waybar have separate user services.
Session exit stops the target. Default state is `%h/.local/state/phios` with
umask 0077. History is not auto-enabled: an operator must create and review
Expand Down Expand Up @@ -61,6 +62,15 @@ The harness then resets the VM and requires the complete fixture on a second,
distinct kernel boot ID. Both desktop captures are preserved. This fixture
is omitted from normal locally built previews.

The follow-up normal-image gate also replaces stale manager display variables
while Chromium and Waybar are active, calls the packaged ready hook and requires
new running browser/panel process IDs after the manager imports the connected
compositor's display environment on both live boots. The
focused shell tests cover the VirtualBox/VMSVGA cursor selection separately.
QEMU rebinding does not qualify Windows VirtualBox's driver path; see
VIRTUALBOX_COMPATIBILITY.md for the supplied field evidence and required new-ISO
automatic-startup retest.

A fixture pass is evidence for the checks it performs. Review the screenshot
and session behavior. It does not prove installation, persisted receipts,
crash recovery, whole-OS updates, hardware compatibility or a Linux effect
Expand Down
8 changes: 8 additions & 0 deletions docs/os/DESKTOP_OPERATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ machine are separate hardware tests.

## Candidate qualification scope

The owner-reported Windows 11 Home / VirtualBox live compatibility case, its
initial renderer/cursor failures and exact working recipe are preserved in
[VIRTUALBOX_COMPATIBILITY.md](VIRTUALBOX_COMPATIBILITY.md). The follow-up wrapper
limits its automatic cursor override to detected VirtualBox plus VMSVGA. The
ready hook validates the compositor socket, imports its environment, then
stops/starts session services so active processes cannot retain an old display.
This does not add physical GPU support or change operator authority.

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
Expand Down
1 change: 1 addition & 0 deletions docs/os/HARDWARE_QUALIFICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ this GPU, motherboard firmware, audio, network radios or physical power loss.
| Target | Current evidence | Gate |
| --- | --- | --- |
| Disposable x64 UEFI/KVM VM, 2 CPUs, 4 GiB RAM, 32-GiB disk | Exact normal live/install/data/recovery/Linux proof, virtual DHCP/audio and manual PAM locking passed in code-continuation run 36832501182; separate ephemeral signed-update/interruption QA passed in the same source run | Future final artifact and actual signed release transition must be qualified separately |
| Windows 11 Home / Oracle VirtualBox, VMSVGA, 128 MB VRAM, 8 GiB RAM, 4 CPUs, 64 GB virtual disk | Owner reported live UEFI/PAM and interactive desktop pass on exact ISO `376fd601...`, after enabling 3D, setting the cursor override and rebinding session services; initial renderer and cursor failures retained in VIRTUALBOX_COMPATIBILITY.md | New automatic compatibility candidate needs a separate local VirtualBox retest; no physical or installation inference |
| Supplied Skytech/Core Ultra 9/RTX 5070 machine | No boot or driver observations | Live boot, GPU/input/network/audio/firmware tests first |
| Dedicated empty physical test disk | No selected disk or test | Exact installer identity/blankness/confirmation, no-media boot, persistence, update and recovery |

Expand Down
11 changes: 11 additions & 0 deletions docs/os/RELEASE_HANDOFF.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ verify its complete ISO/source/artifact hashes against SHA256SUMS and provenance
and retain the receipts with that exact build. The separate QA image contains
test fixtures and is not the physical observation candidate.

The owner also tested this exact candidate in Windows 11 Home / VirtualBox on
2026-10-01. Live UEFI/PAM and interactive desktop worked after enabling VMSVGA
3D acceleration, exporting the cursor workaround and rebinding the session
target. Initial renderer/cursor failures and the full supplied configuration
remain in [VIRTUALBOX_COMPATIBILITY.md](VIRTUALBOX_COMPATIBILITY.md) and
`evidence/virtualbox-field-1c16c473.json`. The narrow automatic startup correction
is a separate candidate stacked after this handoff; its new bytes need their
own qualification and local VirtualBox retest. The table above and existing
receipts retain their original tested identities. Skytech/RTX 5070 remains
physically untested.

## Ordered code review

Review the component PRs in dependency order after assessing each boundary:
Expand Down
135 changes: 135 additions & 0 deletions docs/os/VIRTUALBOX_COMPATIBILITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# VirtualBox live compatibility observation

On 2026-10-01 Mikey reported a local live test on Windows 11 Home using Oracle
VirtualBox. This is owner-supplied compatibility evidence for the existing
qualified normal candidate, with the failed configurations preserved below.
It does not qualify physical Skytech/RTX 5070 hardware, installation, audio,
network connectivity, suspend, a signed transition or publication.

| Tested identity | Value |
| --- | --- |
| Source PR | [281](https://github.com/MichaelWave369/PhiOS/pull/281) |
| Reviewed head | `3d282bdd6466052def8e632245f312863040cafc` |
| Qualified prospective source | `1c16c4732442d69d2c7b5763212f1977860a15ae` |
| Normal ISO SHA-256 | `376fd601f66b13dccd6a08644a7b807129f315882d355fd376d0934a80ae29aa` |
| Existing qualification | [36832501182](https://github.com/MichaelWave369/PhiOS/actions/runs/36832501182) |
| Field receipt | [virtualbox-field-1c16c473.json](evidence/virtualbox-field-1c16c473.json) |

The field report supplied this identity; this review did not independently hash
the owner's mounted ISO or acquire the raw Wayfire/service logs. The attached
desktop screenshot was inspected: PhiShell v0.16.0 and a visible pointer are
present. The receipt retains the screenshot digest, without copying the image
into the public repository. Interaction and the staged failures/successes are
owner observations. The exact VirtualBox version was not supplied.

A later owner cold boot showed `vmwgfx` warning about an unsupported hypervisor
and the separate unavailable TDX host feature before boot continued. The field
receipt preserves those screenshot messages and its digest. The messages alone
do not establish a fatal boot failure or persistence of the manual cursor
override after a power cycle. Keep this observation separate from a new-ISO
automatic startup pass.

## Configuration and outcomes

Arch Linux (64-bit) guest, EFI enabled, Secure Boot off, 8192 MB RAM, four vCPUs,
64 GB virtual disk, VMSVGA, 128 MB video RAM, NAT and no shared folders. The exact
normal ISO above was mounted. No installation was reported.

| Stage | Configuration / observation | Result |
| --- | --- | --- |
| Initial live boot | EFI, live environment, greetd/tuigreet, public `phios` / `phios` PAM and tty login | PASS |
| Initial renderer | VMSVGA, 3D acceleration off; graphical session immediately exits | FAIL |
| Renderer retry | Power off VM, enable 3D acceleration, retain VMSVGA/128 MB | PASS: PhiShell, Reality Ledger, launcher, windows and Waybar visible |
| Initial pointer | Hover/right-click works after renderer retry, pointer invisible | FAIL |
| Cursor workaround | Export `WLR_NO_HARDWARE_CURSORS=1` before launching `phios-session` from tty2 | PASS: visible functional cursor and rendering; desktop initially blank |
| Existing services | Browser and Waybar active; Chromium uses `--ozone-platform=wayland --app=http://127.0.0.1:3969/`; Waybar sees display | Active services alone did not establish a rendered desktop |
| Session rebinding | Stop then start `phios-session.target` from the new graphical session | PASS: full PhiShell/Waybar desktop, cursor and normal interaction |

Reported initial renderer messages, retained verbatim:

```text
VMware: No 3D enabled
MESA-EGL warning: egl: failed to create dri2 screen
EGL_NOT_INITIALIZED
Failed to initialize EGL context
Could not initialize renderer
Failed to create renderer
```

The pointer behavior is consistent with a hardware-cursor issue. Services left
running from the previous session are consistent with the blank desktop after
launching a new compositor: importing environment variables does not change an
already-running process. These are bounded diagnoses, not additional raw-log
observations or evidence for every VirtualBox version.

## Reproduced manual recipe on the original candidate

Power off the VM and select VMSVGA, 128 MB VRAM and **3D acceleration on**.
After ordinary live tty login, launch:

```sh
export WLR_NO_HARDWARE_CURSORS=1
phios-session
```

If earlier user services remain bound to the old session, open the ordinary
Linux terminal in the new graphical session with Super+Alt+Enter and run:

```sh
systemctl --user stop phios-session.target
systemctl --user start phios-session.target
```

The live overlay is volatile. This manual recipe documents the owner's result;
it does not claim the original ISO contains an automatic compatibility fix.

## Narrow candidate correction and verification

The follow-up session wrapper sources a packaged compatibility helper before
starting Wayfire. The helper requires **both** successful
`systemd-detect-virt --vm` identification as `oracle` and a sysfs PCI display
device with vendor/device `15ad:0405` (VMSVGA). Only this combination sets
`WLR_NO_HARDWARE_CURSORS=1`. VMware shares the PCI identity, so the PCI device
alone is insufficient. Missing/failed detection or another device leaves the
cursor environment unchanged. No Guest Additions, new kernel/driver, global
cursor setting or real-hardware renderer behavior is added. Host-side 3D
acceleration remains an operator VM setting.

The Wayfire autostart hook refuses missing display/runtime variables or a
non-socket display path. It imports the compositor's Wayland/runtime/desktop
environment into the user systemd and D-Bus activation environments, clears an
obsolete Xwayland DISPLAY when none is supplied, then stops/starts the existing
session target. Existing PartOf dependencies rebind browser, panel and other
session services. Session cleanup and non-root startup remain in place.

Focused tests execute the shell helper with captured PCI identities and check
VirtualBox selection, VMware/KVM/real-hardware exclusion, incomplete detection,
operator environment preservation, socket gating, relative/absolute
display paths, import-before-restart ordering and failure propagation. The
normal-image QEMU gate additionally contaminates the manager's display variables
while the real browser and panel are active, invokes the packaged ready hook,
and requires replacement running browser/panel process IDs after the user
manager imports the connected compositor's display environment and clears stale
DISPLAY on both live boots. This verifies rebinding under QEMU;
it does not emulate a Windows VirtualBox 3D driver or prove the new automatic
cursor branch in VirtualBox.

Changed source and ISO bytes require their own complete qualification and a
fresh local VirtualBox test of automatic startup without manual exports/target
restart. Keep the original candidate hashes/receipts intact. Do not merge, tag,
sign, publish or infer physical support from this observation.

The first follow-up normal-image attempt rendered PhiShell/Waybar but failed
the new probe while it tried to obtain a service process's display environment
from `/proc/PID/environ`; the initial timeout omitted the failing PID/environment
predicate. Its install/recovery phase was skipped. The revised probe
uses the user manager's explicit `show-environment` state, validates only its
display keys, connects to the actual compositor socket and requires individually
active replacement Chromium/Waybar processes. The failed source/ISO, serial
exception, screenshot and independently checked compact-archive hashes remain
in [virtualbox-compatibility-attempts.json](evidence/virtualbox-compatibility-attempts.json).
The failed gate is not replaced by its screenshot or a separate QA result.

Detection references: [systemd virtualization identifiers](https://github.com/systemd/systemd/blob/main/src/basic/virt.c),
[Oracle VMSVGA PCI definitions](https://github.com/VirtualBox/virtualbox/blob/main/src/VBox/Devices/Graphics/DevVGA-SVGA.h),
and [systemd PartOf lifecycle semantics](https://www.freedesktop.org/software/systemd/man/systemd.unit.html).
60 changes: 60 additions & 0 deletions docs/os/evidence/virtualbox-compatibility-attempts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"schema_version": "phios.virtualbox-compatibility-attempts.v1",
"release_ready": false,
"publication_authority": false,
"attempts": [
{
"run_id": 36913191826,
"run_attempt": 1,
"url": "https://github.com/MichaelWave369/PhiOS/actions/runs/36913191826",
"reviewed_head": "5825e2cf6ffd5df0888ffa3b64a5c275d7d980f4",
"source_commit": "146e470f6d9ee0e5ff8700cf3fab5e779c9ddacd",
"source_tree": "e2df371c387b2a6b5ea87fb2177122f29d285679",
"normal_iso_producer_sha256": "f544ce35f4ae09ecf67b18f19b079a94489c65f10a8bd8cd74a8f3626c2abab2",
"iso_independently_hashed_by_this_review": false,
"normal_image_qualification": "failed at added live rebinding probe; installation/recovery skipped",
"guest_serial_exception": "RuntimeError: no supervised desktop environment available for rebinding",
"missing_process_or_environment_predicate_not_preserved_by_initial_probe": true,
"desktop_screenshot_visually_inspected": true,
"desktop_screenshot_observed": [
"PhiShell rendered",
"Waybar rendered"
],
"rendered_screenshot_does_not_qualify_failed_gate": true,
"compact_archive": {
"artifact_id": 11188487889,
"url": "https://github.com/MichaelWave369/PhiOS/actions/runs/36913191826/artifacts/11188487889",
"sha256": "bc5e43352c47353f48c5b0510c1048ad4833bafb8c769b678c4576c7e11e6999",
"size": 623589,
"independently_downloaded_and_digest_verified": true
},
"normal_image_artifact": {
"artifact_id": 11188572974,
"url": "https://github.com/MichaelWave369/PhiOS/actions/runs/36913191826/artifacts/11188572974",
"independently_downloaded": false
},
"retained_files": {
"_temp/phios-preview/preview-evidence.json": {
"sha256": "28eccfc72dc1358b3a9a791f296eafd278ae6e724c8bf41169ce3a0a55f9a147",
"size": 1677
},
"_temp/phios-preview/screen.png": {
"sha256": "2232616c417afef6a13500cd82e85865fc66556c0244f101b21a0119ec0352e8",
"size": 429348
},
"_temp/phios-preview/serial.log": {
"sha256": "7c3c854a31590a63db0d1c25267399c5891e646299c976c6a2c3f4a699db78de",
"size": 33815
}
},
"python_tests_passed": 2352,
"existing_optional_python_skips": 6,
"repair_scope": "qualification probe only: obtain explicit user-manager display environment, require individually active named replacement processes, retain failure diagnostics; production session/cursor correction unchanged",
"separate_qa_result_cannot_qualify_failed_normal_image": true,
"original_1c16c473_candidate_receipts_preserved": true,
"virtualbox_new_automatic_fix_retested": false,
"physical_hardware_qualified": false,
"release_ready": false
}
]
}
Loading
Loading