Skip to content

Docs(network policy) enhance user manage policy#1981

Open
vl43den wants to merge 3 commits intoNVIDIA:mainfrom
vl43den:docs(network-policy)-enhance-user-manage-policy
Open

Docs(network policy) enhance user manage policy#1981
vl43den wants to merge 3 commits intoNVIDIA:mainfrom
vl43den:docs(network-policy)-enhance-user-manage-policy

Conversation

@vl43den
Copy link
Copy Markdown
Contributor

@vl43den vl43den commented Apr 16, 2026

Summary

This PR isolates the relevant documentation improvements from PR #1036 and applies them against the current file paths on main. It fixes inaccurate positional arguments in the preset commands documentation and clarifies dynamic custom policy requirements, directly resolving @prekshivyas feedback.

Related Issue

Follow-up action to #1036

Changes

  • Removed the positional <preset> argument on nemoclaw <name> policy-add examples in customize-network-policy.md.
  • Added an explicit note outlining that nemoclaw <name> policy-add initiates an interactive prompt where positional preset arguments are ignored.
  • Added the missing note regarding the mandatory version: 1 requirement for custom dynamic YAML policies within the nemoclaw-user-manage-policy skill.
  • Restored the warning caveat explaining that openshell policy set --policy operates on raw policy files and does not accept preset: metadata blocks.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Verification

  • npx prek run --all-files passes
  • npm test passes
  • Tests added or updated for new or changed behavior
  • No secrets, API keys, or credentials committed
  • Docs updated for user-facing behavior changes
  • make docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

AI Disclosure

  • AI-assisted — tool: Google Gemini 3.1 Pro

Signed-off-by: Vladan Sekulic is231338@fhstp.ac.at

Summary by CodeRabbit

  • Documentation
    • Updated policy management workflow: use nemoclaw <name> policy-add to apply presets and nemoclaw <name> policy-list to view applied presets.
    • Policy YAML files now require a mandatory version field (e.g., version: 1) for compatibility with OpenShell.
    • Clarified that openshell policy set --policy <file> <sandbox> accepts raw policy files only (not preset YAML with preset:).
    • Minor formatting and ordering improvements in policy docs.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 16, 2026

📝 Walkthrough

Walkthrough

Documentation updates to policy management: require a version field in dynamically applied policy YAML files; change preset-application commands from openshell policy set --policy <file> <sandbox> to nemoclaw <name> policy-add and add nemoclaw <name> policy-list; clarify that openshell accepts raw policy files only.

Changes

Cohort / File(s) Summary
Policy docs
.agents/skills/nemoclaw-user-manage-policy/SKILL.md, docs/network-policy/customize-network-policy.md
Formatting cleanup and small text edits; require version: <number> in dynamically applied policy YAML; replace workflow that used openshell policy set --policy <file> <sandbox> with nemoclaw <name> policy-add and add nemoclaw <name> policy-list examples; add note that openshell policy set accepts raw policy files only and does not support preset: metadata; relocate "Related Skills" section accordingly.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I hopped through lines and trimmed the mess,

Version stamps tucked in YAML dress.
Commands now follow a clearer trail,
Nemoclaw adds presets without fail.
A tiny hop—documentation bliss! 🥕

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Docs(network policy) enhance user manage policy' is vague and generic, using non-descriptive terms like 'enhance' that don't convey specific information about what was actually changed in the documentation. Consider using a more specific title that describes the key changes, such as 'Docs: Add version requirement and update policy management commands in network policy docs' or 'Docs: Update nemoclaw policy-add usage and add version requirements'.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
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.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
docs/network-policy/customize-network-policy.md (1)

115-130: Use periods instead of colons in these prose lead-ins.

Lines 115, 123, and 129 use colons as general punctuation rather than list introduction; this conflicts with the docs style rule.

As per coding guidelines, "Colons should only introduce a list. Flag colons used as general punctuation between clauses."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/network-policy/customize-network-policy.md` around lines 115 - 130,
Replace the lead-in colons (and the semicolon used as clause punctuation) with
periods in the prose lines that introduce the examples and notes: change "To
apply a preset to a running sandbox:", "Note that preset selection is an
interactive prompt; any positional arguments for presets are ignored.", and "To
list which presets are applied to a sandbox:" to use periods instead of
colons/semicolons, then capitalize the following sentence fragments as needed so
each becomes a standalone sentence; locate these exact phrases in
customize-network-policy.md and make the punctuation and capitalization edits
accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@docs/network-policy/customize-network-policy.md`:
- Around line 115-130: Replace the lead-in colons (and the semicolon used as
clause punctuation) with periods in the prose lines that introduce the examples
and notes: change "To apply a preset to a running sandbox:", "Note that preset
selection is an interactive prompt; any positional arguments for presets are
ignored.", and "To list which presets are applied to a sandbox:" to use periods
instead of colons/semicolons, then capitalize the following sentence fragments
as needed so each becomes a standalone sentence; locate these exact phrases in
customize-network-policy.md and make the punctuation and capitalization edits
accordingly.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 2873995d-03a6-4483-9c12-bf9e45649aa5

📥 Commits

Reviewing files that changed from the base of the PR and between f7a3c33 and 00c46f9.

📒 Files selected for processing (2)
  • .agents/skills/nemoclaw-user-manage-policy/SKILL.md
  • docs/network-policy/customize-network-policy.md

Updated the SKILL.md documentation to clarify steps and improve formatting.
@vl43den vl43den force-pushed the docs(network-policy)-enhance-user-manage-policy branch from 00c46f9 to 07bd938 Compare April 16, 2026 20:25
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
docs/network-policy/customize-network-policy.md (1)

174-176: Split the note into one sentence per source line.

Line 175 currently continues one sentence and starts another on the same source line; please keep exactly one sentence per line in docs source.

As per coding guidelines, "One sentence per line in source (makes diffs readable)."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/network-policy/customize-network-policy.md` around lines 174 - 176,
Split the note that describes command usage so each sentence sits on its own
source line: break the current line that contains both "The `openshell policy
set --policy <file> <sandbox-name>` command operates on raw policy files and
does not accept the `preset:` metadata block used in preset YAML files." and
"Use `nemoclaw <name> policy-add` for presets." into two separate lines, keeping
the exact wording for the first sentence (about openshell) on one line and the
second sentence (about using `nemoclaw <name> policy-add`) on the next line so
the docs follow the one-sentence-per-line guideline.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.agents/skills/nemoclaw-user-manage-policy/SKILL.md:
- Around line 198-199: Add a single blank line after the "## Related Skills"
heading in SKILL.md so the heading is followed by an empty line before the list
item `- `nemoclaw-user-reference` — Network Policies...`; edit the section
containing the heading "## Related Skills" to insert one newline between the
heading and the list.

---

Nitpick comments:
In `@docs/network-policy/customize-network-policy.md`:
- Around line 174-176: Split the note that describes command usage so each
sentence sits on its own source line: break the current line that contains both
"The `openshell policy set --policy <file> <sandbox-name>` command operates on
raw policy files and does not accept the `preset:` metadata block used in preset
YAML files." and "Use `nemoclaw <name> policy-add` for presets." into two
separate lines, keeping the exact wording for the first sentence (about
openshell) on one line and the second sentence (about using `nemoclaw <name>
policy-add`) on the next line so the docs follow the one-sentence-per-line
guideline.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 4f4cdd58-dd2c-4f33-93e4-bc36c37a91c4

📥 Commits

Reviewing files that changed from the base of the PR and between 00c46f9 and 07bd938.

📒 Files selected for processing (2)
  • .agents/skills/nemoclaw-user-manage-policy/SKILL.md
  • docs/network-policy/customize-network-policy.md

Comment on lines +198 to 199
## Related Skills
- `nemoclaw-user-reference` — Network Policies for the full baseline policy reference
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.

⚠️ Potential issue | 🟡 Minor

Add a blank line after the heading at Line 198.

## Related Skills should be followed by an empty line before the list to satisfy markdown heading spacing rules.

🧰 Tools
🪛 markdownlint-cli2 (0.22.0)

[warning] 198-198: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.agents/skills/nemoclaw-user-manage-policy/SKILL.md around lines 198 - 199,
Add a single blank line after the "## Related Skills" heading in SKILL.md so the
heading is followed by an empty line before the list item `-
`nemoclaw-user-reference` — Network Policies...`; edit the section containing
the heading "## Related Skills" to insert one newline between the heading and
the list.

@wscurran wscurran added documentation Improvements or additions to documentation enhancement: documentation labels Apr 16, 2026
@wscurran
Copy link
Copy Markdown
Contributor

✨ Thanks for submitting this PR that proposes documentation improvements for user-managed policy customization, which could help clarify the process for users.


Possibly related open PRs:

@prekshivyas prekshivyas self-assigned this Apr 16, 2026
Copy link
Copy Markdown
Contributor

@prekshivyas prekshivyas left a comment

Choose a reason for hiding this comment

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

Fixes misleading preset docs — interactive prompt, not positional args. CodeRabbit flagged a missing blank line after '## Related Skills' heading in SKILL.md. @vl43den can you fix that and rebase onto main?

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

Labels

documentation Improvements or additions to documentation enhancement: documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants