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
9 changes: 5 additions & 4 deletions .github/workflows/os-release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name: Fixture-free OS candidate (unpublished)
on:
pull_request:
paths:
- 'packaging/linux/release_inventory.py'
- 'packaging/linux/validate_sbom.py'
- 'packaging/linux/sbom-schema-lock.json'
- 'packaging/linux/tests/qemu_preview.py'
- 'packaging/**'
- 'phios/**'
- 'phishell/**'
- 'pyproject.toml'
- 'build/build_iso.sh'
- '.github/workflows/os-release-candidate.yml'
workflow_dispatch:

Expand Down
76 changes: 76 additions & 0 deletions docs/os/HARDWARE_QUALIFICATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Named hardware qualification handoff

The proposed first physical target is Mikey's Windows 11 Skytech desktop:
Core Ultra 9 285K, RTX 5070 12 GB and 32 GB DDR5. These are supplied candidate
details, not observed Linux compatibility. No physical hardware is qualified.
The successful QEMU tests use software rendering and provide no evidence for
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 | Live/installed login, persistent data, bounded signed update/interruption and matched recovery passed | Fixture-free exact final artifact and Linux proof workflow must also pass |
| 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 |

## Exact candidate first

Use only the normal image from the **Fixture-free OS candidate (unpublished)**
workflow, after its exact source/ISO receipt passes. Do not use the separate
QA image containing disposable test credentials/services. These images are
unsigned unpublished previews, not supported installers. Verify the downloaded
ISO against its exact `SHA256SUMS`, provenance and recorded qualification
receipt before preparing removable media. On Windows:

```powershell
Get-FileHash .\phios-linux-0.1.0-alpha.1-x86_64.iso -Algorithm SHA256
```

Compare the complete digest, not a filename or another build's successful test.
The first physical gate is a live removable-media boot with no installation.
Document actual firmware configuration, UEFI mode and Secure Boot status; this
candidate does not support Secure Boot or BIOS. Preserve the existing Windows
installation and its independent backup. A hardware installation test requires
a separately identified dedicated empty disk; the current installer does not
support dual boot, partition reuse or preserving contents on its target.

## Observations and manual results

Inside the exact normal live image, run as the ordinary user:

```bash
phios-hardware-report --iso-sha256 VERIFIED_ISO_SHA256 > hardware-observation.json
```

Replace the placeholder. The collector reads public source/kernel/UEFI,
board/firmware, PCI IDs/bound drivers and audio-card count. It performs no
effects, probes no credentials and records no hostname, account name, disk
serial, MAC/IP address, Wi-Fi SSID or user-state content. It marks the supplied
ISO hash as supplied, because it does not independently read the downloaded
ISO bytes. Absence of virtualization detection does not prove physical hardware.
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
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.

Only after choosing a dedicated empty test disk should the operator review the
production installer plan and explicit confirmation described in INSTALLATION.md.
Then prove password-authenticated no-media boots, acknowledged canonical data
after restart, separate verified data-only backup, the actual signed target
transition, interrupted update, matched live-media recovery, preserved data and
inactive old authority. Physical power-loss testing is a separate storage gate,
not implied by terminating QEMU. Preserve failures and identify the exact
machine, source, ISO and transition; do not infer a supported hardware family.

## Release holds

Hardware results, the independently authenticated maintainer release public key
and full fingerprint, actual signed final transition, and third-party source/
license delivery review are still missing. RELEASE_ARTIFACTS.md describes the
remaining signing/publication gates. No release key is generated on behalf of
the maintainer and no test key becomes a release identity.
2 changes: 1 addition & 1 deletion docs/os/IMPLEMENTATION_STATUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ proof that PhiOS is a completed OS. Preserve the repository AGENTS.md rules.
| R6: Recover durable private state | Locking/sync, transactional outbox and data-only recovery | Contention, interruption, backup/restore and schema refusal tests; installed acknowledged state survived abrupt VM restart in 36798467774; physical power-loss qualification pending |
| R7: Explicit blank-disk installation | Experimental root-owned offline CLI and disposable qualification lane | 20 local refusal/cancellation/identity tests; cancellation, actual installation, no-ISO desktop boot and fresh data restoration passed on the named disposable VM; hardware beta pending |
| R8: Whole-OS update and recovery | Explicit public-key enrollment, signed verifier, staged package application and matched root/EFI checkpoints | Full 2,218-test CI and bounded end-to-end VM run 36805999628 passed: valid update, invalid/cancelled/replayed/dependency refusal, abrupt termination during a real package hook, unchanged active system, deliberate kernel boot failure, matched live recovery and three password-authenticated disk-only boots; arbitrary transitions and hardware remain unqualified |
| R9: Qualify hardware and one Linux governed workflow | Pending | Named hardware matrix and observed effect verification |
| R9: Qualify hardware and one Linux governed workflow | Candidate UID-separated installed-only proof-note broker, canonical bound single-use lease, independent protected ledger and read-only hardware collector/protocol | 21 focused denial/cancel/expiry/replay/durability/binding tests passed; actual sudo/PAM/UID 1001 and post-recovery VM qualification pending; supplied Skytech target remains physically unqualified |
| R10: Sign and publish the exact qualified artifact | Exact native/Python/npm inventory, supplier license notices, CycloneDX SBOM and source/ISO/artifact provenance; fixture-free build/normal PAM qualification workflow | Eight focused inventory/refusal tests and validation against pinned official CycloneDX 1.6 schemas passed locally; actual image/VM CI pending; third-party source/license review, release identity, signatures and maintainer publication remain held |

## First builder handoff
Expand Down
79 changes: 79 additions & 0 deletions docs/os/LINUX_PROOF_WORKFLOW.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Bounded installed Linux proof workflow

This candidate demonstrates one harmless real Linux filesystem effect. It
creates one fixed 57-byte proof note inside an independent protected store.
It is not a desktop automation API, AI agent, shell executor or generic file
writer. The existing Ghost Walk browser decision/binding/lease routes remain
held. Public EffectIntent, EnforcementProfile, AuthorityEpoch and ActionLease
contracts are reused without modifying private PhiKernel/TIEKAT internals.

## Operator sequence

Use an experimental installed PhiOS system, with the installer-created UID
1000 account and its ordinary password-authenticated sudo administration.
The public volatile live account cannot run this broker. There is no new
NOPASSWD rule and no unattended approval flag.

```bash
sudo systemctl start phios-proof-proposer.service
sudo phios-linux-proof inspect
sudo phios-linux-proof approve
sudo phios-linux-proof execute --approval APPROVAL_SHA256
```

Replace `APPROVAL_SHA256` with the exact identity returned by approval. Review
the captured proposal, actual source/boot identity, fixed note hash, protected
store, single use and 60-second lifetime. Approval requires typing the complete
`APPROVE SHA256` review phrase. Anything else cancels before creating an
approval, binding, lease or effect. The proposal and actual OS identity are
checked again after review. Run the separately requested effect within 60
seconds. If it expires, make and review a new approval; do not edit records.

The static one-shot proposer runs as UID 1001 `phios-agent`, with a nologin
account, no sudo, no capabilities, no privilege escalation, a private network,
protected home/system paths and one writable private proposal directory. It
is not enabled at boot. It observes public source/boot identity and writes an
untrusted, zero-authority proposal for the fixed note. A browser, pseudo-TTY
or agent-owned proposal is never approval. A malicious process running as the
installed administrator, cached administrator sudo or arbitrary root remains
outside this principal-separation boundary; TTY access alone is not human
authentication. Sudo/PAM separates the installed administrator from the
agent principal, rather than authenticating an AI judgment.

The root-owned Python-isolated broker accepts only that fixed proposal path,
principal, capability and text. It opens bounded regular singly linked input
without following links and captures bytes before review. It binds the actual
source and boot to the decision, exact intent, enforcement profile, capability
binding and canonical single-use ActionLease. The note destination cannot be
supplied by the agent or caller. Root-owned directory descriptors, exclusive
creation and fixed bytes constrain this effect; signed administrator code is
trusted, and a compromised root is not sandboxed by these checks.

## Consumption, verification and recovery

`/.snapshots/phios-linux-proof` stores immutable SHA-256-named approvals,
consumption records, notes and post-effect receipts. It is in the independent
`@snapshots` subvolume, outside `@root` rollback snapshots and user data-only
backups. Records are root-owned; directories are created 0700 and files 0600.
The broker flushes the consumption record before creating a note. A failure or
interruption may leave a consumed lease and incomplete effect requiring review;
it never silently makes that lease reusable. It flushes the note, independently
opens and verifies its exact bytes, then flushes a separate linked receipt.
No executable authority follows from viewing a receipt.

Both wall-clock validity and Linux `CLOCK_BOOTTIME` expiry are enforced, including
time spent suspended. A new boot or source identity invalidates old approvals.
OS recovery preserves the independent ledger; it cannot reinstate a rolled-back
lease. Canonical user data and its zero-authority history stay separate. This
extends the maintenance boundary only for this fixed broker store; custom
authority stores still need an explicit reviewed recovery procedure. Losing
the disk loses this ledger, and copying files is not authority enrollment.

Twenty-one focused tests passed for exact binding/readback, cancellation, changed
review, scope/principal/source/boot denial, expiry including clock rollback,
replay, corrupt/linked records, symlink redirection and durable consumption
failure. The external installed-VM fixture uses ordinary sudo/PAM, the actual
UID 1001 service and production commands. It must prove agent store/broker
denial, cancellation, one verified note, replay and real 60-second expiry, then
historical-authority refusal after restart and matched OS recovery. End-to-end
VM qualification is pending; this document grants no hardware/release readiness.
7 changes: 7 additions & 0 deletions docs/os/OS_MAINTENANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,10 @@ contains disposable fixtures and ephemeral signing identity; this evidence
does not qualify another artifact, arbitrary upgrades or hardware.
`whole_os_rollback_available` remains false for the supported product.
See IMPLEMENTATION_STATUS.md and RELEASE_CONTRACT.md for remaining gates.

The bounded Linux proof broker stores its protected history in the independent
`@snapshots/phios-linux-proof` directory. Its single-use approvals are bound to
the current boot and source, and expire by both wall clock and CLOCK_BOOTTIME.
Root/EFI recovery preserves that ledger and cannot make an old-boot approval
active. See LINUX_PROOF_WORKFLOW.md; custom authority stores remain outside
this fixed procedure.
6 changes: 6 additions & 0 deletions docs/os/RELEASE_ARTIFACTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,9 @@ All generated reports remain `release_ready: false`; they do not grant
execution, signing, adapter-promotion or publication authority. Main/release
branch protection and required-check settings have not been changed by this
candidate workflow. Protecting them remains a maintainer repository setting.

The builder also captures actual Rollup chunk participants before npm pruning,
including Vite-generated runtime helpers. Bundled supplier metadata and license
notices are retained in the installed dist tree; the collector checks final
chunk and notice hashes and emits a separate javascript-bundled inventory.
A pruned runtime package list alone cannot describe all generated frontend code.
4 changes: 3 additions & 1 deletion docs/os/RELEASE_CONTRACT.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ Python package versions and OS versions are independent. OS tags start with
The default preview does not run an AI model or an autonomous agent. Ollama,
vector memory, OCR, Windows UI Automation/GhostWalk and hardware bridges are
optional or platform-specific. Missing capabilities must show unavailable.
No Linux desktop effect executor or lease issuance is advertised. The browser
No general Linux desktop effect executor or lease issuance is advertised. A
separate installed-only, explicitly invoked proof-note candidate is described
in LINUX_PROOF_WORKFLOW.md; its untrusted agent proposal grants no authority. The browser
cannot mint operator approvals; see OPERATOR_AUTHORIZATION.md.

## Deliberately unqualified capabilities
Expand Down
62 changes: 62 additions & 0 deletions docs/os/evidence/linux-proof-attempts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"attempts": [
{
"evidence_artifact_id": 11138998040,
"evidence_files": {
"PhiOS/PhiOS/dist/linux/build.log": "b2926f9e5a138d4ee82246fcb4e7930025a6fad1e062d813ac0163a8e6c7c274",
"PhiOS/PhiOS/dist/linux/builder-image.json": "152a89cdd304d4c82530635a884da51fa7a5667dc36e2124b922b34e1f4a818f",
"PhiOS/PhiOS/dist/linux/builder-packages.txt": "9c8e376a83e3ebbad5078dbb9fc5cc12ecd15ad57c4fa933466bad26dd09a291",
"PhiOS/PhiOS/dist/linux/fixture-inventory.json": "2ebf26541ddaa6d1e239b1a3be944946f18e8d08e78837065d11eed7921d7a60",
"PhiOS/PhiOS/dist/linux/image-packages.txt": "dd6faf936234848a574c0d3125da4eddabaa33b8f02998bc7be070250d3e29f9",
"PhiOS/PhiOS/dist/linux/javascript-packages.json": "a9026fc707306f7fb2ffb952b884197a66ccc3def539f90f938e8c4b7e4e0582",
"PhiOS/PhiOS/dist/linux/mkarchiso.log": "52dd7695fca50a2a4727e21413070068f5107385a5f5822b48a7444affad7895",
"PhiOS/PhiOS/dist/linux/native-packages.json": "ad9071bcaf5ab74f87b7915aa8e0909f95b577e472c2996aa1e1064427697090",
"PhiOS/PhiOS/dist/linux/provenance.json": "4f546f4e5ad9478f8cb8b1fde934c8bf919b62c5ba7d7e1f90b80b86e656291f",
"PhiOS/PhiOS/dist/linux/python-packages.json": "9af1ad8db48a4e1a528d082984d07efbf34539b52ddac7026ea4e9923073d5a0",
"PhiOS/PhiOS/dist/linux/release.json": "0d5499ce8f252637d7a1d6a8bdedeb8aef9829307893e348f3c1bf0795b91a75",
"PhiOS/PhiOS/dist/linux/sbom.cdx.json": "b6e74ec4d252a5e5b2b1a884d35ed806fa10d10503903a68160eaf71339f3e84",
"PhiOS/PhiOS/dist/linux/source-archive-sha256.txt": "46c01dbd154317150c0a91ae1931427ab9c15f979e33271e2f67cd87075124d7",
"PhiOS/PhiOS/dist/linux/source-commit.txt": "3b5f0f3cc3d038a55ab34daa3b9637df451584ac29ef77f1fdd433e36a2536d1",
"PhiOS/PhiOS/dist/linux/source-review.json": "0a7b94001b98bf05951f44fc47e518cc008a14cd71b871c16a73d3ff7f7086df",
"PhiOS/PhiOS/dist/linux/third-party-notices.json": "137316e3c393079fd72aa7234611db782aa5f7c540b69648dd42729f35e25493",
"_temp/phios-boot/boot-evidence.json": "89fd0b797b17370b187c1d450cc05c6f5ff51b26fd76e54f33859226de785587",
"_temp/phios-boot/qemu.log": "cfb88d1675b569a5b47b59d2b1fe103919a5649ff0a475d396d1ffde6c6b24f0",
"_temp/phios-boot/screen-first.png": "6bf190581d13131e0dfa84a0d2c48301eee4a9cae68e2d25e547335951f37d24",
"_temp/phios-boot/screen.png": "9e5130dfebfa68d901c9e339e94970c3e370bce4f7422bc196a6f679f227384c",
"_temp/phios-boot/serial.log": "b7a8e5bcd5402a5e2cc78dfca3d5ad035dcc579d174166a321f5544d23c69abb",
"_temp/phios-installed/install-live-qemu.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"_temp/phios-installed/install-live-serial.log": "74188764f835bf43d87ec7989e4de353cfd75f955defe6e85e1bcba41a92e05b",
"_temp/phios-installed/installed-1-qemu.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"_temp/phios-installed/installed-1-serial.log": "b2c8017c2eac119a0a7a087932d9465b3a150fb128ce9aab3433d65142a58956",
"_temp/phios-installed/installed-evidence.json": "0feaec08478a3f9d62f3ef66fe730d7fea3a125345a3184cc3edc7a4f906b85f",
"_temp/phios-installed/interrupted-resume-live-qemu.log": "06733008ca698aa515bfe73217fc56e15a6720fc69302592e9ab9e6c594c2e95",
"_temp/phios-installed/interrupted-resume-live-serial.log": "6330debfc5b90e9c344bc5759c0bab5bf2937f0780c6180f4743074fd8825c44",
"_temp/phios-installed/screen-install-live.png": "52e0cbfba53195e94b8e53e193f093d9b50d93ce7c52d84314ccde8725245f10",
"_temp/phios-installed/screen-installed-1-failure.png": "14e78d7ef364fe1a127090e54d5744d8e4a83a82b5ff9f975957ec858d4321aa",
"_temp/phios-installed/screen-installed-1-greeter.png": "f83a37571994ca7274939836bf77a47904c689fb6d38bb8587a11f2432aeba0e",
"_temp/phios-installed/screen-interrupted-resume-live.png": "612f17fbf548ef2042612b8617cc4b995174213c20e1d1762575d9f9805cd17e"
},
"failure": "External fixture saved its user QA summary before the older data probe created the qa directory. FileNotFoundError occurred after all proof effect/refusal commands passed, before restart/recovery qualification. Fixture now creates its own private summary directory and flushes it.",
"head": "d4e0c4bda9aca66189a6a4d08f459f0a0a437a6d",
"image_artifact_id": 11138743361,
"iso_sha256": "400dae3ba8cce0ef834b68cd905585ecd7feec372a15abc4268dfbd68f3a02e9",
"job_id": 110201722446,
"linux_workflow_qualified": false,
"observed": [
"production agent service",
"actual sudo password authentication",
"UID 1001 store/broker denial",
"cancellation",
"canonical bound single-use lease",
"actual note/readback receipt",
"replay refusal",
"real 60-second expiry refusal",
"successful signed package and preserved interrupted stage"
],
"release_ready": false,
"source_commit": "0133997a0ac8b2d202170dd28a6f9c19b23c51fe",
"workflow_run": 36809656268
}
],
"schema_version": "phios.linux-proof-attempts.v1"
}
5 changes: 5 additions & 0 deletions packaging/arch/phios/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ package() {
install -Dm755 packaging/linux/updates/phios-os-update "$pkgdir/usr/bin/phios-os-update"
install -Dm644 packaging/linux/updates/enroll.py "$pkgdir/usr/lib/phios-updates/enroll.py"
install -Dm755 packaging/linux/updates/phios-update-enroll "$pkgdir/usr/bin/phios-update-enroll"
install -Dm644 packaging/linux/proof/broker.py "$pkgdir/usr/lib/phios-proof/broker.py"
install -Dm644 packaging/linux/proof/propose.py "$pkgdir/usr/lib/phios-proof/propose.py"
install -Dm755 packaging/linux/proof/phios-linux-proof "$pkgdir/usr/bin/phios-linux-proof"
install -Dm644 packaging/linux/proof/phios-proof-proposer.service "$pkgdir/usr/lib/systemd/system/phios-proof-proposer.service"
install -Dm755 packaging/linux/hardware_report.py "$pkgdir/usr/bin/phios-hardware-report"
}
Loading
Loading