Repository navigation
Description
Situation
On 2026-12-01 a developer on 0.8.0-dev.748 (macOS, VM provider) ran curl -fsSL https://go.minimal.dev/unstable | sh -s -- --uninstall (plain, no --purge), then installed from the stable channel (0.7.4). The install was not refused. 0.7.4 started on the 0.8 box state, could not parse the 0.8 records, dropped them all from the box index, and min ls showed no boxes. The records and box contents stayed on disk; reinstalling 0.8 is expected to re-index them.
Cause
The R2.6 guard (state_from_0_8, scripts/install.sh) detects 0.8 state from:
- the
install.tomlkey, or$bindir/min versionwhen the key is a hash (fix(install): refuse 0.7 over 0.8 state that an install by commit hash wrote #3901), and $box_state/sessions/index.jsonwithformat_version>= 1.
--uninstall removes both install.toml (it is in the install record, record_generated) and min. On the VM provider the box index is inside providers/local-minvmd0/data-vol.raw, so (2) never fires on macOS. After an uninstall nothing tells the installer that the state is 0.8, and a 0.7 install proceeds. The documented uninstall and install commands both use the stable channel, so this path is easy to hit from a 0.8 dev build.
0.7.4's session store then rewrites the index without the 0.8 entries (DropMissing on the unknown stopped status) and without format_version.
Work
- Keep a marker of the state's version that survives
--uninstall(outside the install record, or read from inside the VM data volume), and have the R2.6 guard read it, so a 0.7 install over 0.8 state is refused after an uninstall too. - Decide whether
--uninstallshould keepinstall.toml(or a copy of its key) beside the state for the same reason. - Tests: an install_test case for uninstall → install 0.7 over 0.8 state (refused, nothing changed), and journeys J6/J7 on Run the 0.7 to 0.8 upgrade journeys on the VM provider (macOS) #3876.
Related
#3876 (upgrade journeys; J6 and J7 to add), #3900 / #3901 (the hash-key gap), inbox#1330.
🤖 Generated with Claude Code
Activity