From 7ee20664072db9df758828239b3a19ea90d03a86 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sun, 6 Dec 2026 16:15:36 +0000 Subject: [PATCH] docs(rtk): name the commands that raise the duplicate-hook error Verified against apm 0.39.3 (integration/hook_ownership.py and its callers): `apm audit`, with or without --ci, reports "ambiguous duplicate APM-owned hook entry" as a drift finding unless --no-drift is set, and `apm export-patch` runs the same check. `apm install --frozen` reaches it too but reports only that a managed hook entry was edited or removed. README-only: it reaches no compiled output, so no plugin version bump (apm-workflow references/configure.md). Refs: #179 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi --- plugins/rtk/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/rtk/README.md b/plugins/rtk/README.md index 9eee8c5..6463a8c 100644 --- a/plugins/rtk/README.md +++ b/plugins/rtk/README.md @@ -77,7 +77,7 @@ This repo hand-writes its grant in the root `apm.yml` and does not run `apm appr ### "ambiguous duplicate APM-owned hook entry" -apm raises this error when `.claude/settings.json` holds more byte-identical copies of an APM-owned hook entry than `.claude/apm-hooks.json` records. It happens when the same hook entry is pasted in by hand or merged in twice. To fix it, remove the duplicate entries from `.claude/settings.json`, keeping none of the hand-added copies, then run `apm install` again. +`apm audit` raises this error, with or without `--ci`, unless drift checking is off with `--no-drift`. It reports it as a drift finding on `.claude/settings.json`. `apm export-patch` runs the same check. `apm install --frozen` runs it too, but reports only that an APM-managed hook entry was edited or removed. The cause is `.claude/settings.json` holding more byte-identical copies of an APM-owned hook entry than `.claude/apm-hooks.json` records. It happens when the same hook entry is pasted in by hand or merged in twice. To fix it, remove the duplicate entries from `.claude/settings.json`, keeping none of the hand-added copies, then run `apm install` again. ## Author