Skip to content

Add HOL Guard pre-tool plugin integration - #107

Open
kantorcodes wants to merge 1 commit into
open-gitagent:mainfrom
kantorcodes:feat/hol-guard-native-plugin
Open

Add HOL Guard pre-tool plugin integration#107
kantorcodes wants to merge 1 commit into
open-gitagent:mainfrom
kantorcodes:feat/hol-guard-native-plugin

Conversation

@kantorcodes

Copy link
Copy Markdown

Adds a focused GitAgent plugin integration for HOL Guard at the existing pre_tool_use boundary.

The integration only gates the built-in cli tool. It invokes the installed hol-guard executable directly with a PreToolUse command payload, maps Guard allow/deny/review decisions into GitAgent's hook contract, and fails closed on Guard launch failures, timeouts, malformed output, or unknown decisions. It does not add a parallel policy engine or claim coverage for unrelated tools.

Included:

  • integrations/hol-guard/plugin.yaml
  • programmatic pre_tool_use bridge
  • setup and decision-mapping documentation
  • focused tests covering allow/deny/review mapping, CLI-only scope, and the Guard process/payload contract

Test command: npm test

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.

1 participant