Skip to content

add lua hol guard adapter - #8

Merged
Raezil merged 2 commits into
mainfrom
codex/fix-ci-luarocks-path
Aug 29, 2026
Merged

add lua hol guard adapter#8
Raezil merged 2 commits into
mainfrom
codex/fix-ci-luarocks-path

Conversation

@Raezil

@Raezil Raezil commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Summary by cubic

Adds a HOL Guard command-safety adapter for lua-utcp so tool calls can be classified by HOL Guard before dispatch.

The adapter shells out to hol-guard command test <command> --json, maps the classification to allow/deny/review/error, and fails closed on missing executables, malformed output, unknown results, or unmapped tool calls. A new utcp.guards module exposes it, with an example CLI wrapper and a test suite covering safe, blocked, reviewed, malformed, unclassified, and unavailable classification paths. The rockspec is bumped to 1.6-1.

New Features

  • Adds utcp.guards.hol_guard.new() with configurable command_for, executable, unmapped_decision, and approve callback options.
  • Adds examples/hol_guard.lua demonstrating interactive approval for review decisions.

Written for commit 1bbf948. Summary will update on new commits.

Review in cubic

@Raezil
Raezil merged commit 5a856be into main Aug 29, 2026
2 checks passed
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