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
2 changes: 1 addition & 1 deletion docs/os/HARDWARE_QUALIFICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,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 36823086807; separate ephemeral signed-update/interruption QA passed in the same source run | Future final artifact and actual signed release transition must be qualified separately |
| 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 integration run 36827706986; separate ephemeral signed-update/interruption QA passed in the same source run | Future final artifact and actual signed release transition must be qualified separately |
| 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
33 changes: 32 additions & 1 deletion docs/os/IMPLEMENTATION_STATUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,38 @@ proof that PhiOS is a completed OS. Preserve the repository AGENTS.md rules.
| R9: Qualify hardware and one Linux governed workflow | UID-separated installed-only proof-note broker, canonical bound single-use lease, independent protected ledger and read-only hardware collector/protocol | 21 focused tests and actual sudo/PAM/UID 1001 proof, cancellation, denial, replay, expiry and historical-authority refusal after restart/recovery passed on the exact normal ISO in run 36812104386; supplied Skytech target remains physically unqualified |
| R10: Sign and publish the exact qualified artifact | Actual native/Python/npm and bundled frontend inventory, supplier notices, CycloneDX SBOM and exact source/ISO/artifact provenance | 11 focused inventory/refusal tests, pinned CycloneDX schema validation and exact fixture-free live/install/state/recovery VM qualification passed in run 36812104386; final signed transition, hardware, source/license delivery, release identity and publication remain held |

## Latest desktop and aggregate qualification
## Latest integration and source-delivery continuation

[Run 36827706986](https://github.com/MichaelWave369/PhiOS/actions/runs/36827706986)
passed all nine main-targeted integration jobs for prospective source
`a3572a9bac7051b70af2ef66e75bc021f4214b31`, the same tree as PR #280 head
`41f0c8b2f7b268d046bfd8aa1bef8d24c712c9d1`. Python CI passed 2,287 tests and
six existing optional skips, with lint/types and wheel/vector/ledger/PhiShell
also passing. Exact normal and separate signed QA image scopes passed. The
downloaded compact archive digests, 15 available checksum payloads each and
available provenance records were independently checked; large image/source/
package/notice payloads retain producer hashes. The normal recovered desktop
and wrong-password hold were visually inspected. Exact identities and the
earlier failed integration are preserved in
`evidence/qualification-gate-a3572a9b.json` and its linked receipts.

The R10 continuation adds `packaging/linux/source_delivery.py` and
SOURCE_DELIVERY.md. The offline tool binds a manifest to the exact normal
provenance/SBOM/source-review/notices, requires every component origin, checks
local source/build/notice hashes, and refuses pending or unsafe delivery packets.
It never selects license conclusions, authenticates a reviewer or grants release
authority. Its observed initial check of this candidate finds 501 pending
component reviews and no supplied material bytes; receipt:
`evidence/source-delivery-a3572a9b.json`. Actual terms/content review and
corresponding source delivery remain open. This continuation's new code/source
must pass its own CI; the historical passed image does not qualify changed bytes.
Local validation passed 82 focused source-delivery/inventory/Linux-foundation/
CI-gate cases, including actual packet bytes/checksums, deterministic output,
changed material/candidate refusal, symlink/FIFO/traversal holds and incomplete
review refusal. Ruff and mypy passed for the added tool; GitHub remains the full
platform and exact-image qualification check for this continuation.

## Preceding desktop and aggregate qualification

[Run 36823086807](https://github.com/MichaelWave369/PhiOS/actions/runs/36823086807)
passed all nine jobs for source `a7bcd9863eea12a87c1a9ef1fcbd26211542cd91`,
Expand Down
20 changes: 20 additions & 0 deletions docs/os/RELEASE_ARTIFACTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ The exact source material, delivery terms and required notices for each
component must receive a maintainer review under its applicable license.
Arch binary archive URLs alone are not recorded as delivered source code.

SOURCE_DELIVERY.md describes the separate offline manifest/check/bundle tool.
It requires exact normal candidate metadata and all component origins, records
explicit reviewer declarations, checks supplied local source/build/notice bytes
and seals a deterministic packet only after all records/material are present.
It refuses the QA image, mismatched versions/origins, symlink/traversal/special
files and binary Arch/wheel/ISO substitutions for source. Its reports preserve
the separate unauthenticated-review, content/license and release gates; completed
byte records do not independently establish compliance or publication authority.

## Remaining publication gates

1. Preserve the passed exact normal-image live/install/state/recovery/fixed
Expand Down Expand Up @@ -106,3 +115,14 @@ per archive were independently checked against hashes/provenance; the large
ISO/package/source/notice archives were not redownloaded into the review host.
See `evidence/qualification-gate-a7bcd986.json` and its two linked receipts.
Source delivery, maintainer signing and physical support remain open.

The main-targeted integration [run 36827706986](https://github.com/MichaelWave369/PhiOS/actions/runs/36827706986)
passed all nine jobs on source `a3572a9bac7051b70af2ef66e75bc021f4214b31`,
matching PR #280 head's tree. Its two compact archives were independently
matched to GitHub digests; 15 available checksum payloads each and their available
provenance records were checked. The exact normal and separate QA scopes passed;
the normal inventory has 501 components / 746 supplier notice files. The large
ISO/source/package/notice archives were not redownloaded on the review host.
`evidence/qualification-gate-a3572a9b.json` retains exact receipts and the earlier
failed integration; RELEASE_HANDOFF.md points to this normal candidate. New
continuation/final source bytes require separate qualification.
46 changes: 36 additions & 10 deletions docs/os/RELEASE_HANDOFF.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ this handoff; no private PhiKernel/TIEKAT implementation is needed to boot it.

| Identity | Value |
| --- | --- |
| Reviewed branch head | `9c98475274442595c59370113b9c1e0dee595ec9` |
| Tested prospective merge source | `a7bcd9863eea12a87c1a9ef1fcbd26211542cd91` |
| Identical source tree | `a85700b2c08e54a066a77a2f4a4db7494b7579ff` |
| Normal ISO SHA-256 | `3b26a7334b36254b4e686843e84924ee14cdb6ef2d6748fd771e09a02e5f79a2` |
| First-party source archive SHA-256 | `41ed0a19a811f7ac6c22edbb555adbc4b55d5421f8ea6b9e73481cd58116d8b7` |
| Normal image qualification | [36823086807](https://github.com/MichaelWave369/PhiOS/actions/runs/36823086807) |
| Download normal ISO and payloads | [11144157950](https://github.com/MichaelWave369/PhiOS/actions/runs/36823086807/artifacts/11144157950) |
| Compact evidence | [11144167873](https://github.com/MichaelWave369/PhiOS/actions/runs/36823086807/artifacts/11144167873) |
| Persisted receipt | [desktop-normal-a7bcd986.json](evidence/desktop-normal-a7bcd986.json) |
| Reviewed integration PR/head | [280](https://github.com/MichaelWave369/PhiOS/pull/280), `41f0c8b2f7b268d046bfd8aa1bef8d24c712c9d1` |
| Tested prospective merge source | `a3572a9bac7051b70af2ef66e75bc021f4214b31` |
| Identical source tree | `6d328cf55777a5fda0737f043e0f263208dfc3b4` |
| Normal ISO SHA-256 | `8199e2abad0e7699747876bd95e734e3168758b1bb59f20a232339eb61ef614d` |
| First-party source archive SHA-256 | `090f6ee53f5db5dca1cbae17b80580de467b0daeec804082f4a629609bd736ec` |
| Normal image qualification | [36827706986](https://github.com/MichaelWave369/PhiOS/actions/runs/36827706986) |
| Download normal ISO and payloads | [11146755842](https://github.com/MichaelWave369/PhiOS/actions/runs/36827706986/artifacts/11146755842) |
| Compact evidence | [11146641362](https://github.com/MichaelWave369/PhiOS/actions/runs/36827706986/artifacts/11146641362) |
| Persisted receipt | [integration-normal-a3572a9b.json](evidence/integration-normal-a3572a9b.json) |

These unsigned review downloads expire **2026-10-08**. A later build, branch
update, final merge or tag has a separate identity. Download the normal payload,
Expand Down Expand Up @@ -53,7 +53,27 @@ integration. The component PRs above remain focused review references. Requiring
`release-gate` on the earlier component heads would leave them pending because
they predate that controller. Keep every merge and release under maintainer review.

The latest aggregate gate passed all nine jobs in
The main-targeted integration's aggregate gate passed all nine jobs in
[run 36827706986](https://github.com/MichaelWave369/PhiOS/actions/runs/36827706986)
for source `a3572a9bac7051b70af2ef66e75bc021f4214b31`, with 2,287 Python tests
passed and six existing optional skips. The two compact archives were downloaded
and independently matched to GitHub's archive digests; 15 available checksum
payloads per archive and their available provenance records were checked. Normal
live/install/data/proof/recovery/desktop and the separate ephemeral signed QA
scope passed on their own exact ISO bytes. The normal inventory has 501 component
origins and 746 captured supplier notice files. Installed recovery and actual
wrong-password screen-lock screenshots were visually inspected. Large ISO,
package, source and notice archives were not redownloaded to the review host;
their hashes remain the producer's recorded identities. See
`evidence/qualification-gate-a3572a9b.json` and its two linked receipts.

The preceding integration attempt 36825649652 held the aggregate gate after
signed Arch downloads timed out before a normal image existed; its screenshot
preservation also failed because PIL had not yet been installed. The successful
later code guards that step and keeps attempt-specific artifacts. The failed run
remains recorded; its passed QA image never qualified the missing normal image.

The preceding desktop aggregate gate passed all nine jobs in
[run 36823086807](https://github.com/MichaelWave369/PhiOS/actions/runs/36823086807)
for source `a7bcd9863eea12a87c1a9ef1fcbd26211542cd91`, with 2,287 Python tests
passed and six existing optional skips. `evidence/qualification-gate-a7bcd986.json`
Expand Down Expand Up @@ -113,6 +133,12 @@ does not claim those settings were applied.
with the required materials and notices. Have the release owner review the
result. Supplier labels, an Arch binary archive link, captured license files
and valid CycloneDX syntax alone do not complete this gate.
SOURCE_DELIVERY.md documents the offline `init` / `check` / `bundle` tool for
exact component coverage, declared reviews and retained local source/build/
notice bytes. Its check of the integration metadata finds all 501 component
reviews pending. Packaging is held until reviews and exact material bytes
are supplied; complete delivery records do not authenticate a reviewer or
prove the content/legal review is correct.
5. **Freeze support scope and qualify final bytes before publication.**
Record supported machines/features, known issues, maintenance/security update
and recovery procedures, support contact/owner and the retained evidence.
Expand Down
136 changes: 136 additions & 0 deletions docs/os/SOURCE_DELIVERY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# Exact candidate source and notice delivery

On a Linux maintenance host with Python 3.11 or newer,
`packaging/linux/source_delivery.py` prepares a separate, offline review and
delivery packet for one **normal** candidate. It uses the final SBOM component
identities, including distinct installed and bundled frontend origins. Supplier
license labels remain declarations. No license conclusion or disposition is
selected automatically, and nothing is downloaded, signed or published.

The release owner must review the actual applicable terms, corresponding source,
build instructions/patches, required notices and delivery arrangement for each
component. The tool checks recorded coverage and local bytes. A reviewer name and
timestamp are recorded assertions, not authenticated decisions or proof that the
legal/content review is correct. See RELEASE_ARTIFACTS.md for the independent
release signing, hardware, final-transition and publication gates.

## Bind the review to the candidate

Start with the exact normal candidate payload from RELEASE_HANDOFF.md. In one
directory retain `provenance.json`, `sbom.cdx.json`, `source-review.json`,
`third-party-notices.json` and `SHA256SUMS` unchanged. These metadata files may
also come from its compact evidence archive, using the actual
`PhiOS/PhiOS/dist/fixture-free/` directory. The tool checks their hashes against
checksums/provenance, their common source identity, and complete SBOM coverage.
It refuses the separate QA image.

```sh
python3 packaging/linux/source_delivery.py init \
--candidate /path/to/exact-normal-candidate \
--output /path/to/source-delivery-manifest.json
```

`init` creates a new file and refuses to overwrite an existing review. Every
component starts pending. The manifest binds the source commit/epoch, ISO
identity, first-party source and supplier notice archives, and exact metadata
hashes. A changed build needs a new manifest; do not transfer completed reviews
to changed component identities without fresh review.

Checksums/provenance here do not authenticate their publisher. A compact archive
also does not contain the ISO/source/notice archive bytes. Verify the actual ISO
and authenticated final signature separately. The report always records
`iso_bytes_independently_verified: false` because this tool does not read the ISO.

## Supply real material and record reviews

Place the selected source, actual build/patch material and notices beneath one
explicit local materials directory. Use ordinary relative paths without spaces,
traversal, symlinks or special files. Input archives stay opaque and are never
extracted. Each catalog entry has these exact fields:

```json
{
"path": "sources/component-version.tar.gz",
"kind": "corresponding-source",
"sha256": "ACTUAL_FULL_LOWERCASE_SHA256",
"size": 12345,
"origin": "Actual source origin and exact revision/version",
"custody": "How these exact bytes were acquired and retained"
}
```

Replace every example value with the actual record. `kind` is
`corresponding-source`, `build-material` or `notice`. Use `sha256sum` and the
actual file byte count to record identity. The checker independently reads and
hashes each local file; a URL or claimed hash without supplied bytes is held.
An Arch binary `.pkg.tar.*`, wheel or ISO cannot satisfy a source/build record.
A source filename alone does not establish that its contents correspond to the
distributed binary; the reviewer must inspect the actual material.

Supply the exact `phios-source.tar.gz` and `third-party-notices.tar.gz` named by
the bound provenance as corresponding-source and notice catalog entries. The
checker requires those exact archive hashes/sizes before packaging. The
first-party archive contains the checked-out code, packaging/build files and
patches; it does not replace third-party corresponding source. Do not include
private release keys or private PhiKernel/TIEKAT implementation material.

For each component, preserve `component`, `name`, `version` and
`declared_licenses`. Fill its `review` with an explicit `source-required` or
`no-source-required` disposition, reviewer, timezone-bearing ISO timestamp,
applicable terms and rationale. Record source/build/notice paths as references
to the material catalog. `source-required` requires both corresponding-source
and build/patch records. `no-source-required` still requires actual reviewed
terms and a rationale; it is never inferred from MIT/GPL/custom supplier labels.
Notice references may be empty only when that reviewed rationale explains the
applicable delivery requirements. One retained material path can be shared by
several exact component origins. Unreferenced extra files are refused.

## Check and seal the packet

```sh
python3 packaging/linux/source_delivery.py check \
--candidate /path/to/exact-normal-candidate \
--manifest /path/to/source-delivery-manifest.json \
--materials /path/to/materials

python3 packaging/linux/source_delivery.py bundle \
--candidate /path/to/exact-normal-candidate \
--manifest /path/to/source-delivery-manifest.json \
--materials /path/to/materials \
--output /path/to/source-delivery.tar.gz
```

| Exit | Meaning |
| --- | --- |
| `0` | Init succeeded, or all delivery records/files are present, or a complete packet was sealed |
| `1` | Invalid identity/record, changed/missing bytes, unsafe path, or incomplete bundle request |
| `2` | Check was valid but component reviews or the exact source/notice archives remain pending |

`check` emits a report with pending component identities, missing candidate
archives, verified local material counts and the canonical manifest hash.
`bundle` refuses incomplete records, seals and rechecks material bytes, and
retains the original candidate metadata, manifest, report, selected material
and a new internal checksum index in a deterministic gzip/tar archive. It
refuses output overwrite. Matching inputs produce matching packet bytes; this
does not imply reproducibility of the OS image itself.

File material is bounded to 8 GiB each / 32 GiB total; metadata to 16 MiB.
Materials use non-following descriptor-relative opens. Changing material or
candidate bytes between checking and sealing holds the packet.

`delivery_records_complete` means only that the specified declarations and
local byte records are complete. Reports always retain
`review_declarations_authenticated: false`,
`license_source_compliance_reviewed: false`, `release_ready: false` and
`publication_authority: false`. The release owner still evaluates the supplied
terms/content and delivery arrangement before publishing final distribution
bytes with their required accompanying materials.

## Continuation observation

The independently checked normal metadata from integration run **36827706986**
has 501 component origins and 746 supplier notice files. Initializing/checking
that exact candidate leaves all 501 reviews pending and requires the actual
first-party source and supplier notice archive bytes. This is the observed
starting point, not a completed source-delivery gate. The compact observation
receipt is `evidence/source-delivery-a3572a9b.json`.
Loading
Loading