8000 fix(minimal): narrow declares_network and name minimal.toml in EgressRequiresNetwork · Issue #3144 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(minimal): narrow declares_network and name minimal.toml in EgressRequiresNetwork #3144

Closed

Description

@agent-137

Follow-up of BOX T122 (#2702, PR #3121), from the pre-merge thread review.

  • declares_network (create.rs, about lines 459-484) counts any network key in any entry or defaults table, not only the egress keys of the layers a session inherits. It fails closed (an undecided pick exits 2), and the over-refusal for a project Box Type entry goes away with feat(minimal): resolve a project Box Type's session root when picking the egress entry #3140; narrow it to session-inherited egress keys. No test covers a network key only in a task.
  • The EgressRequiresNetwork refusal (project egress with --network none, boxes lib.rs about line 1670) does not name minimal.toml as the source of the egress; say where the egress came from (thread PRRT_kwDOPdfcxM60w7-b).

Refs #2702, #3121, #3140.

Activity

  1. norrietaylor commented on Nov 18, 2026

    @norrietaylor
    Member

    Closing as fixed on main by #3394.

    What a read of main at 385add8 found:

    eb191b5c (PR #3394): declares_network at crates/minimal/src/cmd/boxes/create.rs:1466 skips task entries and [defaults.task]; test network_key_only_in_task_does_not_refuse_session_pick (create.rs:6971). refuse_egress_on_none (crates/minimal/src/task.rs:259) names '<layer> in minimal.toml'; session start calls it at create.rs:2147, test at create.rs:7022.
    

    Reopen this issue if any part of it is still missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0