Repository navigation
fix(install): refuse 0.7 over 0.8 state that an install by commit hash wrote - #3901
Conversation
…h wrote An install of a nightly or candidate by its commit hash writes the hash as the install.toml key, which ver_from_0_8 cannot place. With the VM provider the box index is inside the VM's data volume, so the host has none either. `--version 0.7.2` over such 0.8 state then installed every component and exited 0. state_from_0_8 now asks the min on disk when the key is not a version, once per run. Spec 07 R2.6 states the rule, and install_test.sh case rd13 pins it. Fixes #3900. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA
|
/arch-review |
|
Warning Review limit reached
This review includes 3 billable files and costs up to $0.75.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 3 minutes for your next included review. View limit details
|
Spec lint
Advisory. None of this blocks the merge; the review decides. Advisory, and never a merge gate. Linter: |
|
Approved: no findings at Nothing to do. Clobber: none seen. |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
The design of record does not rule on the installer's 0.8 state check, so this is a PASS by absence. The rule is R2.6 of the installer spec, and the change updates R2.6 with the code. The PR body says Fixes #3900, but #3900 also records the residual: VM-provider state with no install.toml. Keep #3900 open or file a new issue for that residual before the merge closes it.
Ruled at 4b50562 against gominimal/arch@90e3c006ebf0 by claude-opus-5-5.
Fixes #3900, the must-have found by #3876 J2 on the VM provider.
Situation
On Karl's Mac, in a Linux VM with nested KVM and
local-minvmd,install.sh --version 0.7.2over 0.8 state fromf0ccb306installed every component and exited 0. R2.6 says it must refuse before downloading anything.Cause
state_from_0_8had two ways to find 0.8 state, and neither works here:install.tomlkey. A bucket install of a nightly or candidate writes the commit hash (f0ccb306) as the key, andver_from_0_8cannot place a hash.sessions/index.jsonis insideproviders/local-minvmd0/data-vol.raw, so the host never has one.Change
scripts/install.sh: when the key is not a version,state_from_0_8asks theminon disk withmin version, once per run. Thatminis the build the install put there, and a report of 0.8 or later counts as 0.8 state. The key itself stays the hash, because the update check compares it with the channel pointer.client_versionmoves abovestate_from_0_8. The first refusal check runs before its old definition.docs/specs/07-spec-installer: R2.6 states the rule and its verification case. vale is clean on the R2.6 paragraph, and one alert that was already in that paragraph is fixed too.scripts/install_test.sh, case rd13:minreports0.8.0-dev.748.gf0ccb306, with no box index on disk, is refused for--version 0.7.3. The refusal exits 1, downloads nothing and replaces nothing.minreports 0.7.3 installs 0.7.3.Verification
just test-installer: 1301 passed, 0 failed.main(4 checks: exit 0, a download, no refusal,minreplaced) and passes with this change.Not in scope: a VM-provider state with no
install.toml, one that the installer did not make, is still not detected. #3900 records this.🤖 Generated with Claude Code
https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA