From ad82efc088d13153a39c79140209873beb3ffe1e Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 29 Oct 2026 02:27:18 +0000 Subject: [PATCH] S28: wiring, Claude merges its own pull requests when checks pass Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_0141DSHAZmgpL4nP4CNugwCZ --- CLAUDE.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 0a8f992..1d3a44b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -46,7 +46,8 @@ request. Ask nothing the repository answers. Where the opening message carries d ## Finish: how a session lands -- Work on your own `claude/` branch. Never push to main, merge into main, or create or push tags. +- **Landing rule (Duke's instruction, Oct 28, 2026; replaces the owner-review rule above and in the paragraph at the top, NEEC stays paused until the plan reaches it):** open a pull request from a `claude/-` branch and, once its checks pass, merge it yourself; Duke is not asked to review or merge, and answers ledger decisions only. If checks fail and you cannot fix them, leave the pull request open and say so in the handoff. Never push to main directly, force-push, rewrite history, or move, delete or re-create a tag. +- Work on your own `claude/` branch. Never push to main directly or create or push tags by hand. - Before the last commit, `python3 run_all_checks.py > /tmp/out.txt; cmp /tmp/out.txt run_all_checks_output.txt` must report no difference, `NEEC_Project_Handoff_.md` (n = this session's number) must exist, and `STATE.md` must be rewritten to the state the session leaves. @@ -56,9 +57,8 @@ request. Ask nothing the repository answers. Where the opening message carries d the REST API (`gh api repos/BetterToBest/NormativeEvaluation/pulls -f title=... -f head= -f base=main -f body=...`). Title: the last commit's subject line. Body, short: what changed; the decisions the session made, each marked correction or optional; the items awaiting the owner; the suggested model and effort for the next session; - whether the session stopped at a limit; and, if the branch stacks on another open pull request, its number. Never - merge it. -- The owner reviews and merges. `.github/workflows/harness.yml` runs every check on the pull request; + whether the session stopped at a limit; and, if the branch stacks on another open pull request, its number. Merge it yourself once checks pass (Landing rule). +- On merge, `.github/workflows/harness.yml` runs every check on the pull request; `.github/workflows/land-session.yml` runs when it is merged, reruns every check on `main`, tags each `NEEC Session ` commit the pull request carries `s`, publishes a release and requests a Pages build. - Workflow files (`.github/workflows/`) are changed only with the owner's approval in review: the app a session