D3862 — install.sh with a symlinked state directory saves the 0.7 copy beside the link's target and restores onto that target, and keeps the link · Issue #3866 · gominimal/minimal · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload
8000
a> to refresh your session.Dismiss alert
{{ message }}
Repository navigation
D3862 — install.sh with a symlinked state directory saves the 0.7 copy beside the link's target and restores onto that target, and keeps the link #3866
### D3862 — install.sh with a symlinked state directory saves the 0.7 copy beside the link's target and restores onto that target, and keeps the link
kind: task
size: S
est: 70 code, 90 tests
executor: agent
origin: bug
layers:
- installer:
- scripts/install.sh: Resolve box_state once with cd -P and pwd -P. Put archive_dest and the df -Pk check beside the target. In refuse_over_0_8_state, move the target and search beside the target first, then beside the link, with a cp for a copy found beside the link.
- scripts/install_test.sh: Update case sa7 to expect the target.0.7.3 copy with the link unchanged. Add refusal cases for a symlinked state, and a case for a pre-#3848 archive beside the link.
- docs/specs/07-spec-installer/07-spec-installer.md: State the R5.7 archive location and the R2.6 restore line for a symlinked state directory.
test: just test-installer state_archive_on_upgrade_from_0_7
test: just test-installer refuses_0_7_over_0_8_state
proof: An upgrade from 0.7.3 over minimal -> other/minimal makes other/minimal.0.7.3, and the printed restore line moves other/minimal and leaves the link pointing at the restored 0.7 state.
just test-installer state_archive_on_upgrade_from_0_7
0
== shellcheck --shell=sh == == running install_test.sh under sh == # install.sh tests (SH=sh) ok - sa1: seed install exits 0 ok - an upgrade from 0.7.3 to 0.8.0 exits 0 (R5.7) ok - the upgrade leaves a state copy beside the state directory (R5.7) ok - the state copy is byte-identical to the
just test-installer refuses_0_7_over_0_8_state
0
mes the stop by the min on disk (R2.6) ok - the refusal says the next step (R2.6) ok - the refusal prints the move (R2.6) ok - with no saved copy the refusal names none (R2.6) ok - the refusal replaces nothing (R2.6) ok - 0.7.3 is refused with the move target taken (R2.6) ok - the printe
Activity
agent-137 commentedon Nov 28, 2026
/implement
minimal-foundry commentedon Nov 28, 2026
Pull request #3867 is open for D3862.
branch
agent/3866-install-sh-with-a-symlinked-state-directory-savejust test-installer state_archive_on_upgrade_from_0_7just test-installer refuses_0_7_over_0_8_stateVerify
min task run agent-verify: exit 0Updated 2026-11-28T02:40:16.782Z.