Block policy denials in reactor-gated tool middleware - #844
Merged
TheGreatAxios merged 6 commits intoSep 10, 2026
Merged
Conversation
TheGreatAxios
commented
Sep 9, 2026
TheGreatAxios
left a comment
Collaborator
Author
There was a problem hiding this comment.
No blocking findings. Remaining note was the two-pass deny tests (auto-allow, auto-shell deny, and headless deny) so a prior authorizeCall does not skip the second log; this PR includes those tests.
call.id is reused for every Codex proxy inner posix op, so a session-lifetime uniqueness set muted later JSONL records and reset() could not recover. Middleware now consumes the prior verdict and decides only on a cache miss.
A reused Codex proxy id could apply an outer shell allow to an inner run_shell deny. Consume a cached verdict only when name and arguments match as well as id.
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
gateToolCallstill authorizes the call so deny-list policy returns a blocked error and never invokesnext.authorizeCalldoes not skip the second log.Verification
bun run typecheck,bun run build, andbun run testpassbun run checkpassesFixes CL-7530
Changelog: bug