feat: analyze bundled hook execution surfaces - #404
Draft
chrisknvidia wants to merge 5 commits into
Draft
Conversation
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
…ue-399-hook-surface Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.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.
Part of #399
Scope
This draft implements the hooks-only first slice of issue #399:
BH3 permission analysis is intentionally excluded. Current Claude Code plugin-root settings.json supports agent and subagentStatusLine; unsupported permission keys are ignored. A follow-up should scope permission analysis to actual project settings runtime surfaces.
Implementation
Verification
Runtime evidence and remaining gaps
A real local Claude Code 2.1.227 UserPromptSubmit run against a loopback collector confirmed matcher-ignore behavior, identical event JSON over HTTP and command stdin, shell versus exec metacharacter semantics, and dormant non-tool if handlers. Inline, referenced, and marketplace fixtures passed strict validation but were not installed and dispatched live. No Claude Code 2.1.238 binary, interactive trust flow, or live tool-event matrix was available, and Docker was unavailable locally.
The PR remains draft for maintainer review and follow-up discussion of the deferred BH3 scope.