diff --git a/.github/workflows/termos-iso.yml b/.github/workflows/termos-iso.yml index 37f1fbb..ca1db08 100644 --- a/.github/workflows/termos-iso.yml +++ b/.github/workflows/termos-iso.yml @@ -94,6 +94,42 @@ jobs: test -s build/legal-info/README test -s build/legal-info/manifest.csv + # Keep the human-reviewable metadata separate from the large source archive. + # This makes manifests and license texts practical to inspect without downloading + # the full legal-info archive, which also contains many source tarballs. + - name: Prepare compact legal review metadata + if: always() + shell: bash + run: | + set -euo pipefail + SOURCE=build/legal-info + DEST=legal-review-metadata + + if [[ ! -s "$SOURCE/README" || ! -s "$SOURCE/manifest.csv" ]]; then + echo "Legal-info metadata is unavailable; skipping compact review artifact." + exit 0 + fi + + mkdir -p "$DEST" + for file in README manifest.csv host-manifest.csv buildroot.config; do + if [[ -s "$SOURCE/$file" ]]; then + cp "$SOURCE/$file" "$DEST/" + fi + done + + for dir in licenses host-licenses; do + if [[ -d "$SOURCE/$dir" ]]; then + cp -a "$SOURCE/$dir" "$DEST/" + fi + done + + ( + cd "$DEST" + find . -type f ! -name SHA256SUMS -print0 | + sort -z | + xargs -0 -r sha256sum > SHA256SUMS + ) + - name: Check ISO format, checksum, and required kernel drivers shell: bash run: | @@ -185,6 +221,15 @@ jobs: tar -czf artifact/TermOS-legal-info.tar.gz -C build legal-info fi + - name: Upload compact legal review metadata + if: always() && hashFiles('legal-review-metadata/README') != '' + uses: actions/upload-artifact@v4 + with: + name: TermOS-Legal-Review-Metadata + path: legal-review-metadata/ + if-no-files-found: error + retention-days: 90 + - name: Upload ISO and legal review artifacts if: always() && hashFiles('artifact/TermOS-CI-x86_64.iso') != '' uses: actions/upload-artifact@v4 diff --git a/docs/RELEASE_CHECKLIST_0.2.0.md b/docs/RELEASE_CHECKLIST_0.2.0.md index ae94606..349c581 100644 --- a/docs/RELEASE_CHECKLIST_0.2.0.md +++ b/docs/RELEASE_CHECKLIST_0.2.0.md @@ -1,28 +1,38 @@ -# TermOS 0.2.0 — Release readiness +# TermOS 0.2.0 — Release, licensing, and validation checklist -## Verified in CI +This checklist distinguishes evidence that CI generated successfully from obligations that still require review. Do not mark a legal obligation complete based only on the existence of Buildroot's `legal-info` output. -- [x] TPM pytest suite is part of the required ISO workflow. -- [x] Buildroot output cache includes the complete output tree, including the target filesystem. -- [x] ISO builds successfully. -- [x] ISO reaches the init process in QEMU with UEFI firmware and VirtIO networking. -- [x] ISO format, checksum generation, and required kernel driver configuration checks pass. -- [x] TPM source modules match the corresponding copies installed in the root filesystem overlay. -- [x] No private repository signing key is included in the reviewed TPM source tree. +## Verified against the v0.2.0 tag -## Required before publishing the v0.2.0 ISO +- [x] The `v0.2.0` Git tag points to commit `14e0173e354a44b640723755b28180a1c819af05`. +- [x] Main-branch CI run [#22](https://github.com/MaybeSobi/TermOS/actions/runs/42106722558) for that exact commit completed successfully. +- [x] The ISO build, checksum generation, required kernel configuration checks, and QEMU UEFI boot to init passed in run #22. +- [x] Buildroot `make legal-info` completed successfully for the tagged commit and produced `README` and `manifest.csv`. +- [x] The CI legal-info log recorded 61 package collection entries and 86 successful license-file hash checks. This is collection evidence, not a manual review of the manifest or license texts. +- [x] The release ISO's SHA-256 was independently checked against the GitHub release asset digest: `4b09ad178f3eaf202ab4e26a1c6b60c83eb4d869074de4352e1be92ba56da565`. +- [x] TermOS's repository `LICENSE` declares MIT for TermOS-authored project files only. This does not apply to third-party components. -- [ ] Generate and inspect the Buildroot legal-info archive from the exact release build. -- [ ] Resolve or document every missing-source warning in legal-info/README. -- [ ] Review manifest.csv and license texts for target packages and relevant host tools. -- [ ] Confirm required notices and corresponding-source obligations for GPL/LGPL and other third-party components. -- [x] A repository `LICENSE` file declares the MIT License for TermOS's own code; confirm contributor ownership/coverage before relying on it. -- [ ] Publish required notices and source-availability information where applicable. -- [ ] Download the final release asset independently and verify its SHA-256. -- [ ] Test booting the release ISO from USB on physical hardware, if available. +## Remaining legal review before promoting or redistributing the ISO more widely -## Release caveat +- [ ] Inspect the exact target `manifest.csv` and `host-manifest.csv`; identify any `unknown` license/version fields and classify target packages separately from build-only host tools. +- [ ] Inspect the contents of `legal-info/README` and resolve or document every missing-material warning. CI stdout reports: `WARNING: the Buildroot source code has not been saved`. Its relevance to the distributed ISO and reproducible source package must be explicitly assessed. +- [ ] Compare every target-package license declaration with the actual license texts, including exceptions, dual licensing, embedded third-party notices, and files not represented by the package's main license field. +- [ ] Identify the complete corresponding source, applicable patches, and build/install scripts for every copyleft component distributed in the ISO (including the kernel, BusyBox, glibc/toolchain runtime, and GRUB where applicable). +- [ ] Verify that the corresponding source for the exact tagged build is available to recipients through a durable, clearly linked location, with the source access method satisfying each component's license. +- [ ] Publish the required third-party notices, license texts, source links or written-offer information, and a checksum for the compliance bundle alongside the relevant release assets. +- [ ] Review whether the repository-wide MIT declaration accurately covers every TermOS-authored file and whether all contributors have granted the rights needed to publish those files under MIT. +- [ ] Obtain an independent legal review before describing the distribution as legally certified or fully compliant. -The successful QEMU boot and generated legal-info inventory are not legal approval. Do not publish or encourage wider redistribution of the ISO until the missing-source warnings and applicable third-party license obligations have been reviewed and resolved. +## Physical hardware validation -The CI artifact is a temporary test artifact, not the official v0.2.0 release. +- [ ] Boot the exact v0.2.0 release ISO from USB on physical x86_64 hardware. +- [ ] Record device model, firmware/UEFI mode, boot result, display, keyboard, storage, and network observations. +- [ ] Test on additional physical hardware before making broad compatibility claims. + +## Current status and caveats + +The v0.2.0 ISO is already published. Passing CI and generating Buildroot's legal-info inventory do not prove legal compliance. The log identifies the Buildroot source archive as not saved; the exact manifests and README warnings still require inspection. The next CI revision exports a compact metadata artifact separately from the much larger source archive so that the actual manifests and license texts can be reviewed. + +Buildroot documents that its legal-info data comes from package recipe metadata, may be incomplete or inaccurate, and must be checked before being used as a compliance delivery. The GNU GPL requires complete corresponding source or another permitted method of source provision when covered binaries are distributed; the exact method depends on the license version and distribution circumstances. + +No formal legal certificate is created by this checklist. A legal opinion or certification must come from an appropriately qualified independent professional. diff --git a/docs/THIRD_PARTY_LICENSE_REVIEW_0.2.0.md b/docs/THIRD_PARTY_LICENSE_REVIEW_0.2.0.md new file mode 100644 index 0000000..eb40656 --- /dev/null +++ b/docs/THIRD_PARTY_LICENSE_REVIEW_0.2.0.md @@ -0,0 +1,84 @@ +# TermOS 0.2.0 — Third-party license review record + +**Review status:** Preliminary inventory review; not a legal opinion or certification +**Release tag:** `v0.2.0` +**Tagged commit:** `14e0173e354a44b640723755b28180a1c819af05` +**Build system:** Buildroot 2025.02.19 +**Evidence:** [Main-branch CI run #22](https://github.com/MaybeSobi/TermOS/actions/runs/42106722558) + +## 1. Scope + +This record covers the x86_64 ISO produced by the TermOS v0.2.0 tagged commit. It separates software included in the target image from host-only tools used to build the image. Host tools are tracked as part of the build record, but their presence in Buildroot's host manifest does not by itself mean they are shipped in the ISO. + +TermOS's repository-level MIT license applies only to TermOS-authored project files. It does not replace or override the licenses of the Linux kernel, BusyBox, glibc, GRUB, OpenSSL, Python, Buildroot, or other third-party components. + +## 2. CI evidence collected + +The successful run #22 built the tagged commit and completed the following steps: + +- Buildroot `legal-info` generation. +- Validation that `build/legal-info/README` and `build/legal-info/manifest.csv` exist and are non-empty. +- ISO format and SHA-256 checks. +- QEMU UEFI boot validation until the init process was reached. + +The legal-info section of the job log contains 61 package collection entries and 86 successful SHA-256 checks for collected license/notice files. These counts describe the log output; they are not a count of distinct target packages or a legal conclusion. + +The warning printed by Buildroot during collection is: + +``` +WARNING: the Buildroot source code has not been saved +``` + +This warning must be considered alongside the actual README and manifests. Buildroot is the build system; it is not automatically a package shipped in the target ISO. The exact build sources, patches, configuration, and scripts needed to satisfy source obligations for distributed copyleft components still require individual verification. + + +## 3A. Selected upstream Buildroot recipe declarations + +The following are declarations in the Buildroot 2025.02.19 package recipes for components identified in the v0.2.0 legal-info collection log. They are a useful cross-check, not a substitute for the exact target manifest or inspection of each source tree. + +| Component | Version in CI log | Buildroot recipe license declaration | Review note | +|---|---:|---|---| +| Linux kernel | 6.12.27 | GPL-2.0 | Verify the exact kernel source, applied patches, configuration, and any relevant exceptions. | +| GRUB 2 | 2.12 | GPL-3.0+ | Copyleft source and notices must be included or clearly made available. | +| BusyBox | 1.37.0 | GPL-2.0; bzip2-1.0.6 | Check BusyBox configuration and source; include the separately declared bzip2 license text. | +| glibc | 2.41 snapshot | GPL-2.0+ (programs), LGPL-2.1+, BSD-3-Clause, MIT (library) | Multi-license component; do not represent the whole package with one SPDX label. | +| OpenSSL library | 3.5.9 | Apache-2.0 | Preserve its license and required notices. | +| Python | 3.12.15 | Python-2.0, others | The "others" declaration requires investigation of bundled components and associated license terms. | +| zlib | 1.3.2 | Zlib | Preserve the license notice and confirm the source version. | +| libffi | 3.4.6 | MIT | Preserve the license notice. | + +The CI collection log also lists `host-kmod 33`; its Buildroot recipe declares LGPL-2.1+ for the library and GPL-2.0+ for the tools. This is a host-side build dependency in the observed collection log, not evidence that kmod is included in the target ISO. The host manifest must be used to confirm the build-only classification. + +**Key unresolved point:** The exact `manifest.csv` and `host-manifest.csv` from the tagged build remain to be inspected. Recipe declarations can differ from the actual package contents, and package sources may contain additional separately licensed files or exceptions. + +## 3. What is not yet verified + +The actual `manifest.csv`, `host-manifest.csv`, and complete `legal-info/README` contents have not yet been manually inspected in this review session. Therefore, this record does **not** assert that: + +- every package has a known and correct license declaration; +- every license text and exception has been matched to the correct component; +- all copyleft source and build/install-script obligations are satisfied; +- all required copyright and third-party notices are present in the published release; +- the MIT declaration covers every contribution with valid authorship/permission evidence. + +A new CI artifact named `TermOS-Legal-Review-Metadata` is being added to expose the small reviewable subset (README, target and host manifests, Buildroot configuration, and collected license texts) separately from the large source archive. The exact data from that artifact must be reviewed before closing the relevant checklist items. + +## 4. Review workflow + +For the compact artifact: + +1. Read `README` and record every warning. +2. Review `manifest.csv` for target packages and `host-manifest.csv` separately for host tools. +3. Flag missing or `unknown` license/version fields. +4. Compare recipe-declared license expressions against the actual collected license texts and any package-specific exceptions or embedded notices. +5. For each component in the target image, determine whether it is distributed in binary form and identify its exact corresponding source, patches, and applicable build/install scripts. +6. Publish a durable compliance bundle and clear source-access information with the release, once the required materials have been verified. +7. Retain the exact source/configuration snapshot associated with the ISO. + +## 5. Legal references + +- [Buildroot user manual — legal information](https://buildroot.org/downloads/manual/manual.html): describes the contents and limitations of `legal-info`, including that its data comes from package recipe declarations and must be checked before compliance use. +- [GNU GPL FAQ](https://www.gnu.org/licenses/gpl-faq.en.html): explains source distribution, corresponding-source and written-offer questions. +- [GNU GPL v2 text](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html): states the applicable source-provision choices for covered object-code distribution under GPLv2. + +This document is an engineering review record. It is not legal advice, a formal legal opinion, or a compliance certificate.