Skip to content

docs: how a session works on a task and hands a ready PR to the integrator - #1316

Merged
amiddavid merged 2 commits into
mainfrom
docs/pr-owner-integrator-handoff
Nov 24, 2026
Merged

amiddavid merged 2 commits into
mainfrom
docs/pr-owner-integrator-handoff

Conversation

@amiddavid

Copy link
Copy Markdown
Collaborator

Summary

CLAUDE.md now says how a session works on a task and hands a ready PR to the integrator.

What changed

  • New section "Working on a task" in CLAUDE.md: roles of main session and subagents, when a PR is ready, the hand-off message block, the fallback when no integrator session exists, cleanup, and the "all done" answer.
  • One sentence in RELEASING.md ("Check that a PR is ready") links to it.
  • No rule names the integrator holder. Owner decision (David Amid, 2026-11-24): "keep name out, it can also change. The team knows who it is on any point in time."

Why

Sessions learned these rules only from conversations. A new session did not know them.

How it was tested

  • Every new relative link checked: docs/data-dependence.md, scripts/offload-review.sh, and the anchors in CLAUDE.md and RELEASING.md.

Behavior change

None.

Data dependence

None. Docs only.

…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 amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 in RELEASING.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.md anchors #branches-worktrees-and-force-push (line 70), #review-process
      (line 157), #working-on-a-task (line 109, target of the RELEASING.md link).
    • RELEASING.md anchors #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.sh exists and supports <pr> --cleanup (usage line 57,
      handler line 102).
    • scripts/release/check-ready.sh exists; 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-review skill 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.
    • ListAgents and SendMessage are the correct tool names for the harness the rules
      address.
  • Commit rules: DCO Signed-off-by present, Assisted-By: line (not Co-Authored-By),
    conventional-commit title.
  • Data dependence: none. No code, so no row in docs/data-dependence.md is needed.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md says 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-push and #review-process exist in CLAUDE.md.
    • RELEASING.md#behavior-changes-need-a-humans-permission (line 64),
      RELEASING.md#check-that-a-pr-is-ready (line 124) and RELEASING.md#4-freeze (line 216)
      exist. Section 4 does contain "What 'all done' contains".
    • CLAUDE.md#working-on-a-task in the new RELEASING.md line matches the new heading.
    • docs/data-dependence.md and .claude/skills/offload-review/SKILL.md exist.
  • The new process steps match the tools they name:
    • scripts/offload-review.sh <pr> --cleanup is a real usage of the script, and the script
      refuses while the PR is open, so "After the merge" is the right trigger.
    • ListAgents and SendMessage are real tool names in this harness.
  • The hand-off block fields (round, backend, head SHA, verdict) match what the review marker lines
    and scripts/release/check-ready.sh read.
  • 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.md rule 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]>
@amiddavid

Copy link
Copy Markdown
Collaborator Author

Round 1 notes:

  1. Cleanup wording: fixed in 91941ea.
  2. Docs-only exception: fixed in 91941ea. The rule stands in RELEASING.md under "When the head moves after an approval", not under "Check that a PR is ready". The link points there.
  3. Fence indent: fixed in 91941ea.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. My note, CLAUDE.md "It also removes its own worktrees" — fixed in 91941ead. The text now
    says "The session also removes its own worktrees and branches."
  2. 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 in RELEASING.md), so the link is right. The
    author's reply on the PR says the same.
  3. 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 in RELEASING.md
      is correct.
  • The new commit changes CLAUDE.md only, +15/-12. Still docs-only: no code, no behavior change,
    no data dependence, no binaries.
  • Commit rules hold: Signed-off-by present, 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 amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:153 now 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:127 adds 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 is RELEASING.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 the 2. 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 in RELEASING.md:160 and 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:.
  • 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.

@amiddavid
amiddavid merged commit 9f34a5c into main Nov 24, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant