docs(releasing): checking an old download against its record #424

Merged
HumanBean merged 2 commits from HumanBean/LongshotLauncher:records-docs into main 2026-12-05 19:01:59 +00:00
Owner

Why: nightlies are pruned, so there was no way to check an old download once its release was gone. Releases now keep their SHA256SUMS and signature in the package store, and RELEASING.md should say where, how to check a file against it, and that a stable is built from nothing in the runner's cache.

Documentation only (RELEASING.md). Tooling's tests/test_release.py passes against this checkout (46 tests); the launcher's Rust checks were not run, since no code changed. The URLs hold files only once the first release has published since the change in MagicBeanAdmin/Release.

See Tooling 42 and Tooling 43.

🤖 Generated with Claude Code

Why: nightlies are pruned, so there was no way to check an old download once its release was gone. Releases now keep their `SHA256SUMS` and signature in the package store, and `RELEASING.md` should say where, how to check a file against it, and that a stable is built from nothing in the runner's cache. Documentation only (`RELEASING.md`). Tooling's `tests/test_release.py` passes against this checkout (46 tests); the launcher's Rust checks were not run, since no code changed. The URLs hold files only once the first release has published since the change in MagicBeanAdmin/Release. See [Tooling 42](https://git.magicbean.dev/MagicBeanDev/Tooling/issues/42) and [Tooling 43](https://git.magicbean.dev/MagicBeanDev/Tooling/issues/43). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
docs(releasing): checking an old download against its record
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
60813ae344
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
HumanBean changed title from WIP: docs(releasing): checking an old download against its record to docs(releasing): checking an old download against its record 2026-12-05 18:51:58 +00:00
BeanBot left a comment

Recommendation: Approve. The old-download verification procedure stops working after signing-key rotation, when the current keyring no longer contains the key that signed the old record. The guide also overstates when records exist and what goes into a stable build. Nothing blocking is left. Recommend approval; not approved on the forge.

The change documents retained checksum records and a way to compare an old download with a signed record. It adds useful guidance, but the verification instructions need a historical-key procedure to remain usable.

Should fix (3): not blocking, but worth doing before merging.

  • L1 RELEASING.md:129: The verification procedure does not account for signing-key rotation: the guide's rotation procedure removes the old public key from the current keyring. (more on the line) Do: Document how to verify historical signatures using an authenticated historical public key or keyring, including how to treat a key removed because it was compromised.
  • L2 RELEASING.md:120: The guide says every release has a package-store record, but the release workflow only starts creating records for releases published after the related change. (more on the line) Do: State that records start with releases published by the updated workflow, and direct readers to the release assets when an older release is still available.
  • L3 RELEASING.md:115: The statement that a stable is built from the commit, locked crates and pinned toolchain only omits other build and packaging inputs. (more on the line) Do: Limit the claim to the intended cache property and avoid presenting those three inputs as the complete build input set.

@fix can do L1, L2 and L3.

Questions (1) (not confirmed from the code; they don't hold the recommendation)

  • How can a reader discover the eight-hex suffix of a second publication for a tag? The guide names the format but does not give a lookup procedure.

Checks: Still running: 5 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven: the described verification was not exercised, and the Tooling checkout is unavailable here.

Other systems: The guide covers both launcher and Longshot releases. Verification depends on Tooling and each product's release keyring; old records signed by a removed key are affected by key rotation.

Switches: None.

Reviewed: 60813ae344 against ca88668e03: Read AGENTS.md, CONTRIBUTING.md, RELEASING.md, the diff and commit in full; inspected release and CI documentation, packaging code, and references to checksum verification. No review checklist or pull request template was present. Tooling and the separate Release repository were unavailable.; nothing run (a code review).

Checked and fine:

  • The commit has an AI co-author trailer and a Conventional Commit subject.
  • The change adds no game-derived files, switches, executable code, or generated files.

Testing: No commands from the project or tests were run, as requested. The author reports 46 Tooling release tests passing; CI checks were still running.

Overlaps and merge order: No overlapping pull requests were available to inspect.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as HumanBean took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The old-download verification procedure stops working after signing-key rotation, when the current keyring no longer contains the key that signed the old record. The guide also overstates when records exist and what goes into a stable build. Nothing blocking is left. Recommend approval; not approved on the forge. The change documents retained checksum records and a way to compare an old download with a signed record. It adds useful guidance, but the verification instructions need a historical-key procedure to remain usable. **Should fix (3)**: not blocking, but worth doing before merging. - **L1** `RELEASING.md:129`: The verification procedure does not account for signing-key rotation: the guide's rotation procedure removes the old public key from the current keyring. (more on the line) **Do:** Document how to verify historical signatures using an authenticated historical public key or keyring, including how to treat a key removed because it was compromised. - **L2** `RELEASING.md:120`: The guide says every release has a package-store record, but the release workflow only starts creating records for releases published after the related change. (more on the line) **Do:** State that records start with releases published by the updated workflow, and direct readers to the release assets when an older release is still available. - **L3** `RELEASING.md:115`: The statement that a stable is built from the commit, locked crates and pinned toolchain only omits other build and packaging inputs. (more on the line) **Do:** Limit the claim to the intended cache property and avoid presenting those three inputs as the complete build input set. `@fix` can do L1, L2 and L3. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - How can a reader discover the eight-hex suffix of a second publication for a tag? The guide names the format but does not give a lookup procedure. **Checks:** Still running: 5 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the described verification was not exercised, and the Tooling checkout is unavailable here. **Other systems:** The guide covers both launcher and Longshot releases. Verification depends on Tooling and each product's release keyring; old records signed by a removed key are affected by key rotation. **Switches:** None. **Reviewed:** 60813ae34404 against ca88668e03dc: Read AGENTS.md, CONTRIBUTING.md, RELEASING.md, the diff and commit in full; inspected release and CI documentation, packaging code, and references to checksum verification. No review checklist or pull request template was present. Tooling and the separate Release repository were unavailable.; nothing run (a code review). **Checked and fine:** - The commit has an AI co-author trailer and a Conventional Commit subject. - The change adds no game-derived files, switches, executable code, or generated files. **Testing:** No commands from the project or tests were run, as requested. The author reports 46 Tooling release tests passing; CI checks were still running. **Overlaps and merge order:** No overlapping pull requests were available to inspect. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as HumanBean took it out of WIP. Nothing was run; a maintainer decides.</sub>
RELEASING.md Outdated
@ -112,6 +112,24 @@ nightly channel is where the next version is tried). There is no release candida
- In a launcher on the stable channel, Retry offers it.
- For the launcher: within a minute, `https://longshot.magicbean.dev/download/launcher/stable` goes to it.
A stable is built from its commit, the locked crates and the pinned toolchain only: the launcher's restores nothing from
Member

L3 (should fix): The statement that a stable is built from the commit, locked crates and pinned toolchain only omits other build and packaging inputs.

When: The launcher packaging script uses system fontconfig and libudev paths and downloads separate Zig, llvm-mingw, appimagetool and AppImage runtime artifacts. A maintainer relying on the sentence as a complete list of inputs gets an inaccurate provenance claim.

Do: Limit the claim to the intended cache property and avoid presenting those three inputs as the complete build input set.

**L3** (should fix): The statement that a stable is built from the commit, locked crates and pinned toolchain only omits other build and packaging inputs. *When:* The launcher packaging script uses system fontconfig and libudev paths and downloads separate Zig, llvm-mingw, appimagetool and AppImage runtime artifacts. A maintainer relying on the sentence as a complete list of inputs gets an inaccurate provenance claim. **Do:** Limit the claim to the intended cache property and avoid presenting those three inputs as the complete build input set.
RELEASING.md Outdated
@ -115,0 +117,4 @@
## Checking an old download
Nightlies are pruned, so every release, nightly or stable, also leaves its `SHA256SUMS` and `SHA256SUMS.sig` in the
Member

L2 (should fix): The guide says every release has a package-store record, but the release workflow only starts creating records for releases published after the related change.

When: A stable release or an unpruned nightly published before the new workflow is in use has no package-store record merely because it still exists. A reader following these URLs will find no record.

Do: State that records start with releases published by the updated workflow, and direct readers to the release assets when an older release is still available.

**L2** (should fix): The guide says every release has a package-store record, but the release workflow only starts creating records for releases published after the related change. *When:* A stable release or an unpruned nightly published before the new workflow is in use has no package-store record merely because it still exists. A reader following these URLs will find no record. **Do:** State that records start with releases published by the updated workflow, and direct readers to the release assets when an older release is still available.
@ -115,0 +126,4 @@
```
Fetch both for the download's tag into one folder, then run
`python -I ../Tooling/scripts/release.py --product launcher verify <folder>/SHA256SUMS` from this checkout and compare
Member

L1 (should fix): The verification procedure does not account for signing-key rotation: the guide's rotation procedure removes the old public key from the current keyring.

When: After a rotation, a retained checksum record signed with the old key is checked from the current checkout. The instructed verifier no longer has that key and cannot verify the record, even though the record and signature were retained.

Do: Document how to verify historical signatures using an authenticated historical public key or keyring, including how to treat a key removed because it was compromised.

**L1** (should fix): The verification procedure does not account for signing-key rotation: the guide's rotation procedure removes the old public key from the current keyring. *When:* After a rotation, a retained checksum record signed with the old key is checked from the current checkout. The instructed verifier no longer has that key and cannot verify the record, even though the record and signature were retained. **Do:** Document how to verify historical signatures using an authenticated historical public key or keyring, including how to treat a key removed because it was compromised.
docs(releasing): old keys, when records start, finding a second publication
Some checks are pending
CI / What the change needs (pull_request) Successful in 4s
CI / Rust formatting, lint and tests (pull_request) Waiting to run
CI / Release packages and stable upgrades (pull_request) Waiting to run
PR title / Conventional Commit title (pull_request) Successful in 5s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 9s
c16a1294a5
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Author
Owner

Addressed in the latest commit:

  • L1: added how to verify a record after a key rotation (a checkout from before the old key was removed), and what a leaked key means for it. The same gap was in MagicBeanAdmin/Release's record script, which would have failed on older releases after a rotation; a fix is committed locally and not yet pushed.
  • L2: records start with the first release published after 2026-12-05, which also records every release still up then.
  • L3: now claims only that a stable's build restores nothing from the runner's cache.
  • Question: the suffix is the start of that SHA256SUMS's own SHA-256; linked the package's version list.
Addressed in the latest commit: - **L1:** added how to verify a record after a key rotation (a checkout from before the old key was removed), and what a leaked key means for it. The same gap was in MagicBeanAdmin/Release's record script, which would have failed on older releases after a rotation; a fix is committed locally and not yet pushed. - **L2:** records start with the first release published after 2026-12-05, which also records every release still up then. - **L3:** now claims only that a stable's build restores nothing from the runner's cache. - **Question:** the suffix is the start of that `SHA256SUMS`'s own SHA-256; linked the package's version list.
HumanBean deleted branch records-docs 2026-12-05 19:02:00 +00:00
Author
Owner

Update: the record script fix mentioned above is now on MagicBeanAdmin/Release's main (4b6b7e95).

Update: the record script fix mentioned above is now on MagicBeanAdmin/Release's main (4b6b7e95).
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/LongshotLauncher!424
No description provided.