Skip to content

PreToolUse 'ask' decision + a commit-message gate kind #13

Description

@open-coder-ai

Two related upgrades to the enforcement surfaces:

  1. 'ask' as a PreToolUse decision. Today a guard can allow or deny. Claude Code's hook protocol also supports asking the user to approve the specific action. For policies where the right answer is "a human decides" — committing text that looks like process notes, touching agent config — deny-with-override-pragma works but approve-in-place is the better experience.

  2. A first-class commit-message gate kind. The catalog's protect-commit-privacy policy currently ships as a guard script; a declarative commit_message gate kind (pattern + allow-pragma + message) would let policies of this family be authored without shell, replay in evals like any other gate, and compile to both the git hook and the PreToolUse surface from one declaration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    roadmapPlanned direction, not yet scheduled

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions