Skip to content

feat(navigator): optional NAVIGATOR change control with out-of-band push-ok approval (spec 204) - #383

Merged
automateyournetwork merged 2 commits into
automateyournetwork:mainfrom
sriatom:204-navigator-integration
Dec 1, 2026
Merged

automateyournetwork merged 2 commits into
automateyournetwork:mainfrom
sriatom:204-navigator-integration

Conversation

@sriatom

@sriatom sriatom commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Problem and resulting behavior

NetClaw's write paths take approval as data. apply_config in the multivendor CLI server accepts an approved_by string, and tools/change.py only 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 in approved_by itself.

This PR adds an optional integration with NAVIGATOR (pip install navigator-mcp, Apache-2.0), an MCP server for network operations:

  • One inventory with encrypted credentials. Devices, groups and credential tags live in one place. Passwords are stored encrypted and never handed to the model. Devices can be imported from NetBox / Nautobot.
  • Render the same inventory as a pyATS testbed, ANTA catalog or Ansible inventory, so existing tools work from one source of truth.
  • Native device access to Arista EOS (eAPI), Cisco IOS / IOS-XE / NX-OS and PAN-OS, with reads also over pyATS / netmiko.
  • Specialist sub-agents: data collector, state validator, analyzer, config generator, config pusher, log reviewer, documentor, sanity QC and ship engineer.
  • Only a person approves changes. The exact diff is approved in a separate approval channel. The agent has no tool that can approve and never sees the approval code. The approval is bound to the devices, diff and baseline, and a push is refused if the device drifted. One ticket per change.

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 through navigator.
  • scripts/navigator-enable.sh (logic in scripts/navigator_enable.py, stdlib only), with these subcommands:
    • enable [--dry-run]: writes a stdio navigator entry to the runtime openclaw.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 own navigator-setup connect hermes. NetClaw does not copy NAVIGATOR's plugins.
    • status
    • diagnose [--live] [--hermes-profile P --approvals A]: --live lists the server's tools and fails if change, device or inventory is 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 the navigator entry.
  • Catalog component 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).
  • README, SOUL.md, TOOLS.md, CLAUDE.md and .env.example (variable names only).
  • An offline contract suite navigator in tests/contract-suites.json.

Numbered Spec Kit specification (required for every PR)

Open questions for maintainers (NEEDS CLARIFICATION in the spec)

  1. Spec153 claws with an isolated HERMES_HOME. navigator-setup connect hermes expects ~/.hermes/profiles/<name>. One option is for NAVIGATOR to add a --home option. The other is for NetClaw's setup engine to register external stdio servers for Hermes claws. Which do you prefer? (research.md R4)
  2. Pointers from existing skills. Should pyats-config-mgmt and servicenow-change-workflow get a one-line "when navigator is enabled for these devices, push through it"? It is left out of this PR.

Release

  • Proposed version and bump: 1.28.0 (minor, new optional feature) on top of 1.27.0.
  • Release notes/changelog: deliberately left out until the maintainers reply. This is a draft. Once the open questions are settled and you confirm the version, I'll add the CHANGELOG entry and VERSION bump, or follow your release plan.

Validation

Rebased onto main at bd2cb2f3 (VERSION 1.27.0). Full record: verification.md.

Offline checks (rebased branch)

Check Result
tests/navigator/run-tests.sh (registration, diagnose, docs, installer prints only) pass
verify-spec-artifacts pass
verify-catalog-coverage pass
verify-inventory-counts (185 MCP integrations, 245 skills) pass
check-catalog-metadata pass
build-catalog.py --check pass
check-catalog-links 0 dead links
EffectAudit.verify (effects.json hashes) pass
tests/nerdgram/run-tests.sh (neighbouring suite, unchanged) pass
tests/unit/test_plan_steps_routing.py, tests/test_setup_*.py 240 pass, 16 fail on the test host; all 16 also fail on a clean main checkout there (host permissions and package versions), none is new

Host and live evidence (throwaway homes, one lab Arista switch, no production device)

  • Public navigator-mcp 0.3.4 from PyPI, in a throwaway venv and OPENCLAW_HOME:
    • enable --dry-run, enable (backup written) and status all passed.
    • diagnose --live: 16 tools including change, device and inventory; none can approve.
    • disable removed only the navigator entry.
  • Hermes: hermes --profile <chat> --approvals <approval bot> in an isolated home created both profiles, and diagnose passed. The host's real profiles were unchanged (checksums taken before and after).
  • End to end, adding and then removing a loopback:
    • propose: pass;
    • apply before approval: refused (waiting_approval);
    • approval request posted by the approval bot: yes;
    • code in any reply the agent saw: no;
    • !pushok in Slack: accepted;
    • commit with rollback timer, verify and confirm: applied and verified;
    • device check afterwards: matches.

Not verified

  • Spec153 claws with an isolated HERMES_HOME (open question 1).
  • The NetClaw gateway itself. The registration was exercised with a stdio MCP client, the same way the gateway calls it.
  • A change expiring with no approval. This is NAVIGATOR behaviour, documented but not exercised here.
  • A per-change approval wait (wait_min, 0.3.4) was not exercised through NetClaw. The skill uses it only if the server advertises it.

Compatibility, migration and risks

  • Opt-in only. Nothing changes unless an admin installs NAVIGATOR and runs navigator-enable.sh enable or hermes. Existing servers, skills and the Spec124 gate are untouched.
  • No secrets. The registration holds only the navigator-mcp path and the settings file path. Credentials are typed into NAVIGATOR's own prompts and stored encrypted. NetClaw never reads them.
  • Bypass risk. If the same devices can also be changed through NetClaw's other device servers (pyATS, multivendor CLI, gNMI), the approval can be bypassed. The guide says to give the agent only navigator for the devices NAVIGATOR manages, and to keep the other servers for other devices.
  • Rollback. Run scripts/navigator-enable.sh disable, which removes only the navigator entry; the backup from enable is kept. For Hermes, remove navigator and the two plugins from the profile's config.yaml. NAVIGATOR itself is removed with its own uninstall steps.
  • Operational requirement. Approvals need a separate approval bot (a Slack app or Telegram bot in its own Hermes profile with only push-approve), or rudder-approve on other hosts.

Contributor checklist

  • I followed CONTRIBUTING.md and used a numbered spec before implementation.
  • Spec, research, plan, tasks and verification describe the final PR scope; any required maintainer scope review is complete. (two open questions above)
  • Specification artifact and declaration reconciliation checks pass.
  • Relevant tests pass; live, browser, Docker and host coverage gaps are stated explicitly.
  • Applicable integration, installer, HUD and documentation surfaces are updated (or non-applicability explained).
  • Completed-spec version bump, changelog and release notes are included or an explicit coordinated release plan is linked. (after maintainer reply)
  • No credentials, private network configuration or customer topology are included.
  • Compatibility/migration and any operational approval requirements are documented.

🤖 Generated with Claude Code

sriatom and others added 2 commits November 30, 2026 12:35
…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>
@automateyournetwork

Copy link
Copy Markdown
Owner

Hey this is great thank you so much for contributing !

@automateyournetwork
automateyournetwork marked this pull request as ready for review December 1, 2026 19:09
@automateyournetwork
automateyournetwork merged commit e2db439 into automateyournetwork:main Dec 1, 2026
@sriatom

sriatom commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Thanks John!

@sriatom
sriatom deleted the 204-navigator-integration branch December 1, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants