8000 docs(minimal): reword activate network and egress flag help by gominimal-aw-bot[bot] · Pull Request #2170 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

docs(minimal): reword activate network and egress flag help - #2170

Merged
norrietaylor merged 3 commits into
release/0.7.0from
inbox-patch/reword-activate-net-help-d6b12713910b58f5
Oct 12, 2026
Merged

norrietaylor merged 3 commits into
release/0.7.0from
inbox-patch/reword-activate-net-help-d6b12713910b58f5

Conversation

@gominimal-aw-bot
@gominimal-aw-bot gominimal-aw-bot Bot commented Oct 11, 2026 •
Copy link
Copy Markdown
Contributor

Routing-Key: inbox-route/I_kwDOSUhdos8AAAABWfdjvQ

The min session activate network and egress flag help wrapped plain descriptions around internals nobody choosing flags can act on: spec requirement ids, Box Spec field names, crate paths. This rewords the seven affected doc comments in crates/minimal/src/cli.rs (--network, --dynamic-ingress, --dynamic-range, --allow-subnets, --allow-dns-hosts, --deny-all-egress, --credentialed-upstream) to state what each stance does in the words a person types, and matches the one affected fragment of the --network row in docs/reference/cli-min.md. Help text only — no #[arg] attribute, parser, or code-path change (informed by #570).

Not only a reword, in three places:

  • The two "unset means allow-all" sentences on --allow-subnets and --allow-dns-hosts are removed because they no longer hold: with the deny-all default in force, an allow list that is not given inside a declaration allows nothing. The help now states that rule on --allow-subnets, and --allow-dns-hosts points to it.
  • --allow-subnets and its reference row no longer say the rule flags work with host_ip. They are accepted with own_ip and host_ip, and only own_ip enforces them: a host that decides per box refuses the create, and any other host runs the box with the rules unenforced.
  • --allow-protocols and --deny-subnets are reworded in the same voice, and --deny-all-egress keeps its host_ip clause.

Verification

cargo fmt --all --check --manifest-path target/Cargo.toml
cargo clippy --workspace --all-targets --locked --manifest-path target/Cargo.toml -- -D warnings
cargo test --locked --manifest-path target/Cargo.toml -p minimal -- --nocapture
  • fmt: clean.
  • clippy with -D warnings: clean.
  • tests: 531 passed, 0 failed. Under plain cargo test with default output capture, legacy_network_spellings_parse_with_hint fails on this branch and on the untouched base alike. That is an artifact of running it outside the supported lane: the test captures the real fd 2, and under nextest, the lane just test and CI run this crate in, every test owns its process and the test passes on main.
  • Acceptance greps: every retired wording returns no match ((NET-043):, (NET-079), NET-074, NET-134, "unset means allow-all", "range-without-mode", "interim source", sessions::EgressPolicy::deny_all(), "this declares the lane", "an IP of its own on the host's switch"); each replacement wording is present at its site.
  • just lint-prose docs/reference/cli-min.md, run afterwards on a host with Vale: the changed line carries the same single pre-existing sentence-length warning as on main, and the file's alert counts are unchanged (no new alerts).

Untrusted-content note: no embedded instructions were found in the issue, ledger, or decision comment; the decision comment's patch.brief was treated as an advisory hint only, and every factual claim in the new wording was re-verified against the code (min net expose is the in-box helper, --dynamic-ingress is refused off own_ip, --dynamic-range requires --dynamic-ingress, --network none rejects egress flags, the deny-all default applies to an own_ip box unless the daemon opts out, the credentialed-upstream lane takes effect only with own_ip).

Summary by CodeRabbit

  • Documentation
    • Clarified that own_ip sessions receive their own IP address and, unless the host opts out, cannot reach external addresses without egress rules.
    • Expanded guidance on egress allowlists, DNS-only rules, protocol restrictions, denied subnets, and default-deny behavior when egress options are used.
    • Explained how egress rules are enforced across network modes and host configurations, including restrictions on using egress flags with none and the behavior of --deny-all-egress.
    • Clarified descriptions of dynamic ingress and port-range options.

Replace jargon-heavy help on seven network and egress flags of
min session activate (network, dynamic-ingress, dynamic-range,
allow-subnets, allow-dns-hosts, deny-all-egress, credentialed-
upstream) with plain-language wording: name the commands and
modes a person types, say what each stance does, and drop
internal ids and crate paths from user-facing help. Match the
one affected --network row in docs/reference/cli-min.md.

Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com>
@gominimal-aw-bot gominimal-aw-bot Bot added the agent:fix Agentic fix PR eligible for review iteration; min-aw's worker-iterate gates on it. label Oct 11, 2026
@gominimal-aw-bot
gominimal-aw-bot Bot requested a review from a team as a code owner October 11, 2026 20:00
@gominimal-aw-bot gominimal-aw-bot Bot added the agent:fix Agentic fix PR eligible for review iteration; min-aw's worker-iterate gates on it. label Oct 11, 2026
@coderabbitai
coderabbitai Bot commented Oct 11, 2026 •
Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: a4a7381c-41d1-4d29-9571-4231a88a4998

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 6a832511-0633-4926-8ce2-be4c649188e8


📥 Commits

Reviewing files that changed from the base of the PR and between fca431d and 826b5c0.



📒 Files selected for processing (1)
  • crates/minimal/src/cli.rs


🚧 Files skipped from review as they are similar to previous changes (1)
  • crates/minimal/src/cli.rs


Included review availability: This review used your included allowance. Your plan provides up to 5 included reviews per hour; 0 remain after this review.




📝 Walkthrough
📝 Walkthrough

Walkthrough

CLI help and reference text now describe network modes, dynamic ingress, and egress option behavior. No argument declarations changed.

Changes

CLI network and egress documentation

Layer / File(s) Summary
Network modes and dynamic ingress
crates/minimal/src/cli.rs, docs/reference/cli-min.md
The descriptions clarify own_ip addressing, host-dependent --allow-subnets behavior, dynamic ingress outcomes, and range limits.
Egress option behavior
crates/minimal/src/cli.rs
The descriptions clarify default-deny behavior, DNS and protocol rules, denied subnets, --deny-all-egress, and credentialed upstream access.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: norrietaylor



Merge Risk: ⚪ Minimal · up to 826b5

This change only updates CLI help and reference wording for network and egress flags, with no behavior change. No actionable merge risk remains.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check Passed The title is concise, uses the expected Conventional Commit format, and accurately describes the documentation-only network and egress help changes.
Description check Passed The description clearly explains the scope, behavior clarifications, testing performed, and non-code impact. It includes Summary and Testing content, although it does not reproduce the template's expl…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.



✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR










🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR



  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit reads the flags at night
The network paths are clear and bright
Allow and deny take shape in rows
The ingress range now clearly shows
It twitches ears, then hops away
With tidy help to guide the day

Comment @coderabbitai help to get the list of available commands.

@norrietaylor norrietaylor changed the title fix: docs(minimal): reword activate network and egress flag help docs(minimal): reword activate network and egress flag help Oct 11, 2026
@norrietaylor
Copy link
Copy Markdown
Member

/review

@minimal-foundry
minimal-foundry Bot commented Oct 11, 2026 •
Copy link
Copy Markdown
Contributor

Approved: no findings at 826b5c05192f.

Nothing to do.

Clobber: none: git log on both files shows only this PR's own commits (618a4a0, fca431d, 826b5c0) plus unrelated merges; nothing recent is silently reverted.

The reworded `--allow-subnets` help said the egress flags work with
`host_ip`. They are accepted there, and only `own_ip` enforces the rule
flags: a host that decides per box refuses the create, and any other
host runs the box with the rules unenforced. Say that in the help and in
the matching reference row.

State the per-list rule where the flags are read: once any egress flag
is given, an allow list that is not given allows nothing. Reword
`--allow-protocols` and `--deny-subnets` in the same voice as the other
egress flags, restore the host_ip clause on `--deny-all-egress`, and
name the host, not the daemon, as the one that opts out.
@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal-review — approved

Verdict APPROVE — No findings.

@minimal-foundry minimal-foundry Bot added the review:approved minimal-review approved the current head label Oct 11, 2026
@gominimal-aw-bot gominimal-aw-bot Bot added the agent:resolve Consent gate: pr-conflict-resolver may rewrite this branch label Oct 11, 2026
@norrietaylor
Copy link
Copy Markdown
Member

/review

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal-review — advisory review

Verdict COMMENT — 1 finding, 1 inline.

Comment thread crates/minimal/src/cli.rs Resolved
@minimal-foundry minimal-foundry Bot removed the review:approved minimal-review approved the current head label Oct 11, 2026
@norrietaylor
Copy link
Copy Markdown
Member

/review

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal-review — approved

Verdict APPROVE — No findings.

@minimal-foundry minimal-foundry Bot added the review:approved minimal-review approved the current head label Oct 11, 2026
@norrietaylor
norrietaylor changed the base branch from main to release/0.7.0 October 12, 2026 01:01
@norrietaylor
norrietaylor enabled auto-merge (squash) October 12, 2026 01:24
@norrietaylor
norrietaylor merged commit 21c2f3d into release/0.7.0 Oct 12, 2026
39 of 41 checks passed
@norrietaylor
norrietaylor deleted the inbox-patch/reword-activate-net-help-d6b12713910b58f5 branch October 12, 2026 01:25
gominimal-aw-bot Bot added a commit that referenced this pull request Oct 12, 2026
* docs(minimal): reword activate network and egress flag help

Replace jargon-heavy help on seven network and egress flags of
min session activate (network, dynamic-ingress, dynamic-range,
allow-subnets, allow-dns-hosts, deny-all-egress, credentialed-
upstream) with plain-language wording: name the commands and
modes a person types, say what each stance does, and drop
internal ids and crate paths from user-facing help. Match the
one affected --network row in docs/reference/cli-min.md.

Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com>

* docs(minimal): state which network mode enforces the egress flags

The reworded `--allow-subnets` help said the egress flags work with
`host_ip`. They are accepted there, and only `own_ip` enforces the rule
flags: a host that decides per box refuses the create, and any other
host runs the box with the rules unenforced. Say that in the help and in
the matching reference row.

State the per-list rule where the flags are read: once any egress flag
is given, an allow list that is not given allows nothing. Reword
`--allow-protocols` and `--deny-subnets` in the same voice as the other
egress flags, restore the host_ip clause on `--deny-all-egress`, and
name the host, not the daemon, as the one that opts out.

* docs(minimal): say a hostname-only egress rule reaches no address directly

---------

Co-authored-by: gominimal-aw-bot[bot] <281738952+gominimal-aw-bot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: minimal-foundry[bot] <327719912+minimal-foundry[bot]@users.noreply.github.com>
gominimal-aw-bot Bot added a commit that referenced this pull request Oct 12, 2026
* docs(minimal): reword activate network and egress flag help

Replace jargon-heavy help on seven network and egress flags of
min session activate (network, dynamic-ingress, dynamic-range,
allow-subnets, allow-dns-hosts, deny-all-egress, credentialed-
upstream) with plain-language wording: name the commands and
modes a person types, say what each stance does, and drop
internal ids and crate paths from user-facing help. Match the
one affected --network row in docs/reference/cli-min.md.

Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com>

* docs(minimal): state which network mode enforces the egress flags

The reworded `--allow-subnets` help said the egress flags work with
`host_ip`. They are accepted there, and only `own_ip` enforces the rule
flags: a host that decides per box refuses the create, and any other
host runs the box with the rules unenforced. Say that in the help and in
the matching reference row.

State the per-list rule where the flags are read: once any egress flag
is given, an allow list that is not given allows nothing. Reword
`--allow-protocols` and `--deny-subnets` in the same voice as the other
egress flags, restore the host_ip clause on `--deny-all-egress`, and
name the host, not the daemon, as the one that opts out.

* docs(minimal): say a hostname-only egress rule reaches no address directly

---------

Co-authored-by: gominimal-aw-bot[bot] <281738952+gominimal-aw-bot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: minimal-foundry[bot] <327719912+minimal-foundry[bot]@users.noreply.github.com>
norrietaylor pushed a commit that referenced this pull request Oct 15, 2026
* docs(minimal): reword activate network and egress flag help

Replace jargon-heavy help on seven network and egress flags of
min session activate (network, dynamic-ingress, dynamic-range,
allow-subnets, allow-dns-hosts, deny-all-egress, credentialed-
upstream) with plain-language wording: name the commands and
modes a person types, say what each stance does, and drop
internal ids and crate paths from user-facing help. Match the
one affected --network row in docs/reference/cli-min.md.

* docs(minimal): state which network mode enforces the egress flags

The reworded `--allow-subnets` help said the egress flags work with
`host_ip`. They are accepted there, and only `own_ip` enforces the rule
flags: a host that decides per box refuses the create, and any other
host runs the box with the rules unenforced. Say that in the help and in
the matching reference row.

State the per-list rule where the flags are read: once any egress flag
is given, an allow list that is not given allows nothing. Reword
`--allow-protocols` and `--deny-subnets` in the same voice as the other
egress flags, restore the host_ip clause on `--deny-all-egress`, and
name the host, not the daemon, as the one that opts out.

* docs(minimal): say a hostname-only egress rule reaches no address directly

---------

(cherry picked from commit 21c2f3d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent:fix Agentic fix PR eligible for review iteration; min-aw's worker-iterate gates on it. agent:resolve Consent gate: pr-conflict-resolver may rewrite this branch review:approved minimal-review approved the current head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0