Skip to content

fix: refactor git-courer permissions and update hook event tracking#196

Merged
blak0p merged 1 commit into
mainfrom
refuerzo-reglas-mcp
Jun 29, 2026
Merged

fix: refactor git-courer permissions and update hook event tracking#196
blak0p merged 1 commit into
mainfrom
refuerzo-reglas-mcp

Conversation

@blak0p

@blak0p blak0p commented Jun 29, 2026

Copy link
Copy Markdown
Owner

WHY
The previous permission model merged all commands into a single bucket, creating security gaps where dangerous operations could execute without explicit blocking. Additionally, the PreInvocation event was not being tracked by git-courer, causing monitoring failures for workflow initiation.

WHAT

  • Added dedicated block key settings to explicitly deny shell access and isolate restricted actions from general asks.
  • Replaced deprecated 'PreInvocation' string literal with 'UserPromptSubmit' in hook mappings.
  • Implemented cleanup logic to remove redundant entries across allow, ask, and block sections during merging.

Closes #

Summary

Changes

File Change

Test Plan

WHY
The previous permission model merged all commands into a single bucket, creating security gaps where dangerous operations could execute without explicit blocking. Additionally, the PreInvocation event was not being tracked by git-courer, causing monitoring failures for workflow initiation.

WHAT
* Added dedicated block key settings to explicitly deny shell access and isolate restricted actions from general asks.
* Replaced deprecated 'PreInvocation' string literal with 'UserPromptSubmit' in hook mappings.
* Implemented cleanup logic to remove redundant entries across allow, ask, and block sections during merging.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@blak0p blak0p merged commit 3a2753c into main Jun 29, 2026
4 of 5 checks passed
@blak0p blak0p deleted the refuerzo-reglas-mcp branch June 29, 2026 16:32
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