docs(releasing): checking an old download against its record #424
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!424
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:records-docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why: nightlies are pruned, so there was no way to check an old download once its release was gone. Releases now keep their
SHA256SUMSand signature in the package store, andRELEASING.mdshould 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'stests/test_release.pypasses 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
WIP: docs(releasing): checking an old download against its recordto docs(releasing): checking an old download against its recordRecommendation: 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.
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.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.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.@fixcan do L1, L2 and L3.Questions (1) (not confirmed from the code; they don't hold the recommendation)
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:
60813ae344againstca88668e03: 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:
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.
@ -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 fromL3 (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.
@ -115,0 +117,4 @@## Checking an old downloadNightlies are pruned, so every release, nightly or stable, also leaves its `SHA256SUMS` and `SHA256SUMS.sig` in theL2 (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 compareL1 (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.
Addressed in the latest commit:
SHA256SUMS's own SHA-256; linked the package's version list.Update: the record script fix mentioned above is now on MagicBeanAdmin/Release's main (4b6b7e95).