diff --git a/bin/chunk_preflight/main.py b/bin/chunk_preflight/main.py index 4097ec70..c9560eb5 100644 --- a/bin/chunk_preflight/main.py +++ b/bin/chunk_preflight/main.py @@ -190,7 +190,7 @@ def item_worktree(root: pathlib.Path, branch: str, default: str, timeout: float if isinstance(recorded, Failure): return Failure(f"none made: {recorded.reason}") made = item_worktree(root, branch, f"origin/{epic}") - return made if isinstance(made, Failure) else Worktree(made.path, f"{made.how} {level} Its pull request goes into {epic}.") + return made if isinstance(made, Failure) else Worktree(made.path, f"{made.how} {level} The chunk's pull request goes into {epic}.") listing = git("worktree", "list", "--porcelain") if isinstance(listing, Failure): return listing diff --git a/bin/chunk_preflight/test_chunk_preflight.py b/bin/chunk_preflight/test_chunk_preflight.py index 39df0bfd..89e72578 100644 --- a/bin/chunk_preflight/test_chunk_preflight.py +++ b/bin/chunk_preflight/test_chunk_preflight.py @@ -600,7 +600,7 @@ class EpicBranchWorktree(unittest.TestCase): def test_the_first_chunk_makes_the_epic_branch_on_origin_and_branches_off_it_recording_where_it_merges(self): made = item_worktree(self.repo.root, "ABC-7", "origin/main", 30, "ABC-1") - self.assertEqual(made, Worktree(self.repo.temp / "proj-ABC-7", "added on the new branch ABC-7, made off origin/ABC-1. Made origin/ABC-1 off origin/main. Its pull request goes into ABC-1.")) + self.assertEqual(made, Worktree(self.repo.temp / "proj-ABC-7", "added on the new branch ABC-7, made off origin/ABC-1. Made origin/ABC-1 off origin/main. The chunk's pull request goes into ABC-1.")) self.assertEqual(self.repo.git(self.repo.origin, "rev-parse", "ABC-1"), self.repo.git(self.repo.root, "rev-parse", "origin/main")) self.assertEqual(git_repo.default_ref(str(made.path)), "origin/ABC-1") diff --git a/bin/do_epic/backend/jira_status.py b/bin/do_epic/backend/jira_status.py index 3a92ae08..f48d0b12 100644 --- a/bin/do_epic/backend/jira_status.py +++ b/bin/do_epic/backend/jira_status.py @@ -7,7 +7,7 @@ from atlassian.jira import offers_of, unshaped def moved_to(site: str, key: str, status: str, authorization: str, http: Http) -> Failure | None: - """Moves the issue named key to the status named status, in upper or lower case, by the first transition its workflow offers to it. An issue already there stays as it is. Why Jira did not take the move; None where the issue has the status.""" + """Moves the issue named key to the status named status, in upper or lower case, by the first transition to that status the issue's workflow offers. An issue already there stays as it is. Why Jira did not take the move; None where the issue has the status.""" answered: typing.Any = http("GET", f"{site}/rest/api/3/issue/{key}?fields=status", authorization, None) if isinstance(answered, Failure): return Failure(f"cannot read {key} to move it: {answered.reason}") diff --git a/bin/do_epic/config.py b/bin/do_epic/config.py index 16eb8697..26decbd3 100644 --- a/bin/do_epic/config.py +++ b/bin/do_epic/config.py @@ -21,7 +21,7 @@ One pair per machine, the same for every epic (docs/decisions.md → `do-epic: d - `jira-sprint-board` is the ID of a Jira board, the number in the board's address, such as `6`. An issue whose chunk starts joins that board's active sprint; a sub-task's parent joins in its place. Without it do-epic doesn't add a starting issue to a sprint. - `jira-unblocking-statuses` lists the statuses at which an issue's work has landed though Jira doesn't count it done yet, such as `["Release Ready"]`, in upper or lower case. An issue in one of them takes no chunk and no longer blocks the issues it blocks. A status Jira counts as done always does both, listed or not. - `jira-automation-moves-issues = true` says the team's own automation moves an issue when its pull request merges. do-epic then moves only the issue of a chunk without a repo, which has no pull request, and waits for the automation to move each other. It needs `jira-unblocking-statuses`, which then names the status the automation gives an issue whose pull request merged. false where left out. -- `jira-pull-request-open-status` and `jira-pull-request-merged-status` name the statuses do-epic itself gives an issue whose chunk merges into an epic's working branch, in a repo whose config sets `epic-branch` (`project-config --help`): the first once the chunk's pull request is open, such as `"Code Review"`, and the second once it has merged into that branch, such as `"Release Ready"`. A team's automation moves an issue only for a pull request into the default branch, so there do-epic makes both moves, whatever `jira-automation-moves-issues` says. `jira-unblocking-statuses` must list the second, and an issue that has it counts as done when the epic's release reviews and its finishing chunk fall due: both come before a person merges the working branch into the default branch. Without the first, do-epic doesn't move an issue as its pull request opens. Without the second, a finished chunk's issue moves to done, and where `jira-automation-moves-issues` is set do-epic stops and asks for the setting. +- `jira-pull-request-open-status` and `jira-pull-request-merged-status` name the statuses do-epic itself gives an issue whose chunk merges into an epic's working branch, in a repo whose config sets `epic-branch` (`project-config --help`): the first once the chunk's pull request is open, such as `"Code Review"`, and the second once it has merged into that branch, such as `"Release Ready"`. A team's automation moves an issue only for a pull request into the default branch, so there do-epic makes both moves, whatever `jira-automation-moves-issues` says. `jira-unblocking-statuses` must list the second, and an issue that has it counts as done when the epic's release reviews and its finishing chunk fall due: both come before a person merges the working branch into the default branch. Without the first, do-epic doesn't move an issue as its pull request opens. Without the second, do-epic moves a finished chunk's issue to done. Where `jira-automation-moves-issues` is set, it stops instead and asks you to move the issue. - `jira-finding-type` names the Jira issue type do-epic files a finding as, and `jira-review-type` the one it files a repo's release review as, such as `"Feature"` and `"Chore"`, for a Jira project that has no Task type. Task where left out. do-epic doesn't file anything where the project lacks the type, and says which types it has. - `sub-task-summary` shapes the summary of each sub-task do-epic files for an issue that changes several repos, such as `"{label}: {Summary}"`. `{label}` is the team's label for the repo, else the repo's name, and `{Summary}` is the issue's summary with a capital first letter. It must hold `{Summary}`. Where left out, a summary is `[] `. - `[label-repos]` has one line for each label of the team's own that names a repo: the label, then that repo's name, such as `twu-4 = "tenant-web-ui-4"`. do-epic reads such a label as it reads its own `repo:`. A team whose label is the repo's name maps the name to itself. Where several lines name one repo, do-epic writes the label of the first. diff --git a/bin/do_epic/finish.py b/bin/do_epic/finish.py index 8bb4cc35..5dd4416c 100644 --- a/bin/do_epic/finish.py +++ b/bin/do_epic/finish.py @@ -77,8 +77,8 @@ def task(epic: str, issues: list[EpicIssue], team: LabelRepos, launcher: pathlib "A goal is met only where the human confirms it: never take one as met from the evidence alone. Don't ask again about a goal a decision in the description records as confirmed.\n" "2. For a goal the human doesn't confirm, propose a set of items that would meet it, and ask the human to approve the set. File each item they approve. " f"Then the chunk is finished: {DRIVER} works the items, and starts this chunk again once the epic holds no open issue.\n" - f"3. Once the human has confirmed every goal, open the epic's pull request in each repo it changed whose config sets `epic-branch`: in that repo's checkout, `project-config epic-branch` prints the setting, and fails where the config sets none. There, run `chunk-pr open-epic {epic} \"\"`, which makes the epic's working branch level with the default branch and opens the pull request from it into the default branch. Never merge it: a person does. Name each such pull request in the summary.\n" - f"4. Then write a summary in {language}, the epic's language, for the people who work the epic: what shipped in each repo, and each goal's evidence. " + f"3. Once the human has confirmed every goal, run `project-config epic-branch` in the checkout of each repo the epic changed. Where it fails, the repo keeps no working branch for the epic: skip it. Where it prints a template, run `chunk-pr open-epic {epic} \"<title>\"` in that checkout, which makes the epic's working branch level with the default branch and opens the pull request from it into the default branch. Never merge that pull request: a person does.\n" + f"4. Then write a summary in {language}, the epic's language, for the people who work the epic: what shipped in each repo, each pull request step 3 opened, and each goal's evidence. " f"Post it and close the epic with `{launcher} {epic} {CLOSE}`, the summary on stdin. That is the chunk's very last step, and the chunk is finished once it succeeds.\n\n" f"{findings.instructions(epic, launcher, language, team)} Record each goal's confirmation as such a decision.\n\n" "The epic's issues, each done:\n\n" + "\n".join(f"- {issue.key}{f' ({repo})' if (repo := repo_of(issue, team)) else ''}: {issue.summary}" for issue in issues) diff --git a/bin/do_epic/test_finish.py b/bin/do_epic/test_finish.py index a42c461c..0ee91448 100644 --- a/bin/do_epic/test_finish.py +++ b/bin/do_epic/test_finish.py @@ -80,8 +80,9 @@ class TheFinishingChunksTask(DoEpicTest): self.assertIn("ask the human to approve the set", task) self.assertIn("`/b/do-epic ABC-12 --close-epic`", task) self.assertIn("in Swedish", task) - self.assertIn("3. Once the human has confirmed every goal, open the epic's pull request in each repo it changed whose config sets `epic-branch`: in that repo's checkout, `project-config epic-branch` prints the setting, and fails where the config sets none. There, run `chunk-pr open-epic ABC-12 \"<title>\"`", task) - self.assertIn("Never merge it: a person does. Name each such pull request in the summary.\n4. Then write a summary", task) + self.assertIn("3. Once the human has confirmed every goal, run `project-config epic-branch` in the checkout of each repo the epic changed. Where it fails, the repo keeps no working branch for the epic: skip it. Where it prints a template, run `chunk-pr open-epic ABC-12 \"<title>\"` in that checkout", task) + self.assertIn("Never merge that pull request: a person does.\n4. Then write a summary", task) + self.assertIn("what shipped in each repo, each pull request step 3 opened, and each goal's evidence.", task) self.assertIn(findings.instructions("ABC-12", LAUNCHER, "Swedish", {}), task) self.assertIn("The epic's issues, each done:\n\n- ABC-20 (api): Do ABC-20\n- ABC-21: Do ABC-21\n- ABC-30 (api): Do ABC-30", task) self.assertNotIn("do-epic-release-review`", task) diff --git a/bin/project_config/main.py b/bin/project_config/main.py index 14ca0f88..d7e46067 100644 --- a/bin/project_config/main.py +++ b/bin/project_config/main.py @@ -103,17 +103,18 @@ it is true. `chunk-pr merge` leaves the pull request ready and says it awaits a person's merge. `project-config merge` prints chunk or human; the full listing shows the setting only where it is human. -`epic-branch` is an optional setting: a template that names the working branch of the Jira epic `plan` -names, with {epic} for the epic's key, such as `epic-branch = "{epic}"` or "epic/{epic}". Each chunk then +`epic-branch` is an optional setting: a template that names an epic's working branch, with {epic} for the +epic's key, such as `epic-branch = "{epic}"` or "epic/{epic}". The epic is the Jira epic `plan` names, or +under do-epic the epic it drives. Each chunk then branches off that branch, and `chunk-pr` opens its pull request into it and merges it there without a person, whatever `merge` and `wait-for-approval` say: those guard the default branch. `chunk-preflight` makes the branch on origin off the default branch, or merges the default branch into it, and stops where that merge conflicts, which a person resolves. `chunk-pr open-epic` opens the pull request from the branch into the default branch, which a person merges. Left out, each chunk merges into the default branch. -`review-request-comment` is an optional setting, one line of text: the comment that asks the project's -auto-reviewer for a review, such as "@reviewbot review", for a reviewer that on its own reviews only -pull requests into the default branch. `chunk-pr ready` and `chunk-pr push` post it on a pull request +`review-request-comment` is an optional setting, one line of text that doesn't start with `-`: the +comment that asks the project's auto-reviewer for a review, such as "@reviewbot review", for a reviewer +that on its own reviews only pull requests into the default branch. `chunk-pr ready` and `chunk-pr push` post it on a pull request into the epic's working branch. It requires `epic-branch`. Left out, no comment is posted. Each of the two is printed with the others only where it is set. diff --git a/bin/project_config/settings.py b/bin/project_config/settings.py index c847c644..2d7c6e37 100644 --- a/bin/project_config/settings.py +++ b/bin/project_config/settings.py @@ -50,7 +50,7 @@ LANGUAGE = "language" COMMIT_TITLE = "commit-title" PULL_REQUEST_TITLE = "pull-request-title" BRANCH = "branch" -# Two optional settings. `epic-branch` names the working branch that an epic's chunks branch off and merge into, `{epic}` standing for the epic's key (docs/decisions.md → `epic-branch: an epic's chunks branch off and merge into a working branch …`). `review-request-comment` is the comment `chunk-pr` posts on a pull request into that branch, to ask a reviewer that reviews only pull requests into the default branch. Three readers, seated as the human who writes the config, a chunk's worker and one of a client's team, picked both spellings from four candidates each, 3-0: `merge-branch` and `working-branch` read as the chunk's own branch, and `base-branch` as replacing the default branch for the whole repo. +# Of `epic-branch` and `review-request-comment` (docs/decisions.md → `epic-branch: an epic's chunks branch off and merge into a working branch …`): three readers, seated as the human who writes the config, a chunk's worker and one of a client's team, picked both spellings from four candidates each, 3-0: `merge-branch` and `working-branch` read as the chunk's own branch, and `base-branch` as replacing the default branch for the whole repo. EPIC_BRANCH = "epic-branch" REVIEW_REQUEST_COMMENT = "review-request-comment" # An optional path setting: main's help says what it places. diff --git a/docs/decisions.md b/docs/decisions.md index 84651965..9b4faeed 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -160,6 +160,19 @@ Valid while `~/.claude` is a checkout of this repo. - **Finishing.** When the epic holds no open item: release-review passes on each repo the epic changed, then the items they file, then the human confirms each achieve goal and that no maintain goal has a defect. For a goal that isn't met, do-epic proposes items for approval. Then a summary comment on the epic, and closing the epic in Jira, as the very last step. - **Tests.** Black-box tests run against a fake Jira backend. An opt-in e2e test runs as its own command against a sandbox epic on a real Jira site. +## epic-branch: an epic's chunks branch off and merge into a working branch its project's config names, without a person, and a person merges that branch into the default branch in one pull request + +2026-11-20, lilleman's call in item 472. Serves goals 1 and 1.6: a team may rule that only a person merges into its default branch. Such a team was asked to merge once per chunk, and reviewed an epic as many small pull requests. With `epic-branch` set, the loop asks once per epic, and the team keeps its rule. Valid while that rule covers only a team's default and protected branches. + +- **The setting.** `epic-branch` in a project's config is a template with `{epic}` for the epic's key, such as `"{epic}"`. Left out, everything works as before. Under chunk-preflight the key is that of the Jira epic `plan` names, so a plan kept in a file has no working branch. Under do-epic it is the key of the epic do-epic drives. +- **A chunk's base is recorded in git.** `git config branch.<chunk's branch>.chunk-base <epic's working branch>`, in the checkout's shared config (`git_repo.CHUNK_BASE`). `git_repo.default_ref` answers `origin/<epic's working branch>` on such a branch, so each tool that measures a chunk against its base reads the chunk's own commits. Deleting the branch removes the record. +- **The branch stays level by a merge commit, made without a checkout.** `epic_branch.levelled` makes the branch on origin off the default branch, or merges the default branch into it with `git merge-tree --write-tree`, which needs git 2.38 or later, and `git commit-tree`, and pushes without force. chunk-preflight runs it before it makes a chunk's worktree, do-epic as a chunk's window starts, and `chunk-pr open-epic` before it opens the epic's pull request. `open-epic` refuses where origin has no such branch, since a branch made there would be a stray one. A conflict stops the chunk and asks a person to merge by hand: a resolution picks between two teams' changes, which is theirs to pick. +- **The chunk merges without a person.** `chunk-pr merge` into an epic's working branch ignores `merge = "human"` and `wait-for-approval`, and do-epic parks no such chunk on a person's merge. lilleman's call: the team's rule against merging without a go-ahead covers the default branch and protected branches. The pull request from the epic's working branch into the default branch is opened ready and never merged by the loop. do-epic's finishing chunk opens it with `chunk-pr open-epic`; under loop-claude the human runs that command. +- **A review is asked for by a comment.** An auto-reviewer may review on its own only pull requests into the default branch. `review-request-comment` holds the comment that asks it, which `chunk-pr ready` and `chunk-pr push` post on a pull request into an epic's working branch. The worker waits for the review as for any auto-reviewer. +- **do-epic moves the issue itself.** A team's automation fires only for pull requests into the default branch. `jira-pull-request-open-status` names the status of an issue whose chunk parks with its pull request open, and `jira-pull-request-merged-status` the one once it has merged. The first move is made as the chunk parks, since that is where do-epic learns of the pull request; one that opens and merges within a single run of the worker skips it. Where the workflow then offers no way straight to the merged status, do-epic moves the issue through the open status first. Each setting names a status, and do-epic takes whichever transition leads there. +- **An issue at the merged status counts as done for the epic's end.** The release reviews and the finishing chunk come before a person merges the epic's working branch, and Jira counts the issues done only after. So `finish.landed` reads such an issue as done, wherever do-epic's config names the status. Without the setting, the finishing waits for Jira as before. +- **The epic's other repos.** Where a chunk's tests run other repos of the epic, its worker runs each at its branch of the same name where it has one, else at its default branch, and its summary names each repo that ran at the default branch. A team's shared test harness needs an option to pick the branch; that is the team's change. + ## larv-review: within a chunk lifting a project towards the comprehension floor, work on the project's lowest-scoring dimension comes first, and the floor doesn't block anything 2026-09-20, lilleman. Serves goal 1. Across six projects scored with the four seats, Locality or Self-sufficiency was the lowest dimension at every seat and Navigation at none, so a layout fix would not lift a project under the floor. Valid while the scoring run keeps those four seats. @@ -232,20 +245,6 @@ Valid while claude takes `--session-id` and resumes by it, and the human runs lo `claude_reply` reads stream-json for every caller, so the judge's runs are streams too; the archive's `JudgeRun` stays as it was, since a judge has no tools and one turn. Valid while transcripts stay small enough to copy whole. -## epic-branch: an epic's chunks branch off and merge into a working branch its project's config names, without a person, and a person merges that branch into the default branch in one pull request - -2026-11-20, lilleman's call in item 472. Serves goals 1 and 1.6: a team that keeps each merge into its default branch with a person was asked once per chunk, and reviewed an epic as many small pull requests. With `epic-branch` set, the loop asks once per epic, and the team keeps its rule. Valid while a team's no-merge rule covers its default and protected branches only. - -- **The setting.** `epic-branch` in a project's config is a template with `{epic}` for the epic's key, such as `"{epic}"`. Left out, everything works as before. Under chunk-preflight the key is that of the Jira epic `plan` names, so a plan kept in a file has no epic branch. Under do-epic it is the key of the epic do-epic drives. -- **A chunk's base is recorded in git.** `git config branch.<chunk's branch>.chunk-base <epic's branch>`, in the checkout's shared config (`git_repo.CHUNK_BASE`). `git_repo.default_ref` answers `origin/<epic's branch>` on such a branch, so each tool that measures a chunk against its base reads the chunk's own commits. Deleting the branch removes the record. A file in the worktree would have been a second writer of the chunk's state. -- **The branch stays level by a merge commit, made without a checkout.** `epic_branch.levelled` makes the branch on origin off the default branch, or merges the default branch into it with `git merge-tree --write-tree` and `git commit-tree`, and pushes without force. That needs git 2.38. chunk-preflight runs it before it makes a chunk's worktree, do-epic as a chunk's window starts, and `chunk-pr open-epic` before it opens the epic's pull request. A conflict stops the chunk and asks a person to merge by hand: a resolution picks between two teams' changes, which is theirs to pick. -- **The chunk merges without a person.** `chunk-pr merge` into an epic's branch ignores `merge = "human"` and `wait-for-approval`, and do-epic parks no such chunk on a person's merge. lilleman's call: the team's rule against merging without a go-ahead covers the default branch and protected branches. The pull request from the epic's branch into the default branch is opened ready and never merged by the loop. -- **A review is asked for by a comment.** An auto-reviewer may review on its own only pull requests into the default branch. `review-request-comment` holds the comment that asks it, which `chunk-pr ready` and `chunk-pr push` post on a pull request into an epic's branch. The worker waits for the review as for any auto-reviewer. -- **do-epic moves the issue itself.** A team's automation fires only for pull requests into the default branch. `jira-pull-request-open-status` names the status of an issue whose chunk parks with its pull request open, and `jira-pull-request-merged-status` the one once it has merged. The first move is made as the chunk parks, since that is where do-epic learns of the pull request; one that opens and merges within a single run of the worker skips it. Each setting names a status, and do-epic takes whichever transition leads there. -- **An issue at the merged status counts as done for the epic's end.** The release reviews and the finishing chunk come before a person merges the epic's branch, and Jira counts the issues done only after. So `finish.landed` reads such an issue as done, wherever do-epic's config names the status. Without the setting, the finishing waits for Jira as before. -- **Sibling repos.** A chunk's worker tests each sibling repo at its branch of the same name where it has one, else at its default branch, and its summary names each sibling that ran at the default branch. A team's shared test harness needs an option to pick the branch; that is the team's change. -- **Spellings.** Three fresh readers, seated as those who write a project's config and run `chunk-pr`, picked each from three or four candidates: `epic-branch` 3-0, `review-request-comment` 3-0, `chunk-pr push` 3-0, `chunk-pr open-epic` 2-1 and `jira-pull-request-open-status` 2-1. `jira-pull-request-merged-status` is spelt to pair with the last. - ## loop-claude: each verdict records the claude-config release and commit that ran it, the raw tokens each thread spent by model and kind since the previous outcome that recorded a spend, and the human's typed answer the judge quotes as reversing a choice the worker took on its own recommendation 2026-11-12, lilleman, todo item 305. Serves goals 1, 1.2 and 1.4. A change to the setup can be judged only by comparing chunks run before it with chunks run after, so each verdict, interrupt and quoted answer in loop-claude's archive records three things beside its judge lines. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 10b2d089..9a229ddd 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -204,7 +204,7 @@ Launch prose-reviewer with what the diff touched and every section this review c 3. The forge's checks: `chunk-pr merge` waits for them to pass (§5 step 4). A red check is a finding. 4. No CI configured → the gate is local tests only; note it in the summary. 5. The local tests green → where §2 left the pull request unopened, open it with `~/.claude/bin/chunk-pr open '<final title>' '<summary>'` and mark it ready at once with `~/.claude/bin/chunk-pr ready`. Otherwise mark the PR ready with `~/.claude/bin/chunk-pr ready '<final title>'`, which sets the title as it marks the PR ready. -6. **External auto-reviewer**, when the repo has one — its config file (`.coderabbit.yaml` and the like), or its comments on earlier PRs; none → skip it, say so. Marking the PR ready summons it, unless it reviewed the draft already. On a pull request into an epic's working branch (`chunk-pr --help`), a reviewer that reviews only pull requests into the default branch is summoned by the project's `review-request-comment`, which `chunk-pr ready` posts: push each later commit there with `chunk-pr push`, which posts it again. Wait up to **10 minutes** for its first review, checking about once a minute; nothing by then → note it in the summary and carry on, never waiting twice. Its rounds, §3 → "Round cap". Once it has reviewed, each later return here before its cap, after a fix re-entered per §3, waits up to **5 minutes** for its re-review of the new commit. Each of its findings, fixed or declined, ends with the setup change that `~/.claude/CLAUDE.md` → "Working loop", "Change the setup for each finding an outside reviewer raises on a PR, deterministic tools first" asks for. +6. **External auto-reviewer**, when the repo has one — its config file (`.coderabbit.yaml` and the like), or its comments on earlier PRs; none → skip it, say so. Marking the PR ready summons it, unless it reviewed the draft already. On a pull request into an epic's working branch (`chunk-pr --help`), a reviewer that reviews only pull requests into the default branch is summoned by the project's `review-request-comment`, which `chunk-pr ready` posts: push each later commit there with `chunk-pr push`, which posts that comment again. Wait up to **10 minutes** for its first review, checking about once a minute; nothing by then → note it in the summary and carry on, never waiting twice. Its rounds, §3 → "Round cap". Once it has reviewed, each later return here before its cap, after a fix re-entered per §3, waits up to **5 minutes** for its re-review of the new commit. Each of its findings, fixed or declined, ends with the setup change that `~/.claude/CLAUDE.md` → "Working loop", "Change the setup for each finding an outside reviewer raises on a PR, deterministic tools first" asks for. ## 5. Goal alignment, then merge