8000 docs(install): refuse an empty copy source, and recover from a partial restore move · gominimal/minimal@4c613e0 · GitHub
[go: up one dir, main page]

Skip to content

docs(install): refuse an empty copy source, and recover from a partia…

Minimal Arch / arch-review succeeded Nov 28, 2026

PASS (the design is silent)

Inputs. Re-review of #3844 at 4c613e01, on arch bf831998. That is the same arch as all the earlier rulings on this PR. since.diff runs from b9440831 (the latest ruling, a PASS) over one commit, 4c613e01. git diff --stat b9440831 HEAD gives only docs/guide/install.md, with 8 insertions and 5 deletions. since-conditions.json is empty. The PASS at 531be4ac closed C1, and the PASS at b9440831 set no conditions. So no condition is open, and the compare decides this head. No findings.json or arch-map.md is staged.

Governs. The design of record says nothing about the hand procedure for copying or restoring box state. I searched architecture.md and the specs for downgrade, rollback, state archive and state directory, and found no line on it. The compare changes only two shell lines and their prose in that procedure. It does not change a claim that the earlier rulings measured against a design line. The ruling is PASS by absence.

Ruling. (1) Copy step 2 now gates the ready to copy line on test -n "$source", so a missing state prints nothing, and the prose names both causes. (2) The go-back recovery is now test -d "$aside" && test -d "$copy" && rm -rf "$state" && mv "$aside" "$state". The rm -rf runs only when the 0.8 state is at aside and the copy is whole at copy. A cross-device mv of a directory (GNU or BSD) copies first and removes the source only after the copy succeeds. So the guard does not delete the only copy of either state. This is consistent with rule 7: when the command cannot decide, it does nothing.

Note for the author (documentation, not design). In a scratch run, the second mv failed because copy was a wrong path. Then the new recovery command printed nothing and did nothing, because test -d "$copy" is false. The 0.8 state stayed at aside. The old command, test ! -e "$state" && mv "$aside" "$state", put it back in that case. The prose gives the order "put the 0.8 state back, correct copy", but the command works only after copy is correct. Also, the command prints no line on success. This is a wording and usability point for minimal-review. It is not a deviation from a design line, so it is not a condition.

Not checked. I did not run the guide's commands end to end on a 0.7 install. The PR says that the minfarm journeys cover that.

Ruled at 4c613e0 against gominimal/arch@bf831998f150 by claude-opus-5-5; arch_rulings 1736, job 7b2ecd3c-8299-4c28-a59e-0c59dd3aa521.

0