fix(skills): honor policy table for dangerous verdicts#1007
Closed
stablegenius49 wants to merge 1 commit into
Closed
fix(skills): honor policy table for dangerous verdicts#1007stablegenius49 wants to merge 1 commit into
stablegenius49 wants to merge 1 commit into
Conversation
teknium1
pushed a commit
that referenced
this pull request
Mar 14, 2026
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
teknium1
added a commit
that referenced
this pull request
Mar 14, 2026
Merging the policy-precedence fix salvaged from #1007 onto current main, plus the CLI --yes/-y alias consistency follow-up.
Contributor
|
Merged via PR #1330. Your substantive skills-guard policy-precedence fix was salvaged onto current main with authorship preserved, and I added a small follow-up so the argparse CLI also accepts --yes / -y alongside the slash command. Thanks. |
angelburgosrosado
pushed a commit
to angelburgosrosado/hermes-agent
that referenced
this pull request
Apr 27, 2026
Salvaged from PR NousResearch#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
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
Salvaged from PR NousResearch#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
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
Salvaged from PR NousResearch#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
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
Salvaged from PR NousResearch#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
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.
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.
What does this PR do?
Fixes the skills guard install-policy precedence bug so the
INSTALL_POLICYtable actually controls dangerous verdict handling:builtinpolicy row instead of being hard-blocked before policy lookup--forcenow overrides blocked policy decisions fortrustedandcommunitysources, including dangerous verdicts/skills installnow accepts--yes/-yas an alias for--forceRelated Issue
Fixes #1006
Type of Change
Changes Made
tools/skills_guard.pydangerousverdicts before trust-policy evaluationINSTALL_POLICYdecide first, then let--forceoverride blocked decisionshermes_cli/skills_hub.py--yes/-yas aliases for--forcein/skills installhermes_cli/main.py--forcetests/tools/test_skills_guard.pytests/tools/test_force_dangerous_override.pyHow to Test
dangerous(for exampleofficial/email/agentmail) and confirm it is no longer blocked solely by the early return.trustedorcommunityskill with a blockeddangerousverdict is still blocked without--force, but installs when--forceis provided./skills install ... --yesbehaves the same as/skills install ... --force.Verification run in this environment
python3 -m py_compile hermes_cli/main.py hermes_cli/skills_hub.py tools/skills_guard.py tests/tools/test_skills_guard.py tests/tools/test_force_dangerous_override.pyofficial/... -> builtin/skills install ... --yessettingforce=Truerich,firecrawl,uv), so I left the full-suite checkbox unchecked instead of claiming otherwise.Checklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -qand all tests passDocumentation & Housekeeping
docs/, docstrings) — or N/Acli-config.yaml.exampleif I added/changed config keys — or N/ACONTRIBUTING.mdorAGENTS.mdif I changed architecture or workflows — or N/A