Why: apm-audit-ci replays the install into an empty tree, where packages integrate in lockfile order and delivery's PreToolUse lands before kyberforge's SessionStart. The session-start install merged into the existing settings.json instead and appended PreToolUse after it. Same hooks, different key order, so the byte-for-byte drift check failed. Implementation Notes: deleted both files and reran apm install; the result is byte-identical to the replay scratch and stable across reinstalls. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
30 lines
621 B
JSON
30 lines
621 B
JSON
{
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "*",
|
|
"hooks": [
|
|
{
|
|
"onFailure": "block",
|
|
"type": "command",
|
|
"command": "\"${CLAUDE_PROJECT_DIR}/.claude/hooks/delivery/.apm/hooks/guard.py\"",
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"SessionStart": [
|
|
{
|
|
"matcher": "startup",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "\"${CLAUDE_PROJECT_DIR}/.claude/hooks/kyberforge/.apm/hooks/check-apm-current.sh\"",
|
|
"timeout": 380
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|