Skip to content

fix(skills): honor policy table for dangerous verdicts#1330

Merged
teknium1 merged 2 commits into
mainfrom
hermes/hermes-048e6599
Mar 14, 2026
Merged

fix(skills): honor policy table for dangerous verdicts#1330
teknium1 merged 2 commits into
mainfrom
hermes/hermes-048e6599

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

  • salvage the non-redundant fix from PR fix(skills): honor policy table for dangerous verdicts #1007 by @stablegenius49 onto current main
  • let INSTALL_POLICY control dangerous verdict handling in tools/skills_guard.py, so official builtin skills actually honor their policy row
  • allow --force to override blocked dangerous verdicts for trusted and community sources
  • accept --yes / -y as aliases for --force in /skills install
  • add the extra consistency fix: hermes skills install now accepts --yes / -y too, with a parser-level regression test

Why

Current main already resolves official/... sources to builtin, but should_allow_install() still hard-blocks every dangerous verdict before consulting INSTALL_POLICY. That makes the builtin dangerous-policy row dead code and blocks official optional skills like official/email/agentmail.

This salvage preserves the contributor's policy-precedence fix and adds a small CLI follow-up so the slash command and argparse CLI behave consistently.

Test plan

  • python -m pytest tests/tools/test_skills_guard.py tests/tools/test_force_dangerous_override.py tests/hermes_cli/test_skills_hub.py tests/hermes_cli/test_skills_install_flags.py -n0 -q
  • python -m pytest tests/ -n0 -q

Fixes #1006

stablegenius49 and others added 2 commits March 14, 2026 11:27
Salvaged from PR #1007 by stablegenius49.

- let INSTALL_POLICY decide dangerous verdict handling for builtin skills
- allow --force to override blocked dangerous decisions for trusted and community sources
- accept --yes / -y as aliases for --force in /skills install
- update regression tests to match the intended policy precedence
Keep the argparse CLI aligned with the slash command so --yes and -y
behave the same as --force for hermes skills install.
Add a parser-level regression test.
@teknium1 teknium1 merged commit 889c3e2 into main Mar 14, 2026
1 check passed
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
…048e6599

Merging the policy-precedence fix salvaged from NousResearch#1007 onto current main, plus the CLI --yes/-y alias consistency follow-up.
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…048e6599

Merging the policy-precedence fix salvaged from NousResearch#1007 onto current main, plus the CLI --yes/-y alias consistency follow-up.
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
…048e6599

Merging the policy-precedence fix salvaged from NousResearch#1007 onto current main, plus the CLI --yes/-y alias consistency follow-up.
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
…048e6599

Merging the policy-precedence fix salvaged from NousResearch#1007 onto current main, plus the CLI --yes/-y alias consistency follow-up.
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.

Skills Guard: Official/builtin skills blocked by scan + --force flag doesn't override DANGEROUS verdict

2 participants