Skip to content

docs(network): clarify host-side policy editing - #348

Closed
WuKongAI-CMU wants to merge 2 commits into
NVIDIA:mainfrom
WuKongAI-CMU:docs-149-policy-editing
Closed

WuKongAI-CMU wants to merge 2 commits into
NVIDIA:mainfrom
WuKongAI-CMU:docs-149-policy-editing

Conversation

@WuKongAI-CMU

@WuKongAI-CMU WuKongAI-CMU commented Mar 18, 2026 •

Copy link
Copy Markdown
Contributor

Addresses #149

Summary

  • clarify that policy files should be edited on the host, not from inside the sandbox shell
  • point readers to policy-list and policy-add before custom YAML edits
  • fix the docs to reference the actual network_policies section name and add a host-side dynamic policy example

Test plan

  • npm test

Summary by CodeRabbit

  • Documentation
    • Clarified prerequisites: a running sandbox is only needed for dynamic changes; the source repository is required only for permanent baseline edits.
    • Explicitly prohibit editing policies inside the sandbox; create/edit policy files on the host before applying.
    • Added "Use Presets First" workflow with commands to list/add presets.
    • Renamed network → network_policies, clarified endpoint/rule fields, added a concrete YAML example.
    • Updated CLI/OpenShell examples and formatting; clarified dynamic updates can add endpoints without rebuilding the baseline.

@coderabbitai

coderabbitai Bot commented Mar 18, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4c79f68c-2f03-4485-ac4c-ab300de5ba14

📥 Commits

Reviewing files that changed from the base of the PR and between 12ab89a and 6c98011.

📒 Files selected for processing (1)
  • docs/network-policy/customize-network-policy.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/network-policy/customize-network-policy.md

📝 Walkthrough

Walkthrough

Splits prerequisites for static vs dynamic network-policy edits, requires creating/editing policy files on the host (not inside the sandbox), adds a "Use Presets First" workflow using nemoclaw commands, renames network → network_policies, updates examples/CLI formatting, and adds a concrete YAML example.

Changes

Cohort / File(s) Summary
Network Policy Documentation
docs/network-policy/customize-network-policy.md
Reworked prerequisites for static vs dynamic changes; require host-side policy file creation/editing; add "Use Presets First" workflow (nemoclaw <name> policy-list / policy-add); rename network → network_policies; move static-change guidance to local checkout; add weather-policy.yaml example; remove leading $ from CLI examples (e.g., nemoclaw onboard, nemoclaw <name> status, openshell policy set <policy-file>).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 I nibbled at lines with a bright, brisk hop,

Presets first, then craft the host-side crop.
No edits in-shell, keep the sandbox neat,
YAML seeds policies, tidy and sweet. 🌿

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: clarifying that network policy editing should happen on the host rather than inside the sandbox shell.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/network-policy/customize-network-policy.md`:
- Around line 40-43: The code block triggers markdownlint MD014 because the
example lines include the shell prompt; remove the leading "$ " from the command
examples so they are plain commands (replace "$ nemoclaw <name> policy-list" and
"$ nemoclaw <name> policy-add" with "nemoclaw <name> policy-list" and "nemoclaw
<name> policy-add") while keeping the fenced code block (console) intact to
resolve the lint error.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 009ae433-5468-4f5b-8495-a640afe4c29d

📥 Commits

Reviewing files that changed from the base of the PR and between 5dbf8bb and 5e81185.

📒 Files selected for processing (1)
  • docs/network-policy/customize-network-policy.md

@wscurran wscurran added documentation integration: telegram Telegram integration or channel behavior labels Mar 19, 2026
@WuKongAI-CMU
WuKongAI-CMU force-pushed the docs-149-policy-editing branch from ea29cdb to 12ab89a Compare March 22, 2026 23:45
@WuKongAI-CMU

Copy link
Copy Markdown
Contributor Author

Rebased this branch onto the current main by replaying the existing commit stack onto the latest base and force-pushed the refreshed branch. The doc scope is unchanged; this is only a base refresh to keep the PR current.

@WuKongAI-CMU
WuKongAI-CMU force-pushed the docs-149-policy-editing branch from 12ab89a to 6c98011 Compare March 25, 2026 19:05
@WuKongAI-CMU

Copy link
Copy Markdown
Contributor Author

Closing this one to free a contributor PR slot for a higher-priority deployment quick-start doc. The branch is still available and can be reopened later if needed.

@WuKongAI-CMU

Copy link
Copy Markdown
Contributor Author

Closing this to keep the contributor PR queue healthy. Issue #149 is already closed, and the current bottleneck is reviewer/merge throughput on higher-value open PRs.

@wscurran wscurran added area: docs Documentation, examples, guides, or docs build chore Build, CI, dependency, or tooling maintenance and removed documentation labels Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Documentation, examples, guides, or docs build chore Build, CI, dependency, or tooling maintenance integration: telegram Telegram integration or channel behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants