Repository navigation
CONDITIONS
Governs (arch 327e1b57. The checkout has no arch-map.md, so I found the sections by search, as earlier rulings did). architecture.md Design principles line 331: the only top-level commands are init, login/logout and client maintenance, so there is no bare stop. Line 334: text output is not stable, and -o json is the contract. Type nouns line 453: session start [--detach] [--new] [--name]. min box lines 474-487: box show [--network], box exec ... -- <cmd>, box rm [--force], box rename. Line 363: a start or rename to a name that a running box holds is refused. Line 555: host stop stops each running box and keeps every record, and it is how a local daemon stops. Spec: docs/specs/28-spec-box-cli BCLI-042 (line 535), and line 674, which names min box show --network (BCLI-025) as the successor of session policy.
Ruling. The migration conforms in the scripts, in cli.md and in cli-minimald.md. The new reference sections agree with lines 453, 474-487 and 555. The stress script now gives each start its own --name. Line 363 requires this, because two starts under one name refuse each other. The new post-teardown expectation agrees with line 555: records stay, and no box runs. Two gaps remain. (C1) cli-min.md lines 11 and 23-25 are outside the diff hunks, and they still describe a bare top-level stop as a kept exception. That contradicts line 331 and BCLI-042, and it contradicts the PR's own proof line. (C2) The stress proof's last check parses the unstable text table (line 334). It passes when a minted box is absent from the listing, but line 555 says every record stays. min box list -o json exists (render_box_list_json, crates/minimal/src/cmd/boxes/list.rs), so the check can be exact. min host list prints text only (cmd_host_list always writes OutputMode::Text), so the host lookup keeps its awk.
Out of layers. The edit to crates/minimal/src/tests.rs cli_reference_documents_network_flags follows the moved section. It still asserts the same four rows, so it does not relax NET-036 (rule 3). The #### Egress flags heading ends the section at the same place as before, because the split on ### matches it.
Lost content. The session policy and session exec backgrounding prose has no successor text. Spec 28 line 674 names min box show --network as the successor, and line 603 tracks session run in #3216. I could not read the end of the PR body, because pr.json truncates it. So I do not record a residual for the policy view. The spec owns that gap.
Precedent. The ledger has no ruling on this PR, and no ruling on a caller migration of this shape. I depart from no ruling.
Not checked. The three scripts did not run here, because they need a daemon or a VM lane (not_run, rule 4). I confirmed by reading the code that min host list prints HOST PROVIDER STATE and that min box list prints the id first. I did not run either one. The verify failure otel_cli exec_run_attach_and_task_run_share_the_commands_trace is in code that this PR does not change. I did not investigate it. The CLI at this head still has session activate and bare stop. T31 removes them, so these docs describe the grammar before the code has it.
Conditions
- C1:
docs/reference/cli-min.md: remove the barestopfrom the top-level text. At line 11, replacestopin the list of commands that do not start the daemon withhost stop.cmd_host_stopincrates/minimal/src/cmd/hosts.rsconnects to the host socket and spawns nothing. At lines 23-25, removestopfrom the list of bare verbs that "survive at the top level". The list becomesls,init,add,update. This matches the exceptions table indocs/reference/cli.md, which this PR already changed. - C2:
scripts/stress-session-e2e.sh, the check aftermin host stop(lines 184-195): readmnl -o json box list --allin place of the text table. For each id in$sids, find the object whoseidis that id, withjqorpython3 -I. Fail when no object has that id, becausehost stopkeeps every record. Also fail when the object'sstateisrunning. Remove theawk '$1 == id' | grep -qw runningtest. That test passes when the box is missing from the listing, and it matchesrunningin any column.
Ruled at 3aea5e5 against gominimal/arch@327e1b57d16b by claude-opus-5-5; arch_rulings 1375, job fc283e23-2d89-4bf8-959d-cec74694c770.