Repository navigation
Commit 0a8a970
docs(#323): label PreToolUse/PostToolUse as unregistered since v2.0.0
ADR-006 removed the UserPromptSubmit/PreToolUse/PostToolUse registrations
in v2.0.0 (executed 2026-08-04, commit 2e371f6) and deliberately kept the
source files. The code side is consistent with that -- ~/.claude/settings.json
registers Stop only, and scripts/settings-config.json now lists Stop only.
The docs were not.
CLAUDE.md's directory layout called hooks/ "Claude Code hook scripts
(PreToolUse, PostToolUse, Stop)" and labelled pre-tool-enforcer.py a
"hook entry point"; the components table listed all three scripts as one
"Tool enforcement + session maintenance" capability.
POLICIES-AND-SCRIPTS-FLOW.md put a green check on PreToolUse.
POLICY-CHAIN-FLOWCHART.md documented the full check sequence as the live
chain, including a table of flag files "read by pre-tool-enforcer.py"
that nothing reads.
This already cost a downstream error, which is why it is worth an issue
rather than a quiet cleanup: an APPROVED harness control policy in
youtube-monetization-tool routed its merge-gate remediation to "a
PreToolUse deny-pattern in hooks/pre-tool-enforcer.py" (that repo's
GH #211). It named a real file, in a real repo, documented as a real
hook, and would have produced a merge gate that looked closed and was
open. The remediation for "a control that reads as enforcement and
enforces nothing" was itself an instance of it.
Labelled rather than deleted. The flowchart documents real mechanism and
is the right starting point if the decision is ever revisited; deleting
it would trade one wrong impression for a missing one. Added a blockquote
status notice at the top of that file and at Section 4, since a reader
arriving by search lands mid-document.
New CLAUDE.md section "Hook status -- read before routing any enforcement
need to a hook" records the verification, the downstream incident, and
the fact that the capability does exist and is not a hook: Claude Code's
native permissions.deny in settings.json is a settings rule, so using it
reinstates nothing ADR-006 removed.
Docs only -- no code, no registrations, no settings touched.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XL4ogDiGNFK7AyuoaEcey41 parent 7ab343c commit 0a8a970
3 files changed
Lines changed: 64 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
| 208 | + | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| |||
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
232 | 260 | | |
233 | 261 | | |
234 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
11 | 26 | | |
12 | 27 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
18 | 33 | | |
19 | 34 | | |
20 | 35 | | |
| |||
235 | 250 | | |
236 | 251 | | |
237 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
238 | 257 | | |
239 | 258 | | |
240 | 259 | | |
| |||
0 commit comments