Repository navigation
fix(minimal): T71 — min box spec shows the record's name and origin - #3790
mitodrummer merged 3 commits into
Conversation
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).
|
Important Review skippedBot 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.
|
|
Undrafted: the only failure is the known flake #3483 ( |
|
/arch-review |
|
Approved: no findings at 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. |
There was a problem hiding this comment.
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.
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_specreads the record withstored_box_record; the TOML form writes the name line and the[box] namelabel- 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_copyif the name line breaks ittest: 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] nameisproduces: 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] nameprints 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 runjust lint-proseon docs/reference/cli-min.md because vale is not installed on this box. I did not run clippy-strict.Tests
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_copyVerify
min task run agent-verifyexited 100, so this PR is a draft.Closes #3759