Commit f6139d4
committed
Add the Claude Code web SessionStart hook and bump the drift pin to v5
PythonTap was one of three repos in the family without the canonical
SessionStart hook. Fresh Claude Code web containers clone bare -- no
submodules, no pre-commit hook -- so agent commits could bypass the local
format layer entirely and fail the clang-format gate on code a local clone
would have fixed at commit time. The hook initializes source/min-api
recursively, installs the pinned pre-commit hook, and warms its clang-format.
The drift pin moves v4 -> v5 in the same commit because that is what makes the
hook guarded rather than merely present: v4 does not carry
.claude/hooks/session-start.sh, so the drift job's conditional guard would
skip it silently. At v5 the guard becomes active.
Verified this cannot break the gate: v4 and v5 carry byte-identical
.clang-format, .clang-tidy, STYLE.md, .pre-commit-config.yaml and
scripts/tidy.sh -- the tags differ only by the addition of the hook -- and
every file the v5 drift job will compare here matches its canonical blob
exactly, including the new hook at b7c2a49. .claude/settings.json is the
canonical copy, created because none existed; it stays unguarded by design.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JhhQ93r2E1QTnCx46YfX8j1 parent 4484a04 commit f6139d4
3 files changed
Lines changed: 52 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments