Skip to content

chore(deps): bump custodian pin to CAP1-aware + cwd-safe hook#304

Merged
ProtocolWarden merged 1 commit into
mainfrom
chore/custodian-pin-cap1
Jun 16, 2026
Merged

chore(deps): bump custodian pin to CAP1-aware + cwd-safe hook#304
ProtocolWarden merged 1 commit into
mainfrom
chore/custodian-pin-cap1

Conversation

@ProtocolWarden

Copy link
Copy Markdown
Owner

What

  • Bump custodian pin from the pre-CAP1 SHA 4a1a0aec to 0fa072f (the CAP1 decouple+enforce merge). The old pin meant the venv build and single-repo CI installed a custodian with no CAP1 detector — so audit.capabilities.enforce: true (set in chore(custodian): enable CAP1 capability-ref enforcement #303) did nothing on this repo's own builds. With the bump, CAP1 is present (and, in a single-repo CI runner with no PlatformManifest sibling, cleanly skips — CI stays green). The capabilities plugin-audit-key shim added for the pinned-custodian doctor job stays valid and is now a no-op, since main's doctor knows the key natively.
  • cwd-safe ContextGuard hook: hardened the hook command from relative bash .claude/hooks/pre_tool_use.sh to bash "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/pre_tool_use.sh" so it resolves regardless of the shell's cwd (the relative form errored non-blockingly when a tool ran from a non-root cwd).

🤖 Generated with Claude Code

The custodian pin was a pre-CAP1 SHA (4a1a0aec), so venv builds and single-repo
CI ran no CAP1 even with audit.capabilities.enforce set. Bumped to 0fa072f (the
CAP1 decouple+enforce merge). Hardened the ContextGuard hook command to
${CLAUDE_PROJECT_DIR:-.} so it resolves regardless of the shell cwd.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ProtocolWarden ProtocolWarden merged commit a8f0c0d into main Jun 16, 2026
18 checks passed
@ProtocolWarden ProtocolWarden deleted the chore/custodian-pin-cap1 branch June 16, 2026 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant