From 64b52ab37cc2962827e6c7fd13b92c7a667e411b Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Mon, 23 Nov 2026 18:38:31 +0000 Subject: [PATCH] fix(lock): regenerate hook config in apm's from-empty order 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 Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi --- .claude/apm-hooks.json | 26 +++++++++++++------------- .claude/settings.json | 24 ++++++++++++------------ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.claude/apm-hooks.json b/.claude/apm-hooks.json index f2f5971..444c1ab 100644 --- a/.claude/apm-hooks.json +++ b/.claude/apm-hooks.json @@ -1,17 +1,4 @@ { - "SessionStart": [ - { - "matcher": "startup", - "hooks": [ - { - "type": "command", - "command": "\"${CLAUDE_PROJECT_DIR}/.claude/hooks/kyberforge/.apm/hooks/check-apm-current.sh\"", - "timeout": 380 - } - ], - "_apm_source": "Mortis/Holocron/plugins/kyberforge" - } - ], "PreToolUse": [ { "matcher": "*", @@ -25,5 +12,18 @@ ], "_apm_source": "Mortis/Holocron/plugins/delivery" } + ], + "SessionStart": [ + { + "matcher": "startup", + "hooks": [ + { + "type": "command", + "command": "\"${CLAUDE_PROJECT_DIR}/.claude/hooks/kyberforge/.apm/hooks/check-apm-current.sh\"", + "timeout": 380 + } + ], + "_apm_source": "Mortis/Holocron/plugins/kyberforge" + } ] } diff --git a/.claude/settings.json b/.claude/settings.json index c7a2927..5b0559f 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -1,17 +1,5 @@ { "hooks": { - "SessionStart": [ - { - "matcher": "startup", - "hooks": [ - { - "type": "command", - "command": "\"${CLAUDE_PROJECT_DIR}/.claude/hooks/kyberforge/.apm/hooks/check-apm-current.sh\"", - "timeout": 380 - } - ] - } - ], "PreToolUse": [ { "matcher": "*", @@ -24,6 +12,18 @@ } ] } + ], + "SessionStart": [ + { + "matcher": "startup", + "hooks": [ + { + "type": "command", + "command": "\"${CLAUDE_PROJECT_DIR}/.claude/hooks/kyberforge/.apm/hooks/check-apm-current.sh\"", + "timeout": 380 + } + ] + } ] } }