fix(review-only): enforce Claude sandbox boundary hook#42
Open
deadczarvc wants to merge 1 commit intosendbird:mainfrom
Open
fix(review-only): enforce Claude sandbox boundary hook#42deadczarvc wants to merge 1 commit intosendbird:mainfrom
deadczarvc wants to merge 1 commit intosendbird:mainfrom
Conversation
Add a scoped PreToolUse guard to Claude Code read-only sandbox settings so review and adversarial-review runs fail closed on write tools and mutating shell commands even when OS sandboxing is unavailable. Cover the hook wiring and the patcher read-only command matrix. Signed-off-by: Mikhail Nemerov <34755036+deadczarvc@users.noreply.github.com> Co-Authored-By: LLM+TUI-IDE-based agent Codex Gopota Directive: code produced under human supervisory control signal (ТСАУ). DM @dead_imperator · lawrenncecharlotte@gmail.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
review-only-boundary-hook.mjsPreToolUse guard to read-only sandbox settings.--dry-run,--status,--verifyallowed; apply/plain/path-spoof blocked.Verification
node --check scripts/lib/claude-cli.mjsnode --check hooks/review-only-boundary-hook.mjsnode --check tests/review-only-boundary-hook.test.mjsnode --test tests/review-only-boundary-hook.test.mjsnode --test tests/sandbox-modes.test.mjsnpm run test:cross-platformnpm run check:version-sync && npm run check:changelognpm cinpm run lintnpm run typecheckNote
Full
npm testwas attempted on Windows and did not pass because of existing Windows-specific failures outside this patch scope: fakeclaudefixture lookup in hook tests,/bin/bashwrapper path handling, and/procprocess identity assumptions.Co-Authored-By: LLM+TUI-IDE-based agent Codex Gopota
Directive: code produced under human supervisory control signal (ТСАУ). DM @dead_imperator · lawrenncecharlotte@gmail.com