8000 fix(minimal): T71 — min box spec shows the record's name and origin by minimal-foundry[bot] · Pull Request #3790 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(minimal): T71 — min box spec shows the record's name and origin - #3790

Merged
mitodrummer merged 3 commits into
mainfrom
agent/3759-min-box-spec-shows-the-record-s-name-and-origin
Nov 25, 2026
Merged

mitodrummer merged 3 commits into
mainfrom
agent/3759-min-box-spec-shows-the-record-s-name-and-origin

Conversation

@minimal-foundry
Copy link
Copy Markdown
Contributor

T71 — min box spec shows the record's name and origin

slice: S3
kind: task
covers: BCLI-022
size: S
est: 50 code, 90 tests
executor: agent
difficulty: routine
model: standard
diagnostics: none new
observability: none new
layers:
- cli:
- crates/minimal/src/cmd/box_spec.rs: box_spec reads the record with stored_box_record; the TOML form writes the name line and the [box] name label
- crates/minimal/src/tests.rs: box_spec_box_shows_record_name_and_origin, box_spec_box_labels_box_name_as_default_request; box_spec_box_renders_stored_copy if the name line breaks it
test: cargo nextest run -p minimal box_spec_box_shows_record_name_and_origin box_spec_box_labels_box_name_as_default_request box_spec_box_renders_stored_copy
- docs:
- docs/reference/cli-min.md: the min box spec <BOX> paragraph says the render starts with the record's name and its origin, and what a stored [box] name is
produces: none
consumes: none
proof: the three tests pass. The TOML render of a renamed box shows its new name.


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

Proof

The three tests pass. min box spec <box> in its TOML form now prints # Box name: "<name>" (...) right after its first line. The name comes from the box record, so a renamed box shows its new name, with (a person wrote this name). A derived name shows (the host derived this name from the project name and the entry). A stored [box] name prints the line # [box] name "<value>": the name the entry asks for when a box is created from it. It is not the name of this box.

Notes from the agent: Only the TOML form changed, as the task's layer note says. The JSON and YAML forms still carry only the box id and the stored spec. The TOML form now also makes a GetSessionRecord call. If the box is gone by then, the command gives the same not-found refusal that the GetBoxSpec path gives. A record with no name prints # Box name: none. The first line # The spec box <id> was created with. did not change, so box_spec_box_renders_stored_copy needed no edit. I did not run just lint-prose on docs/reference/cli-min.md because vale is not installed on this box. I did not run clippy-strict.

Tests

line exit tail
cargo nextest run -p minimal box_spec_box_shows_record_name_and_origin box_spec_box_labels_box_name_as_default_request box_spec_box_renders_stored_copy 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-2... Compiling paths v0.0.1 (/workbench/crates/paths) Compiling ot v0.0.1 (/workbench/crates/ot)

Verify

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

0) minimal::bin/min tests::invalid_project_file_for_box_spec_says_spec_cannot_show
        PASS [   0.010s] (1255/1280) minimal::bin/min tests::invalid_project_file_prints_toml_error_once
        PASS [   0.011s] (1256/1280) minimal::bin/min tests::invalid_project_file_prints_toml_error_once_for_io
        PASS [   0.010s] (1257/1280) minimal::bin/min tests::local_host_not_found_exits_4
        PASS [   0.012s] (1258/1280) minimal::bin/min tests::loadout_not_found_exits_4
        PASS [   0.009s] (1259/1280) minimal::bin/min tests::machine_mode_error_line_keeps_an_empty_hint
        PASS [   0.012s] (1260/1280) minimal::bin/min tests::machine_mode_answers_write_failures
        PASS [   0.011s] (1261/1280) minimal::bin/min tests::machine_mode_error_object_is_one_stamped_line
        PASS [   0.016s] (1262/1280) minimal::bin/min tests::machine_mode_error_object_on_stderr
        PASS [   0.012s] (1263/1280) minimal::bin/min tests::machine_mode_names_the_grant_refusal_code
        PASS [   0.012s] (1264/1280) minimal::bin/min tests::machine_output_mode_keys_on_the_output_flag
        PASS [   0.010s] (1265/1280) minimal::bin/min tests::misplaced_run_flag_exits_2
        PASS [   0.011s] (1266/1280) minimal::bin/min tests::project_file_not_found_exits_4
        PASS [   0.015s] (1267/1280) minimal::bin/min tests::network_flag_refusal_exits_2
        PASS [   0.010s] (1268/1280) minimal::bin/min tests::prune_off_tty_needs_yes_exits_2
        PASS [   0.013s] (1269/1280) minimal::bin/min tests::resume_and_session_attach_refusals_map_to_exit_codes
        PASS [   0.012s] (1270/1280) minimal::bin/min tests::rm_running_box_refuses_naming_force_with_exit_2
        PASS [   0.012s] (1271/1280) minimal::bin/min tests::row_not_back_exit_codes
        PASS [   0.012s] (1272/1280) minimal::bin/min tests::run_verbs_and_wait_timeout_return_124_with_code_timeout
        PASS [   0.015s] (1273/1280) minimal::bin/min tests::start_entry_refusals_exit_with_their_codes
        PASS [   0.011s] (1274/1280) minimal::bin/min tests::task_file_invalid_exits_3
        PASS [   0.013s] (1275/1280) minimal::bin/min tests::task_network_key_a_task_does_not_apply_exits_3
        PASS [   0.011s] (1276/1280) minimal::bin/min tests::task_not_found_exits_4
        PASS [   0.009s] (1277/1280) minimal::bin/min tests::task_run_is_a_stdout_contract
        PASS [   0.010s] (1278/1280) minimal::bin/min tests::type_refusals_exit_3_and_4
        PASS [   2.072s] (1279/1280) 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 14.51s

  stderr ───

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

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

Closes #3759

The TOML render now reads the box record. It prints the name the record
holds and whether a person wrote it or the host derived it, so a renamed
box shows its new name. A stored [box] name is labelled as the name the
entry asks for at creation, not the box's name (BCLI-022).
The reference says the TOML form shows the box's name and its origin,
and what a stored [box] name is.
min box spec <box> now prints the record's name before the hook list,
so box_spec_box_lists_hooks_with_declarer reads the name from the record
and expects that line (BCLI-022).
@coderabbitai
coderabbitai Bot commented Nov 25, 2026 •
Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

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

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6b661d8b-c036-48fd-93ba-51784a8e10ff

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
agent-137 marked this pull request as ready for review November 25, 2026 05:47
@agent-137
Copy link
Copy Markdown
Member

Undrafted: the only failure is the known flake #3483 (exec_run_attach_and_task_run_share_the_commands_trace in crates/minimal/tests/otel_cli.rs), outside this diff. The three named tests pass.

@agent-137
agent-137 requested a review from a team as a code owner November 25, 2026 05:47
@agent-137
Copy link
Copy Markdown
Member

/arch-review

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

Approved: no findings at c7f5aaf8de2f.

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-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. min box spec <box> reads the box name and its origin from the box record, as architecture.md lines 21 and 401 require. The stored spec stays untouched after a rename (line 506). The new lines are TOML comments, so the render is still the stored spec (line 496). The record read uses the same door and allow list as GetBoxSpec, so no boundary moves. Note: only the TOML form shows the name. The spec sub-bullet does not limit the format, so the spec owner must decide about -o json.

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

@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 25, 2026
@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 25, 2026
Merged via the queue into main with commit 5194df0 Nov 25, 2026
40 checks passed
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.

min box spec shows the record's name and origin, and labels [box] name as the default request

2 participants

0