Repository navigation
feat(skills): guardrails for n2n_kill, lab mode and emergency changes (spec 192) - #353
Merged
automateyournetwork merged 1 commit intoNov 12, 2026
Conversation
… (spec 192) - n2n-federation: when to propose n2n_kill, and n2n_forget_endpoint for a dead endpoint. - protocol-participation: only the operator sets NETCLAW_LAB_MODE. - pyats-config-mgmt: three conditions before an emergency bypasses CR approval; record them in GAIT. - Regenerate skill catalog digests. Release 1.22.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
automateyournetwork
merged commit Nov 12, 2026
cfafa46
into
automateyournetwork:main
41 checks passed
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
Three skills name a high-impact action but leave the agent to decide when it applies:
n2n-federationsays to confirmn2n_killbut not when to propose it. It now lists when (malicious or corrupted data the agent can see, an operator request, a revoked peer that keeps connecting) and when not (a dead endpoint, wheren2n_forget_endpointkeeps the federation; a slow peer; a general question). A proposal names the peer and the evidence and says restoring needs a newn2n_consent.protocol-participationsays lab mode must not be set in production but not who sets it. Safety Rule 7: only the operator setsNETCLAW_LAB_MODE, in.env; the agent never sets or exports it, treats route mutations as production unless it is alreadytrue, and does not suggest enabling it unless asked.pyats-config-mgmtlets an emergency bypass CR approval with no test for what counts. Now all three must hold: the outage, incident or exploited vulnerability is affecting production now; the operator has confirmed the urgency in the conversation; the fix is a single change that can be rolled back. Otherwise the standard CR workflow applies, and a qualifying emergency records the conditions and evidence in GAIT.Skill descriptions are unchanged; the catalog's skill digests are regenerated.
Numbered Spec Kit specification (required for every PR)
specs/192-skill-guardrails/Release
CHANGELOG.md. Specs 187–191 merged after 1.22.0 without a release entry; this entry lists only 192.Validation
Offline, on Ubuntu 24.04 against
mainat 150fd24:build-catalog.mjs --check,build-catalog.py --check,check-catalog-metadata.py,verify-catalog-coverage.py,test_setup_catalog.py: pass.check-skill-limits.py: ok (242 skills).verify-spec-artifacts.py,prepare-release.py --check,test-prepare-release.py: pass.reconcile-mcp.pywith the release surfaces: exit 0. The full run exits 1 on this host on both this branch and unchangedmain(startup: servers not installed here).pytest tests/n2n/test_convergence_member_164.py tests/unit/test_jev_border.py tests/skill-limits tests/netconverter/test_installation.py: 39 passed, 1 failed; the failure (unsafe_parent) also fails on unchangedmainon this host.Not verified: an evaluation of agent decisions with and without the rules. The rules have been in an operator Border's workspace copies of these skills since October 2026; that shows they load alongside the rest of each skill, not that they change decisions.
Compatibility, migration and risks
No migration. Existing workspaces keep the old text until skills are redeployed (
scripts/deploy-skills.py). These are instructions to the agent; the MCP servers' CR and lab-mode gates are unchanged.Contributor checklist
🤖 Generated with Claude Code