Repository navigation
docs: how a session works on a task and hands a ready PR to the integrator - #1316
Merged
Merged
Conversation
…rator Sessions learned these rules only from conversations. Now they are in CLAUDE.md. - New section "Working on a task" in CLAUDE.md. - One sentence in RELEASING.md links to it. Owner decisions (David Amid, 2026-11-24): - "keep name out, it can also change. The team knows who it is on any point in time." The text says "the integrator holder". - Open it as a docs PR with the 2 reviews. Behavior change: none. Data dependence: none. Assisted-By: Claude Opus 5.5 Signed-off-by: DAVID AMID <[email protected]>
amiddavid
commented
Nov 24, 2026
amiddavid
left a comment
Collaborator
Author
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.331 | offload-review skill, @amiddavid's session | fresh | 2 of 2 | 1 of 2 | 716750da06e5 |
approve |
Verdict: approve
Findings
None.
Non-blocking
- CLAUDE.md:135-144 — the code fence breaks the numbered list. The ```text block
between items 2 and 3 is not indented. CommonMark ends the list at item 2, and "3."
starts a new list. GitHub still renders it as 3, so a reader sees 1, 2, 3. Indent the
fence by 3 spaces to keep one list.
What I checked
- The PR is docs-only: 48 new lines in
CLAUDE.md, 2 inRELEASING.md. No Go code, no
config, no behavior change. The commit states this, and I confirmed it against the diff. - Every link target in the new text exists:
CLAUDE.mdanchors#branches-worktrees-and-force-push(line 70),#review-process
(line 157),#working-on-a-task(line 109, target of the RELEASING.md link).RELEASING.mdanchors#behavior-changes-need-a-humans-permission(line 64),
#check-that-a-pr-is-ready(line 124),#4-freeze(line 216).
- The claim behind each link holds:
RELEASING.md"4. Freeze" does define what "all done" contains (line 226), so the
"After the hand-off" pointer is correct.scripts/offload-review.shexists and supports<pr> --cleanup(usage line 57,
handler line 102).scripts/release/check-ready.shexists; the new RELEASING.md sentence sits right
after the paragraph that describes it.
- Consistency with existing rules:
- "No rule here names the person" matches the Roles table (RELEASING.md line 24): the
integrator is a role, and no person is named there either. - The ready-when checklist ("2 approvals at its final head", behavior-change permission,
data-dependence row, no binary or LFS file) matches RELEASING.md "Check that a PR is
ready" and "2. Get each PR reviewed". No contradiction. - The
offload-reviewskill says "tell the user that the PR is ready to merge" after
approvals (SKILL.md step 4). The new hand-off section adds the next step after that.
The two texts do not conflict. ListAgentsandSendMessageare the correct tool names for the harness the rules
address.
- "No rule here names the person" matches the Roles table (RELEASING.md line 24): the
- Commit rules: DCO
Signed-off-bypresent,Assisted-By:line (not Co-Authored-By),
conventional-commit title. - Data dependence: none. No code, so no row in
docs/data-dependence.mdis needed.
amiddavid
commented
Nov 24, 2026
amiddavid
left a comment
Collaborator
Author
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.331 | offload-review skill, @amiddavid's session | fresh | 1 of 2 | 1 of 2 | 716750da06e5 |
approve |
Verdict: approve
Findings
None.
Non-blocking
CLAUDE.md:154— "It also removes its own worktrees and branches." The word "It" can read as
the script. The script removes only the reviewer worktrees (see
.claude/skills/offload-review/SKILL.md, "Clean up after the PR merges"). The PR-owning session
removes its own worktrees. Say "The session also removes its own worktrees and branches."CLAUDE.md:118— The "A PR is ready when" list has no exception for a docs-only PR.
RELEASING.mdsays a docs-only PR needs only the release owner's review. The list defers to
"Check that a PR is ready", so a reader finds the exception. Still, the list alone can mislead.
What I checked
- The diff is docs-only: one commit,
CLAUDE.md+48 lines,RELEASING.md+2 lines. No code, no
binaries, no LFS files. No behavior change and no data dependence. - Every link and anchor in the new text resolves:
#branches-worktrees-and-force-pushand#review-processexist inCLAUDE.md.RELEASING.md#behavior-changes-need-a-humans-permission(line 64),
RELEASING.md#check-that-a-pr-is-ready(line 124) andRELEASING.md#4-freeze(line 216)
exist. Section 4 does contain "What 'all done' contains".CLAUDE.md#working-on-a-taskin the newRELEASING.mdline matches the new heading.docs/data-dependence.mdand.claude/skills/offload-review/SKILL.mdexist.
- The new process steps match the tools they name:
scripts/offload-review.sh <pr> --cleanupis a real usage of the script, and the script
refuses while the PR is open, so "After the merge" is the right trigger.ListAgentsandSendMessageare real tool names in this harness.
- The hand-off block fields (round, backend, head SHA, verdict) match what the review marker lines
andscripts/release/check-ready.shread. - The "A PR is ready when" list matches the
RELEASING.md"Check that a PR is ready" criteria:
2 approvals at the final head, green CI, clean merge, behavior-change rule, data-dependence row. - The new owner rule (no rule names the integrator holder) conflicts with nothing:
RELEASING.md
"Roles" and "Notes for an integrator" name no person. - The new section contradicts no existing
CLAUDE.mdrule on worktrees, review rounds or the
review budget.
- Say that the session, not the script, removes its worktrees and branches. - Add the docs-only exception to the "A PR is ready when" list. - Indent the template fence so items 1-3 stay one numbered list. Assisted-By: Claude Opus 5.5 Signed-off-by: DAVID AMID <[email protected]>
Collaborator
Author
amiddavid
commented
Nov 24, 2026
amiddavid
left a comment
Collaborator
Author
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.331 | offload-review skill, @amiddavid's session | resumed | 1 of 2 | 2 of 2 | 91941eadd91c |
approve |
Verdict: approve
Findings
None.
Round 1 findings, re-checked
- My note,
CLAUDE.md"It also removes its own worktrees" — fixed in91941ead. The text now
says "The session also removes its own worktrees and branches." - My note, the ready-when list had no docs-only exception — fixed in
91941ead. The list now
carries the exception. The link points to
RELEASING.md#when-the-head-moves-after-an-approval. I checked that heading: the docs-only rule
stands at the end of that section (line 160 inRELEASING.md), so the link is right. The
author's reply on the PR says the same. - Reviewer 2's note, the code fence broke the numbered list — fixed in
91941ead. I checked
this myself. The fence is now indented by 3 spaces. That equals the width of the "2. " marker,
so CommonMark keeps the fence inside item 2 and "3." continues the same list.
Non-blocking
CLAUDE.md(docs-only exception bullet) — the link text reads "RELEASING.md" but points to a
section anchor. A link text such as "When the head moves after an approval" would tell the reader
where the click lands.
What I checked
- Last review: round 1, 716750d, 2026-11-24T08:17:17Z.
- New commits read: 1 (
91941ead"docs: fix the round 1 notes of the hand-off section"). - Read in full: 2 reviews, 1 comment, 0 inline comments (from the three files).
- New items since my last review:
- Reviewer 2's round-1 review (approve, one non-blocking note). I checked the note myself; see
item 3 above. Fixed. - The author's comment (2026-11-24T08:18:44Z): three notes, all fixed in
91941ead. I verified
each fix in the diff. The reply's claim about where the docs-only rule stands inRELEASING.md
is correct.
- Reviewer 2's round-1 review (approve, one non-blocking note). I checked the note myself; see
- The new commit changes
CLAUDE.mdonly, +15/-12. Still docs-only: no code, no behavior change,
no data dependence, no binaries. - Commit rules hold:
Signed-off-bypresent,Assisted-By:line (not Co-Authored-By),
conventional-commit title. - The full diff from the base (
30a80767..91941ead) is my round-1 diff plus this fix commit. I
found no new defect in it.
amiddavid
commented
Nov 24, 2026
amiddavid
left a comment
Collaborator
Author
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.331 | offload-review skill, @amiddavid's session | resumed | 2 of 2 | 2 of 2 | 91941eadd91c |
approve |
Verdict: approve
Findings
None.
Earlier findings, and their state
- Reviewer 1, non-blocking 1 — "It also removes" can read as the script. Fixed.
CLAUDE.md:153now says "The session also removes its own worktrees and branches."
The script removes only the reviewer worktrees, so the new wording is correct. - Reviewer 1, non-blocking 2 — no docs-only exception in the ready-when list. Fixed.
CLAUDE.md:127adds the exception. The link points to
RELEASING.md#when-the-head-moves-after-an-approval, and the author's reply says the
rule stands there. I checked: the rule isRELEASING.md:160, the last paragraph of
that section. The reply is right, and the link is correct. - My non-blocking 1 — the code fence breaks the numbered list. Fixed. The fence is
now indented 3 spaces, which matches the2.marker. CommonMark keeps items 1 to 3
as one list. The fence content is unchanged.
Non-blocking
- CLAUDE.md:127 vs
scripts/release/check-ready.sh— a docs-only PR fails the script.
The new bullet says a docs-only PR needs only the release owner's review. But
check-ready.sh(lines 54-61) requires an approving marker from reviewer 1 and
reviewer 2, so the script reports a docs-only PR as not ready. The rule and the script
disagree. This tension pre-exists inRELEASING.md:160and is not introduced by this
PR. Someone may want to teach the script the exception, or say in the bullet that the
script does not apply to docs-only PRs.
What I checked
- Last review: round 1, 716750d, 2026-11-24T08:16:59Z.
- New commits read: 1 —
91941ead, "docs: fix the round 1 notes of the hand-off section". - Read in full: 2 reviews, 1 comment, 0 inline comments (from the three files
.review-in-reviews.txt,.review-in-comments.txt,.review-in-inline.txt). - New items since my last review:
- Reviewer 1's round-1 review (posted 18 s after mine). I checked both its non-blocking
notes against the fix commit. Both fixed, as above. - The author's round-1 notes comment: 3 items, each says "fixed in 91941ea". I verified
each fix in the diff, and the claim about where the docs-only rule stands in
RELEASING.md. All 3 hold. - Commit
91941ead: read the full diff (CLAUDE.md, +15 / −12). Three changes only:
the exception bullet, the fence indent, the "session also removes" wording. Nothing
else moved. Commit rules hold: conventional title,Assisted-By:,Signed-off-by:.
- Reviewer 1's round-1 review (posted 18 s after mine). I checked both its non-blocking
- The fence content is byte-identical to round 1 except the added indentation.
- Still docs-only at the new head: no code, no behavior change, no data dependence.
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.md now says how a session works on a task and hands a ready PR to the integrator.
What changed
CLAUDE.md: roles of main session and subagents, when a PR is ready, the hand-off message block, the fallback when nointegratorsession exists, cleanup, and the "all done" answer.RELEASING.md("Check that a PR is ready") links to it.Why
Sessions learned these rules only from conversations. A new session did not know them.
How it was tested
docs/data-dependence.md,scripts/offload-review.sh, and the anchors inCLAUDE.mdandRELEASING.md.Behavior change
None.
Data dependence
None. Docs only.