8000 fix(minimal): send the project name on a task box's create request · gominimal/minimal@46ee5df · GitHub
[go: up one dir, main page]

Skip to content

fix(minimal): send the project name on a task box's create request

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

PASS

Inputs. First ruling on #3780 at 46ee5dfc, on arch 4f2eb87d, which is the spec 29 front-matter arch_sha. 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 and the changed code at head: boxes::box_name, mfile::File::project_name, stamp_session_spec_as, project_name_at, put_session_entry, run_entry, put_task_spec, dash create_registering, and minimald DerivedName, creation_name, ProjectNameRefusal, admission_refusal. I could not read #3765, because gh is not on this sandbox. So the requirement set is the one that the PR body and the spec 29 verify lines name.

Governs. Configuration glossary Project (architecture.md line 63). Addressing, Box names: Form (397), Written or derived (401), and The Box Host assigns the name (407). minimal.toml layout, The project name (1248, 1250) and [project] (1263). The box.toml [box] name key (34) and min box rename (506).

Ruling. The design requires that the client report the project name, that the Box Host's minimald derive <project> or <project>-<entry> from it, and that a declared name that is not a DNS label be exit 3 and never converted. The change does each of these in the owner the design gives. mfile reads the [project] table. boxes::box_name holds the one derivation that the daemon and the client share. minimald assigns the name and refuses a bad label on the host side too (fail closed, rule 7). The project name is only a label on the request. It is checked in the daemon and is never used as an identity (line 63). The new is_dns_label accepts upper case, which agrees with line 397 ("compared without regard to case"). The entry check mfile::entry::is_dns_safe is lower-case only, and that is a separate rule. The fallback for an older client with no project_name is the spec 29 BOX-220 sub-bullet. It is a permanent rule, not an interim.

Precedent. This follows #3744 (spec 29 naming rules, PASS) and #3763 (the dash derives the same name through the one function, PASS). No departure.

Notes, not conditions.

  • The task path crates/minimal/src/task.rs put_task_spec (lines 145-166, not in the diff) still puts the entry's [box] name into the stored task spec, then copies it from request.spec to request.config.name. The session path now stores no name. The design permits a [box] name in the Box Spec (box.toml line 34, architecture.md line 401), and minimald never reads it. So this is not a design deviation. But the two clients now store different specs for a named entry. minimal-review or a follow-up can make put_task_spec match stamp_session_spec_as.
  • Line 63 says the Box Record keeps the project name that the client reported. minimald uses project_name only to derive the name and does not record it, and BoxListingEntry has no project-name field. BOX-158 and BOX-159 own that, and this PR does not claim them. Make sure an issue tracks it.
  • Line 1258 (a nested min takes the containing box's project name for the box's own copy) is not in scope and is open with gominimal/arch#163. The change does not make it worse.

Not checked. I did not build or run tests. That the new tests pass and that admission_refusal carries exit 3 through CreateSessionReply comes from reading the code, not from running it.

Ruled at 46ee5df against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5; arch_rulings 1678, job 2e12d803-c949-480c-aeaf-fc9b40ca1757.

0