Repository navigation
feat(navigator): optional NAVIGATOR change control with out-of-band push-ok approval (spec 204) - #383
Merged
automateyournetwork merged 2 commits intoDec 1, 2026
Conversation
…pproval (spec 204) Adds an optional, external integration with NAVIGATOR (navigator-mcp, Apache-2.0): an inventory with encrypted credentials, allowlisted reads, and changes applied only after a person approves the exact diff in a separate approval channel. NetClaw does not install NAVIGATOR or read its credentials. - docs/NAVIGATOR.md and the navigator skill - scripts/navigator-enable.sh: enable (dry run, backup, no secret), hermes, status, diagnose (--live: core tools present, no tool can approve), disable - catalog component, installer function that prints steps only, effects, plan-steps route, HUD env map, baseline, counts (185 MCP, 245 skills) - offline contract suite tests/navigator - spec 204 (drafted as 201; 201-203 are taken) CHANGELOG and VERSION are left for the maintainers' reply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Hey this is great thank you so much for contributing ! |
automateyournetwork
marked this pull request as ready for review
December 1, 2026 19:09
Contributor
Author
|
Thanks John! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and resulting behavior
NetClaw's write paths take approval as data.
apply_configin the multivendor CLI server accepts anapproved_bystring, andtools/change.pyonly checks that it is non-empty. The Spec124 gate checks that a ServiceNow change request is approved and in Implement. Neither ties a person's approval to the exact lines, diff and baseline being pushed. In a lab without ServiceNow, the model can fill inapproved_byitself.This PR adds an optional integration with NAVIGATOR (
pip install navigator-mcp, Apache-2.0), an MCP server for network operations:Demo videos: NAVIGATOR playlist
This sits next to Spec124 and doesn't replace it. No existing NetClaw server, skill or gate is changed.
What NetClaw gets:
docs/NAVIGATOR.md: install (NAVIGATOR's own installer, pinned to 0.3.4), setup, registration, the approval bot, checks, first read and change, turning it off, troubleshooting.workspace/skills/navigator/SKILL.md: the agent proposes, never asks for or relays a code, never claims an approval, and sends every read and change on NAVIGATOR-managed devices throughnavigator.scripts/navigator-enable.sh(logic inscripts/navigator_enable.py, stdlib only), with these subcommands:enable [--dry-run]: writes a stdionavigatorentry to the runtimeopenclaw.json, with a backup first, mode 0600, and no secret. Refuses a missing install, an invalid or symlinked config, and relative paths. Running it again changes nothing.hermes --profile P --approvals A: calls NAVIGATOR's ownnavigator-setup connect hermes. NetClaw does not copy NAVIGATOR's plugins.statusdiagnose [--live] [--hermes-profile P --approvals A]:--livelists the server's tools and fails ifchange,deviceorinventoryis missing, or if any tool could approve. The Hermes check fails if the chat profile can approve, or if the chat and approval profiles are the same.disable: removes only thenavigatorentry.navigator(Device Automation):component_install_navigator(prints steps only; it installs nothing and downloads nothing), plus the effects entry, plan-steps route, HUD/env-map entry, baseline fixture, external-integration mapping and inventory counts (185 MCP integrations, 245 skills)..env.example(variable names only).navigatorintests/contract-suites.json.Numbered Spec Kit specification (required for every PR)
specs/204-navigator-integration/. It was drafted as 201; 201 went to NerdGram, and 202/203 are used by Integrate enterprise Border authority, named login and private workspaces (R14–R15b) #380.Open questions for maintainers (NEEDS CLARIFICATION in the spec)
HERMES_HOME.navigator-setup connect hermesexpects~/.hermes/profiles/<name>. One option is for NAVIGATOR to add a--homeoption. The other is for NetClaw's setup engine to register external stdio servers for Hermes claws. Which do you prefer? (research.md R4)pyats-config-mgmtandservicenow-change-workflowget a one-line "when navigator is enabled for these devices, push through it"? It is left out of this PR.Release
Validation
Rebased onto
mainatbd2cb2f3(VERSION 1.27.0). Full record: verification.md.Offline checks (rebased branch)
tests/navigator/run-tests.sh(registration, diagnose, docs, installer prints only)verify-spec-artifactsverify-catalog-coverageverify-inventory-counts(185 MCP integrations, 245 skills)check-catalog-metadatabuild-catalog.py --checkcheck-catalog-linksEffectAudit.verify(effects.json hashes)tests/nerdgram/run-tests.sh(neighbouring suite, unchanged)tests/unit/test_plan_steps_routing.py,tests/test_setup_*.pymaincheckout there (host permissions and package versions), none is newHost and live evidence (throwaway homes, one lab Arista switch, no production device)
OPENCLAW_HOME:enable --dry-run,enable(backup written) andstatusall passed.diagnose --live: 16 tools includingchange,deviceandinventory; none can approve.disableremoved only thenavigatorentry.hermes --profile <chat> --approvals <approval bot>in an isolated home created both profiles, anddiagnosepassed. The host's real profiles were unchanged (checksums taken before and after).waiting_approval);!pushokin Slack: accepted;Not verified
HERMES_HOME(open question 1).wait_min, 0.3.4) was not exercised through NetClaw. The skill uses it only if the server advertises it.Compatibility, migration and risks
navigator-enable.sh enableorhermes. Existing servers, skills and the Spec124 gate are untouched.navigator-mcppath and the settings file path. Credentials are typed into NAVIGATOR's own prompts and stored encrypted. NetClaw never reads them.navigatorfor the devices NAVIGATOR manages, and to keep the other servers for other devices.scripts/navigator-enable.sh disable, which removes only thenavigatorentry; the backup fromenableis kept. For Hermes, removenavigatorand the two plugins from the profile'sconfig.yaml. NAVIGATOR itself is removed with its own uninstall steps.push-approve), orrudder-approveon other hosts.Contributor checklist
🤖 Generated with Claude Code