docs(branch-discipline): §17+§18 + check-branch-sync + pre-commit hook#180
Merged
docs(branch-discipline): §17+§18 + check-branch-sync + pre-commit hook#180
Conversation
v3.13.1 LIVE sonrası Codex Public Beta implementation'ı stale branch (claude/faz-c-master-plan, 72 commits behind main) üstünde yapıldı. 11 minor release (v3.3-v3.13) atlanması tehlikesi doğdu. Bu disiplin altyapısı aynı hatayı bir daha yaşamamak için kuruluyor. - CLAUDE.md §17 Branch Discipline: session başlangıç check ZORUNLU, uzun-ömürlü claude/* master-plan/* wip/* branch YASAK, worktree per-branch denkliği, version bump freshness kuralı - CLAUDE.md §18 Pre-commit Hook: stale base (>24h) version bump engellenir - .claude/scripts/check-branch-sync.sh: session başlangıç freshness kontrolü (forbidden pattern check + behind>5 warn + behind>20 block) - .claude/scripts/pre-commit-version-gate.sh: hook template, `.git/hooks/pre-commit` olarak install edilir Local branch temizliği (ayrı commit gerekmez, işlem kaydı): - 95 local claude/* branch silindi → main + work/ + backup/ kaldı - 61 remote claude/* branch silindi - backup/codex-pbeta-4.0.0b1-stale-base branch'inde Codex impl saklandı (rebase için referans) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
📊 Benchmark Scorecard
Baseline: |
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
.claude/scripts/check-branch-sync.sh(session başlangıç check).claude/scripts/pre-commit-version-gate.sh(hook template)Why
2026-04-20'de Codex Public Beta implementation'ı
claude/faz-c-master-planbranch'inde yaptı (72 commits behind main, pre-v3.3.0 base). Version 3.2.0 → 4.0.0b1 bump → 11 minor release kaybı tehlikesi. Bu altyapı aynı hatayı önler.Changes
CLAUDE.md §17 Branch Discipline
bash .claude/scripts/check-branch-sync.sh)claude/*,master-plan/*,wip/*branch YASAKCLAUDE.md §18 Pre-commit Hook
git commit --no-verify.git/→ tek hook tüm worktree'lere hizmetScripts
check-branch-sync.sh: detached HEAD → DUR, forbidden pattern (claude/, master-plan/, wip/*) → DUR, backup/ → DUR (read-only), behind>20 → DUR, behind>5 → WARN, fresh → OKpre-commit-version-gate.sh:pyproject.toml/ao_kernel/__init__.pystaged + merge-base yaşı >24h → BLOCKCleanup performed (already done, separate from this PR)
claude/*branches deletedclaude/*branches deleted (batch viagit push origin --delete)backup/codex-pbeta-4.0.0b1-stale-base(local + origin)Test plan
bash .claude/scripts/check-branch-sync.shfrom fresh branch →✓ Branch freshchmod +x).git/hooks/pre-commit)🤖 Generated with Claude Code