Detect double governance (two PreToolUse hooks) - #12
Merged
Conversation
Found in the wild 2026-08-14 — a v0.3.0 marketplace copy from April still firing beside the current hook, doubling gateway load and so the scale-out latency tail that turns a slow answer into a fail-closed deny (gatewaystack-connect#690), from a code path nobody had read in four months. Detect and report, never delete: hook wiring is governance config and that stays the operator's to change. Printing the exact command is the whole job.
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.
Warns when both the installer's settings.json hook and the marketplace plugin's hooks.json are registered — each calls /govern/tool-use on every tool call. Reports the plugin copy's version and prints both remediation commands; never edits hook config itself (#403). Verified firing against a real duplicated machine; bash -n clean. Refs davidcrowe/gatewaystack-connect#690.