Repository navigation
fix(minimal): a box created from min dash comes from a picked session entry and stores the same spec - #3738
Conversation
activate_box ran the entry expansion, the contribution entry, the spec stamp and the spec hooks inline. put_session_entry runs them, so the dashboard's create can call the same steps. The known-gap note on stamp_session_spec is gone.
The create form gets an entry field with the project's session entries and the default entry preselected. The dashboard's activate puts the picked entry on the create through put_session_entry, so the box stores the spec and digest that min box start <entry> stores. A project with no session entry to offer is refused on the status line.
…ted-from-min-dash-comes-from-a-picked
|
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.
|
|
Reviewed: no findings; approval withheld, 10 threads unresolved at APPROVE withheld: 10 unresolved threads — minimal-arch[bot] crates/minimal/src/dash/rpc.rs:934, minimal-arch[bot] crates/minimal/src/dash/rpc.rs, minimal-arch[bot] crates/minimal/src/cmd/boxes/create.rs, minimal-arch[bot] crates/minimal/src/dash/rpc.rs:937, minimal-foundry[bot] crates/minimal/src/dash/rpc.rs:967, …. Resolving the last thread releases the approval on this head. Resolve the open threads. Resolving the last one releases the approval on this head; no new review is required. Clobber: Not checked in depth, since it is outside the supply-chain remit. If that was not intentional, restore the earlier change. |
There was a problem hiding this comment.
arch-review: CONDITIONS · 2 conditions · the full ruling
The shared helper is correct, and a plain entry now gets the same stored spec from min dash as from min box start. For an entry that declares [network], [secrets] or BEP keys, the dashboard stores BoxPolicy::default() as [network] but the entry's [secrets], with no CheckProject check. The design says an entry expands into one Box Spec, and the stored spec and its projection carry the same value (lines 61, 1336–1346, 477). C1 refuses those entries in put_picked_entry before the daemon. C2 files an issue for the parity work and corrects the two comments that claim the specs are the same.
Ruled at b9f53d3 against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5.
| // The pick `min session start` makes: a typed entry the project does | ||
| // not declare as a session is refused, and no entry picks one. | ||
| let entries = crate::project_entries(&dir)?; | ||
| let entry = crate::pick_session_start_entry(&entries, picked.name.as_deref())?.name; |
There was a problem hiding this comment.
C1 · After this pick, refuse an entry whose expansion has egress, ingress, [secrets], BEP settings, env or quic443. spec_flags takes [network] from BoxPolicy::default() on this path, and [secrets] comes from the expansion. The stored spec is then not the entry's expansion (Policy layers, lines 1336–1346). Add a test for the refusal.
There was a problem hiding this comment.
Addressed in 2f66a35de95d: put_picked_entry now refuses an entry with egress, ingress, secrets, BEP settings, env or quic443 before put_session_entry, with two tests for the refusal (#3739 lifts it).
| // through. | ||
| request.must_match_version = minimal_client::version_assertion(); | ||
| // The picked entry's expansion, the project root and the box's spec, | ||
| // through the helper `min box start` uses, so both store one spec for |
There was a problem hiding this comment.
C2 · This comment says the dashboard and min box start store one spec for one entry. That is true only for an entry with no network or secret keys, because this request has BoxPolicy::default(). Say that the caller gives the network and policy, and name the C2 issue.
There was a problem hiding this comment.
Addressed in 2f66a35de95d: The comment in activate() now says the network and policy come from the caller, only activate_box sets them from the project, and names #3739.
|
|
||
| /// The session entry a create starts a box from, and what its expansion | ||
| /// reads. `min session activate`, `min box start` and the dashboard's | ||
| /// create fill it in, so the three store the same spec for one entry. |
There was a problem hiding this comment.
C2 · put_session_entry takes the network and policy from the request. Only activate_box sets them from the project in CheckProject. Replace so the three store the same spec for one entry with that fact, and name the C2 issue.
There was a problem hiding this comment.
Addressed in 2f66a35de95d: The SessionEntryCreate doc now says put_session_entry takes network and policy from the caller, only activate_box sets them from the project, and names #3739.
|
/revise Arch ruling CONDITIONS on b9f53d3 (2 conditions). The off-plan lines in
In the PR body, replace |
The dashboard's create request carries its own network and policy, so an entry that declares egress, ingress, secrets or BEP settings would store a spec that is not its expansion. Refuse it until #3739, and say in the comments that only activate_box sets those from the project.
The new assert_dashboard_refuses_entry_with helper builds a create request that it never sends. The inventory test lists every such site, so it failed until the helper was in the list.
|
Round 1 of 10 on a /revise note, pushed as
Verify Outside the task's
Converted to a draft: verify exited 100; outside the task's Review threads the coder judged:
A box created in min dash with the entry dev has a stored spec and projection digest equal to those of min box start dev for the same project. An entry that declares network or secret settings is refused on the min dash status line with: error: no session created: the entry declares network or secret settings that min dash does not apply. Run min box start . Notes from the agent: C1: put_picked_entry now refuses an entry whose project_egress has a policy or ingress, or whose project_bep_and_grants has grants, non-default BepSettings, env, or a quic443 stance. The reason text is the exact wording from the directive. A comment above the refusal names #3739. Two new tests in dash::rpc::tests (dashboard_create_refuses_an_entry_that_declares_network_egress, dashboard_create_refuses_an_entry_that_declares_secrets) check the refusal and that no spec and no expansion are put on the request. C2: both comments now say the network and policy come from the caller and only activate_box sets them from the project, and name #3739. PR body: the runner writes it, so I did not change it. The directive asks to replace 'a candidate follow-up' with #3739, add '- #3739' under a '## Residuals' heading, and keep the 'Fixes #3731' and 'Closes #3533' lines. cargo clippy -p minimal --all-targets is clean, and cargo fmt is applied. |
There was a problem hiding this comment.
arch-review: CONDITIONS · 1 condition · the full ruling
C1 is met. put_picked_entry refuses an entry with network or secret settings before the daemon sees the create, and two tests check the refusal. C2 is half met. The comments in create.rs and rpc.rs name #3739. The PR body still says "a candidate follow-up" and gives no issue URL. Put the issue URL in the body in place of that text, as C2 says. Then the residual is filed, and the change conforms.
Ruled at 2f66a35 against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5.
| let entry = crate::pick_session_start_entry(&entries, picked.name.as_deref())?.name; | ||
| // This request carries the network and policy the dashboard gives it, | ||
| // not the entry's. So an entry that declares network or secret settings | ||
| // would store a spec that is not its expansion. Refuse it until #3739 |
|
/arch-review |
|
/review |
| if egress.policy.is_some() | ||
| || egress.ingress.is_some() | ||
| || !grants.is_empty() | ||
| || bep != boxes::core::bep::BepSettings::default() | ||
| || !env.is_empty() | ||
| || quic443.is_some() | ||
| { | ||
| tracing::debug!( | ||
| entry = %entry, | ||
| egress = egress.policy.is_some(), | ||
| ingress = egress.ingress.is_some(), | ||
| grants = grants.len(), | ||
| env = env.len(), | ||
| quic443 = ?quic443, | ||
| "dashboard create refused: the entry declares network or secret settings" | ||
| ); | ||
| anyhow::bail!( | ||
| "the entry {entry} declares network or secret settings that min dash does not apply. \ | ||
| Run min box start {entry}." | ||
| ); | ||
| } | ||
| crate::put_session_entry( |
There was a problem hiding this comment.
MEDIUM · correctness · confidence 0.50 · in put_picked_entry
The new guard in put_picked_entry refuses every entry whose expansion has egress, ingress, grants, env, BEP or quic443 settings. A project layer such as [defaults.network.egress] reaches every session entry. So min dash can no longer create a box for such a project. Before this change it created the box. The refusal is deliberate and the code defers it to #3739. Still, it turns a working path into a hard failure for these projects. Apply the settings from the project, or keep the old behaviour until #3739 lands.
What the reviewer checked
if egress.policy.is_some() || egress.ingress.is_some() || !grants.is_empty() || bep != BepSettings::default() || !env.is_empty() || quic443.is_some() { anyhow::bail!(...) }
Hand this to an agent
Act on a code-review finding.
File: crates/minimal/src/dash/rpc.rs
Lines: 941-962
Category: correctness
Severity: medium (reviewer confidence 0.50)
Finding:
The new guard in `put_picked_entry` refuses every entry whose expansion has egress, ingress, grants, env, BEP or quic443 settings. A project layer such as `[defaults.network.egress]` reaches every session entry. So `min dash` can no longer create a box for such a project. Before this change it created the box. The refusal is deliberate and the code defers it to #3739. Still, it turns a working path into a hard failure for these projects. Apply the settings from the project, or keep the old behaviour until #3739 lands.
First verify this against the code yourself. It is model output and
may be wrong. If it is wrong, or the tradeoff was deliberate, say so
and change nothing.
👍 useful · 👎 noise — react to tell the reviewer. Replying works too, and says more.
There was a problem hiding this comment.
Disputed — not addressed: The refusal is deliberate. Thread PRRT_kwDOPdfcxM6695ao (C1) asked for it in round 1. The old path was not a working path: dash/rpc.rs builds the request with BoxPolicy::default(), so egress is None. A project with [defaults.network.egress] got a box without its declared egress rules, and no message said so. To apply the settings, the dash needs the grant, store and GitHub checks of activate_box's CheckProject step. That work is #3739, and it is outside this task.
|
Round 2 of 10 on the runtime's review findings: the coder changed nothing. Revise round 2 changed no code, so the diff of this round is empty. The follow-up for the network and secret settings in min dash is #3739. Use this URL in the pull request body in place of the text "a candidate follow-up". The coder has no credential to edit the body. I ran no test: line this round, because no file changed since the last round. Review threads the coder judged:
|
There was a problem hiding this comment.
arch-review: CONDITIONS · 1 condition · the full ruling
The shared helper put_session_entry is in the right place, and activate_box and the dashboard both use it. The dashboard refusal in put_picked_entry does not check the entry's [network] mode. An entry that declares only mode = "none" is accepted. The box then gets the preselected host_ip, but min box start gives that box no network. The design permits only a network override that the create was given (line 1346), and it requires default-deny networking (line 339). Make the change in C1: refuse a declared mode that is not the request's mode, and add the test.
Ruled at 2f66a35 against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5.
| // applies those settings here, as `activate_box` does. | ||
| let egress = crate::project_egress(&dir, Some(&entry))?; | ||
| let (bep, grants, env, quic443) = crate::project_bep_and_grants(&dir, Some(&entry))?; | ||
| if egress.policy.is_some() |
There was a problem hiding this comment.
C1 · This predicate does not read egress.mode. An entry with only [network] mode = "none" is accepted, and the box gets the form's preselected host_ip. Add egress.mode.is_some_and(|mode| mode != request.config.network) to the predicate. Add mode = ?egress.mode to the debug fields. Add a test that calls assert_dashboard_refuses_entry_with with that table.
There was a problem hiding this comment.
Addressed in a825911b5837: put_picked_entry now refuses an entry whose network.mode differs from the form's mode, logs mode = ?egress.mode, and dashboard_create_refuses_an_entry_whose_network_mode_differs pins it.
|
/revise Arch ruling CONDITIONS on 2f66a35 (1 condition). C1 and C2 of the ruling on b9f53d3 are met, and the body now names #3739. Apply:
The minimal-foundry finding at |
…ted-from-min-dash-comes-from-a-picked
The dashboard applies the form's network mode, not the entry's. An entry whose network.mode differs would store a spec that is not its expansion, so refuse it until #3739, as the other network settings are.
|
Round 3 of 10 on a /revise note, pushed as
Verify Outside the task's
Converted to a draft: verify exited 100; outside the task's Review threads the coder judged:
A box created in min dash with the entry dev has a stored spec and projection digest equal to those of min box start dev for the same project. An entry whose network mode differs from the form's mode is now refused before the daemon sees the create, so the dashboard never stores a spec that differs from the entry's expansion. Notes from the agent: Round 3 applies ruling C1: put_picked_entry() refuses an entry whose network.mode differs from the form's mode, logs mode = ?egress.mode in the debug refusal, and the #3739 comment names the mode refusal. New test dashboard_create_refuses_an_entry_whose_network_mode_differs. An entry whose mode equals the form's mode stays accepted by the predicate. The minimal-foundry thread at rpc.rs:962 (PRRT_kwDOPdfcxM67Aq0B) was already answered invalid and the verdict does not change: a project-level [defaults.network.egress] is in the min box start spec of that entry, the dashboard does not apply it, so the refusal is the intended interim until #3739. clippy -p minimal --all-targets is clean. Keep the Fixes #3731 and Closes #3533 lines and the Residuals entry for #3739 in the body. |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
C1 is met. put_picked_entry() now refuses an entry whose network.mode differs from the form's mode, and it logs the mode. The new test checks the refusal with a none entry against a host_ip form. The merge of main does not change the steps that this PR shares. The other settings that the dashboard does not apply stay refused until #3739.
Ruled at a825911 against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5.
| if egress.policy.is_some() | ||
| || egress | ||
| .mode | ||
| .is_some_and(|mode| mode != request.config.network) | ||
| || egress.ingress.is_some() | ||
| || !grants.is_empty() | ||
| || bep != boxes::core::bep::BepSettings::default() | ||
| || !env.is_empty() | ||
| || quic443.is_some() | ||
| { | ||
| tracing::debug!( | ||
| entry = %entry, | ||
| egress = egress.policy.is_some(), | ||
| mode = ?egress.mode, | ||
| ingress = egress.ingress.is_some(), | ||
| grants = grants.len(), | ||
| env = env.len(), | ||
| quic443 = ?quic443, | ||
| "dashboard create refused: the entry declares network or secret settings" | ||
| ); | ||
| anyhow::bail!( | ||
| "the entry {entry} declares network or secret settings that min dash does not apply. \ | ||
| Run min box start {entry}." | ||
| ); | ||
| } |
There was a problem hiding this comment.
MEDIUM · correctness · confidence 0.50 · in put_picked_entry
put_picked_entry now refuses any entry that declares egress policy, ingress, a differing network.mode, grants, env or BEP settings. min dash could create such a project before. Now it cannot, and the user must use min box start. Network egress in [defaults.network.egress] is a common setting. This turns a missing-spec bug into a blocked create for those projects. Apply the settings, as activate_box does, or confirm the maintainers accept the block until #3739.
What the reviewer checked
if egress.policy.is_some() || egress.mode.is_some_and(|mode| mode != request.config.network) || egress.ingress.is_some() || !grants.is_empty() ... anyhow::bail!("the entry {entry} declares network or secret settings that min dash does not apply...")
Hand this to an agent
Act on a code-review finding.
File: crates/minimal/src/dash/rpc.rs
Lines: 942-966
Category: correctness
Severity: medium (reviewer confidence 0.50)
Finding:
`put_picked_entry` now refuses any entry that declares egress policy, ingress, a differing `network.mode`, grants, env or BEP settings. `min dash` could create such a project before. Now it cannot, and the user must use `min box start`. Network egress in `[defaults.network.egress]` is a common setting. This turns a missing-spec bug into a blocked create for those projects. Apply the settings, as `activate_box` does, or confirm the maintainers accept the block until #3739.
First verify this against the code yourself. It is model output and
may be wrong. If it is wrong, or the tradeoff was deliberate, say so
and change nothing.
👍 useful · 👎 noise — react to tell the reviewer. Replying works too, and says more.
There was a problem hiding this comment.
Disputed — not addressed: The block is deliberate. Review finding C1 (thread PRRT_kwDOPdfcxM6695ao) asked for this refusal. Without it, the dash stores a spec that is not the entry's expansion, because the request carries the form's network and a default policy. That is the bug this task fixes. The code names #3739 as the change that applies these settings, and the refusal tells the user to run min box start . Applying egress, grants, env and BEP here belongs to #3739, not to this task.
| fn read_entries(&mut self) { | ||
| let path = self.path.trim().to_string(); | ||
| let choices = session_entry_choices(camino::Utf8Path::new(&path)); | ||
| if let Err(reason) = &choices { | ||
| tracing::debug!(path = %path, reason = %reason, "the create form offers no session entry"); | ||
| } | ||
| (self.entries, self.entry_idx) = match choices { | ||
| Ok((names, picked)) => (Ok(names), picked), | ||
| Err(reason) => (Err(reason), 0), | ||
| }; | ||
| self.entries_for = path; | ||
| } | ||
|
|
There was a problem hiding this comment.
LOW · correctness · confidence 0.50 · in CreateForm::read_entries
read_entries reads and parses minimal.toml synchronously. It runs from update_modal on Tab, BackTab, Enter and submit, and from CreateForm::new on n. That is the TUI event path. A slow or stalled mount freezes the dashboard. The same diff moves the equivalent reads in rpc.rs off the worker for this reason. Also, sync_entries compares only the path, so an edited minimal.toml is not read again while the form stays open.
What the reviewer checked
fn read_entries(&mut self) { ... let choices = session_entry_choices(camino::Utf8Path::new(&path)); ... } called from sync_entries in update_modal
Hand this to an agent
Act on a code-review finding.
File: crates/minimal/src/dash/app.rs
Lines: 134-146
Category: correctness
Severity: low (reviewer confidence 0.50)
Finding:
`read_entries` reads and parses `minimal.toml` synchronously. It runs from `update_modal` on Tab, BackTab, Enter and submit, and from `CreateForm::new` on `n`. That is the TUI event path. A slow or stalled mount freezes the dashboard. The same diff moves the equivalent reads in `rpc.rs` off the worker for this reason. Also, `sync_entries` compares only the path, so an edited `minimal.toml` is not read again while the form stays open.
First verify this against the code yourself. It is model output and
may be wrong. If it is wrong, or the tradeoff was deliberate, say so
and change nothing.
👍 useful · 👎 noise — react to tell the reviewer. Replying works too, and says more.
There was a problem hiding this comment.
Addressed in 416a789abd2f: Moved the minimal.toml read to a background task (Effect::ReadEntries and Msg::EntriesRead). The entry field shows reading… until the read returns. The form reads the file again each time the focus reaches the entry field, so an edit shows.
The create form read minimal.toml on each Tab and Enter, so a stalled mount froze the dashboard. A background task now reads the entries and returns them as a message. The entry field shows reading… until the read returns, and the entry field reads minimal.toml again on each focus.
|
Round 4 of 10 on the runtime's review findings, pushed as
Verify Outside the task's
Converted to a draft: verify exited 100; outside the task's Review threads the coder judged:
A box created in min dash with the entry dev has a stored spec and projection digest equal to those of min box start dev for the same project. The dashboard_create_with_a_named_entry_stores_the_box_start_spec test shows this. An entry with network or secret settings is still refused with a pointer to min box start until #3739. Notes from the agent: Round 4. The create form no longer reads minimal.toml on the key path. A new Effect::ReadEntries runs the read on a spawn_blocking task, and Msg::EntriesRead brings the result back. The entry field shows |
|
/arch-review |
|
/review |
| let egress = crate::project_egress(&dir, Some(&entry))?; | ||
| let (bep, grants, env, quic443) = crate::project_bep_and_grants(&dir, Some(&entry))?; | ||
| if egress.policy.is_some() | ||
| || egress | ||
| .mode | ||
| .is_some_and(|mode| mode != request.config.network) | ||
| || egress.ingress.is_some() | ||
| || !grants.is_empty() | ||
| || bep != boxes::core::bep::BepSettings::default() | ||
| || !env.is_empty() | ||
| || quic443.is_some() | ||
| { | ||
| tracing::debug!( | ||
| entry = %entry, | ||
| egress = egress.policy.is_some(), | ||
| mode = ?egress.mode, | ||
| ingress = egress.ingress.is_some(), | ||
| grants = grants.len(), | ||
| env = env.len(), | ||
| quic443 = ?quic443, | ||
| "dashboard create refused: the entry declares network or secret settings" | ||
| ); | ||
| anyhow::bail!( | ||
| "the entry {entry} declares network or secret settings that min dash does not apply. \ | ||
| Run min box start {entry}." | ||
| ); |
There was a problem hiding this comment.
MEDIUM · correctness · confidence 0.55 · in put_picked_entry
Every dashboard create now fails for a project whose picked entry, or its defaults layer, declares egress, ingress, a network mode other than the form's, secrets or BEP settings. Before this change the dashboard created such a box and ignored those settings. The user now has no way to create the box from min dash at all. The workaround is min box start. The code comment says #3739 will lift this. Until then the fix traded a missing spec for a blocked create. Apply the project's network and policy in the dashboard instead, or confirm that the block is intended.
What the reviewer checked
rpc.rs: if egress.policy.is_some() || egress.mode.is_some_and(|mode| mode != request.config.network) || egress.ingress.is_some() || !grants.is_empty() ... bail!("... min dash does not apply. Run min box start ...")
Hand this to an agent
Act on a code-review finding.
File: crates/minimal/src/dash/rpc.rs
Lines: 940-965
Category: correctness
Severity: medium (reviewer confidence 0.55)
Finding:
Every dashboard create now fails for a project whose picked entry, or its defaults layer, declares egress, ingress, a network mode other than the form's, secrets or BEP settings. Before this change the dashboard created such a box and ignored those settings. The user now has no way to create the box from `min dash` at all. The workaround is `min box start`. The code comment says #3739 will lift this. Until then the fix traded a missing spec for a blocked create. Apply the project's network and policy in the dashboard instead, or confirm that the block is intended.
First verify this against the code yourself. It is model output and
may be wrong. If it is wrong, or the tradeoff was deliberate, say so
and change nothing.
👍 useful · 👎 noise — react to tell the reviewer. Replying works too, and says more.
There was a problem hiding this comment.
The block is intended. Arch condition C1 (rulings on b9f53d3 and 2f66a35) asked for it: before this change the dashboard created such a box with BoxPolicy::default(), so the box did not get the network, egress or secret settings its entry declares, and from this PR on it would also store a spec that is not the entry's expansion. Refusing, with Run min box start <entry>, fails closed. #3739, a must-have, applies the project's checks and grants on the dashboard path and lifts the refusal.
There was a problem hiding this comment.
Disputed — not addressed: The block is intended. Before this PR, min dash stored a spec that was not the entry's expansion, which is the bug this task fixes. Until #3739 applies the project's network and policy in the dashboard, the create is refused with the min box start command as the next step. Applying them here is #3739's scope, not this task's.
| if !form.entries_current() { | ||
| let read = form.read_request(); | ||
| model.action = Some(Action::Create(form)); | ||
| return vec![read]; | ||
| } |
There was a problem hiding this comment.
LOW · correctness · confidence 0.50 · in CreateForm::entries_current
With an empty path, entries_for (empty) equals the trimmed path, so entries_current() is true while entries still holds the placeholder reading the session entries. No read is asked. Submit then closes the form with error: no session created: reading the session entries, which is false. Treat the placeholder as not current, or refuse an empty path with its own message.
What the reviewer checked
CreateForm::new: entries: Err(ENTRIES_READING), entries_for: String::new(); entries_current: self.entries_for == self.path.trim()
Hand this to an agent
Act on a code-review finding.
File: crates/minimal/src/dash/app.rs
Lines: 1064-1068
Category: correctness
Severity: low (reviewer confidence 0.50)
Finding:
With an empty path, `entries_for` (empty) equals the trimmed path, so `entries_current()` is true while `entries` still holds the placeholder `reading the session entries`. No read is asked. Submit then closes the form with `error: no session created: reading the session entries`, which is false. Treat the placeholder as not current, or refuse an empty path with its own message.
First verify this against the code yourself. It is model output and
may be wrong. If it is wrong, or the tradeoff was deliberate, say so
and change nothing.
👍 useful · 👎 noise — react to tell the reviewer. Replying works too, and says more.
There was a problem hiding this comment.
Addressed in 3008a9a6a850: entries_for is now Option, None until a read returns, so the placeholder is never current. An empty path reads as 'the project path is empty', and the test covers it.
There was a problem hiding this comment.
arch-review: PASS · the full ruling
The compare reads the create form's session entries on a background task and not on the event path. The create still expands the picked entry through put_session_entry, as min box start does. So the stored spec and the projection come from one expansion (architecture.md line 61, gatehouse-spec.md §6.3.2). A submit before the read comes back creates nothing, and put_picked_entry checks the entry again at create time. The ruling at a825911b stands for the rest of the change. #3739 stays the filed residual.
Ruled at 416a789 against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5.
The form treated an empty path as read before any read came back, so a submit closed it with the placeholder as the reason. The form now marks no read as current until one returns, and an empty path reads as its own refusal.
…ted-from-min-dash-comes-from-a-picked
|
/revise Arch PASS on 416a789. Act on the LOW finding at
The MEDIUM finding at |
|
That Nothing to type again: the command gets a rocket when its round starts, or a refusal that names the reason. No round was counted for it yet. |
|
Round 5 of 10 on the runtime's review findings, pushed as
Verify Outside the task's
Converted to a draft: verify exited 100; outside the task's Review threads the coder judged:
A box created in min dash with the entry dev stores the same spec and projection digest as min box start dev for the same project. An entry with network or secret settings that the dashboard does not apply yet is refused on the status line. It is not stored with a different spec. Notes from the agent: Round 5. The create form now records 'no read yet' as None. An empty project path reads as the refusal 'the project path is empty'. It does not read the minimal.toml of the dashboard's working directory. The create_form_preselects_the_default_session_entry test now covers the empty path. The refusal of entries with network or secret settings stays, by design, until #3739. The dash:: lib tests (73) and clippy -p minimal --all-targets are clean. |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
This push adds one fix to the min dash create form, and it merges main with no conflict. The form now refuses an empty project path. It no longer reads the minimal.toml of the dashboard's own directory. The form also does not treat a path as read until a read returns. That fails closed, as design principle 7 (architecture.md line 339) asks. The rest keeps the earlier PASS, and #3739 holds the residual.
Ruled at 3008a9a against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5.
A submit with an empty project path now closes the form with the refusal at once. It no longer asks for a read first.
|
Round 6 of 10 on a /revise note, pushed as
Verify Outside the task's
Converted to a draft: verify exited 100; outside the task's A box created in min dash with the entry dev has a stored spec and projection digest equal to those of min box start dev for the same project. In the create form, a submit with an empty project path now closes the form at once with the status line Notes from the agent: Round 6. Commit e38a947 already made entries_current() false while the placeholder shows (entries_for is None until a read returns). This round adds a check in the submit path of app.rs: an empty trimmed path is refused before the read and the create, with the exact status line from the directive. The test in dash::app::tests (inside create_form_preselects_the_default_session_entry) clears the path, submits once, and asserts no effects, a closed form and that status line. It replaces the earlier two-submit check. No change for the MEDIUM finding at rpc.rs:965, as the directive says. cargo clippy -p minimal --all-targets reports no warnings. The PR body lines (Fixes #3731, Closes #3533, the Residuals entry for #3739) are the runner's to keep. |
|
/arch-review |
|
/review |
There was a problem hiding this comment.
APPROVE withheld: 10 unresolved threads — minimal-arch[bot] crates/minimal/src/dash/rpc.rs:934, minimal-arch[bot] crates/minimal/src/dash/rpc.rs, minimal-arch[bot] crates/minimal/src/cmd/boxes/create.rs, minimal-arch[bot] crates/minimal/src/dash/rpc.rs:937, minimal-foundry[bot] crates/minimal/src/dash/rpc.rs:967, ….
minimal-review — advisory review
Verdict COMMENT — No findings.
Panel: 1 of 3 personas ran (supply-chain); did not complete: correctness, security.
There was a problem hiding this comment.
arch-review: PASS · the full ruling
This push moves the empty-path refusal in the min dash create form ahead of the entries read. The first Enter now refuses, closes the form and sends nothing to the daemon. The status text is the same as before. The design does not specify form checks, and this change fails closed. The PASS at 3008a9a stays valid for the rest of the change, and #3739 stays the filed residual.
Ruled at c05e12c against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5.
Follow-up
Fixes #3731
Closes #3533
crates/minimal/src/cmd/boxes/create.rscrates/minimal/src/dash/rpc.rscrates/minimal/src/dash/app.rscrates/minimal/src/dash/render.rsTask marker
Residuals
CheckProjectandMintGrantssteps ofactivate_box, and theput_picked_entryrefusal is lifted.Proof
In min dash, the create form (n) now has an entry field. It lists the project's session entries and preselects the entry that min session start picks with no entry (default when the project has one). Left, right and space change the entry. A box created with the entry dev gets the spec and the client projection digest that min box start dev puts on its create for the same project, through the same helper (put_session_entry). The test dashboard_create_with_a_named_entry_stores_the_box_start_spec checks this with min box start's own plan_start. A project with no session entry to offer, or a minimal.toml that does not load, closes the form and shows 'error: no session created: ' on the status line. Nothing is created.
Notes from the agent: Files outside the layers: (1) crates/minimal/tests/cli.rs: rpc::activate takes the picked entry as a new argument (PickedEntry), so the one integration call site passes PickedEntry::default(). Without that change, the test target does not compile. (2) crates/minimal/src/tests.rs: every_create_session_asserts_the_daemon_build inventories each CreateSessionRequest::new site. The new dash test builds requests, so the inventory gets one line for it. In create.rs, project_entries became pub(crate) so that the dashboard can list the entries. Behaviour: the dashboard still sends BoxPolicy::default() and ignores the project's network and egress keys. The CheckProject step of activate_box is not in the shared helper. So the spec is equal to min box start's only when the network and policy are equal: same mode, and no project egress or flags. At this head the dashboard refuses an entry that declares network, egress, ingress, secret or BEP settings, and tells the person to run
min box start <entry>. Applying those settings from the dashboard is tracked in #3739, which lifts the refusal. The form's name is also the spec's [box] name, as min box start --name gives it. With no entry picked, put_picked_entry applies min session start's entry pick. An undeclared entry is refused before anything reaches the daemon. Expansi…[truncated]Tests
cargo test -p minimal activation_puts_the_spec_on_the_create_requestcargo test -p minimal dashboard_create_with_a_named_entry_stores_the_box_start_speccargo test -p minimal create_form_preselects_the_default_session_entryVerify
min task run agent-verifyexited 100, so this PR is a draft.Base
The base branch moved while the coder worked and was merged in before the tests ran. These files changed on BOTH sides since the branch point — read them first, because a rewrite from a stale reading can undo a merge without a conflict:
crates/minimal/src/cmd/boxes/create.rscrates/minimal/src/dash/app.rscrates/minimal/src/dash/render.rscrates/minimal/src/dash/rpc.rscrates/minimal/src/tests.rsOut of scope
These files are outside the task's
layers:, so this PR is a draft:crates/minimal/src/tests.rscrates/minimal/tests/cli.rs