Repository navigation
fix(minimal): a session box takes its entry's network.mode and network.ingress, beneath the - #3416
Conversation
A session entry's network.mode and network.ingress now reach the box that min session start, min box start and min session activate create. --network and --ingress still replace them. min box spec shows them with the entry's table as the source. ActivateArgs.network is now an Option, so an activation can tell a typed --network from the default.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Undrafted by the BCLI babysitter under the owner's standing rules. The three files outside |
|
Approved: every review thread resolved at @agent-137 resolved the last thread, which releases the approval this review had withheld. Nothing to do. |
There was a problem hiding this comment.
arch-review: CONDITIONS · 3 conditions · the full ruling
The network.mode half conforms. The network.ingress half does not. With any --ingress, the start drops the entry's whole network.ingress list. architecture.md line 1228 says that each layer unions its lists, and line 1278 says it again. Spec 28 BCLI-024 says a list flag adds to the list. Make --ingress add to the entry's mappings in session_box_network (C1) and in expand_entry (C2). Then update the test and the reference to match (C3).
Ruled at 6647ae5 against gominimal/arch@15b603e6afb8 by claude-opus-5-5.
…box-takes-its-entry-s-network-mode-and
A session box now takes the entry's network.ingress mappings and then each --ingress mapping, as BCLI-024 says a list flag adds to the list. min box spec renders the same list, with both layers as its source. A network.ingress proto now parses in any case, as --ingress does.
|
/revise Head 1. C1: 2. C2: the render shows the same union. 3. C3: tests and docs. 4. Reply on the threads with the commit. Run the whole |
|
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 1 of 10 on the runtime's review findings, pushed as
Verify Outside the task's
Converted to a draft: something above needs a person before review. Review threads the coder judged:
A session entry with network.mode = own_ip and a network.ingress mapping starts an own_ip box with that mapping. --network on the command line still replaces the mode. Each --ingress adds its mapping after the entry's mappings, and min box spec shows that same list with both layers as its source. Notes from the agent: This round changes --ingress from a replace to a union, as the review asked. The task's proof says --ingress replaces the entry's mappings, but BCLI-024 (spec 28) says a list flag adds to the list, so the spec wins. A flag mapping equal to one of the entry's is not added twice. The network.ingress proto now parses through parse_ingress_proto, so it accepts any case. The docs test line is the same command and passes. just clippy-strict was not run. |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
The change conforms. --network replaces the entry's network.mode. Each --ingress now adds to the entry's network.ingress, as architecture.md line 1228 requires for lists. min box spec uses the same union_ingress as the start, so it renders what the host receives (line 1234). This closes the baseline's objection on 6647ae5b.
Ruled at 7551eee against gominimal/arch@15b603e6afb8 by claude-opus-5-5.
There was a problem hiding this comment.
minimal-review — approval withheld
Verdict COMMENT — APPROVE withheld: 5 unresolved threads — minimal-arch[bot] crates/minimal/src/cmd/boxes/create.rs, minimal-arch[bot] crates/minimal/src/cmd/box_spec.rs, minimal-arch[bot] crates/minimal/src/tests.rs, minimal-arch[bot] docs/reference/cli-min.md, minimal-foundry[bot] crates/minimal/src/cmd/boxes/create.rs:1651. No findings.
Panel: 3 of 3 personas ran (correctness, security, supply-chain).
There was a problem hiding this comment.
minimal-review — approved
Verdict APPROVE — every review thread is resolved; @agent-137 closed the last one. The review of 7551eee2f052 withheld this approval on the threads open then. Posted as a comment: the App cannot approve its own pull request; the check and the label carry it.
|
Round 2 of 10 on a /revise note: the coder changed nothing. This round needs no new commit. The directive was written against head 6647ae5, but the branch head 7551eee already addresses all four items. (1) session_box_network in create.rs keeps the entry's network.ingress and appends the --ingress mappings, and the doc comment says so. (2) expand_entry in box_spec.rs renders the union, with the network.ingress source ["[sessions.default]", "the command line"]. (3) session_entry_network_mode_and_ingress asserts the union for the --ingress and --network own_ip --ingress cases and for the flagged min box spec case, and cli-min.md says each --ingress adds one mapping after the entry's mappings. (4) file_port_mappings calls crate::cli::parse_ingress_proto, and the test fixture uses proto = "UDP". One addition beyond the directive is already in 7551eee: a --ingress mapping that the entry already has is not added a second time, and the test asserts this. The verdicts on the five answered threads do not change, so result.json repeats non…[truncated] |
Defect
Fixes #3414
crates/minimal/src/cmd/boxes/create.rscrates/minimal/src/cli.rscrates/minimal/src/cmd/box_spec.rscrates/minimal/src/tests.rsdocs/reference/cli-min.mdTask marker
Proof
A session entry with network.mode = "own_ip" and a network.ingress list now gives an own_ip box with those port mappings, from min session start, min box start and min session activate. min box spec shows that mode and those mappings with the entry's table as the source. --network replaces the entry's mode and --ingress replaces its mappings. A start whose mode is not own_ip but whose entry sets network.ingress is refused before anything is created, with a message that names the table and the fix.
Notes from the agent: Out-of-layer files: ActivateArgs.network is now Option, as the cli.rs layer asks. Struct literals and asserts in crates/minimal/src/cmd/list.rs (bare
minactivation, now network: None, the same as an unflaggedmin session activate), crates/minimal/src/cmd/boxes/vm_host.rs (2 test literals) and crates/minimal/tests/cli.rs (6 test literals) needed a mechanical Some(...) wrap to compile. The create.rs test module also got 2 of these wraps. File format: network.ingress items take{ port = N }(host port N to box port N) or{ external_port, internal_port }, with an optional proto of tcp or udp (tcp by default). This follows the box.toml{ proto, port }shape that mfile's validator and tests use. Any other item refuses the file with exit 3. New printed refusals, pinned in the test: "[sessions.default] in minimal.toml sets network.ingress, but the box is host_ip, so it cannot publish ports. Set network.mode = "own_ip" in [sessions.default], or run the command again with --network own_ip." A second form is printed when --network was typed. The dynamic-ingress and --ingress refusals moved from the check_arguments step to check_project, because they now need the entry's mode. Both steps still run before the daemon starts. Other checks: clippy -p minimal --all-targets is clean. Filtered lib runs (network, ingress, box_spec, start, activat, egress) passed. One exception is tests::legacy_network_spellings_parse_with…[truncated]Tests
cargo test -p minimal session_entry_network_mode_and_ingresscargo test -p minimal session_entry_network_mode_and_ingressVerify
min task run agent-verifyexited 100, so this PR is a draft.Out of scope
These files are outside the task's
layers:, so this PR is a draft:crates/minimal/src/cmd/boxes/vm_host.rscrates/minimal/src/cmd/list.rscrates/minimal/tests/cli.rs