Skip to content

fix: parse POSIX block-monk fallback commands - #166

Open
renaissancefieldlite wants to merge 1 commit into
monk-io:mainfrom
renaissancefieldlite:codex/fix-monk-posix-block-monk-fallback
Open

fix: parse POSIX block-monk fallback commands#166
renaissancefieldlite wants to merge 1 commit into
monk-io:mainfrom
renaissancefieldlite:codex/fix-monk-posix-block-monk-fallback

Conversation

@renaissancefieldlite

Copy link
Copy Markdown

Fixes #55.

Summary

  • parse the actual hook command payload in POSIX fallback mode when monk-agent is unavailable
  • deny quoted, backslash-escaped, sudo, command, and simple env wrapper forms that still invoke the monk CLI
  • keep harmless argument uses like grep monk README.md and grep "monk" README.md allowed
  • apply the fallback fix to the root, packaged Monk, and Antigravity hook copies

Verification

  • python3 tests/block-monk-posix.py
  • sh -n .antigravity-plugin/hooks/block-monk.sh
  • sh -n hooks/block-monk.sh
  • sh -n plugins/monk/hooks/block-monk.sh
  • git diff --check

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.

[Bug bounty] Antigravity POSIX block-monk fallback misses quoted and escaped monk commands

1 participant