You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or wind
8000
ow. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Run the 0.7 to 0.8 upgrade journeys on the VM provider (macOS) #3876
priority:must-haveMust be done. Applied by the inbox-route classifier or a human.release:0.8.0Must be done for the 0.8.0 release. Pair with priority:must-have.
gominimal/inbox#1330 (0.7 to 0.8 upgrade) closed on 2026-11-29 with its journeys J1 to J5 run on the native provider only (unstable 741; evidence in inbox#1330 issuecomment-7249733239). The host had no KVM, so the VM-provider path was not proved.
Work
Run the same journeys on a macOS host (or a Linux host with KVM) with the VM provider, from the latest 0.7.x to the current 0.8 candidate:
the installer's archive of the provider state on macOS uses an APFS clone of the sparse data volume (providers/local-minvmd0/data-vol.raw), and the copy stays sparse;
a VM box that existed before the upgrade is listed stopped and resumes with min box attach <box> (J1 step 7);
the 0.8 refusal of a newer box state reaches the host through the STATE_REFUSED beacon and prints as the error, naming the data volume (J4);
a symlinked VM volume archives and restores beside the link's target (J5).
Expected outputs are in BOX's journey notes (1330-minfarm-expected.md); report pass or fail per step here.
Priority: should-have. It does not block the 0.8 RC unless a step fails.
One more step for this run, from a read-only look at a Mac on 0.7.2.
What the Mac shows. The DNS helper the system runs, /Library/PrivilegedHelperTools/Minimal.app (minzoned sha256 fa399d46…, Oct 20), differs from the copy that 0.7.2 staged in ~/.local/bin/Minimal.app (6d749f7a…, Oct 28). Yet min finalize-install --show reports nothing to run.
Why. No 0.7.x release compares the installed helper's bytes with the shipped ones. The comparison came in #3481 (3344eaa, 2026-11-17), which is on main but in no v0.7.* tag. 0.7.x finalize-install checks only the channel protocol version. An upgrade that ships a new minzoned that speaks the same protocol therefore leaves the old helper running, and 0.7.x reports nothing.
On 0.8.answerer_step_over (crates/minimal/src/resolver.rs) compares installed_sha256 with shipped_sha256 and returns CopyDiffers. The installer's answerer_copy_differs (scripts/install.sh) prints "Minimal's DNS service on this machine runs a different minzoned than this release ships." and the min finalize-install line. So the 0.8 upgrade should report the stale helper and replace it. This run proves it on a real Mac.
Step to add (macOS):
On a Mac whose installed helper differs from the shipped one (an upgrade from 0.7.x after a minzoned change, as above), the 0.8 install prints the "runs a different minzoned" line. min finalize-install --show lists the helper as a step. After min finalize-install, the sha256 of /Library/PrivilegedHelperTools/Minimal.app/Contents/MacOS/minzoned equals the shipped Minimal.app/Contents/MacOS/minzoned, and --show reports nothing to run.
Results: VM provider on Linux. A spawnpoint Debian arm64 VM under UTM on Karl's Mac, with nested KVM and --provider local-minvmd throughout, from 0.7.2 to f0ccb306 (unstable 748). mac-host ran it.
J2 found a must-have: #3900, fix in #3901.--version 0.7.2 over the 0.8 state installed every component and exited 0. The V8 installer wrote key = "f0ccb306" in install.toml, which places no version. With the VM provider, the box index is inside the data volume, so the host had none either. #3901 makes the installer ask the min on disk when the key is a hash.
With the key set to what a fixed installer reads (0.8.0-dev.748.gf0ccb306), J1 to J5 all pass:
Step
Result
J1: upgrade with a VM box
PASS. The box resumed on the VM provider with min box attach (J1.7).
J2: 0.7.2 over 0.8 state
PASS. The refusal printed its lines in order, and nothing changed.
J3: the guide's way back
PASS
J4: format_version 2 inside the VM volume
PASS. min exited 1 after about 3 s, with one stderr line beginning error: . Nothing changed on the volume.
J5: symlinked state directory with the VM volume inside
PASS. The refusal adds the link line.
So the Linux VM provider is proved, on condition that #3901 merges.
Still open: macOS only, for Karl's own Mac.
The APFS cp -c clone of providers/local-minvmd0/data-vol.raw, which stays sparse.
The DNS helper replacement (comment above).
New, from Norrie's fix(minvmd,minimald): bump the answerer channel protocol to 4 and pin its wire types #3851, which bumps the answerer protocol to 4. After a macOS upgrade, no box gets an address until min finalize-install runs. That includes a stopped box resumed with min box attach. The installer already offers min finalize-install (offer_finalize_install) before it prints the upgrade card, so the card does not change. The check:
#3900's fix confirmed on the real build. This run used unstable 0.8.0-dev.772.g2c608505, which includes #3901, in the spawnpoint Linux VM. It started from a fresh tree (j3876d) with local-minvmd, nested KVM, and the VM only. Unlike the earlier runs, it did not rewrite the install.toml key by hand.
Step
Result
J1.1–J1.4
PASS. Installed 0.7.2, created the box keep and wrote its marker on local-minvmd0, then stopped it. Upgraded to 2c608505. The upgrade printed the box state saved ~/.local/state/minimal.0.7.2 row and the kept-boxes card.
install.toml as written
key = "2c608505": still the bare hash (scripts/install.sh:2087 writes key = "$VERSION"). The fix is on the read side. state_from_0_8 asks $bindir/min version when the key is not a version (scripts/install.sh:1302).
J2.1
PASS. install.sh --version 0.7.2 exited 1 after 3 s with no download. The refusal text matched line for line. Asking min version started no daemon.
J2.2
PASS. Nothing in the state directory is newer than the stamp, and min is still 772.
priority:must-haveMust be done. Applied by the inbox-route classifier or a human.release:0.8.0Must be done for the 0.8.0 release. Pair with priority:must-have.
Activity
agent-137 commentedon Nov 30, 2026
One more step for this run, from a read-only look at a Mac on 0.7.2.
What the Mac shows. The DNS helper the system runs,
/Library/PrivilegedHelperTools/Minimal.app(minzonedsha256fa399d46…, Oct 20), differs from the copy that 0.7.2 staged in~/.local/bin/Minimal.app(6d749f7a…, Oct 28). Yetmin finalize-install --showreports nothing to run.Why. No 0.7.x release compares the installed helper's bytes with the shipped ones. The comparison came in #3481 (3344eaa, 2026-11-17), which is on
mainbut in nov0.7.*tag. 0.7.xfinalize-installchecks only the channel protocol version. An upgrade that ships a newminzonedthat speaks the same protocol therefore leaves the old helper running, and 0.7.x reports nothing.On 0.8.
answerer_step_over(crates/minimal/src/resolver.rs) comparesinstalled_sha256withshipped_sha256and returnsCopyDiffers. The installer'sanswerer_copy_differs(scripts/install.sh) prints "Minimal's DNS service on this machine runs a different minzoned than this release ships." and themin finalize-installline. So the 0.8 upgrade should report the stale helper and replace it. This run proves it on a real Mac.Step to add (macOS):
minzonedchange, as above), the 0.8 install prints the "runs a different minzoned" line.min finalize-install --showlists the helper as a step. Aftermin finalize-install, the sha256 of/Library/PrivilegedHelperTools/Minimal.app/Contents/MacOS/minzonedequals the shippedMinimal.app/Contents/MacOS/minzoned, and--showreports nothing to run.agent-137 commentedon Nov 30, 2026
Results: VM provider on Linux. A spawnpoint Debian arm64 VM under UTM on Karl's Mac, with nested KVM and
--provider local-minvmdthroughout, from 0.7.2 tof0ccb306(unstable 748). mac-host ran it.J2 found a must-have: #3900, fix in #3901.
--version 0.7.2over the 0.8 state installed every component and exited 0. The V8 installer wrotekey = "f0ccb306"ininstall.toml, which places no version. With the VM provider, the box index is inside the data volume, so the host had none either. #3901 makes the installer ask theminon disk when the key is a hash.With the key set to what a fixed installer reads (
0.8.0-dev.748.gf0ccb306), J1 to J5 all pass:min box attach(J1.7).format_version2 inside the VM volumeminexited 1 after about 3 s, with one stderr line beginningerror:. Nothing changed on the volume.So the Linux VM provider is proved, on condition that #3901 merges.
Still open: macOS only, for Karl's own Mac.
cp -cclone ofproviders/local-minvmd0/data-vol.raw, which stays sparse.min finalize-installruns. That includes a stopped box resumed withmin box attach. The installer already offersmin finalize-install(offer_finalize_install) before it prints the upgrade card, so the card does not change. The check:finalize-installline), all beforeYour boxes from Minimal 0.7.x are kept.;min finalize-install,min box attach <box>gets an address.Script fixes for the macOS run:
diff -r -x '*.sock'.session runtakes only a declared task, so usesession exec keep "<cmd>". Barestopneeds--forcewhile sessions are active.kvmgroup.sudo stat, becausesessions/is mode 700.minimal.0.7.2.<n>does not appear after J3.2, because J3.2 moves the copy back.agent-137 commentedon Dec 1, 2026
#3900's fix confirmed on the real build. This run used unstable
0.8.0-dev.772.g2c608505, which includes #3901, in the spawnpoint Linux VM. It started from a fresh tree (j3876d) withlocal-minvmd, nested KVM, and the VM only. Unlike the earlier runs, it did not rewrite theinstall.tomlkey by hand.keepand wrote its marker onlocal-minvmd0, then stopped it. Upgraded to2c608505. The upgrade printed thebox state saved ~/.local/state/minimal.0.7.2row and the kept-boxes card.install.tomlas writtenkey = "2c608505": still the bare hash (scripts/install.sh:2087writeskey = "$VERSION"). The fix is on the read side.state_from_0_8asks$bindir/min versionwhen the key is not a version (scripts/install.sh:1302).install.sh --version 0.7.2exited 1 after 3 s with no download. The refusal text matched line for line. Askingmin versionstarted no daemon.minis still 772.Not run in this tree:
install.tomlplusmin version. That is exactly the path fix(install): refuse 0.7 over 0.8 state that an install by commit hash wrote #3901 changed.j3876candj3876bwith the simulated key.Still open, and macOS only, for Karl's Mac:
minzonedhelper replacementmin finalize-installbefore boxes get addresses, after fix(minvmd,minimald): bump the answerer channel protocol to 4 and pin its wire types #3851mitodrummer commentedon Dec 1, 2026
Two journeys to add, from the uninstall gap found on 2026-12-01 (#3911, #3912):
--uninstall(plain), then install 0.7 from stable. Expect a refusal with nothing changed (today it installs, and 0.7 drops the 0.8 boxes from the index; Installer: after --uninstall, a 0.7 install over 0.8 state is not refused #3911).--uninstall, then reinstall 0.8. Expect the boxes listed again. Also--uninstall --purge: expect a prompt that names the boxes (Installer: --uninstall --purge deletes every box with no prompt or message #3912).Both can run in the spawnpoint Linux VM; the macOS run covers the APFS side.