Follow-up to #284 / #179 (#179 is already closed).
Changes
Real-rtk test that an already-prefixed rtk git status passes through, backing the README's "running both hooks is harmless" claim.
Clear error when timeout is missing in tests/test-rtk-hook.sh.
README names which apm 0.39.3 commands raise "ambiguous duplicate APM-owned hook entry" (no version bump: README-only, per the apm-workflow configure reference).
apm-audit-ci waiver scratch re-run now carries the real info/exclude and excludes ./.claude/worktrees, with corrected wording.
Tests that fail if the deletions-only or post-reduce dep_identity guards are removed (mutation-checked).
gates.md notes that a stale local origin/main keeps the waiver alive but fails safe via the full re-run.
Verification
tests/test-rtk-hook.sh 12/12, tests/test-apm-audit-ci-waiver.sh 34/34, run-tests --strict 28/28, shellcheck; all pre-commit and pre-push hooks pass; no waiver fires on this branch.
Reviewed once by a clean-context reviewer: no blocking findings.
Remaining nits (not addressed)
Script header and gates.md say content-integrity "looks up lock-recorded paths", but in apm 0.39.3 it also scans .claude/{rules,agents,commands,skills,hooks} (conclusion unchanged).
README could add that plain apm audit also skips drift with --file, --strip or a package argument.
Minor line-wrap in gates.md:1264 and the waiver test header.
Follow-up to #284 / #179 (#179 is already closed).
## Changes
- Real-rtk test that an already-prefixed `rtk git status` passes through, backing the README's "running both hooks is harmless" claim.
- Clear error when `timeout` is missing in `tests/test-rtk-hook.sh`.
- README names which apm 0.39.3 commands raise "ambiguous duplicate APM-owned hook entry" (no version bump: README-only, per the apm-workflow configure reference).
- apm-audit-ci waiver scratch re-run now carries the real `info/exclude` and excludes `./.claude/worktrees`, with corrected wording.
- Tests that fail if the deletions-only or post-reduce `dep_identity` guards are removed (mutation-checked).
- `gates.md` notes that a stale local `origin/main` keeps the waiver alive but fails safe via the full re-run.
## Verification
- `tests/test-rtk-hook.sh` 12/12, `tests/test-apm-audit-ci-waiver.sh` 34/34, `run-tests --strict` 28/28, shellcheck; all pre-commit and pre-push hooks pass; no waiver fires on this branch.
- Reviewed once by a clean-context reviewer: no blocking findings.
## Remaining nits (not addressed)
- Script header and `gates.md` say content-integrity "looks up lock-recorded paths", but in apm 0.39.3 it also scans `.claude/{rules,agents,commands,skills,hooks}` (conclusion unchanged).
- README could add that plain `apm audit` also skips drift with `--file`, `--strip` or a package argument.
- Minor line-wrap in `gates.md:1264` and the waiver test header.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Add a real-rtk case: a `rtk git status` payload yields no output and
exit 0, backing the README's claim that running both the plugin hook and
rtk's global hook is harmless. It skips with the other real-rtk cases
when rtk is absent.
Fail with a clear message when timeout(1) is missing instead of aborting
silently under set -e.
Refs: #179
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
The unlanded-plugin waiver re-runs `apm audit --ci` in a fresh
`git init` copy, which lacked the repo's info/exclude that
deployed-files-present consults through `git check-ignore`. Copy it from
`git rev-parse --git-path info/exclude` (the shared one in a linked
worktree) when it exists, and correct the claim that origin is the only
git state apm reads.
Leave .claude/worktrees out of the tar copy: those checkouts can carry
full .venvs, are ignored via info/exclude, and hold no lock-recorded
deployed path, so no root check could see them.
Add tests that turn red without the deletions-only diff guard (a
manifest with no trailing newline) or without the post-reduce
dep_identity guard (an rtk item split by a blank line surviving a
deletions-only reduction), plus coverage for the exclude copy and the
worktrees exclusion. Note in gates.md that a stale local origin/main
keeps the waiver alive after landing, which fails safe behind the
15-check re-run, and that `git fetch` ends it.
Refs: #179
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Follow-up to #284 / #179 (#179 is already closed).
Changes
rtk git statuspasses through, backing the README's "running both hooks is harmless" claim.timeoutis missing intests/test-rtk-hook.sh.info/excludeand excludes./.claude/worktrees, with corrected wording.dep_identityguards are removed (mutation-checked).gates.mdnotes that a stale localorigin/mainkeeps the waiver alive but fails safe via the full re-run.Verification
tests/test-rtk-hook.sh12/12,tests/test-apm-audit-ci-waiver.sh34/34,run-tests --strict28/28, shellcheck; all pre-commit and pre-push hooks pass; no waiver fires on this branch.Remaining nits (not addressed)
gates.mdsay content-integrity "looks up lock-recorded paths", but in apm 0.39.3 it also scans.claude/{rules,agents,commands,skills,hooks}(conclusion unchanged).apm auditalso skips drift with--file,--stripor a package argument.gates.md:1264and the waiver test header.🤖 Generated with Claude Code
https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi