# Platform runbook: 0.2.2 source and versioned distribution

**Windows x64, Apple Silicon and Linux x64 v0.2.2 are [public and stable](https://github.com/scottconverse/patent-forge-lite/releases/tag/v0.2.2).**
Windows is separately app/installer signed; Mac is ad-hoc, not Developer ID signed or
notarized; Linux has no package signature. The v0.2.1 release and historical v0.1.0 archives
remain published and unchanged. Their proof does not transfer to 0.2.2.
Windows v0.2.2 payload verification, the post-publication Windows install, the limited macOS
launch under App Translocation and the headless Linux Mint run are different evidence, not
interactive passes.
After publication the Windows installer installed over v0.2.1 on Windows 11. The
[v0.2.1 host record](evidence/install/2026-11-29-windows-host/summary.md) reports setup/removal
exit 0/0, no app launch and user-data folder presence only, not a clean-guest pass.
Windows [EXE](https://github.com/scottconverse/patent-forge-lite/releases/download/v0.2.2/patent-forge-lite-0.2.2-x64.exe)
and [checksum](https://github.com/scottconverse/patent-forge-lite/releases/download/v0.2.2/patent-forge-lite-0.2.2-x64.exe.sha256)
must match the [manifest](RELEASE-MANIFEST.md) and valid Scott Converse publisher.
Tagged/bundled docs remain immutable; use this current online runbook for status.

## What CI does and does not prove

CI (`.github/workflows/native-manual.yml`) builds the desktop on Windows x64, `macos-15`
(Apple silicon), and `ubuntu-24.04` (x86_64), runs workspace and native tests, and treats
Clippy warnings as errors. macOS CI does not produce an installed result. Linux CI also
builds and uploads a release tarball, runs its binary under Xvfb with Mesa, and requires
the process to stay up for ten seconds. Profile creation is logged, not required to pass.
This checks start-up in a virtual display, not installation, interaction, or GPU support
on a user's desktop. Run
[46799629477](https://github.com/scottconverse/patent-forge-lite/actions/runs/46799629477)
passed on all three jobs at tag `v0.2.2`.

## Apple Silicon v0.2.2 (.app ZIP verified, launched under App Translocation)

Download
[patent-forge-lite-0.2.2-macos-arm64.zip](https://github.com/scottconverse/patent-forge-lite/releases/download/v0.2.2/patent-forge-lite-0.2.2-macos-arm64.zip)
and [its checksum](https://github.com/scottconverse/patent-forge-lite/releases/download/v0.2.2/patent-forge-lite-0.2.2-macos-arm64.zip.sha256).
This is a thin arm64 **`.app` ZIP, not a DMG** or Intel/universal build:

```sh
shasum -a 256 -c patent-forge-lite-0.2.2-macos-arm64.zip.sha256
unzip patent-forge-lite-0.2.2-macos-arm64.zip
open "Patent Forge Lite.app"
```

These are user launch instructions, **not commands run for release acceptance**.
The release was compiled from `55a9f00` (the tag commit `f1d74e5` differs only in release
records) with Rust 1.98.1 on macOS 27.2.1, Xcode 27.2/SDK 27.2, and every bundled resource
taken from that same revision. Extraction, 54-file content/layout/mode checks and strict
ad-hoc seal verification passed. After publication the ZIP was verified on macOS 27.2.1
(26B131) arm64: all 68 entries carried a browser-form quarantine attribute, and `open`
launched the app under App Translocation, where it ran 26 seconds and quit cleanly. That is
not an interactive acceptance pass: no Finder double-click, real browser download or
Gatekeeper approval was tested, and `spctl` rejects the bundle with no ticket stapled.

The signature is **ad-hoc**, **not Developer ID signed or notarized**, with no Apple-trusted
identity or stapled ticket. Gatekeeper can block it. Verify archive provenance before using
an OS-provided approval path; do not disable Gatekeeper or treat an integrity error as merely
quarantine. Both plist and Mach-O encode a **13.0** floor as metadata, **not validated runtime support**,
even on the build host. Older-macOS/GPU compatibility is untested.

### Development assembly is not the frozen release recipe

For development, build from the repository root on an Apple silicon Mac with a compatible
Xcode/Metal toolchain and `rsync`. For the same explicit target used in native CI:

```sh
cargo build -p pfl-desktop --features native --release --locked --target aarch64-apple-darwin
bash packaging/macos/bundle.sh --target aarch64-apple-darwin
```

This reads `target/aarch64-apple-darwin/release/pfl-desktop`. For a native build with no target
override, omit `--target` in both commands; both use `target/release/`. If you set
`CARGO_BUILD_TARGET` or `CARGO_TARGET_DIR`, use the same values for both commands. The bundler
rejects a missing binary rather than using the other target directory. Both bundle version fields
come from `[workspace.package].version` in `Cargo.toml` (currently 0.2.2).

`bundle.sh` assembles `packaging/macos/Patent Forge Lite.app` from the binary, `Info.plist`,
licences, broadly copied docs (without evidence), and prompts. This developer assembly is
**not** the audited explicit user-resource allowlist used for the public archive. Do not
publish it unchanged. It applies neither Developer ID signing nor notarization.
Use [the manifest](RELEASE-MANIFEST.md) for frozen release identities; the historical
v0.1.0 archive and the separately dated 0.2.0 launch record below remain unchanged.

**Historical evidence only:** the Mac mini transcript in
`docs/evidence/macos/20261125T023619Z/transcript.txt` records an Apple M4 build and bundle with
product version 0.2.0, no `Resources/docs/evidence`, ad-hoc signing status, a zipped-bundle hash,
and two launches that tested profile creation and preservation. That is not a result for 0.2.2
or an interactive acceptance pass.

Still to do for the exact v0.2.2 archive in an authorized synthetic QA environment,
**not** marked passed by this publication:

1. The app launches from `Applications` and shows the first-run profile prompt. The
   post-publication run launched the extracted bundle under App Translocation, not an
   installed copy in `Applications`, and interacted with no window.
2. Choosing Full allows a loopback Ollama endpoint; choosing Lean refuses it.
3. A run completes against `scripts/mock-ollama.ps1`'s macOS equivalent, or a real local
   runtime, and the run summary shows the checkpoint count.
4. Data lives under `~/Library/Application Support/patent-forge-lite/`; deleting the app
   leaves it in place.
5. Reinstalling the newer build over the older one keeps that data. Record the exact
   versions/hashes tested; older Windows upgrade results do not transfer to a new candidate.

## Linux v0.2.2 (portable tarball, identical-ELF CI proof only)

Download
[patent-forge-lite-0.2.2-linux-x64.tar.gz](https://github.com/scottconverse/patent-forge-lite/releases/download/v0.2.2/patent-forge-lite-0.2.2-linux-x64.tar.gz)
and [its checksum](https://github.com/scottconverse/patent-forge-lite/releases/download/v0.2.2/patent-forge-lite-0.2.2-linux-x64.tar.gz.sha256).
The member root is `patent-forge-lite-0.2.2-linux-x64/`:

```sh
sha256sum --check patent-forge-lite-0.2.2-linux-x64.tar.gz.sha256
tar xzf patent-forge-lite-0.2.2-linux-x64.tar.gz
cd patent-forge-lite-0.2.2-linux-x64
./pfl-desktop
```

The x86_64 ELF requires **glibc 2.39** — Ubuntu 24.04-class or newer; not Ubuntu 22.04 or Debian 12.
Do not replace system glibc. Direct `DT_NEEDED` entries are `libxcb.so.1`,
`libxkbcommon.so.0`, `libxkbcommon-x11.so.0`, `libgcc_s.so.1`, `libm.so.6`,
`libc.so.6`, `ld-linux-x86-64.so.2`; the interpreter is `/lib64/ld-linux-x86-64.so.2`.
These do not exhaust dynamically loaded X11/Wayland/font/graphics dependencies.
A working display/driver or Mesa stack is needed; no minimal apt recipe, all-distro or
GPU matrix is validated. It is not an AppImage, Flatpak, `.deb` or `.rpm`.

The explicit 53-file archive is a deterministic restage from run
[46799629477](https://github.com/scottconverse/patent-forge-lite/actions/runs/46799629477),
artifact `15566442753`: the ELF is 52,437,656 bytes, SHA-256
`659df5dd692975fc7fc78a218ca8e6f3436da551019b96b50ee68e808f105514`, plus 52 Git-blob
resources from `f1d74e5`. The ELF was not recompiled or edited. That exact-tag CI job observed
the **identical ELF** alive ten seconds under Ubuntu 24.04 Xvfb/Mesa and a fresh profile.
After publication the restaged archive was downloaded anonymously, checksum-verified, extracted
and executed on Linux Mint 22.3 x86_64 (kernel 7.0.0-44-generic): with an isolated data
directory it started headless, created its workspace and stayed alive 90 seconds. No virtual
display was available, so no window was rendered or interacted with.
**No fresh clean-desktop test** is claimed: no pristine authorized guest was available. There is
no package signature.

Extraction does not install PATH, a menu entry or an icon. The supplied source desktop
template uses `Exec=pfl-desktop` and `Icon=patent-forge-lite`; simply copying the entry
does not resolve them. The bundled Linux README has optional per-user directory/menu
directions with absolute paths and refusal to overwrite existing targets. Those directions
were not installed or tested. Launch directly from the extracted directory if no integration
has been configured; no `sudo` is needed for extraction or a per-user copy.

### Source/CI builds and follow-up acceptance

For a native build from source, run
`cargo build -p pfl-desktop --features native --release --locked --target x86_64-unknown-linux-gnu`.
The original CI tarball uses `patent-forge-lite-v<version>-linux-x64/` and broadly copied
docs. It is **not the cleaned public release archive above**; do not publish it unchanged.
Follow the [current manual](USER-MANUAL.md#macos-and-linux), not an old archive's root path.

For interactive acceptance use an X11 or Wayland session with a working GPU and driver.
A successful Xvfb run is not a substitute for native input, clipboard, graphics, or upgrade checks.

Checks to run, same shape as macOS:

1. Launches from the desktop entry, first-run prompt appears.
2. Full permits a loopback runtime, Lean refuses it.
3. A run completes and the summary reports its checkpoints.
4. Data lives under `${XDG_DATA_HOME:-~/.local/share}/patent-forge-lite/` and survives
   removal of the package.
5. Upgrade in place from the previous build keeps the data.

## Signature status

The public Mac has an **ad-hoc** integrity seal, no Developer ID signature or notarization;
Linux has no package signature. The **public Windows v0.2.2 release** contains a
separately Authenticode-signed app and installer. The [release manifest](RELEASE-MANIFEST.md)
identifies the exact release and its signature/payload verification. Windows CI's manual
diagnostic output is unsigned and cannot substitute for those exact bytes.

Bundled docs and the historical Mac/Linux snapshots remain immutable, including older
publication wording. The
[current online manual](https://github.com/scottconverse/patent-forge-lite/blob/main/docs/USER-MANUAL.md)
corrects download/setup status without rebuilding, replacing or recertifying any package.

## What would unblock these rows

An authorized interactive session on each platform, using pinned artifacts and a separate QA
profile, is still needed. Record install, launch, input, workflow, and upgrade checks separately
from the CI and historical results above. Do not reuse a live profile or infer distribution
approval from a successful check.
