8000 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
[go: up one dir, main page]

Skip to content

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

Done

Description

@agent-137

Task

Source: #3862

Plan block
### 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.

Activity

  1. agent-137 commented on Nov 28, 2026

    @agent-137
    MemberAuthor

    /implement

  2. minimal-foundry commented on Nov 28, 2026

    @minimal-foundry
    Contributor

    Pull request #3867 is open for D3862.

    branch agent/3866-install-sh-with-a-symlinked-state-directory-save

    test exit tail
    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

    Verify min task run agent-verify: exit 0

    Updated 2026-11-28T02:40:16.782Z.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0