Skip to content

Add Claude Code web SessionStart hook (canonical Tap House setup)#4

Merged
tap merged 5 commits into
mainfrom
claude/auto-tune-discussion-w8ky0p
Jul 22, 2026
Merged

Add Claude Code web SessionStart hook (canonical Tap House setup)#4
tap merged 5 commits into
mainfrom
claude/auto-tune-discussion-w8ky0p

Conversation

@tap

@tap tap commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Fresh Claude Code web-session containers clone the repo bare — no submodules, no pre-commit hook installed — so git commit runs unformatted and the clang-format CI gate fails on code a local clone would have fixed at commit time (exactly what happened on tap/TapTools-Max#56). This hook closes the gap at session start:

  1. recursive submodule init
  2. pre-commit install against the repo's canonical pinned config (.pre-commit-config.yaml)
  3. hook-environment warm so the container snapshot caches the pinned clang-format binary

Web-only (CLAUDE_CODE_REMOTE guard), synchronous, idempotent. .gitignore now ignores .claude/* except the checked-in settings.json and hooks/. Validated by running the hook, pre-commit run clang-format on a source file, and a single ctest case.

The same file lands in tap/TapTools and tap/TapTools-Max (on #56); it's written as a candidate for the taphouse sync set so the whole Tap family can carry the identical hook.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BuUawafae7RR2ySWabuJcs


Generated by Claude Code

Fresh web-session containers clone bare: no submodules, no pre-commit
hook — so commits run unformatted and the clang-format CI gate fails on
code a local clone would have fixed at commit time (exactly what
happened on the tap.tune~ PR). The hook closes the gap at session
start: recursive submodule init, pre-commit install against the
repo's canonical pinned config, and a hook-environment warm so the
container snapshot caches the pinned clang-format. Web-only
(CLAUDE_CODE_REMOTE guard), synchronous, idempotent. Candidate for the
taphouse sync set so the whole Tap family carries the same hook.

.gitignore now ignores .claude/* except the checked-in settings and
hooks.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BuUawafae7RR2ySWabuJcs
tap and others added 2 commits July 22, 2026 17:46
The design discipline (fixed numeric contracts, golden double model +
float32 profile, real-time-safe construction, plain hot loops as
backend seams, published-literature-only IP policy, honest limits),
the style gates (pre-commit + the web SessionStart hook; clang-tidy as
a second compiler), build/test conventions including the oracle
patterns, the capi/notebook verification layer, an
adding-a-primitive checklist, and the consumer pin flow.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BuUawafae7RR2ySWabuJcs
TapHouse has adopted the hook into its sync set; this re-sync updates
the header to the canonical provenance wording so the copy is
byte-identical and passes the drift guard once the TapHouse tag
advances past v4. No functional change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BuUawafae7RR2ySWabuJcs
tap and others added 2 commits July 22, 2026 18:55
v5 canonicalizes the Claude Code web SessionStart hook (tap/TapHouse#4
merged); this branch already carries the synced hook, so the v5 drift
guard — which now covers it — passes by construction. Both the reusable
workflow ref and the comparison ref move together.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BuUawafae7RR2ySWabuJcs
The style workflow references taphouse@v5, which did not exist when the
ref bump was pushed; this empty commit re-triggers the runs now that
the tag is live.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BuUawafae7RR2ySWabuJcs
@tap
tap merged commit e01674c into main Jul 22, 2026
12 checks passed
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