8000 fix(boxes,minimal,minimald): a box created from min dash with a blank name takes the same derived by minimal-foundry[bot] · Pull Request #3763 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(boxes,minimal,minimald): a box created from min dash with a blank name takes the same derived - #3763

Merged
mitodrummer merged 17 commits into
mainfrom
agent/3751-a-box-created-from-min-dash-with-a-blank-name-ta
Nov 24, 2026
Merged

mitodrummer merged 17 commits into
mainfrom
agent/3751-a-box-created-from-min-dash-with-a-blank-name-ta

Conversation

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

Follow-up

Fixes #3751
Closes #3530

Task marker
### D3530 — A box created from min dash with a blank name takes the same derived name that min box start gives in the same project
  kind: task
  size: M
  est: 90 code, 160 tests
  executor: agent
  origin: bug
  epic: 2236
  layers:
    - naming:
      - crates/boxes/src/lib.rs: adds a box_name helper that derives the name from the project and the entry and fits it to 63 characters (BOX-211, BOX-213)
      test: cargo nextest run -p boxes derived_name_fits_63_cutting_project_then_entry_never_number
    - daemon:
      - crates/minimald/src/box_manager.rs: creation_name uses the requested name, else the derived name from the project path and the entry, for every creator, and a spec that does not parse no longer gives no name
      - crates/minimald/src/box_manager/tests.rs: adds tests for a create with no requested name, from a spec with and without [box] name
      - crates/minimald/src/rpc.rs: the create_naming_tests (a held name's holder, the fresh-instance suffix, the entry-to-label mapping) expect the derived `<project>-<entry>` name, not the entry alone
      - crates/minimald/src/box_actor/tests.rs: the resume tests for a restored hostname or registry-name collision use the derived name the create now gives
      test: cargo nextest run -p minimald create_names_box_written_exactly_else_derived
      test: cargo nextest run -p minimald derived_name_is_project_for_default_else_project_dash_entry
      test: cargo nextest run -p minimald create_naming_tests
    - dashboard:
      - crates/minimal/src/dash/rpc.rs: removes the DEFAULT_SESSION_ENTRY default in create_registering, and adds a test that a blank-name dash create gets the min box start name
      test: cargo nextest run -p minimal dash_create_blank_name_takes_box_start_name
  proof: A session created in min dash with the name left blank shows the same name as a box from min box start in that project, and not (unnamed).

Proof

A session created in min dash with the name left blank now gets the same name as a box from min box start in that project: the project directory name for the session entry, or - for a picked entry. It is not (unnamed). The test dash_create_blank_name_takes_box_start_name sends both creates to real harness daemons and reads the same name back from each. It also checks that an own-address box on a VM-backed host registers under that name.

Notes from the agent: Design: minimald's creation_name now uses the request's name exactly as written, else boxes::box_name::derived_box_name(project, entry, n). The project is the last component of project_root (else project_path), and the entry is the spec's entry key. The default entry gives the project alone. A [box] name in the spec no longer names the box. A spec that does not parse as v0, or no spec, takes the default entry. A fresh instance takes --, and the project is cut first, then the entry, so the number always fits in 63 octets. In min dash, create_registering takes the spec and registers an unnamed own-address box under the same derived name, in place of default.

Outside the layers (not touched; a follow-up task must do this):

  1. crates/minimal/tests/cli.rs task_run_exits_with_held_open_stdin_pipe now fails. It pins the text Running task e2e-echo in box e2e-echo-1, and the box is now <tmpdir>-e2e-echo-1. One full run of cargo nextest run -p minimal gave 1262 passed and 2 failed: this test and the inventory test in item 3. I fixed the inventory test and ran it again alone. I did not run the full suite again. cargo nextest run -p minimald passed in full (1594), and so did -p boxes (657).
  2. crates/minimal/src/cmd/boxes/create.rs created_box_name still computes the old name (the spec's [box] name, else the request, else the entry). The CLI registers own-address VM boxes under that name, and host_ip_registration_key uses it as the base of the fresh-instance…[truncated]

Tests

line exit tail
cargo nextest run -p boxes derived_name_fits_63_cutting_project_then_entry_never_number 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald create_names_box_written_exactly_else_derived 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald derived_name_is_project_for_default_else_project_dash_entry 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald create_naming_tests 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimal dash_create_blank_name_takes_box_start_name 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt

Verify

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

ir-8278203427ac3159,libsame_file-0d4c610508a69e8c,libnutype-2060fd37b9d379f2,libclient_config-b967f21a883cbf40,libtoml-2aea33601fef026d,libtoml_writer-14581a9d8fee7cd3,libtoml_parser-9d71f9449b11f073,libwinnow-0b86322c90e7afd1,libserde_spanned-d96ed742cfb92972,libtoml_datetime-be2b7a398aebdb67,libtracing-83feaaf26e80a884,libtracing_core-84f58f17c6893e81,libonce_cell-9a2fd160c1da4076,libportable_atomic-0dd514cc30f274c2,libpaths-38d338f2d2882e54,libdirs-460e2d244a8fc274,libdirs_sys-5e8776d10c678365,liboption_ext-b0ea52c3b95d09a1,libthiserror-d936554554fa5dac,libcamino-0c63145602122330,libuuid-2ad4c678aa627cb6,libgetrandom-3bfdefd1957f2b79,librand_core-d44f5774360f5730,libtokio-13fd64194b408f82,libsignal_hook_registry-60ebd8ada6df02c9,liberrno-1e4b1b28d80f8540,libsocket2-fc4ed66d87c4ac8d,libbytes-0bf3479143915ee4,libmio-6731274e08199f17,liblog-438092e92453965a,libparking_lot-e10cfa7068c27153,libparking_lot_core-651ad44aebfee548,libsmallvec-463b7668d74ea315,liblock_api-56b5536424e00cb8,libscopeguard-49a31dfd7f08b4b8,libpin_project_lite-965c2dcbe863fe30,libserde-a2d31a39ef0e3ca2,libnix-7ebd9b01737ef144,libmemoffset-f0df7639bcafa05a,libbitflags-3b49cf15bc6cb9e2,libserde_core-149b29d4f6c47ae0,libcfg_if-5af2d58a3df8aa54,liblibc-4f2d736fc0e30dce}.rlib" "<sysroot>/lib64/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/work/build-cache/cargo-home/build/debug/deps/rustcG8OmX5/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/work/build-cache/cargo-home/build/debug/build/tree-sitter-6abcf750100a3ada/out" "-L" "/work/build-cache/cargo-home/build/debug/build/tree-sitter-nickel-4d55240ed02e956b/out" "-L" "/work/build-cache/cargo-home/build/debug/build/zstd-sys-0d91391d9ed43bde/out" "-L" "/work/build-cache/cargo-home/build/debug/build/ring-43aedddb25fbb121/out" "-L" "/work/build-cache/cargo-home/build/debug/build/aws-lc-sys-467e076f78a0a3c4/out" "-L" "/work/build-cache/cargo-home/build/debug/build/blake3-493bdc0df5a171ff/out" "-L" "<sysroot>/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/work/build-cache/cargo-home/build/debug/deps/minimald-450b813fd2221c6c" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: final link failed: No space left on device
          collect2: error: ld returned 1 exit status
          

error: could not compile `minimald` (lib test) due to 1 previous error
error: command `/usr/bin/cargo '--color=auto' test --no-run --message-format json-render-diagnostics --package boxes --package minimal --package minimald --locked` exited with code 101

Base

The base branch moved while the coder worked and was merged in before the tests ran. These files changed on BOTH sides since the branch point — read them first, because a rewrite from a stale reading can undo a merge without a conflict:

  • crates/minimald/src/box_manager.rs
  • crates/minimald/src/box_manager/tests.rs

The name fits one 63-octet DNS label. The project is cut first, then
the entry, and a fresh instance's number never.
A box's name is never read from its spec. A create with no name takes
the name derived from the project root and the entry, for every
creator. A spec that does not parse still gives a name.
create_registering no longer registers an unnamed box under the default
entry's name. It registers it under the name the daemon derives from
the project and the entry, and a box that does not register goes
unnamed, so the daemon derives the same name.
@coderabbitai
coderabbitai Bot commented Nov 24, 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: c5d6d35a-be28-4c31-9b52-30a17027fff4

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

/revise

The previous round's job died on the runner ("Container connectivity was lost"), not on the code. Fix the failing e2e lanes (e2e, native-daemon-e2e via ci-linux-native-success, test-kvm via ci-linux-kvm-success, and the macOS lane).

They fail with 'min task run e2e-echo' did not name its kept box. That is the expected effect of this task: a box with no requested name now takes the derived name <project>-<entry> (BOX-211), not the entry name alone, so a script that looks for the box under the entry name no longer finds it.

  • In scripts/session-e2e.sh (and any other e2e script that hard-codes a box name a creation derives), look the kept box up by the derived name, or read the name the command printed, in place of the bare entry name.
  • Do not weaken what the leg checks: it still asserts that the task box is kept and named.

scripts/session-e2e.sh is outside the task's layers; that is expected for this round. Keep Fixes #3751 and add Closes #3530 if it is missing.

A task box with no requested name now takes <project>-<task>-<n>. The
kept-box check derives the project label from the seed directory and
still asserts the exact kept name, its listing and its removal.
@minimal-foundry
Copy link
Copy Markdown
Contributor Author

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

line exit tail
cargo nextest run -p boxes derived_name_fits_63_cutting_project_then_entry_never_number 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald create_names_box_written_exactly_else_derived 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald derived_name_is_project_for_default_else_project_dash_entry 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald create_naming_tests 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimal dash_create_blank_name_takes_box_start_name 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt

Verify min task run agent-verify exited 101.

ir-8278203427ac3159,libsame_file-0d4c610508a69e8c,libnutype-2060fd37b9d379f2,libclient_config-b967f21a883cbf40,libtoml-2aea33601fef026d,libtoml_writer-14581a9d8fee7cd3,libtoml_parser-9d71f9449b11f073,libwinnow-0b86322c90e7afd1,libserde_spanned-d96ed742cfb92972,libtoml_datetime-be2b7a398aebdb67,libtracing-83feaaf26e80a884,libtracing_core-84f58f17c6893e81,libonce_cell-9a2fd160c1da4076,libportable_atomic-0dd514cc30f274c2,libpaths-38d338f2d2882e54,libdirs-460e2d244a8fc274,libdirs_sys-5e8776d10c678365,liboption_ext-b0ea52c3b95d09a1,libthiserror-d936554554fa5dac,libcamino-0c63145602122330,libuuid-2ad4c678aa627cb6,libgetrandom-3bfdefd1957f2b79,librand_core-d44f5774360f5730,libtokio-13fd64194b408f82,libsignal_hook_registry-60ebd8ada6df02c9,liberrno-1e4b1b28d80f8540,libsocket2-fc4ed66d87c4ac8d,libbytes-0bf3479143915ee4,libmio-6731274e08199f17,liblog-438092e92453965a,libparking_lot-e10cfa7068c27153,libparking_lot_core-651ad44aebfee548,libsmallvec-463b7668d74ea315,liblock_api-56b5536424e00cb8,libscopeguard-49a31dfd7f08b4b8,libpin_project_lite-965c2dcbe863fe30,libserde-a2d31a39ef0e3ca2,libnix-7ebd9b01737ef144,libmemoffset-f0df7639bcafa05a,libbitflags-3b49cf15bc6cb9e2,libserde_core-149b29d4f6c47ae0,libcfg_if-5af2d58a3df8aa54,liblibc-4f2d736fc0e30dce}.rlib" "<sysroot>/lib64/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/work/build-cache/cargo-home/build/debug/deps/rustcMOrj07/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/work/build-cache/cargo-home/build/debug/build/tree-sitter-6abcf750100a3ada/out" "-L" "/work/build-cache/cargo-home/build/debug/build/tree-sitter-nickel-4d55240ed02e956b/out" "-L" "/work/build-cache/cargo-home/build/debug/build/zstd-sys-0d91391d9ed43bde/out" "-L" "/work/build-cache/cargo-home/build/debug/build/ring-43aedddb25fbb121/out" "-L" "/work/build-cache/cargo-home/build/debug/build/aws-lc-sys-467e076f78a0a3c4/out" "-L" "/work/build-cache/cargo-home/build/debug/build/blake3-493bdc0df5a171ff/out" "-L" "<sysroot>/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/work/build-cache/cargo-home/build/debug/deps/minimald-450b813fd2221c6c" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: final link failed: No space left on device
          collect2: error: ld returned 1 exit status
          

error: could not compile `minimald` (lib test) due to 1 previous error
error: command `/usr/bin/cargo '--color=auto' test --no-run --message-format json-render-diagnostics --package boxes --package minimal --package minimald --locked` exited with code 101

Outside the task's layers::

  • scripts/session-e2e.sh

Converted to a draft: verify exited 101; outside the task's layers:: scripts/session-e2e.sh.

A session created in min dash with the name left blank shows the same name as a box from min box start in that project, and not (unnamed). The session e2e task leg now finds the kept task box under its derived name --.

Notes from the agent: Revise round 2. This round changes only scripts/session-e2e.sh, which is outside the task's layers, as the directive expected. task_kept_check now derives the project label from the seed directory (basename of /tmp/mnlt.XXXXXX, lowercased, '.' and '_' as '-') and matches 'Kept box --' exactly. It still checks the 'min box rm ' hint, the min ls listing and the removal. The other task legs read the name that the command prints, so they need no change. I did not run the e2e script: this box has no KVM and no daemon e2e setup. The CI e2e lanes must confirm it. The directive asks for 'Closes #3530' in the pull request body. The runner writes the body, and my instructions forbid closing keywords in commits, so I did not add it. A comment in crates/minimal/src/task.rs near line 1608 still says the daemon names a task box '-'. That file is outside the layers, so I left it.

@minimal-foundry minimal-foundry Bot added the needs-human An agent handed off; a human must act, then clear this label. Set by defer and handoffs. label Nov 24, 2026
@minimal-foundry
Copy link
Copy Markdown
Contributor Author

The runtime will not revise this pull request again on its own: the diff is +591/-168 (759 lines), past 3x the plan's estimate of 250 lines (est: 90 code, 160 tests, as #3751 reads now), at round 2 (the last trigger was a /revise note). A person decides now. Remove needs-human from this pull request to let /revise <note> or the automatic rounds resume, or finish #3751 by hand.

@agent-137
Copy link
Copy Markdown
Member

/revise

Two failures at b7e6456 (the verify exit 101 was the runner's build step; CI is the evidence):

  • tests: task_run_exits_with_held_open_stdin_pipe panics at crates/minimal/tests/cli.rs:4871.
  • e2e and native-daemon-e2e: the run's box is STILL listed after its command exited — a box created for a run must end with its run's command, never with its client (NET-131).

Both check a run's box by name. A box with no requested name now takes <project>-<entry> (BOX-211), so a check that lists boxes and matches the entry name, or the old name, may now find a different box (for example a kept box of the same entry from an earlier leg), or miss the run's own box.

  • First find which it is: read the box id the command reports, or match on the derived name, and check whether the run's own box really is still listed.
  • If the check only looks the box up by the old name, make it use the box id or the derived name. Keep the assertion (NET-131: the run's box ends with its command).
  • If the run's box really does stay listed, that is a regression in this change: fix the code, not the test.

crates/minimal/tests/cli.rs and scripts/session-e2e.sh are outside the layers; that is expected for this round. Keep Fixes #3751 and Closes #3530.

A task box with no requested name is <project>-<task>-<n> (BOX-211).
The held-open stdin test now derives the expected name from the
project directory with the boxes helper.
The bare e2e-port-run-<n> match took the tail of the new
<project>-e2e-port-run-<n> name, so min box show read no box and the
wait never saw the run's box end. The check now matches the whole
derived name and keeps the NET-131 assertion.
@minimal-foundry
Copy link
Copy Markdown
Contributor Author

Round 3 of 10 on a /revise note, pushed as 774e64a745ab.

line exit tail
cargo nextest run -p boxes derived_name_fits_63_cutting_project_then_entry_never_number 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald create_names_box_written_exactly_else_derived 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald derived_name_is_project_for_default_else_project_dash_entry 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald create_naming_tests 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimal dash_create_blank_name_takes_box_start_name 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt

Verify min task run agent-verify exited 101.

eps/libp256-dcb4e060abe92b3c.rlib --extern paths=/work/build-cache/cargo-home/build/debug/deps/libpaths-38d338f2d2882e54.rlib --extern proptest=/work/build-cache/cargo-home/build/debug/deps/libproptest-267202ca4fc8158d.rlib --extern ratatui=/work/build-cache/cargo-home/build/debug/deps/libratatui-1fc20dde22a8a62b.rlib --extern reqwest=/work/build-cache/cargo-home/build/debug/deps/libreqwest-7c01c4c128f7238a.rlib --extern russh=/work/build-cache/cargo-home/build/debug/deps/librussh-ed9f65070daa276a.rlib --extern russh_sftp=/work/build-cache/cargo-home/build/debug/deps/librussh_sftp-c0dd194e0f0fbcdd.rlib --extern serde=/work/build-cache/cargo-home/build/debug/deps/libserde-a2d31a39ef0e3ca2.rlib --extern serde_json_lenient=/work/build-cache/cargo-home/build/debug/deps/libserde_json_lenient-d40e6f0e7b3e9eef.rlib --extern sha2=/work/build-cache/cargo-home/build/debug/deps/libsha2-1ef4ab62964b5cf6.rlib --extern switch=/work/build-cache/cargo-home/build/debug/deps/libswitch-6c812704e5da955c.rlib --extern tempfile=/work/build-cache/cargo-home/build/debug/deps/libtempfile-abc317159fa85a66.rlib --extern tokio=/work/build-cache/cargo-home/build/debug/deps/libtokio-13fd64194b408f82.rlib --extern tokio_stream=/work/build-cache/cargo-home/build/debug/deps/libtokio_stream-f2be74d61837d3fa.rlib --extern toml=/work/build-cache/cargo-home/build/debug/deps/libtoml-2aea33601fef026d.rlib --extern toml_edit=/work/build-cache/cargo-home/build/debug/deps/libtoml_edit-c70767a08866b85f.rlib --extern tracing=/work/build-cache/cargo-home/build/debug/deps/libtracing-83feaaf26e80a884.rlib --extern tracing_subscriber=/work/build-cache/cargo-home/build/debug/deps/libtracing_subscriber-b9d261067ec6d0c0.rlib --extern unicode_width=/work/build-cache/cargo-home/build/debug/deps/libunicode_width-b88ae913615e5a0f.rlib --extern url=/work/build-cache/cargo-home/build/debug/deps/liburl-d072f81b0a7302db.rlib --extern uuid=/work/build-cache/cargo-home/build/debug/deps/libuuid-2ad4c678aa627cb6.rlib --extern version=/work/build-cache/cargo-home/build/debug/deps/libversion-26aec4f378b53f65.rlib --extern zeroize=/work/build-cache/cargo-home/build/debug/deps/libzeroize-839e2912eb255706.rlib -L native=/work/build-cache/cargo-home/build/debug/build/zstd-sys-0d91391d9ed43bde/out -L native=/work/build-cache/cargo-home/build/debug/build/ring-43aedddb25fbb121/out -L native=/work/build-cache/cargo-home/build/debug/build/aws-lc-sys-467e076f78a0a3c4/out -L native=/work/build-cache/cargo-home/build/debug/build/tree-sitter-6abcf750100a3ada/out -L native=/work/build-cache/cargo-home/build/debug/build/tree-sitter-nickel-4d55240ed02e956b/out -L native=/work/build-cache/cargo-home/build/debug/build/blake3-493bdc0df5a171ff/out -L native=/work/build-cache/cargo-home/build/debug/build/blake3-493bdc0df5a171ff/out` (exit status: 2)
error: command `/usr/bin/cargo '--color=auto' test --no-run --message-format json-render-diagnostics --package boxes --package minimal --package minimald --locked` exited with code 101

Outside the task's layers::

  • crates/minimal/tests/cli.rs
  • scripts/session-e2e.sh

Converted to a draft: verify exited 101; outside the task's layers:: crates/minimal/tests/cli.rs, scripts/session-e2e.sh.

A session created in min dash with the name left blank shows the same name as a box from min box start in that project, and not (unnamed). This round, the two checks that looked up a run's box by the old entry-only name now look it up by its derived -- name.

Notes from the agent: Revise round 3. Both failures came from the tests, not from the code. (1) crates/minimal/tests/cli.rs task_run_exits_with_held_open_stdin_pipe expected 'in box e2e-echo-1'. It now computes the expected name with boxes::box_name::derived_box_name from the project tempdir, and it passes. (2) scripts/session-e2e.sh NET-131 check: grep -o 'e2e-port-run-[0-9]*' took only the tail of '-e2e-port-run-1'. So 'min box show' read no box, the state stayed empty, and the wait reported 'STILL listed'. The run's own box was never read, so this was not a regression. The check now derives the project label from PO_TASK_SEED_DIR, the same way as the kept-box check at line 7153, and matches the whole name. The NET-131 and BOX-038 assertions are unchanged. I did not run the session e2e here, because it needs a daemon or a VM lane. It checked only bash -n. Both files are outside the layers, as the directive expected. The directive listed no review threads.

@agent-137
agent-137 marked this pull request as ready for review November 24, 2026 08:52
@agent-137
agent-137 requested a review from a team as a code owner November 24, 2026 08:52
@agent-137
Copy link
Copy Markdown
Member

/arch-review

@agent-137
Copy link
Copy Markdown
Member

/review

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

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

APPROVE withheld: 7 unresolved threads — minimal-foundry[bot] crates/minimald/src/box_manager.rs:483, minimal-arch[bot] crates/minimald/src/box_manager.rs:482, minimal-arch[bot] crates/minimal/src/dash/rpc.rs:795, minimal-arch[bot] crates/minimal/src/dash/rpc.rs:860, minimal-arch[bot] crates/boxes/src/lib.rs:1852, …. 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 found.

@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 — advisory review

Verdict COMMENT — 1 finding, 1 inline.

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

Comment on lines +478 to +491
}
}

/// The name a create gives its box (BOX-211): the request's name exactly
/// as written, else the name derived from the project and the entry. A
/// box's name is never read from its spec, and every creator gets the
/// same rule.
fn creation_name(
requested: Option<&str>,
config: &minimald_rpc::BoxConfig,
spec: Option<&serde_json_lenient::Value>,
) -> (Option<String>, NameSource) {
let spec = spec.and_then(|value| {
serde_json_lenient::from_value::<mfile::spec::BoxSpec>(value.clone()).ok()
});
if let Some(name) = spec.as_ref().and_then(|spec| spec.name.clone()) {
return (Some(name), NameSource::SpecName);
}
if let Some(name) = requested {
return (Some(name.to_string()), NameSource::Request);
}
match spec {
// Only the entry is cleaned. A spec that sets `[box] name` returned
// above, unchanged, so the store still refuses an invalid one.
Some(spec) => (
Some(boxes::box_name::entry_box_name(&spec.entry)),
NameSource::Entry,
) -> (String, NameSource) {
match config.name.as_deref() {
Some(name) => (name.to_string(), NameSource::Request),
None => (
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.

MEDIUM · correctness · confidence 0.70 · in creation_name

The daemon now names an unnamed box <project>-<entry> and ignores the spec [box] name. The CLI was not updated. created_box_name in crates/minimal/src/cmd/boxes/create.rs (line 3684, called at 4639 and 6355) still returns the spec name, else the request name, else entry_box_name(entry). min box start registers the VM host row under that name and sends no config.name without --name. On an own-address box the row name and the box name then differ, and the egress decision and the hold lease no longer match the box. The fresh host_ip creation key uses the same old base. Update created_box_name to call boxes::box_name::derived_box_name, or send the derived name in config.name. Update the tests in crates/minimal/src/tests.rs that pin the old rule.

What the reviewer checked

create.rs:3688 if let Some(name) = spec.as_ref().and_then(|spec| spec.name.clone()) { return Some(name); } ... spec.map(|spec| boxes::box_name::entry_box_name(&spec.entry)); vs box_manager.rs creation_name: None => DerivedName::of(config, spec).name(None)

Hand this to an agent
Act on a code-review finding.

File:       crates/minimald/src/box_manager.rs
Lines:      478-491
Category:   correctness
Severity:   medium (reviewer confidence 0.70)

Finding:
The daemon now names an unnamed box `<project>-<entry>` and ignores the spec `[box] name`. The CLI was not updated. `created_box_name` in crates/minimal/src/cmd/boxes/create.rs (line 3684, called at 4639 and 6355) still returns the spec name, else the request name, else `entry_box_name(entry)`. `min box start` registers the VM host row under that name and sends no `config.name` without `--name`. On an own-address box the row name and the box name then differ, and the egress decision and the `hold` lease no longer match the box. The fresh `host_ip` creation key uses the same old base. Update `created_box_name` to call `boxes::box_name::derived_box_name`, or send the derived name in `config.name`. Update the tests in crates/minimal/src/tests.rs that pin the old rule.

First verify this against the code yourself. It is model output and
may be wrong. If it is wrong, or the tradeoff was deliberate, say so
and change nothing.

👍 useful · 👎 noise — react to tell the reviewer. Replying works too, and says more.

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 e63047b22621: created_box_name now returns the request name (which carries --name or [box] name), else boxes::box_name::create_derived_name, the function the daemon calls, so the VM host row, the host_ip creation key base and the box carry one name (315be84). Tests in crates/minimal/src/tests.rs updated (315be84, e63047b).

@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 · 3 conditions · the full ruling

The daemon rule for the name is correct, and the 63-character fit follows the design. But a [box] name in minimal.toml no longer names a box. The daemon stops reading it, and no client sends it, so architecture.md line 401 is broken (C1). The CLI's created_box_name() still gives the old name. So VM registrations and host_ip keys do not match the name that the Box Host assigns, which line 407 requires (C2). The project label drops non-ASCII bytes and does not give box for an empty result, which line 1250 forbids (C3).

Outside the diff

  • crates/minimal/src/cmd/boxes/create.rs:3684: C2 · This still gives [box] name, else the request name, else the entry. The daemon now assigns <project>[-<entry>], so the VM registration and the host_ip key base differ from the assigned name (architecture.md line 407). Return the request name, else the shared derived name.

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

NameSource::Entry,
) -> (String, NameSource) {
match config.name.as_deref() {
Some(name) => (name.to_string(), NameSource::Request),
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 · The daemon now takes only the request name. That is correct only if min sends [box] name as the request name. It does not, so a [box] name in minimal.toml names no box (architecture.md line 401). In stamp_session_spec_as(), task.rs and the dash create, send spec.name when no --name or form name is given.

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 e63047b22621: stamp_session_spec_as and put_task_spec copy the entry's expanded [box] name onto the spec and send it as the request name when no --name is given. The dash create does the same (315be84).

let registers = config.network == NetworkMode::OwnIp && vm_host_control_sock(sock).is_some();
if registers && config.name.is_none() {
config.name = Some(mfile::spec::DEFAULT_SESSION_ENTRY.to_string());
config.name = Some(derived_name(&config, spec));
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 · A blank form name must take the entry's [box] name first, then the derived name. Use the spec's name here before derived_name(), and send it on the request when the box does not register too.

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 e63047b22621: create_registering takes the spec's box.name before derived_name() and sends it whether or not the box registers. The dash test adds an entry with [box] name = "api-box" (315be84).

/// entry when the spec has none. `min box start` with no `--name` gets
/// this name from the daemon, so a box registered under it is the box the
/// daemon names.
fn derived_name(config: &BoxConfig, spec: Option<&serde_json_lenient::Value>) -> String {
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 · This copies DerivedName::of() from box_manager.rs. Move the derivation into one function in boxes::box_name, and call it here, in the daemon, and in created_box_name() in cmd/boxes/create.rs.

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 e63047b22621: The derivation is now boxes::box_name::create_derived_name. The daemon's DerivedName, the dash's derived_name and created_box_name all call it (ae9aed1, 1f1bf70, 315be84).

Comment thread crates/boxes/src/lib.rs
/// `text` as DNS label characters, uncapped: ASCII letters and digits
/// lowercased, `-`, `_` and `.` as `-`, other characters dropped, and
/// no `-` at either end.
fn label_chars(text: &str) -> String {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

C3 · The project label must replace each run of non-alphanumeric bytes with one -, and give box when nothing is left (architecture.md line 1250). This drops non-ASCII characters and keeps runs like --. cafébar must give caf-bar.

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 e63047b22621: project_label turns each run of non-alphanumeric characters into one '-' and gives 'box' when nothing is left. cafébar gives caf-bar (ae9aed1).

Comment thread crates/boxes/src/lib.rs Outdated
);

// Parts that clean to nothing.
assert_eq!(derived_box_name("日本", Some("lint"), None), "lint");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

C3 · The design gives the project box for 日本, so this name is box-lint, not lint. Change the expected value, and add My_App.v2 gives my-app-v2 and cafébar gives caf-bar.

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 e63047b22621: The test expects box-lint for 日本 + lint, and adds My_App.v2 -> my-app-v2, cafébar -> caf-bar and a--b + x -> a-b-x (ae9aed1).

@agent-137
Copy link
Copy Markdown
Member

/revise

Arch ruling CONDITIONS on 774e64a (3 conditions). Apply all three as the ruling states them:

Reply to each arch thread with the commit that meets it. Keep Fixes #3751 and Closes #3530.

@agent-137
Copy link
Copy Markdown
Member

/revise

Arch ruling CONDITIONS on 774e64a (3 conditions). My previous /revise note posted without the conditions; this one carries them. Apply all three as the ruling states them:

  • C1: Make min send the entry's [box] name as the request name when the user gives no name (BCLI-079), because the daemon no longer reads it from the spec. In crates/minimal/src/cmd/boxes/create.rs stamp_session_spec_as(), set request.config.name = spec.name.clone() after the spec is built, when request.config.name is None. In crates/minimal/src/task.rs, do the same with the spec from task_box_spec(), after request_fresh_instance() clears the name, so a fresh task instance keeps [box] name as the base that the daemon numbers. In crates/minimal/src/dash/rpc.rs create_registering(), use the spec's name before derived_name() when the form name is blank. Add a test: a min box start create and a blank-name dash create from an entry with [box] name = "web" both name the box web.
  • C2: Keep one derivation of the name, and make every client registration use it. Add one function in crates/boxes/src/lib.rs module box_name that takes the project root (else the project path) and the spec's entry and returns the derived name, with default as no entry. Call it from DerivedName::of() in crates/minimald/src/box_manager.rs, from derived_name() in crates/minimal/src/dash/rpc.rs, and from created_box_name() in crates/minimal/src/cmd/boxes/create.rs. created_box_name() returns request.config.name, else that derived name. It no longer reads spec.name or calls entry_box_name(). host_ip_registration_key() then builds <project>-<entry>~<hex>, the base that host_ip_mint_name matches. Add a test: an unnamed own-address min box start on a VM-backed host registers under the name the daemon assigns.
  • C3: In crates/boxes/src/lib.rs, convert the project part as the design says. Lower-case each ASCII letter. Replace each run of bytes that are not ASCII letters or digits with one -, so cafébar gives caf-bar and a__b gives a-b. Trim - from both ends. Give box when nothing is left, so project_name_of_root("/") and 日本 give the project box. Do this in label_chars(), or in a project-only function that derived_box_name() calls on its project argument. Change the test derived_name_fits_63_cutting_project_then_entry_never_number to expect box-lint for derived_box_name("日本", Some("lint"), None), and add the cases My_App.v2 gives my-app-v2 and cafébar gives caf-bar. BOX-213 can still cut the project part to nothing when the entry needs the room.

Reply to each arch thread with the commit that meets it. Keep Fixes #3751 and Closes #3530.

@minimal-foundry
Copy link
Copy Markdown
Contributor Author

That /revise is held, not dropped. A coder is already running on #3751. Your note is kept and goes into the next round here, which starts when that coder finishes.

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.

A project name now gives each run of other characters one '-', and
'box' when nothing is left. create_derived_name is the one derivation
the daemon, min box start and min dash call.
min box start, min task run and min dash put an entry's [box] name on
the create request, because the daemon names a box from the request
alone. The VM host row takes the same name through
boxes::box_name::create_derived_name.
@minimal-foundry
Copy link
Copy Markdown
Contributor Author

Round 4 of 10 on a /revise note, pushed as e63047b22621.

line exit tail
cargo nextest run -p boxes derived_name_fits_63_cutting_project_then_entry_never_number 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald create_names_box_written_exactly_else_derived 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald derived_name_is_project_for_default_else_project_dash_entry 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald create_naming_tests 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimal dash_create_blank_name_takes_box_start_name 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt

Verify min task run agent-verify exited 1.

3f06c4daa,liborchestrator-ef9b920e7a91144a,libop-81f88ae9e0d25a91,libsize-0a8a7350b7e7e72e,librcache-2d09d2adce085433,libsandbox-94992ee6041da2dc,libhakoniwa-19f2d4fa143ad957,libroute_manager-82377cf0055d9126,libnetlink_packet_route-4db8f425d3201199,libclose_fds-b861feb0f299260e,libcaps-e1440bfce68c8d29,libpostcard-a1734acee2598654,libheapless-6dc3b49fa21de0cc,libspin-64041257003e8f0c,libhash32-0ea48cc0238e1733,libcobs-3968649967f37387,liblibcgroups-55484dfd5ba6302f,libprocfs-3800d7ba0d2be8d8,libprocfs_core-63fe94e85ffae9cb,libpathrs-1f7a177e3cbdf9d6,libitertools-c5faf79b5ce132a6,libfixedbitset-19eb3585eb10a92b,liboci_spec-e288aa68924a6ae2,libstrum-f0b3723d1b5deb30,libconst_format-bd870edc22ec2ffe,libkonst-320d0a7c78ca31db,libkonst_macro_rules-90c2abe791ac19ee,libderive_builder-0c6bec161dbafa26,libtun_rs-00769a804e83466c,libnetconfig_rs-f4360e9551ae8492,libnetlink_sys-49f2efe4ddb4711a,libnetlink_packet_route-487b8bd09f7df47f,libnetlink_packet_core-b3403105a4379a90,libnix-9e0d78d8ac94f7c5,libgetifaddrs-8ec2848e1a1584cd,libsendfd-3ff70e6cefc17f88,libnix-c224de8e20910bbb,liblcache-061f08e8e7fc7bf5,libpath_absolutize-8e0a703ed1c8d066,libpath_dedot-ba88707d1a708e58,libgraph-5af40cf122cddcd6,libcheckouts-58b67d595ee5d013,libdecode-f1d46fbfd46852e1,libstdlib-03fbd3589b073e70,libgenerational_arena-9a1ce9547c15c23b,libmfile-fd8b31b634717e13,libinquire-656680d8858863d8,libfuzzy_matcher-9d4d3b5fbe9c127c,libdiagnostics-b930c743874c6d30,libratatui-1fc20dde22a8a62b,libratatui_macros-bc1fdbed4d79ade9,libratatui_widgets-7fb9939a915c47fd,libline_clipping-59c99a548322d801,libratatui_crossterm-63a4be9ad37a1917,libratatui_core-014eb9744e5165f3,libunicode_truncate-28a52c3d80d244bf,liblru-d0c56f84850f9631,libkasuari-fdfe63e8bfa489a2,libcompact_str-09636454e4d826c8,libcastaway-daf5d5abba49ae58,libstrum-3601c5599d715e4a,libcrossterm-bada4be66edeeb67,libderive_more-2bd26e7a4aba38bc,libsignal_hook_mio-82dd242550724fb4,libsignal_hook-3b025601d97fcadf,libclap_complete-007ec9fd63d57744,libis_executable-74d057a55fb1ccb4,libminimal_client-932e8c349bf2f7a1,librussh_sftp-c0dd194e0f0fbcdd,libserde_bytes-73a1a02b5a2dfcd1,libdashmap-502a8fc1298aabce,libhashbrown-888edca84adebb63,libasync_compression-50d667237cfeeadd,libcompression_codecs-39cbeffaf28fa7ef,libcompression_core-dfcefdf67c62c582,libasync_tar-2d4e269158bf58e6,libminvmd-6f3c531017cff031,librussh-ed9f65070daa276a,librussh_util-5853665acc0564b9,libgeneric_array-b8b25d469da10464,libml_kem-cafb9b450f7a1841,libkem-80735a3c0da98224,libsha3-3e432fadb6d9cb90,libkeccak-013a236ea1b60d4b,libmodule_lattice-96ab7ffb73a1154a,libnum_bigint-ed8949911d5efb3d,libhex_literal-4d451a37fa5640f6,libssh_key-ed9b3bbfc44c94ab,libed25519_dalek-fe5153e487810d14,libcurve25519_dalek-3cc47addefeae209,libed25519-6f405060246a0fd3,libp521-d1505ffba912a11a,libp384-f5deeab3c10c66ee,libargon2-ceb481fc7fe2bde6,libblake2-4f648b0fd8e03e6b,libbcrypt_pbkdf-43e49d37e9602ee1,libblowfish-c4b6745ad029ebeerror: flush task stderr: No space left on device (os error 28)

Outside the task's layers::

  • crates/minimal/src/cmd/boxes/create.rs
  • crates/minimal/src/task.rs
  • crates/minimal/src/tests.rs
  • crates/minimal/tests/cli.rs
  • scripts/session-e2e.sh

Converted to a draft: verify exited 1; outside the task's layers:: crates/minimal/src/cmd/boxes/create.rs, crates/minimal/src/task.rs, crates/minimal/src/tests.rs.

Review threads the coder judged:

  • 👍 valid — crates/minimald/src/box_manager.rs:483: created_box_name now returns the request name (which carries --name or [box] name), else boxes::box_name::create_derived_name, the function the daemon calls, so the VM host row, the host_ip creation key base and the box carry one name (315be84). Tests in crates/minimal/src/tests.rs updated (315be84
  • 👍 valid — crates/minimald/src/box_manager.rs:482: stamp_session_spec_as and put_task_spec copy the entry's expanded [box] name onto the spec and send it as the request name when no --name is given. The dash create does the same (315be84).
  • 👍 valid — crates/minimal/src/dash/rpc.rs:795: create_registering takes the spec's box.name before derived_name() and sends it whether or not the box registers. The dash test adds an entry with [box] name = "api-box" (315be84).
  • 👍 valid — crates/minimal/src/dash/rpc.rs:860: The derivation is now boxes::box_name::create_derived_name. The daemon's DerivedName, the dash's derived_name and created_box_name all call it (ae9aed1, 1f1bf70, 315be84).
  • 👍 valid — crates/boxes/src/lib.rs:1852: project_label turns each run of non-alphanumeric characters into one '-' and gives 'box' when nothing is left. cafébar gives caf-bar (ae9aed1).
  • 👍 valid — crates/boxes/src/lib.rs: The test expects box-lint for 日本 + lint, and adds My_App.v2 -> my-app-v2, cafébar -> caf-bar and a--b + x -> a-b-x (ae9aed1).

A box created in min dash with the name left blank shows the same name as a box from min box start in that project: for the default entry, - for another entry, and the entry's [box] name when the entry declares one. It never shows (unnamed). The dash test now checks all three cases against a real min box start create.

Notes from the agent: Revise round 4. The commits that meet the arch conditions: C3 is ae9aed1. The project label turns each run of other characters into one '-', and an empty label becomes 'box'. So cafébar gives caf-bar, My_App.v2 gives my-app-v2, and 日本 + lint gives box-lint. C2 is ae9aed1 and 1f1bf70. boxes::box_name::create_derived_name is now the one derivation, and the daemon (DerivedName), the dash (derived_name) and created_box_name in cmd/boxes/create.rs call it. C1 is 315be84. stamp_session_spec_as and put_task_spec copy the entry's expanded box.name onto the stored spec, then onto request.config.name when no --name or form name is there. create_registering in the dash also takes the spec's box.name before the derived name, whether or not the box registers. I found that the client spec never carried [box] name from minimal.toml on main either: BoxSpec::build sets name None. So C1 needed the new expanded_box_name helper in create.rs. Files outside the task layers, touched because the directive asks for them: crates/minimal/src/cmd/boxes/create.rs (C1, C2 and the foundry finding), crates/minimal/src/task.rs (C1), and crates/minimal/src/tests.rs (the tests that pinned the old created_box_name rule). I renamed created_box_name_is_the_entry_without_a_typed_name to created_box_name_is_the_request_name_else_derived and updated its entry in the request-site inventory list. created_box_name now always returns Some, because the daemon names every box. boxes::box_name::DEFAULT_ENTRY copies mfile's DEFAULT_SESSION_ENTRY, because mfile depends on boxes. A minimald test pins the two as equal. An interactive t…[truncated]

@minimal-foundry
minimal-foundry Bot marked this pull request as draft November 24, 2026 10:22
@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 — advisory review

Verdict COMMENT — 1 finding, 1 inline.

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

Comment on lines 4694 to 4700
if config.name != name {
tracing::info!(
name_given = ?config.name,
name = ?name,
source = source.word(),
"named the box from its spec"
"named the box from its project and entry"
);
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.

LOW · correctness · confidence 0.60 · in BoxManager::create

This log fires whenever config.name != name. That includes a --new create with a request name, where the name only gets a -<n> suffix and does not come from the project and entry. The text "named the box from its project and entry" then misleads, although source says request name. Word the message by source, or log only for NameSource::Derived.

What the reviewer checked

box_manager.rs:4694 if config.name != name { tracing::info!(... source = source.word(), "named the box from its project and entry") }

Hand this to an agent
Act on a code-review finding.

File:       crates/minimald/src/box_manager.rs
Lines:      4694-4700
Category:   correctness
Severity:   low (reviewer confidence 0.60)

Finding:
This log fires whenever `config.name != name`. That includes a `--new` create with a request name, where the name only gets a `-<n>` suffix and does not come from the project and entry. The text "named the box from its project and entry" then misleads, although `source` says `request name`. Word the message by source, or log only for `NameSource::Derived`.

First verify this against the code yourself. It is model output and
may be wrong. If it is wrong, or the tradeoff was deliberate, say so
and change nothing.

👍 useful · 👎 noise — react to tell the reviewer. Replying works too, and says more.

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.

Tracked in #3753: that task removes the fresh-instance (--new) path and assigns <name>-<n> in the record step, and it rewrites this create log line to say whether the name was requested, derived or numbered. It is a log record, not user-facing text, so it does not hold this PR.

@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

The three conditions from the ruling on 774e64a7 are met at this head. The daemon, min box start and min dash now derive an unnamed box's name through one function, create_derived_name(). The client sends the entry's [box] name as the requested name, as architecture.md line 401 and BCLI-079 require. The project part follows the minimal.toml layout rule on line 1250. Two items in code outside the compare are in the summary for a follow-up issue: the interactive task name, and the fresh-instance number.

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

@minimal-foundry
Copy link
Copy Markdown
Contributor Author

Round 5 of 10 on a /revise note, pushed as 486aec24288e.

line exit tail
cargo nextest run -p boxes derived_name_fits_63_cutting_project_then_entry_never_number 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald create_names_box_written_exactly_else_derived 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald derived_name_is_project_for_default_else_project_dash_entry 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimald create_naming_tests 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt
cargo nextest run -p minimal dash_create_blank_name_takes_box_start_name 0 warning: unknown fields in task runtime-implement-test-0: network warning: unknown fields in task runtime-implement-test-1: network warning: unknown fields in task runtime-implement-test-2: network warning: unknown fields in task runtime-implement-test-3: network warning: unknown fields in task runt

Verify min task run agent-verify exited 101.

2,libsubtle-d4ee3adaa82dd067,libcmov-45bd4af2ffaf6bf5,libzeroize-839e2912eb255706,libtypenum-ba1598732f210209,libserde_json_lenient-d40e6f0e7b3e9eef,libitoa-9ca95701043ab126,libryu-0d9f6319717c2636,libglobset-d675b9d89ac69765,liblog-438092e92453965a,libbstr-e486a46c74a4ad7c,libregex_automata-78493a18fcc8828b,libregex_syntax-913a3a1c2b02ab63,libaho_corasick-c7544a0898654238,libmemchr-64a87164b387290e,libwalkdir-8278203427ac3159,libsame_file-0d4c610508a69e8c,libnutype-2060fd37b9d379f2,libclient_config-b967f21a883cbf40,libtoml-2aea33601fef026d,libtoml_writer-14581a9d8fee7cd3,libtoml_parser-9d71f9449b11f073,libwinnow-0b86322c90e7afd1,libserde_spanned-d96ed742cfb92972,libtoml_datetime-be2b7a398aebdb67,libtracing-83feaaf26e80a884,libpin_project_lite-965c2dcbe863fe30,libtracing_core-84f58f17c6893e81,libonce_cell-9a2fd160c1da4076,libportable_atomic-0dd514cc30f274c2,libpaths-38d338f2d2882e54,libdirs-460e2d244a8fc274,libdirs_sys-5e8776d10c678365,liboption_ext-b0ea52c3b95d09a1,libthiserror-d936554554fa5dac,libcamino-0c63145602122330,libuuid-2ad4c678aa627cb6,libgetrandom-3bfdefd1957f2b79,liblibc-4f2d736fc0e30dce,librand_core-d44f5774360f5730,libcfg_if-5af2d58a3df8aa54,libserde-a2d31a39ef0e3ca2,libserde_core-149b29d4f6c47ae0,libanyhow-c1ffd3cc4fbec0bd}.rlib" "<sysroot>/lib64/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/work/build-cache/cargo-home/build/debug/deps/rustcCbPo9U/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/work/build-cache/car
10BC8
go-home/build/debug/build/zstd-sys-0d91391d9ed43bde/out" "-L" "/work/build-cache/cargo-home/build/debug/build/ring-43aedddb25fbb121/out" "-L" "/work/build-cache/cargo-home/build/debug/build/aws-lc-sys-467e076f78a0a3c4/out" "-L" "/work/build-cache/cargo-home/build/debug/build/tree-sitter-6abcf750100a3ada/out" "-L" "/work/build-cache/cargo-home/build/debug/build/tree-sitter-nickel-4d55240ed02e956b/out" "-L" "/work/build-cache/cargo-home/build/debug/build/blake3-493bdc0df5a171ff/out" "-L" "<sysroot>/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/work/build-cache/cargo-home/build/debug/deps/minimal-4e08dd04f121fa43" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: final link failed: No space left on device
          collect2: error: ld returned 1 exit status
          

error: could not compile `minimal` (lib test) due to 1 previous error
error: command `/usr/bin/cargo '--color=auto' test --no-run --message-format json-render-diagnostics --package boxes --package minimal --package minimald --locked` exited with code 101

Outside the task's layers::

  • crates/minimal/src/cmd/boxes/create.rs
  • crates/minimal/src/task.rs
  • crates/minimal/src/tests.rs
  • crates/minimal/tests/cli.rs
  • scripts/session-e2e.sh

Converted to a draft: verify exited 101; outside the task's layers:: crates/minimal/src/cmd/boxes/create.rs, crates/minimal/src/task.rs, crates/minimal/src/tests.rs.

A session created in min dash with the name left blank shows the same name as a box from min box start in that project: the project name for the default entry, - for a picked entry, and the entry's [box] name when it declares one. It never shows (unnamed).

Notes from the agent: The commits of the previous round already meet all three conditions of the arch ruling. C1 is in ae9aed1..315be84: stamp_session_spec_as, put_task_spec (task.rs, called after request_fresh_instance) and create_registering send the spec's [box] name as the request name. C2: boxes::box_name::create_derived_name is the one derivation, and DerivedName::of, the dash derived_name and created_box_name call it. created_box_name no longer reads spec.name or calls entry_box_name, so host_ip_registration_key builds -~. C3 is in ae9aed1: project_label lower-cases, collapses each run of other characters to one '-', trims, and gives 'box'. The test expects box-lint, my-app-v2 and caf-bar. This round only changed the dash test so that the entry declares [box] name = "web", as C1 words it. Before, the test used "api-box". The same test checks that the own-address registration on a VM-backed host uses the box start name, and created_box_name_is_the_request_name_else_derived covers the min box start side. Commits: C1 315be84, C2 ae9aed1 + 1f1bf70 + 315be84, C3 ae9aed1, test 486aec2. crates/minimal/src/cmd/boxes/create.rs, crates/minimal/src/task.rs and crates/minimal/src/tests.rs are outside the task's layers, but the ruling names them. The earlier round touched them, and this round did not. I did not run just clippy-strict or the full crate suites.

@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

The change since the last ruling renames one test fixture value from api-box to web. The test still proves that a written [box] name names the box before the derived name. This matches the Addressing section of the architecture, line 401. The earlier ruling stands for the rest of the change. No conditions.

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

@agent-137
Copy link
Copy Markdown
Member

/review

@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-foundry[bot] crates/minimald/src/box_manager.rs:483, minimal-arch[bot] crates/minimald/src/box_manager.rs:482, minimal-arch[bot] crates/minimal/src/dash/rpc.rs:795, minimal-arch[bot] crates/minimal/src/dash/rpc.rs:860, minimal-arch[bot] crates/boxes/src/lib.rs:1852, …. No findings.

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

@mitodrummer mitodrummer left a comment F18B
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. Size accepted.

@agent-137
agent-137 marked this pull request as ready for review November 24, 2026 15:40
@mitodrummer
mitodrummer added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 672f98b Nov 24, 2026
39 checks passed
@mitodrummer
mitodrummer deleted the agent/3751-a-box-created-from-min-dash-with-a-blank-name-ta branch November 24, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-human An agent handed off; a human must act, then clear this label. Set by defer and handoffs.

Projects

None yet

2 participants

0