8000 fix: T72 — Remove --new from min box start and min session start by minimal-foundry[bot] · Pull Request #3795 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix: T72 — Remove --new from min box start and min session start - #3795

Merged
mitodrummer merged 5 commits into
mainfrom
agent/3757-remove-new-from-min-box-start-and-min-session-st
Nov 25, 2026
Merged

mitodrummer merged 5 commits into
mainfrom
agent/3757-remove-new-from-min-box-start-and-min-session-st

Conversation

@minimal-foundry
@minimal-foundry minimal-foundry Bot commented Nov 25, 2026 •
Copy link
Copy Markdown
Contributor

T72 — Remove --new from min box start and min session start

slice: S3
kind: task
covers: BCLI-042, BCLI-010, BCLI-026
size: S
est: 60 code, 140 tests
executor: agent
difficulty: routine
model: standard
depends on:
- blocked by #3196
diagnostics: none new
observability: none new
layers:
- cli:
- crates/minimal/src/cli.rs: BoxStartArgs and SessionStartArgs lose new; usage and --name doc comments drop --new
- crates/minimal/src/cmd/boxes/create.rs: --new plumbing, ActivationOptions::fresh_instance and request_fresh_instance removed; StartNameHeld names --name and [box] name
- crates/minimal/src/task.rs: RunNeedsTerminal names min box start <entry>
- crates/minimal/src/tests.rs: the tests in step 4
- crates/minimal-client/src/box_name.rs: the no_invented_directory_hex_name comment names the interactive task as the only fresh-instance create
test: cargo nextest run -p minimal box_verbs_exist_with_arch_flags removed_session_verbs_fail_as_unknown_commands run_pty_entry_exit2_hints_box_start create_name_held_exit2_names_holder_hints_name_flag create_verbs_name_flag_overrides_box_name
- docs:
- docs/reference/cli-min.md: --new rows removed; --name rows and the exit-code row
- docs/concepts/sessions.md: the --new bullet removed; the held-name paragraph
- scripts:
- scripts/bulk-upload-e2e.sh: --new removed from its session start; the comment above run_deadline
produces: none
consumes: none
proof: the five tests pass, and git grep -nE -- '--new\b' -- crates/minimal crates/minimal-client scripts docs/concepts docs/reference docs/guide README.md prints only lines that record the removed spelling.


This is a residual of epic #2879 (BCLI).

Proof

min box start --new and min session start --new now fail as an unknown flag with exit 2, and the five named tests pass. The git grep for --new over crates/minimal, crates/minimal-client, scripts, docs/concepts, docs/reference, docs/guide and README.md prints only the lines of removed_session_verbs_fail_as_unknown_commands (BCLI-042's verify: test) and its comment in crates/minimal/src/tests.rs. Those lines record the removed spelling.

Notes from the agent: Two files outside the layers changed, because the start structs lost their new field. In crates/minimal/src/dash/rpc.rs, two test constructors of StartEntry dropped new: false. In crates/minimal/tests/cli.rs, two SessionStartArgs constructors dropped new: false. Without these edits the crate and its test targets do not compile.

Some tests in tests.rs changed beyond the five named tests. run_pty_entry_exit2_hints_start_new is now run_pty_entry_exit2_hints_box_start. run_and_start_new_request_fresh_instance is now run_verbs_share_one_run_path, with its fresh-instance half removed, and it is gone from the create-site inventory in every_create_session_asserts_the_daemon_build. start_with_a_box_for_the_path_prints_no_warning now runs box, session, box with no --new. Its second box start relies on a taken derived name taking a number. Two test helpers set fresh_instance inline in place of the removed request_fresh_instance. These tests also pass: every_create_session_asserts_the_daemon_build, task_entry_start_sends_name_flag_as_requested_name, run_verbs_share_one_run_path, start_with_a_box_for_the_path_prints_no_warning, create_stores_client_digest_equal_to_daemon_digest, network_flags_override_stored_spec_and_projection, fresh_instance_grant_box_registers_under_a_creation_key, start_refusals_escape_entry_names, removed_session_verbs_fail_as_unknown_commands, and minimal-client no_invented_directory_hex_name.

New printed text, at ede198f4 and unchanged at e6624010:

  • The held-name refusal: "Cannot start . The running box () holds the name . Run min box start --name to start a box from the entry under another name." The (<id>) part prints only when the refusal carries the holder's id. min session start names itself in place of min box start. The earlier "Run … --new …" sentence is gone.
  • min box run / min task run of an entry with a terminal: " runs with a terminal. Start it with min box start ."
  • --new on min box start or min session start: clap's unknown-argument error, exit 2.

Arch round 1 (8852cd62, CONDITIONS) moved the --new parse cases into removed_session_verbs_fail_as_unknown_commands and removed box_and_session_start_refuse_new_flag (C1), and removed a false [box] name sentence from the refusal (C2). Arch round 2 (ede198f4, CONDITIONS) had the session start exit-code row in docs/reference/cli-min.md and the held-name sentence in docs/concepts/sessions.md say that a running box holds the name. The daemon refuses only while holds_name is true (pending, materializing or running). Revise round 2 made that edit at e6624010, after merging main. Arch PASS at e6624010 (arch_rulings 1697), no conditions. The code is unchanged since ede198f4, so the test record below still holds.

Tests

line exit tail
cargo nextest run -p minimal box_verbs_exist_with_arch_flags removed_session_verbs_fail_as_unknown_commands run_pty_entry_exit2_hints_box_start create_name_held_exit2_names_holder_hints_name_flag create_verbs_name_flag_overrides_box_name 0 At ede198f4, the tests job of CI (Run core workspace tests) ran all five: PASS removed_session_verbs_fail_as_unknown_commands, box_verbs_exist_with_arch_flags, run_pty_entry_exit2_hints_box_start, create_name_held_exit2_names_holder_hints_name_flag, create_verbs_name_flag_overrides_box_name. Summary: 6429 tests run, 6429 passed, 38 skipped.

Verify

min task run agent-verify exited 100, so this PR is a draft.

al-client tests::patch_uploads_map_sort_and_dedup_by_destination
        PASS [   0.009s] (1399/1422) minimal-client tests::set_vm_name_steers_the_default_resolvers
        PASS [   0.020s] (1400/1422) minimal-client tests::probe_git_info_reports_an_unborn_repository
        PASS [   0.008s] (1401/1422) minimal-client tests::socket_path_honors_override
        PASS [   0.006s] (1402/1422) minimal-client tests::the_gate_passes_a_match_refuses_a_skew_and_warns_under_the_override
        PASS [   0.008s] (1403/1422) minimal-client tests::socket_path_selects_the_minvmd_dir
        PASS [   0.007s] (1404/1422) minimal-client tests::the_native_backend_enumerates_no_vms
        PASS [   0.007s] (1405/1422) minimal-client tests::the_override_withholds_the_assertion_rather_than_softening_it
        PASS [   0.006s] (1406/1422) minimal-client tests::vm_name_must_fit_the_allowlist
        PASS [   0.043s] (1407/1422) minimal-client tests::probe_git_info_reports_branch_toplevel_and_worktree
        PASS [   0.023s] (1408/1422) minimal-client tty_relay::tests::chord_bytes_pass_through_unmodified
        PASS [   0.023s] (1409/1422) minimal-client tty_relay::tests::client_raw_mode_matches_ssh_raw_set
        PASS [   0.042s] (1410/1422) minimal-client tty_relay::tests::client_signal_restores_termios_and_reaches_ssh
        PASS [   0.038s] (1411/1422) minimal-client tty_relay::tests::relay_copies_bytes_both_ways_in_order
        PASS [   0.058s] (1412/1422) minimal-client tty_relay::tests::ssh_exit_status_maps_unchanged
        PASS [   1.018s] (1413/1422) minimal-client tty_relay::tests::run_interactive_attach_runs_a_suspend_hook_to_completion
        PASS [   0.027s] (1414/1422) minimal-client tty_relay::tests::suspend_and_resume_are_idempotent
        PASS [   0.020s] (1415/1422) minimal-client tty_relay::tests::suspend_hands_back_attach_start_termios
        PASS [   1.035s] (1416/1422) minimal-client tty_relay::tests::ssh_exit_while_suspended_leaves_terminal_restored
        PASS [   0.023s] (1417/1422) minimal-client tty_relay::tests::termios_restored_on_panic
        PASS [   0.020s] (1418/1422) minimal-client tty_relay::tests::termios_restored_on_transport_drop
        PASS [   0.075s] (1419/1422) minimal-client tty_relay::tests::winsize_follows_sigwinch
        PASS [   1.158s] (1420/1422) minimal-client tty_relay::tests::suspend_keeps_head_and_drops_tail_past_bound
        PASS [   4.396s] (1421/1422) minimal-client tty_relay::tests::resume_after_drop_prints_line_and_nudges_winsize
  stdout ───

    running 1 test
    test exec_run_attach_and_task_run_share_the_commands_trace ... FAILED

    failures:

    failures:
        exec_run_attach_and_task_run_share_the_commands_trace

    test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 5 filtered out; finished in 13.64s

  stderr ───

    ]
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

  Cancelling due to test failure: 
────────────
error: test run failed

Out of scope

These files are outside the task's layers:, so this PR is a draft:

  • crates/minimal/src/dash/rpc.rs
  • crates/minimal/tests/cli.rs

Closes #3757

BCLI-042: min box start and min session start take no --new. A derived
name takes a number when it is taken, and --name gives another written
name. The held-name refusal names --name and [box] name, and the
PTY-entry hint names min box start <entry>.
The session start and box start tables lose the --new row. The held-name
row and the sessions concept page say that a derived name takes a number
and a written name is refused. The bulk-upload e2e starts with --detach
alone.
@minimal-foundry minimal-foundry Bot mentioned this pull request Nov 25, 2026
Closed
@coderabbitai
coderabbitai Bot commented Nov 25, 2026 •
Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: def8adca-4d81-49a7-aab8-bf653dce4475

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@agent-137
Copy link
Copy Markdown
Member

Draft reasons: (1) the known flake #3483 (exec_run_attach_and_task_run_share_the_commands_trace), outside this diff; (2) crates/minimal/src/dash/rpc.rs and crates/minimal/tests/cli.rs, outside the plan's declared files. Both changes only drop new: false from a SessionStartArgs/start-args literal, which no longer compiles once the field is gone. The plan missed them. It stays a draft for the owner.

@agent-137
Copy link
Copy Markdown
Member

/arch-review

@minimal-arch minimal-arch Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arch-review: CONDITIONS · 2 conditions · the full ruling

The removal of --new conforms to architecture.md line 402, and the BCLI-010 and BCLI-026 changes conform to lines 487 and 488. Two edits remain. The --new proof is in a new test, but BCLI-042's verify: test does not run it. Move the cases there (C1). The rewritten held-name refusal adds a sentence about [box] name. That sentence is false when the name came from --name and the entry has no [box] name. Remove the sentence and keep the --name hint (C2).

Ruled at 8852cd6 against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5.

Comment thread crates/minimal/src/tests.rs Outdated
// or visible. The flag fails as the parser fails for any unknown flag, with
// exit 2, so nothing runs.
#[test]
fn box_and_session_start_refuse_new_flag() {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C1 · BCLI-042's verify: line runs removed_session_verbs_fail_as_unknown_commands, not this test. Move these --new cases into that test, so the spec's proof checks the removal that architecture.md line 402 states.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in ede198f4da43: Moved the four --new parse cases per noun and the model_verb check into removed_session_verbs_fail_as_unknown_commands, and removed box_and_session_start_refuse_new_flag.

Comment thread crates/minimal/src/cmd/boxes/create.rs Outdated
" Run {command} --new {entry} to create another box from the entry, or \
pass --name <name> to give the box another name.",
" Run {command} {entry} --name <name> to start a box from the entry under \
another name. Without --name, the box takes its name from [box] name in \
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C2 · Remove "Without --name, the box takes its name from [box] name in minimal.toml." When the held name came from --name and the entry has no [box] name, the box takes a derived name. Keep the --name hint, which line 402 asks for.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in ede198f4da43: Removed the "Without --name, the box takes its name from [box] name in minimal.toml." sentence. The --name hint stays.

Comment thread crates/minimal/src/cmd/boxes/create.rs Outdated
/// (BCLI-069, BOX-163). It names the holder, and the two flags that create
/// the box anyway. `main.rs` ends the command with [`Self::EXIT_CODE`].
/// (BCLI-069, BOX-163). It names the holder, `--name`, which starts a box
/// under another name, and the `[box] name` that names the box without it. `main.rs` ends the command with [`Self::EXIT_CODE`].
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C2 · Remove "and the [box] name that names the box without it" here, as C2 removes it from the text. Wrap this comment at 100 columns.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in ede198f4da43: Removed the [box] name clause from the StartNameHeld doc comment and wrapped it at 100 columns.

Comment thread crates/minimal/src/tests.rs Outdated
min box start --new default to create another box from the entry, or pass \
--name <name> to give the box another name."
min box start default --name <name> to start a box from the entry under \
another name. Without --name, the box takes its name from [box] name in \
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C2 · Remove the [box] name sentence from this expected string and from the one at line 3982, to match the C2 change in StartNameHeld.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in ede198f4da43: Removed the [box] name sentence from both expected strings in create_name_held_exit2_names_holder_hints_name_flag.

@agent-137
Copy link
Copy Markdown
Member

/revise Arch's ruling at 8852cd6 (CONDITIONS): C1 and C2. Change only what is below.

  • C1, crates/minimal/src/tests.rs: move the parse cases of box_and_session_start_refuse_new_flag into removed_session_verbs_fail_as_unknown_commands, which is BCLI-042's verify: test. For box and session, each of min <noun> start --new, min <noun> start web --new, min <noun> start --new --detach and min <noun> start web --name w --new fails with ErrorKind::UnknownArgument, exit 2 and "unexpected argument '--new'". Also assert that model_verb(noun, "start") has no argument whose long is new. Then remove box_and_session_start_refuse_new_flag.
  • C2, crates/minimal/src/cmd/boxes/create.rs, impl Display for StartNameHeld: remove the sentence " Without --name, the box takes its name from [box] name in minimal.toml." The message keeps " Run {command} {entry} --name to start a box from the entry under another name." The sentence is false when the held name came from --name and the entry writes no [box] name. In the doc comment above StartNameHeld, remove "and the [box] name that names the box without it", and wrap the comment at 100 columns. Update the two expected strings in create_name_held_exit2_names_holder_hints_name_flag.

Test: cargo nextest run -p minimal removed_session_verbs_fail_as_unknown_commands box_verbs_exist_with_arch_flags run_pty_entry_exit2_hints_box_start create_name_held_exit2_names_holder_hints_name_flag create_verbs_name_flag_overrides_box_name. The verify failure in exec_run_attach_and_task_run_share_the_commands_trace is the known flake #3483. The full held-name refusal that arch lists as outside covers: belongs to #3758. It is not part of this PR.

The sentence was false when --name chose the held name and the entry
writes no [box] name. The --new parse cases move into BCLI-042's
removed_session_verbs_fail_as_unknown_commands.
@minimal-foundry
Copy link
Copy Markdown
Contributor Author

Round 1 of 10 on a /revise note, pushed as ede198f4da43.

line exit tail
cargo nextest run -p minimal box_verbs_exist_with_arch_flags box_and_session_start_refuse_new_flag run_pty_entry_exit2_hints_box_start create_name_held_exit2_names_holder_hints_name_flag create_verbs_name_flag_overrides_box_name 0 warning: unknown fields in task runtime-implement-test-0: network help: do you need to update to a newer version of minimal? Running task runtime-implement-test-0 in box runtime-implement-test-0-1... Compiling paths v0.0.1 (/workbench/crates/paths) Compiling args v0.0.1 (/workbench/crates/args

Verify min task run agent-verify exited 100.

al-client tests::patch_uploads_map_sort_and_dedup_by_destination
        PASS [   0.021s] (1398/1421) minimal-client tests::probe_git_info_reports_an_unborn_repository
        PASS [   0.014s] (1399/1421) minimal-client tests::set_vm_name_steers_the_default_resolvers
        PASS [   0.009s] (1400/1421) minimal-client tests::socket_path_honors_override
        PASS [   0.013s] (1401/1421) minimal-client tests::socket_path_selects_the_minvmd_dir
        PASS [   0.009s] (1402/1421) minimal-client tests::the_gate_passes_a_match_refuses_a_skew_and_warns_under_the_override
        PASS [   0.009s] (1403/1421) minimal-client tests::the_native_backend_enumerates_no_vms
        PASS [   0.009s] (1404/1421) minimal-client tests::the_override_withholds_the_assertion_rather_than_softening_it
        PASS [   0.008s] (1405/1421) minimal-client tests::vm_name_must_fit_the_allowlist
        PASS [   0.059s] (1406/1421) minimal-client tests::probe_git_info_reports_branch_toplevel_and_worktree
        PASS [   0.019s] (1407/1421) minimal-client tty_relay::tests::client_raw_mode_matches_ssh_raw_set
        PASS [   0.028s] (1408/1421) minimal-client tty_relay::tests::chord_bytes_pass_through_unmodified
        PASS [   0.033s] (1409/1421) minimal-client tty_relay::tests::client_signal_restores_termios_and_reaches_ssh
        PASS [   0.032s] (1410/1421) minimal-client tty_relay::tests::relay_copies_bytes_both_ways_in_order
        PASS [   0.077s] (1411/1421) minimal-client tty_relay::tests::ssh_exit_status_maps_unchanged
        PASS [   1.019s] (1412/1421) minimal-client tty_relay::tests::run_interactive_attach_runs_a_suspend_hook_to_completion
        PASS [   0.021s] (1413/1421) minimal-client tty_relay::tests::suspend_and_resume_are_idempotent
        PASS [   0.027s] (1414/1421) minimal-client tty_relay::tests::suspend_hands_back_attach_start_termios
        PASS [   1.031s] (1415/1421) minimal-client tty_relay::tests::ssh_exit_while_suspended_leaves_terminal_restored
        PASS [   0.016s] (1416/1421) minimal-client tty_relay::tests::termios_restored_on_panic
        PASS [   0.020s] (1417/1421) minimal-client tty_relay::tests::termios_restored_on_transport_drop
        PASS [   0.077s] (1418/1421) minimal-client tty_relay::tests::winsize_follows_sigwinch
        PASS [   1.096s] (1419/1421) minimal-client tty_relay::tests::suspend_keeps_head_and_drops_tail_past_bound
        PASS [   4.384s] (1420/1421) minimal-client tty_relay::tests::resume_after_drop_prints_line_and_nudges_winsize
  stdout ───

    running 1 test
    test exec_run_attach_and_task_run_share_the_commands_trace ... FAILED

    failures:

    failures:
        exec_run_attach_and_task_run_share_the_commands_trace

    test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 5 filtered out; finished in 13.47s

  stderr ───

    ]
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

  Cancelling due to test failure: 
────────────
error: test run failed

Outside the task's layers::

  • crates/minimal/src/dash/rpc.rs
  • crates/minimal/tests/cli.rs

Converted to a draft: verify exited 100; outside the task's layers:: crates/minimal/src/dash/rpc.rs, crates/minimal/tests/cli.rs.

Review threads the coder judged:

  • 👍 valid — crates/minimal/src/tests.rs: Moved the four --new parse cases per noun and the model_verb check into removed_session_verbs_fail_as_unknown_commands, and removed box_and_session_start_refuse_new_flag.
  • 👍 valid — crates/minimal/src/cmd/boxes/create.rs: Removed the "Without --name, the box takes its name from [box] name in minimal.toml." sentence. The --name hint stays.
  • 👍 valid — crates/minimal/src/cmd/boxes/create.rs: Removed the [box] name clause from the StartNameHeld doc comment and wrapped it at 100 columns.
  • 👍 valid — crates/minimal/src/tests.rs: Removed the [box] name sentence from both expected strings in create_name_held_exit2_names_holder_hints_name_flag.

The five tests pass. min box start --new and min session start --new fail with exit 2 and "unexpected argument '--new'", and BCLI-042's verify test removed_session_verbs_fail_as_unknown_commands now checks this. A start whose name a running box holds prints the holder and the --name hint, and no longer prints the false [box] name sentence.

Notes from the agent: C1: the --new parse cases and the model_verb check moved into removed_session_verbs_fail_as_unknown_commands, and box_and_session_start_refuse_new_flag is gone. C2: the [box] name sentence left StartNameHeld's Display, its doc comment and both expected strings. One more change: the doc comment on start_refusal also said the hint names [box] name. That was false after C2, so it now names only --name. The test comment above create_name_held_exit2_names_holder_hints_name_flag changed in the same way. No doc or script quotes the removed sentence. I did not run just clippy-strict.

@agent-137
Copy link
Copy Markdown
Member

/arch-review

@minimal-arch minimal-arch Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arch-review: CONDITIONS · 1 condition · the full ruling

C2 is met. The held-name refusal now names only the holder and --name <name>, as architecture.md line 402 requires. The code half of C1 is met: removed_session_verbs_fail_as_unknown_commands, the BCLI-042 verify: test, now checks --new. The PR body still names the removed test box_and_session_start_refuse_new_flag in test:, ## Tests and ## Proof. Make the edit in C1, and run the test: line again. Then the change conforms.

Ruled at ede198f against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5.

);
}

// `--new` left `min box start` and `min session start`, hidden or not.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C1 · This test now holds the --new cases, and that meets the code half of C1. The PR test: line still names box_and_session_start_refuse_new_flag. Replace that name with removed_session_verbs_fail_as_unknown_commands in test:, ## Tests and ## Proof.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disputed — not addressed: No code change is needed. The task's test: line already names removed_session_verbs_fail_as_unknown_commands and not box_and_session_start_refuse_new_flag. The runner writes the PR body from the task, so the coder cannot edit it.

@agent-137
Copy link
Copy Markdown
Member

/arch-review

@minimal-arch minimal-arch Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arch-review: CONDITIONS · 1 condition · the full ruling

The removal of --new conforms to architecture.md line 402 and to the start flag set at line 487. The min box run hint for a PTY entry conforms to line 488. One condition remains. The new docs say that a start refuses when any box has the written name. At this head the daemon refuses only when a running box has it, and the refusal text says "running box". C1 makes docs/reference/cli-min.md and docs/concepts/sessions.md say "running" until the BOX-163 any-state refusal lands.

Ruled at ede198f against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5.

Comment thread docs/reference/cli-min.md Outdated
| No terminal, and no `--detach` | 2 |
| `--no-loadouts` and `--loadout` together | 2 |
| A running box holds the box's name. Pass `--new` or `--name` to create the box | 2 |
| A box already has the name from `--name` or `[box] name`. Pass another `--name` to create the box | 2 |
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C1 · This row says that any box with the name refuses the start. At this head only a running box refuses it, because holds_name is false for stopped and exited boxes. Write "A running box already has the name from --name or [box] name." Line 402 asks for any state, but that is the daemon half of BOX-163.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in e6624010be76: The exit-code row now reads "A running box already has the name from --name or [box] name."

Comment thread docs/concepts/sessions.md Outdated
name, and a session already has the name that the start gives, the new session
takes that name with a number at the end. When you choose the name, with
`--name <NAME>` or the entry's `[box] name` in `minimal.toml`, and a session
already has it, `min session start` refuses and creates nothing. Attach to the
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C1 · Write "and a running session already has it". A stopped or exited session with the name does not make min session start refuse at this head, and the refusal text says "running box".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in e6624010be76: The paragraph now says "and a running session already has it". The rest of the paragraph is unchanged, but its lines are rewrapped.

@agent-137
Copy link
Copy Markdown
Member

/revise Arch's ruling at ede198f (CONDITIONS, arch_rulings 1696): C1. Docs only. Change nothing else.

  • docs/reference/cli-min.md, the session start exit-code table: replace the row | A box already has the name from --nameor[box] name. Pass another --name to create the box | 2 | with | A running box already has the name from --nameor[box] name. Pass another --name to create the box | 2 |.
  • docs/concepts/sessions.md, the paragraph that starts A start never reuses a session that already exists.: replace When you choose the name, with --name or the entry's[box] nameinminimal.toml, and a session already has it, min session start refuses and creates nothing. with When you choose the name, with --name or the entry's[box] nameinminimal.toml, and a running session already has it, min session start refuses and creates nothing. Leave the rest of the paragraph as it is.

The daemon refuses only when boxes::box_name::holds_name is true (pending, materializing or running), and the refusal prints "The running box". Run just lint-prose docs/reference/cli-min.md docs/concepts/sessions.md, and drive the edited lines to zero. No test changes.

The daemon refuses a start only while a box with the name is pending,
materializing or running. A stopped or exited box does not hold it.
@minimal-foundry
Copy link
Copy Markdown
Contributor Author

Round 2 of 10 on a /revise note, pushed as e6624010be76.

line exit tail
cargo nextest run -p minimal box_verbs_exist_with_arch_flags removed_session_verbs_fail_as_unknown_commands run_pty_entry_exit2_hints_box_start create_name_held_exit2_names_holder_hints_name_flag create_verbs_name_flag_overrides_box_name 0 util v0.52.0 Compiling delegate v0.13.5 Compiling managed v0.8.0 Compiling hex-literal v1.1.0 Compiling hashbrown v0.14.5 Compiling tinyvec_macros v0.1.1 Compiling tagptr v0.2.0 Compiling constcat v0.6.1 Compiling bitflags v1.3.2 Compiling moka v0.12.16 Compiling dashma

Verify min task run agent-verify exited 100.

al-client tests::patch_uploads_map_sort_and_dedup_by_destination
        PASS [   0.013s] (1398/1421) minimal-client tests::set_vm_name_steers_the_default_resolvers
        PASS [   0.025s] (1399/1421) minimal-client tests::probe_git_info_reports_an_unborn_repository
        PASS [   0.011s] (1400/1421) minimal-client tests::socket_path_honors_override
        PASS [   0.010s] (1401/1421) minimal-client tests::socket_path_selects_the_minvmd_dir
        PASS [   0.011s] (1402/1421) minimal-client tests::the_gate_passes_a_match_refuses_a_skew_and_warns_under_the_override
        PASS [   0.010s] (1403/1421) minimal-client tests::the_native_backend_enumerates_no_vms
        PASS [   0.010s] (1404/1421) minimal-client tests::the_override_withholds_the_assertion_rather_than_softening_it
        PASS [   0.010s] (1405/1421) minimal-client tests::vm_name_must_fit_the_allowlist
        PASS [   0.063s] (1406/1421) minimal-client tests::probe_git_info_reports_branch_toplevel_and_worktree
        PASS [   0.021s] (1407/1421) minimal-client tty_relay::tests::chord_bytes_pass_through_unmodified
        PASS [   0.027s] (1408/1421) minimal-client tty_relay::tests::client_raw_mode_matches_ssh_raw_set
        PASS [   0.043s] (1409/1421) minimal-client tty_relay::tests::client_signal_restores_termios_and_reaches_ssh
        PASS [   0.038s] (1410/1421) minimal-client tty_relay::tests::relay_copies_bytes_both_ways_in_order
        PASS [   0.090s] (1411/1421) minimal-client tty_relay::tests::ssh_exit_status_maps_unchanged
        PASS [   1.022s] (1412/1421) minimal-client tty_relay::tests::run_interactive_attach_runs_a_suspend_hook_to_completion
        PASS [   0.021s] (1413/1421) minimal-client tty_relay::tests::suspend_and_resume_are_idempotent
        PASS [   0.022s] (1414/1421) minimal-client tty_relay::tests::suspend_hands_back_attach_start_termios
        PASS [   1.037s] (1415/1421) minimal-client tty_relay::tests::ssh_exit_while_suspended_leaves_terminal_restored
        PASS [   0.016s] (1416/1421) minimal-client tty_relay::tests::termios_restored_on_panic
        PASS [   0.021s] (1417/1421) minimal-client tty_relay::tests::termios_restored_on_transport_drop
        PASS [   0.076s] (1418/1421) minimal-client tty_relay::tests::winsize_follows_sigwinch
        PASS [   1.141s] (1419/1421) minimal-client tty_relay::tests::suspend_keeps_head_and_drops_tail_past_bound
        PASS [   4.428s] (1420/1421) minimal-client tty_relay::tests::resume_after_drop_prints_line_and_nudges_winsize
  stdout ───

    running 1 test
    test exec_run_attach_and_task_run_share_the_commands_trace ... FAILED

    failures:

    failures:
        exec_run_attach_and_task_run_share_the_commands_trace

    test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 5 filtered out; finished in 13.70s

  stderr ───

    ]
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

  Cancelling due to test failure: 
────────────
error: test run failed

Outside the task's layers::

  • crates/minimal/src/dash/rpc.rs
  • crates/minimal/tests/cli.rs

Converted to a draft: verify exited 100; outside the task's layers:: crates/minimal/src/dash/rpc.rs, crates/minimal/tests/cli.rs.

Review threads the coder judged:

  • 👎 invalid — crates/minimal/src/tests.rs:936: No code change is needed. The task's test: line already names removed_session_verbs_fail_as_unknown_commands and not box_and_session_start_refuse_new_flag. The runner writes the PR body from the task, so the coder cannot edit it.
  • 👍 valid — docs/reference/cli-min.md: The exit-code row now reads "A running box already has the name from --name or [box] name."
  • 👍 valid — docs/concepts/sessions.md: The paragraph now says "and a running session already has it". The rest of the paragraph is unchanged, but its lines are rewrapped.

The session start exit-code table in docs/reference/cli-min.md and the held-name paragraph in docs/concepts/sessions.md now say that only a running box or session with the name makes the start refuse. This matches the daemon, which refuses only while boxes::box_name::holds_name is true.

Notes from the agent: This round is docs only, as the directive asks. No code or test changed, so I ran no test: line this round. I did not run just lint-prose docs/reference/cli-min.md docs/concepts/sessions.md, because vale is not installed on this box (the recipe exits with "'vale' not found"). The edited lines still need a lint run. Thread PRRT_kwDOPdfcxM68A39o asks for a change to the PR body's test:, Tests and Proof sections. The runner writes the PR body, and I cannot edit it. The task's test: line already names removed_session_verbs_fail_as_unknown_commands.

@agent-137
Copy link
Copy Markdown
Member

/arch-review

@minimal-arch minimal-arch Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arch-review: PASS · the full ruling

C1 is met. The CLI reference row and the sessions concept paragraph now say that a running box has the name. That is the refusal that the code makes at this head. The code did not change since ede198f4, and that ruling stands for it. The change conforms to architecture.md line 402 and the min box start line 487.

Ruled at e662401 against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5.

@mitodrummer mitodrummer left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The two files outside the task's layers are accepted.

@agent-137
agent-137 marked this pull request as ready for review November 25, 2026 19:29
@agent-137
agent-137 requested a review from a team as a code owner November 25, 2026 19:29
@mitodrummer
mitodrummer added this pull request to the merge queue Nov 25, 2026
@minimal-foundry
minimal-foundry Bot commented Nov 25, 2026 •
Copy link
Copy Markdown
Contributor Author

Reviewed: no findings; approval withheld, 7 threads unresolved at e6624010be76.

APPROVE withheld: 7 unresolved threads — minimal-arch[bot] crates/minimal/src/tests.rs, minimal-arch[bot] crates/minimal/src/cmd/boxes/create.rs, minimal-arch[bot] crates/minimal/src/cmd/boxes/create.rs, minimal-arch[bot] crates/minimal/src/tests.rs, minimal-arch[bot] crates/minimal/src/tests.rs:936, …. Resolving the last thread releases the approval on this head.

Resolve the open threads. Resolving the last one releases the approval on this head; no new review is required.

Verdict APPROVE, posted as a comment: the App cannot review its own pull request; the check and the label carry it.

Clobber: none seen.

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal-review — approval withheld

Verdict COMMENT — APPROVE withheld: 7 unresolved threads — minimal-arch[bot] crates/minimal/src/tests.rs, minimal-arch[bot] crates/minimal/src/cmd/boxes/create.rs, minimal-arch[bot] crates/minimal/src/cmd/boxes/create.rs, minimal-arch[bot] crates/minimal/src/tests.rs, minimal-arch[bot] crates/minimal/src/tests.rs:936, …. No findings.

Panel: 3 of 3 personas ran (correctness, security, supply-chain).

Merged via the queue into main with commit 72b3b78 Nov 25, 2026
40 checks passed
@mitodrummer
mitodrummer deleted the agent/3757-remove-new-from-min-box-start-and-min-session-st branch November 25, 2026 20:09
agent-137 pushed a commit that referenced this pull request Nov 25, 2026
#3795 removed --new from min box start and min session start. The start
refusal keeps main's --name remedy, and its pinned test strings follow it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove --new from min box start and min session start

2 participants

0