8000 test(minimal): expect the box name line in the hooks spec header · gominimal/minimal@c7f5aaf · GitHub
[go: up one dir, main page]

Skip to content

test(minimal): expect the box name line in the hooks spec header

Minimal Arch / arch-review succeeded Nov 25, 2026 in 0s

PASS

Inputs. First ruling on #3790 at c7f5aaf8, on arch 4f2eb87d. No since.diff, since-conditions.json, findings.json or arch-map.md is staged. No ledger entry is for this PR. I read pr.diff whole. At head I read box_spec and write_record_name in crates/minimal/src/cmd/box_spec.rs, stored_box_record in crates/minimal/src/cmd/boxes/show.rs, boxes::Record / boxes::NameOrigin in crates/boxes/src/lib.rs, and the RPC allow list and serve_get_session_record in crates/minimald/src/rpc.rs. The repo spec docs/specs/28-spec-box-cli gives BCLI-022 and its two new sub-bullets (lines 262-269).

Governs: architecture.md line 496 (min box spec <box|self> renders the stored spec), line 21 (the Box Record holds the box's current name), §Addressing line 401 (written or derived, [box] name is a creation-time source), line 506 (rename changes the alias only, the spec is untouched).

Ruling. BCLI-022 conforms. The name and its origin come from the record, never from the spec. The [box] name value is labelled as a creation request. The added lines are comments, so the render stays the stored spec. Placement is correct: the read is in the minimal CLI and reuses the existing helper, with no new daemon surface. Rule 10: GetSessionRecord and GetBoxSpec sit in the same allow list in handle_ssh_rpc, and the record reply clears sealed_deliveries, so min box spec self crosses no new boundary. A missing record fails closed with the same BoxAddressRefusal::NotFound that the GetBoxSpec path gives. Names pass through one_line_string, so a name cannot break the TOML. This follows #3788.

Observation, not a design deviation. The BCLI-022 sub-bullet says the name shows when min box spec <box> renders a stored spec, with no limit on the format. The change, as its task scopes it, adds the name to the TOML form only. -o json and -o yaml still carry only box and spec. The architecture does not define the machine form beyond "as stored", so I cite no design line against it. The spec owner can scope the sub-bullet to the TOML form or file the JSON field as follow-up work.

Not checked. I did not build or run the tests, by contract. The PR's verify run failed on exec_run_attach_and_task_run_share_the_commands_trace. That test is outside this change's files, and I did not check its cause.

Ruled at c7f5aaf against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5; arch_rulings 1689, job 0d950d16-1a93-44d8-a0b8-4c976b2cc62e.

0