8000 fix(minimal): refuse every project box type entry while a box type is broken · gominimal/minimal@a00011e · GitHub
[go: up one dir, main page]

Skip to content

fix(minimal): refuse every project box type entry while a box type is…

Minimal Arch / arch-review succeeded Dec 3, 2026

PASS

Inputs. Re-review of #3998 at a00011e3, on arch c73026f5, the same arch as the baseline CONDITIONS at 78c30ded. since.diff is byte-identical to git diff 78c30ded HEAD (one commit, a00011e3). pr.diff is byte-identical to git diff 00a86be3 HEAD. since-conditions.json holds C1. No findings.json or arch-map.md is staged.

Governs: architecture.md Box Types, Composition (line 1502): a type whose chain does not reach a built-in root is a validation error, exit 3. Exit codes (line 371): exit 3 is invalid configuration. Addressing (line 395) and CLI principle 8 (line 344) govern the start by root, which the compare does not touch.

C1: met. Each part, checked at this head:

  1. crates/mfile/src/box_types.rs EntryRoots now holds types: Result<BoxTypes, BoxTypeError> from BoxTypes::from_file(doc). root() returns the built-in root for a built-in type, and the file's first error for any other typed entry. A no-type entry still gets NoType through BoxTypes::default(). entry_loadout_gate() (crates/minimal/src/loadouts.rs:74) and entry_type_layers() (crates/minimal/src/cmd/boxes/create.rs:2901) read the same BoxTypes::from_file, so the three agree.
  2. crates/minimal/src/tests.rs project_type_entry_starts_by_its_root: the loop that started web beside the broken types is gone. web with StartVerb::Box and StartVerb::Session must now give the [box_types.loop] cycle text through box_type_refusal, which asserts exit 3. That text does not name netsess. Built-in dev and build still start.
  3. crates/mfile/src/entry.rs read_entries_resolves_each_entry_root: web, cyc and sub get root None and the first error (UnknownKey of bad, which read_type fails before the loop cycle is resolved). dev keeps Some("session").
  4. Spec 28 BCLI-089: the sentence is removed, and the comment no longer claims an arch condition asks for it. It now cites lines 1502 and 371.
  5. docs/reference/cli-min.md session start exit-3 row names the case. box start and minimal-dot-toml.md say the same.

Ruling. With C1 met and no other condition open, every requirement conforms. The two residuals are filed as #3996 and #3997. No departure from precedent.

Not checked. The changed tests were not run (no build, per the contract). The project_box_type_network e2e case reports not_run when no switch is staged. BCLI-089 verifies by the T0 unit test, so this ruling does not depend on that leg. I did not confirm that #3996 and #3997 are open, because gh is not available here.

Ruled at a00011e against gominimal/arch@c73026f5ba2b by claude-opus-5-5; arch_rulings 1892, job b233dbba-9b4f-483b-809b-4f4f7e7851df.

0