chore(hooks): sync .claude/hooks fleet from canonical#632
Merged
John-David Dalton (jdalton) merged 2 commits intomainfrom May 5, 2026
Merged
chore(hooks): sync .claude/hooks fleet from canonical#632John-David Dalton (jdalton) merged 2 commits intomainfrom
John-David Dalton (jdalton) merged 2 commits intomainfrom
Conversation
This was referenced May 5, 2026
Synced from socket-repo-template canonical hooks fleet. Adds the
new fleet-canonical guard hooks not yet present on this repo's main.
Hooks added:
- auth-rotation-reminder — prompts on token rotation events
- logger-guard — blocks console.log/error in production code
- stale-process-sweeper — Stop hook reaping orphaned vitest workers
Hooks updated:
- path-guard — README + segments drift
- token-guard — README drift
Harness config:
- .claude/settings.json — register new hooks under PreToolUse / Stop
- .git-hooks/{_helpers,pre-commit,pre-push}.mts — drift sync from
socket-repo-template
- .oxfmtrc.json — JSDoc formatting drift
Splits content out of #630.
c24fa17 to
44b90b4
Compare
John-David Dalton (jdalton)
added a commit
that referenced
this pull request
May 5, 2026
pnpm-workspace.yaml had two top-level `catalog:` mappings (line 7 with @socketsecurity/lib 5.25.1 and line 35 with 5.27.0). YAML 1.2 forbids duplicate keys; pnpm v11 errors with "duplicated mapping key (35:1)" and refuses to install. CI was failing on every job that runs `pnpm install`. Cause: #632's catalog-block addition got merged on top of an existing catalog block from a separate change without dedup. The newer (5.27.0) block is correct. Fix: drop the older 5.25.1 block, regen lockfile.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
auth-rotation-reminder,logger-guard,stale-process-sweeper.path-guard(README, segments),token-guard(README),.claude/settings.json,.git-hooks/{_helpers,pre-commit,pre-push}.mts,.oxfmtrc.json(oxfmt JSDoc).Scope
Hooks + harness-config slice split out of #630.
Companion splits: skills/CLAUDE.md and cascade+deps. After all three land, #630 closes.
Test plan
.claude/settings.json)