8000 feat(minimal): T74 — min box spec <entry> folds the selected loadouts as the start does by minimal-foundry[bot] · Pull Request #3830 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

feat(minimal): T74 — min box spec <entry> folds the selected loadouts as the start does - #3830

Merged
mitodrummer merged 8 commits into
mainfrom
agent/3236-min-box-spec-entry-folds-the-selected-loadouts-a
Nov 26, 2026
Merged

mitodrummer merged 8 commits into
mainfrom
agent/3236-min-box-spec-entry-folds-the-selected-loadouts-a

Conversation

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

T74 — min box spec folds the selected loadouts as the start does

slice: S5
kind: task
covers: BCLI-021, BCLI-073, BCLI-075, BCLI-076, BCLI-077, BCLI-084
size: M
est: 70 code, 150 tests
executor: agent
difficulty: moderate
model: standard
diagnostics: none new
observability: none new
layers:
- cli:
- crates/minimal/src/cmd/box_spec.rs: entry_spec resolves the loadouts first, folds SelectedLoadouts::layers into the expansion, honours --no-loadouts and --no-hooks; origin_label names the loadout
- crates/minimal/src/cmd/boxes/create.rs: SelectedLoadouts::layers reachable from box_spec.rs; the start_loadout_selection doc comment
- crates/minimal/src/tests.rs: the three new tests, box_spec_entry_loadouts_resolve_as_start, and any test that pins the entry form's output
- crates/minimal/tests/cli.rs: box_spec_entry_warns_on_a_loadout_only_secret_name
test: cargo nextest run -p minimal box_spec_entry_folds_selected_loadouts_as_start box_spec_entry_shows_builtin_default_loadout box_spec_entry_no_hooks_renders_no_hook box_spec_entry_loadouts_resolve_as_start box_spec_entry_warns_on_a_loadout_only_secret_name box_spec_entry_prints_secret_name_warnings_on_stderr
- docs:
- docs/reference/cli-min.md: the box spec section on loadouts
produces: none
consumes: none
proof: the six tests pass, and git grep -n 'Folding their values into the spec is #3236' -- crates prints nothing.


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

Proof

min box spec <entry> now renders the spec with the selected loadouts folded in, as min box start stores it. A loadout's packages, env_vars and hooks appear in the spec and name the loadout (for example # env_vars.PAGER: from loadout dev). --no-loadouts and --no-hooks work. A secret-looking variable from a loadout only gets its stderr warning. The six tests pass, and git grep -n 'Folding their values into the spec is #3236' -- crates prints nothing.

Notes from the agent: Design: expand_entry in box_spec.rs now resolves the loadout gate and the loadouts before it expands the entry, which is the order the start uses. It puts SelectedLoadouts::layers (now pub(crate)) into Layers::loadouts and applies the user policy's var ignore list. The expansion folds loadouts only when it has the type chain's layers, because those layers open the loadout gate. So box spec now also sets the type layers through create.rs entry_type_layers (now pub(crate)), and it sets host_vars for inherit names, as box_entry does. One effect: the rendered spec now shows values from the type defaults, such as loadout_mode from type session defaults. For BCLI-077 the sources now have one env_vars.<NAME> row for each variable, which names the layer whose value the merge kept. Test change: box_spec_renders_formats_secrets_as_refs pinned spec: followed directly by network:. The built-in default loadout now adds env_vars first, so I updated that assertion. Other runs: cargo nextest run -p minimal box_spec (46 passed) and cargo nextest run -p minimal spec loadout hooks (113 passed). Printed text: revisions r1 and r2 fixed the BOX-231 warning (see "Revisions" and "Outside the task's layers"). Its second sentence now starts upper case: "... looks like a secret's. The loadout gh sets it, in ." The new cli.rs test pins that text. I could not run just lint-prose …[truncated]

Tests

line exit tail
cargo nextest run -p minimal box_spec_entry_folds_selected_loadouts_as_start box_spec_entry_shows_builtin_default_loadout box_spec_entry_no_hooks_renders_no_hook box_spec_entry_loadouts_resolve_as_start box_spec_entry_warns_on_a_loadout_only_secret_name box_spec_entry_prints_secret_name_warnings_on_ 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... warning: unused workspace dependency 'google-cloud-gax' --> Cargo.toml:153:1 | 153 | google

Verify

min task run agent-verify exited 100 under rustc 1.100.0, which the repository does not pin (1.99.1 in rust-toolchain.toml); the PR is not a draft on that alone — CI, which honours the pin, is the gate.

302) minimal::bin/min tests::invalid_project_file_for_box_spec_says_spec_cannot_show
        PASS [   0.007s] (1277/1302) minimal::bin/min tests::invalid_project_file_prints_toml_error_once
        PASS [   0.006s] (1278/1302) minimal::bin/min tests::invalid_project_file_prints_toml_error_once_for_io
        PASS [   0.006s] (1279/1302) minimal::bin/min tests::loadout_not_found_exits_4
        PASS [   0.007s] (1280/1302) minimal::bin/min tests::local_host_not_found_exits_4
        PASS [   0.005s] (1281/1302) minimal::bin/min tests::machine_mode_answers_write_failures
        PASS [   0.006s] (1282/1302) minimal::bin/min tests::machine_mode_error_line_keeps_an_empty_hint
        PASS [   0.005s] (1283/1302) minimal::bin/min tests::machine_mode_error_object_is_one_stamped_line
        PASS [   0.006s] (1284/1302) minimal::bin/min tests::machine_mode_names_the_grant_refusal_code
        PASS [   0.008s] (1285/1302) minimal::bin/min tests::machine_mode_error_object_on_stderr
        PASS [   0.007s] (1286/1302) minimal::bin/min tests::machine_output_mode_keys_on_the_output_flag
        PASS [   0.007s] (1287/1302) minimal::bin/min tests::misplaced_run_flag_exits_2
        PASS [   0.007s] (1288/1302) minimal::bin/min tests::project_file_not_found_exits_4
        PASS [   0.008s] (1289/1302) minimal::bin/min tests::network_flag_refusal_exits_2
        PASS [   0.007s] (1290/1302) minimal::bin/min tests::prune_off_tty_needs_yes_exits_2
        PASS [   0.007s] (1291/1302) minimal::bin/min tests::resume_and_session_attach_refusals_map_to_exit_codes
        PASS [   0.007s] (1292/1302) minimal::bin/min tests::rm_running_box_refuses_naming_force_with_exit_2
        PASS [   0.007s] (1293/1302) minimal::bin/min tests::row_not_back_exit_codes
        PASS [   0.008s] (1294/1302) minimal::bin/min tests::run_verbs_and_wait_timeout_return_124_with_code_timeout
        PASS [   0.008s] (1295/1302) minimal::bin/min tests::start_entry_refusals_exit_with_their_codes
        PASS [   0.007s] (1296/1302) minimal::bin/min tests::task_file_invalid_exits_3
        PASS [   0.007s] (1297/1302) minimal::bin/min tests::task_network_key_a_task_does_not_apply_exits_3
        PASS [   0.006s] (1298/1302) minimal::bin/min tests::task_not_found_exits_4
        PASS [   0.007s] (1299/1302) minimal::bin/min tests::task_run_is_a_stdout_contract
        PASS [   0.006s] (1300/1302) minimal::bin/min tests::type_refusals_exit_3_and_4
        PASS [   2.064s] (1301/1302) minimal::named_vm named_vm_reaches_autospawn
  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.59s

  stderr ───

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

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

Revisions

  • r1 (df6147e): SecretNameWarning's Display starts its second sentence upper case through a helper, sentence_start. Before, a loadout or a type default printed "the loadout gh sets it" or "the built-in session box type sets it". The label builders (layer_words, loadout_file) are unchanged, because other messages use those labels mid-sentence.
  • r2 (539e45a): Error::LoadoutVarConflict uses the same helper for {first} sets one value. This follows the advice of crates/mfile's owner (the BOX session). {second} stays lower case, mid-sentence. New mfile tests cover a loadout layer and a type-default layer in both messages.
  • 5941f4d merges main (with docs: clear the prose-lint alerts on the lines the BCLI tasks wrote #3826).

Outside the task's layers

  • crates/mfile/src/expand.rs: SecretNameWarning's Display and its tests. This PR makes a loadout-only variable's BOX-231 warning reachable from min box spec <entry>, and that warning's second sentence started in lower case.
  • crates/mfile/src/error.rs: sentence_start, and LoadoutVarConflict's first sentence. The same lower-case sentence start in a refusal, fixed with the same helper, as the crate's owner recommended.

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/minimal/src/cmd/boxes/create.rs
  • crates/minimal/src/tests.rs
  • docs/reference/cli-min.md

Closes #3236

min box spec <entry> now expands the entry over the loadouts that
min box start selects, with the type layers and the user policy's
var ignore list, so the rendered spec matches what the start stores.
It honours --no-loadouts and --no-hooks, and each env_vars name and
each loadout value names the loadout that set it.
@coderabbitai
coderabbitai Bot commented Nov 26, 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: abc56127-c13d-4a8a-b19c-649610044bfb

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

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

Approved: no findings at 539e45a88b67.

Nothing to do.

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 — approved

Verdict APPROVE — No findings.

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

@minimal-foundry minimal-foundry Bot added the review:approved minimal-review approved the current head label Nov 26, 2026
@agent-137
8000
Copy link
Copy Markdown
Member

/arch-review

@agent-137
Copy link
Copy Markdown
Member

/revise Fix the lower-case sentence in the BOX-231 warning that this PR makes reachable from min box spec <entry>. Today it prints ... looks like a secret's. the loadout gh sets it, in <path>.

  1. crates/mfile/src/expand.rs, impl std::fmt::Display for SecretNameWarning: the second sentence starts with self.layer. Write it with its first character in upper case when that character is an ASCII lower-case letter, in both arms ({} sets it, in {}. and {} sets it. ). So the loadout gh prints as `The loadout `gh, a selected loadout as A selected loadout, a command-line flag as A command-line flag, and the defaultstable of[box_types.x]as `The `defaults` table of ...`. A label that starts with a backtick, such as [sessions.dev] in minimal.toml ``, is unchanged.
    Do not change the label builders (loadout_file, and the `Layer::Loadouts` arm near line 1858). Other messages use those labels mid-sentence, where lower case is right.
  2. crates/mfile/src/expand.rs tests: the two pinned strings become "The loadout gh sets it, in {}. " (near line 4128) and "The loadout l sets it. " (near line 4142).
  3. crates/minimal/tests/cli.rs, box_spec_entry_warns_on_a_loadout_only_secret_name: pin ... looks like a secret's. The loadout gh sets it, in {}. ....
  4. Any other test that pins a lower-case second sentence of this warning moves the same way. cargo nextest run -p mfile -p minimal names them.
  5. PR body: list crates/mfile/src/expand.rs under the files outside the task's layers, with this reason. T74 makes a loadout-only variable's BOX-231 warning reachable from min box spec <entry>, and the warning's second sentence started in lower case. The fix is in the warning's Display, so the labels other messages use mid-sentence are unchanged. Remove the note that the fix is outside the task's layers and was not made.

@agent-137
Copy link
Copy Markdown
Member

/revise Follow-up to r1, as the owner of crates/mfile (the BOX session) recommends:

  1. Put the upper-casing in one small helper in crates/mfile (for example fn sentence_start(label: &str) -> String, which upper-cases the first character when it is an ASCII lower-case letter). Use it at the sentence-start sites only: SecretNameWarning's Display (both arms, from r1) and Error::LoadoutVarConflict in crates/mfile/src/error.rs ({first} sets one value). Today that refusal prints "the built-in session box type sets one value" when the first layer is a type default. {second} stays as it is, because it is mid-sentence. Do not change layer_words or loadout_file.
  2. Tests in crates/mfile: the BOX-231 pins at expand.rs near lines 4128 and 4142, plus one SecretNameWarning case whose layer is a loadout (The loadout gh sets it) and one whose layer is a type default (The built-in session box type sets it). Add one LoadoutVarConflict case whose first layer is a type default. crates/minimal/src/tests.rs near line 17556 pins a first layer of `[...]` in minimal.toml, which starts with a backtick and is unchanged.
  3. PR body: list crates/mfile/src/error.rs beside crates/mfile/src/expand.rs as an out-of-layer edit. The reason: the same lower-case sentence start in a refusal, fixed with the same helper, as the crate's owner recommended.

@minimal-foundry
Copy link
Copy Markdown
Contributor Author

That /revise is held, not dropped. A coder is already running on #3236. 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.

@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

This change conforms to the design. The architecture says that min box spec <entry> takes the start's flags and renders exactly what the host receives (architecture.md line 1294). The selected loadouts are layer 6 of that expansion, and --no-hooks is in layer 7. expand_entry now builds the same layers as box_entry for the stored spec, and it honours --no-loadouts and --no-hooks. No condition is open. The lower-case sentence in the BOX-231 loadout warning comes from mfile, and no design line decides it.

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

T74 makes a loadout-only variable's warning reachable from min box spec
<entry>, where it printed "the loadout `gh` sets it" mid-text. The
Display now capitalises the label. The label builders stay lower case
for the messages that use them mid-sentence.
@minimal-foundry
Copy link
Copy Markdown
Contributor Author

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

line exit tail
cargo nextest run -p minimal box_spec_entry_folds_selected_loadouts_as_start box_spec_entry_shows_builtin_default_loadout box_spec_entry_no_hooks_renders_no_hook box_spec_entry_loadouts_resolve_as_start box_spec_entry_warns_on_a_loadout_only_secret_name box_spec_entry_prints_secret_name_warnings_on_ 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... warning: unused workspace dependency 'google-cloud-gax' --> Cargo.toml:153:1 | 153 | google

Verify min task run agent-verify exited 100 under rustc 1.100.0, which the repository does not pin (1.99.1 in rust-toolchain.toml); the PR is not a draft on that alone — CI, which honours the pin, is the gate.

23/1549) minimal::bin/min tests::invalid_project_file_prints_toml_error_once
        PASS [   0.007s] (1524/1549) minimal::bin/min tests::invalid_project_file_prints_toml_error_once_for_io
        PASS [   0.007s] (1525/1549) minimal::bin/min tests::loadout_not_found_exits_4
        PASS [   0.006s] (1526/1549) minimal::bin/min tests::local_host_not_found_exits_4
        PASS [   0.007s] (1527/1549) minimal::bin/min tests::machine_mode_answers_write_failures
        PASS [   0.006s] (1528/1549) minimal::bin/min tests::machine_mode_error_line_keeps_an_empty_hint
        PASS [   0.008s] (1529/1549) minimal::bin/min tests::machine_mode_error_object_is_one_stamped_line
        PASS [   0.007s] (1530/1549) minimal::bin/min tests::machine_mode_error_object_on_stderr
        PASS [   0.006s] (1531/1549) minimal::bin/min tests::machine_mode_names_the_grant_refusal_code
        PASS [   0.006s] (1532/1549) minimal::bin/min tests::machine_output_mode_keys_on_the_output_flag
        PASS [   0.006s] (1533/1549) minimal::bin/min tests::misplaced_run_flag_exits_2
        PASS [   0.006s] (1534/1549) minimal::bin/min tests::network_flag_refusal_exits_2
        PASS [   0.006s] (1535/1549) minimal::bin/min tests::project_file_not_found_exits_4
        PASS [   0.007s] (1536/1549) minimal::bin/min tests::prune_off_tty_needs_yes_exits_2
        PASS [   0.006s] (1537/1549) minimal::bin/min tests::resume_and_session_attach_refusals_map_to_exit_codes
        PASS [   0.006s] (1538/1549) minimal::bin/min tests::rm_running_box_refuses_naming_force_with_exit_2
        PASS [   0.006s] (1539/1549) minimal::bin/min tests::row_not_back_exit_codes
        PASS [   0.006s] (1540/1549) minimal::bin/min tests::run_verbs_and_wait_timeout_return_124_with_code_timeout
        PASS [   0.007s] (1541/1549) minimal::bin/min tests::start_entry_refusals_exit_with_their_codes
        PASS [   0.006s] (1542/1549) minimal::bin/min tests::task_file_invalid_exits_3
        PASS [   0.007s] (1543/1549) minimal::bin/min tests::task_network_key_a_task_does_not_apply_exits_3
        PASS [   0.006s] (1544/1549) minimal::bin/min tests::task_not_found_exits_4
        PASS [   0.007s] (1545/1549) minimal::bin/min tests::task_run_is_a_stdout_contract
        PASS [   0.007s] (1546/1549) minimal::bin/min tests::type_refusals_exit_3_and_4
        PASS [   0.956s] (1547/1549) minimal::otel_cli a_silent_collector_costs_min_ls_little_and_prints_nothing
        PASS [   2.056s] (1548/1549) minimal::named_vm named_vm_reaches_autospawn
  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.40s

  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/mfile/src/expand.rs

Converted to a draft: outside the task's layers:: crates/mfile/src/expand.rs.

The six tests pass, and git grep -n 'Folding their values into the spec is #3236' -- crates prints nothing. min box spec dev --loadout gh now warns '... looks like a secret's. The loadout gh sets it, in . ...', with the second sentence in upper case.

Notes from the agent: Revise round 1: the second sentence of the BOX-231 warning now starts in upper case. crates/mfile/src/expand.rs is outside the task's layers. T74 makes a loadout-only variable's BOX-231 warning reachable from min box spec <entry>, and the second sentence of that warning started in lower case. The fix is in the Display for SecretNameWarning, through a new sentence_start helper. It makes the first character upper case only when that character is an ASCII lower-case letter. The label builders (loadout_file and the Layer::Loadouts arm) are unchanged, so other messages that use the labels mid-sentence keep lower case. A label that starts with a backtick is unchanged. The pinned strings in the expand.rs tests and in box_spec_entry_warns_on_a_loadout_only_secret_name now use the upper-case text. One run of cargo nextest run -p mfile -p minimal found no other test that pins the lower-case sentence. Remove the PR body note that the fix is outside the task's layers and was not made.

@minimal-foundry
minimal-foundry Bot marked this pull request as draft November 26, 2026 07:11
@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 — approved

Verdict APPROVE — No findings.

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

The refusal opened its second sentence with the first layer's label,
so a type default printed "the built-in `session` box type sets one
value". It now uses the crate's sentence_start helper, which the
secret-name warning shares.
@minimal-foundry
Copy link
Copy Markdown
Contributor Author

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

line exit tail
cargo nextest run -p minimal box_spec_entry_folds_selected_loadouts_as_start box_spec_entry_shows_builtin_default_loadout box_spec_entry_no_hooks_renders_no_hook box_spec_entry_loadouts_resolve_as_start box_spec_entry_warns_on_a_loadout_only_secret_name box_spec_entry_prints_secret_name_warnings_on_ 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... warning: unused workspace dependency 'google-cloud-gax' --> Cargo.toml:153:1 | 153 | google

Verify min task run agent-verify exited 100 under rustc 1.100.0, which the repository does not pin (1.99.1 in rust-toolchain.toml); the PR is not a draft on that alone — CI, which honours the pin, is the gate.

23/1549) minimal::bin/min tests::invalid_project_file_prints_toml_error_once
        PASS [   0.010s] (1524/1549) minimal::bin/min tests::invalid_project_file_prints_toml_error_once_for_io
        PASS [   0.008s] (1525/1549) minimal::bin/min tests::loadout_not_found_exits_4
        PASS [   0.010s] (1526/1549) minimal::bin/min tests::local_host_not_found_exits_4
        PASS [   0.010s] (1527/1549) minimal::bin/min tests::machine_mode_answers_write_failures
        PASS [   0.009s] (1528/1549) minimal::bin/min tests::machine_mode_error_line_keeps_an_empty_hint
        PASS [   0.010s] (1529/1549) minimal::bin/min tests::machine_mode_error_object_is_one_stamped_line
        PASS [   0.010s] (1530/1549) minimal::bin/min tests::machine_mode_error_object_on_stderr
        PASS [   0.996s] (1531/1549) minimal::otel_cli a_silent_collector_costs_min_ls_little_and_prints_nothing
        PASS [   0.011s] (1532/1549) minimal::bin/min tests::machine_mode_names_the_grant_refusal_code
        PASS [   0.010s] (1533/1549) minimal::bin/min tests::machine_output_mode_keys_on_the_output_flag
        PASS [   0.009s] (1534/1549) minimal::bin/min tests::misplaced_run_flag_exits_2
        PASS [   0.008s] (1535/1549) minimal::bin/min tests::network_flag_refusal_exits_2
        PASS [   0.009s] (1536/1549) minimal::bin/min tests::project_file_not_found_exits_4
        PASS [   0.009s] (1537/1549) minimal::bin/min tests::prune_off_tty_needs_yes_exits_2
        PASS [   0.009s] (1538/1549) minimal::bin/min tests::resume_and_session_attach_refusals_map_to_exit_codes
        PASS [   0.009s] (1539/1549) minimal::bin/min tests::rm_running_box_refuses_naming_force_with_exit_2
        PASS [   0.008s] (1540/1549) minimal::bin/min tests::row_not_back_exit_codes
        PASS [   0.007s] (1541/1549) minimal::bin/min tests::start_entry_refusals_exit_with_their_codes
        PASS [   0.008s] (1542/1549) minimal::bin/min tests::run_verbs_and_wait_timeout_return_124_with_code_timeout
        PASS [   0.008s] (1543/1549) minimal::bin/min tests::task_file_invalid_exits_3
        PASS [   0.008s] (1544/1549) minimal::bin/min tests::task_network_key_a_task_does_not_apply_exits_3
        PASS [   0.008s] (1545/1549) minimal::bin/min tests::task_not_found_exits_4
        PASS [   0.012s] (1546/1549) minimal::bin/min tests::task_run_is_a_stdout_contract
        PASS [   0.009s] (1547/1549) minimal::bin/min tests::type_refusals_exit_3_and_4
        PASS [   2.075s] (1548/1549) minimal::named_vm named_vm_reaches_autospawn
  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.42s

  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/mfile/src/error.rs
  • crates/mfile/src/expand.rs

Converted to a draft: outside the task's layers:: crates/mfile/src/error.rs, crates/mfile/src/expand.rs.

The six box_spec_entry tests pass, and git grep -n 'Folding their values into the spec is #3236' -- crates prints nothing. A secret-name warning and a loadout conflict refusal now start their layer sentence upper case, for a loadout and for a built-in box type.

Notes from the agent: Revise round 2. crates/mfile/src/error.rs already had a private sentence_start helper, used by the sealed-loadout refusal. I made it pub(crate) and used it in two places: the SecretNameWarning Display in expand.rs and Error::LoadoutVarConflict for {first}. I removed the duplicate helper that round 1 added to expand.rs. {second}, layer_words and loadout_file are unchanged. Tests in expand.rs: the BOX-231 pins keep The loadout .... There is a new SecretNameWarning case with a type-default layer (The built-in sessionbox type sets it.) and a new LoadoutVarConflict case with a type-default first layer. The existing two-loadout conflict pin now expects The loadout rust``, because it is a sentence start. Out-of-layer edits for the PR body: crates/mfile/src/expand.rs (round 1) and crates/mfile/src/error.rs. They fix the same lower-case sentence start in a refusal, with the same helper, as the crate's owner recommended. crates/minimal/src/tests.rs near line 17556 pins a first layer that starts with a backtick, so it is unchanged and was not edited.

@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 ruling at 8593b6b stands. The new commits change only the letter case of two messages in crates/mfile, and that crate owns both messages. The loadout fold in box_spec.rs does not change, so it still follows box.toml lines 8-10. The design states no rule on the letter case of a message. No condition is open.

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

@agent-137
agent-137 marked this pull request as ready for review November 26, 2026 16:40
@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.

@mitodrummer
mitodrummer added this pull request to the merge queue Nov 26, 2026
@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 — approved

Verdict APPROVE — No findings.

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

Merged via the queue into main with commit 2146e27 Nov 26, 2026
40 checks passed
@mitodrummer
mitodrummer deleted the agent/3236-min-box-spec-entry-folds-the-selected-loadouts-a branch November 26, 2026 17:25
agent-137 pushed a commit that referenced this pull request Nov 27, 2026
…kages or env_vars

#3830 wrote that min box spec <ENTRY> includes the loadouts' values "as
the spec of a started box does". It does not: the host stores the v0
Box Spec, built from the expansion without the selected loadouts
(stamp_session_spec_as), and that spec has no env_vars. The box still
gets the loadouts' packages and variables. The entry form now drops the
comparison, and the box form says what its spec leaves out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA
yermakoffivan pushed a commit to yermakoffivan/minimal that referenced this pull request Nov 29, 2026
…'s stored spec holds (gominimal#3847)

* docs(cli): clear the prose-lint alerts on the name-rule lines the BOX tasks wrote

vale flagged the two sentences that say which written box names min
refuses with exit code 3 (an AI tricolon and a passive). Each now states
the rule as two plain sentences, with the same meaning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA

* docs(cli): say that a box's stored spec does not yet hold loadout packages or env_vars

gominimal#3830 wrote that min box spec <ENTRY> includes the loadouts' values "as
the spec of a started box does". It does not: the host stores the v0
Box Spec, built from the expansion without the selected loadouts
(stamp_session_spec_as), and that spec has no env_vars. The box still
gets the loadouts' packages and variables. The entry form now drops the
comparison, and the box form says what its spec leaves out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA

* docs(cli): name the loadout layer without 'for example' in the box spec paragraph

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA

* docs(cli): rewrap the box spec paragraph

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA

* docs(cli): wrap the box spec paragraph's lines under 80 columns

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA

* docs(cli): name the reserved box names, and link the stored-spec gap to gominimal#3257

- The box-name rule in the box start exit table and in box rename names
  the five reserved names, self included (arch C1). They are host,
  local, localhost, minimald and self, in any case, from RESERVED_NAMES.
- The stored-spec paragraph links gominimal#3257, which tracks storing the
  loadouts' packages and env_vars (arch C2). It also says to pass
  min box spec <ENTRY> the same --loadout or --no-loadouts flags as the
  start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA

---------

Co-authored-by: Karl Godard <karl@minimal.dev>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review:approved minimal-review approved the current head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BCLI: the stored spec records the loadouts --loadout selects (T11 residual, arch C1)

2 participants

0