Repository navigation
PASS
Governs (arch 15b603e6, found by search because the checkout has no arch-map.md): design principle 9, architecture.md line 340 (a type only narrows, and never widens a box's reach). Composition line 1264 (constraints intersect, and a constraint that loosens its parent's is a validation error). Enforcement line 1295 (the type's constraints are an enforcement layer that narrows only). The repo spec carries these as BOX-059, BOX-061, BOX-156 and BOX-160.
Ruling: the PR adds one test in crates/minimald/src/box_manager/tests.rs and no product code. The test exercises the loosening refusal (BoxTypeError::Loosening), the expansion check (mfile::expand::check_constraints) and the daemon admission check (root_constraint_refusal through create_box_with_spec). It checks the flat key and the io. nested key, asserts that no record is filed, and asserts the daemon log line and the span's refusal field. I opened each gate. The test relaxes none of them, and the spec it builds uses the box.type / type.root fields that spec_type_root reads. Placement is the task's declared layer. No prior ruling exists for this PR, and none in the ledger decides a test-only change of this shape.
Residuals: the min create path does not call check_constraints yet (#3295), and the daemon's exit 3 reaches min as exit 1 (#3313). Both are filed.
Not checked: I did not build or run the test. The PR reports exit 0 for its nextest line. The agent-verify run timed out on an unrelated test (env::tests::minenv_run_forwards_stdin_to_the_task), which is outside this design ruling.
Ruled at 59ceb34 against gominimal/arch@15b603e6afb8 by claude-opus-5-5; arch_rulings 1211, job f9ed884a-19a6-4e65-9bc3-1f3951cc2dce.