Repository navigation
docs(scripts): T38 — Move the smaller scripts and the CLI reference off the old session verbs - #3532
Conversation
The script starts its boxes with min session start --detach --name and stops the host with min host stop <host> --force, in place of the removed min session activate and bare min stop.
The script starts each box with min session start --detach --new, removes it with min box rm --force, and stops the hosts with min host stop, in place of the removed session activate and destroy verbs and bare min stop.
The CLI reference documents min box exec, rm, rename and show and min host stop in place of the removed session activate, exec, run, destroy, rename, policy and hooks and the bare min stop. The session start section takes over the egress flags. The reference test that read the network rows from the session activate section reads session start.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Approved: every review thread resolved at @mitodrummer resolved the last thread, which releases the approval this review had withheld. Nothing to do. |
There was a problem hiding this comment.
arch-review: CONDITIONS · 2 conditions · the full ruling
The scripts and most of the reference now use the box verbs that the design names. Two edits remain. docs/reference/cli-min.md lines 11 and 23-25 still list a bare top-level stop. Design line 331 and BCLI-042 remove that command, so C1 replaces it with host stop. The stress script's last check reads the text table, and it passes when a box is missing. Line 555 keeps every record, so C2 reads min box list --all -o json and requires each box.
Outside the diff
docs/reference/cli-min.md:11: C1 · This line namesstopas a command that does not start the daemon. Barestopis removed (BCLI-042, design line 331). Writehost stophere.cmd_host_stopconnects to the socket and spawns nothing.docs/reference/cli-min.md:24: C1 · Removestopfrom this list of bare verbs. Design line 331 admits no top-levelstop, andcli.mdno longer lists it as an exception. The list becomesls,init,add,update.
Ruled at 3aea5e5 against gominimal/arch@327e1b57d16b by claude-opus-5-5.
…maller-scripts-and-the-cli-reference-o
|
/revise Head The test-kvm failure on this head is the known flake #2996 ( 1. C1: no bare
2. C2: the stress script's last check reads JSON and requires each box. 3. Threads. Reply on each arch thread with this round's commit. |
Read 'min box list --all -o json' with jq after 'min host stop', so a minted box absent from the listing fails the run, and match the state field itself rather than any column that says running.
|
That Nothing to type again: the command gets a rocket when its round starts, or a refusal that names the reason. No round was counted for it yet. |
…maller-scripts-and-the-cli-reference-o
|
Round 1 of 10 on a failed check suite, pushed as
Verify Outside the task's
Converted to a draft: something above needs a person before review. Review threads the coder judged:
None of the three scripts or the CLI reference pages uses a removed spelling. The stress script now also fails when a minted box is missing from 'min box list --all -o json' after 'min host stop', or when its state is running. Notes from the agent: This round changes only scripts/stress-session-e2e.sh, for the review thread. The reviewer wrote 'min -o json box list --all', but -o is a flag of 'min box list' (BoxListArgs in crates/minimal/src/cli.rs), so the script runs 'min box list --all -o json'. The script now needs jq. The 'just stress' recipe already depends on 'artifacts', which needs jq, and the script exits 2 with a clear message when jq is absent. jq is not installed on this box, so I could not exercise the jq filter here. shellcheck on the script is clean. The failed test-kvm check: its log excerpt shows only echoed error strings from the workflow scripts, with no failing step from these files. test-kvm does not run stress-session-e2e.sh, bulk-upload-e2e.sh or kernel-bump-review.sh (the justfile runs them only from 'just stress', 'just bulk-upload' and 'just kernel-bump-review'), and the docs do not feed it. I found no change in this task's layers that explains the failure, so I changed nothing for it. ci-linux-kvm-success only fails because test-kvm failed. |
|
The runtime will not revise this pull request again on its own: the diff is +226/-463 (689 lines), past 3x the plan's estimate of 60 lines (est: 60 code, 0 tests, as #3217 reads now), at round 1 (the last trigger was a failed check suite). A person decides now. Remove |
The intro named 'stop' as a command that does not start the daemon and listed it among the bare verbs. The CLI has no top-level stop, so name 'host stop' there and list only ls, init, add and update.
There was a problem hiding this comment.
arch-review: CONDITIONS · 1 condition · the full ruling
The stress teardown check now reads min box list --all -o json and fails on a missing or running box. That meets C2. C1 is still open. docs/reference/cli-min.md lines 11 and 24 still name a bare top-level stop. Section 1 of the CLI design principles (line 331) admits no bare stop. Make the edit in C1. Then the change conforms.
Outside the diff
docs/reference/cli-min.md:11: C1 · This line names a barestopas a command that does not start the daemon. Design line 331 admits no barestop. Replacestopwithhost stop.docs/reference/cli-min.md:24: C1 · This list namesstopas a bare verb at the top level. That command does not exist (BCLI-042, design line 331). Removestop. The list becomesls,init,add,update.
Ruled at 16a639d against gominimal/arch@327e1b57d16b by claude-opus-5-5.
|
Round 2 of 10 on a /revise note, pushed as
Verify Outside the task's
Converted to a draft: something above needs a person before review. None of the three scripts or the CLI reference pages uses a removed spelling. The min reference intro now names Notes from the agent: C1 is fixed in fa90103 (docs/reference/cli-min.md lines 11 and 23-25). C2 was already on the branch in 104b189, after head 3aea5e5 that the note names: the teardown check reads |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
C1 is met. The intro of docs/reference/cli-min.md now names host stop, not a bare stop. The list of bare top-level verbs is now ls, init, add and update. This agrees with architecture.md line 331 and with the exceptions table in cli.md. The compare changes nothing else, so the earlier ruling stands for the rest of the change.
Ruled at fa90103 against gominimal/arch@327e1b57d16b by claude-opus-5-5.
There was a problem hiding this comment.
minimal-review — approved
Verdict APPROVE — every review thread is resolved; @mitodrummer closed the last one. The review of fa90103e4635 withheld this approval on the threads open then. Posted as a comment: the App cannot approve its own pull request; the check and the label carry it.
T38 — Move the smaller scripts and the CLI reference off the old session verbs
slice: S8
kind: task
covers: BCLI-042
size: S
est: 60 code, 0 tests
executor: agent
difficulty: routine
model: standard
diagnostics: none new
observability: none new
layers:
- migration:
- scripts/stress-session-e2e.sh: moves off
min session activate|destroy|exec|rename|policy|hooks|run,min task run --pathand baremin stop, onto the box verbs and the type nouns- scripts/bulk-upload-e2e.sh: moves off
min session activate|destroy|exec|rename|policy|hooks|run,min task run --pathand baremin stop, onto the box verbs and the type nouns- scripts/kernel-bump-review.sh: moves off
min session activate|destroy|exec|rename|policy|hooks|run,min task run --pathand baremin stop, onto the box verbs and the type nouns- docs/reference/cli-min.md: documents the box verbs in place of the removed spellings
- docs/reference/cli-minimald.md: documents the box verbs in place of the removed spellings
- docs/reference/cli.md: documents the box verbs in place of the removed spellings
test: bash -n scripts/stress-session-e2e.sh scripts/bulk-upload-e2e.sh scripts/kernel-bump-review.sh
produces: none
consumes: none
proof: None of the three scripts or the CLI reference pages uses a removed spelling.
Proof
On this branch, none of scripts/stress-session-e2e.sh, scripts/bulk-upload-e2e.sh, scripts/kernel-bump-review.sh, docs/reference/cli-min.md, docs/reference/cli-minimald.md or docs/reference/cli.md uses min session activate|destroy|exec|rename|policy|hooks|run, min task run --path or bare min stop. The scripts use min session start --detach, min box rm --force, min box list --all and min host stop --force. cli-min.md documents box exec, box rm, box rename, box show and host stop in their place. The session start section now carries the egress flag rows and the egress prose.
Notes from the agent: Out of layers: crates/minimal/src/tests.rs. The test cli_reference_documents_network_flags looked for a
###session activate`` section in cli-min.md, so removing the section broke it. I changed only the heading it reads tosession start(three string edits). The test passes.Behaviour changes in the scripts: (1) stress-session-e2e.sh gives each concurrent start its own --name stress-$i, because without --new two starts of one entry refuse each other 8000 's held name. (2) min host stop keeps box records, so the stress script's check after teardown no longer expects an empty
min ls --raw. It now checks thatmin box list --allshows no minted box as running. (3) The host name comes frommin host list(provider local-minvmd on a VM lane, else local). (4) bulk-upload-e2e.sh starts each iteration with --detach --new, and its--allsweep is a loop ofmin box rm --forceovermin box list --all. None of these scripts ran here: they need a daemon or a VM lane. Only bash -n and shellcheck (clean) ran.Doc content lost with no successor: the session policy section (its text and -o json document, the live ingress rows, the credentialed upstream row) and the session exec backgrounding notes. min box show --network prints only the stored [network] section as TOML. min session run has no successor (#3216), so its section is gone. The activate…[truncated]
Tests
bash -n scripts/stress-session-e2e.sh scripts/bulk-upload-e2e.sh scripts/kernel-bump-review.shVerify
min task run agent-verifyexited 100, so this PR is a draft.Out of scope
These files are outside the task's
layers:, so this PR is a draft:crates/minimal/src/tests.rsCloses #3217