From f5a0fe35f83c9b7e1a86584582047ee9abd04404 Mon Sep 17 00:00:00 2001 From: George Moon Date: Sun, 7 Jun 2026 22:23:17 -0400 Subject: [PATCH] docs: checkpoint = branch + PR (not main); make .githooks executable Update the Git Checkpoint convention to branch + PR instead of committing straight to main (releases remain the exception). Also chmod +x the committed .githooks so they run on fresh clones via core.hooksPath. Co-Authored-By: Claude Opus 4.8 (1M context) --- .githooks/pre-commit | 0 .githooks/pre-push | 0 CLAUDE.md | 9 ++++++--- 3 files changed, 6 insertions(+), 3 deletions(-) mode change 100644 => 100755 .githooks/pre-commit mode change 100644 => 100755 .githooks/pre-push diff --git a/.githooks/pre-commit b/.githooks/pre-commit old mode 100644 new mode 100755 diff --git a/.githooks/pre-push b/.githooks/pre-push old mode 100644 new mode 100755 diff --git a/CLAUDE.md b/CLAUDE.md index 1c20649..632bd80 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -161,9 +161,12 @@ cargo run -- get REQ-CORE-001 When told **"checkpoint"** or **"commit and push"**: 1. `git status` to check changes -2. `git add` relevant files -3. Commit with descriptive message + `Co-Authored-By: Claude Opus 4.6 ` -4. Push to `origin/main` +2. Create or switch to a short-lived branch — **never commit directly to `main`** +3. `git add` relevant files +4. Commit with descriptive message + `Co-Authored-By: ...` +5. Push the branch and open a PR (`gh pr create`); merge after CI passes + +> Releases are the exception — the "Releasing" flow below pushes the version bump to `main` directly. ## Lattice Integration (Mandatory)