Skip to content

docs(pm-dispatch): a PR sent back for changes takes pm:awaiting-merge off - #39513

Merged
os-zhuang merged 2 commits into
mainfrom
claude/project-thread-3eutfb
Dec 4, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/project-thread-3eutfb

Conversation

@os-bill

@os-bill os-bill commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Bill · project thread

Fixes #39512
Claim for this branch: #39512 comment 7403257191

repo:objectstack@os-bill · os-bill · session_01Utp6CY7zGwfU72j8D7ANvS

维护者速读

  • 用户能看到什么变化:被退回修改的 PR 会同时摘掉 pm:awaiting-merge,你的待合并清单里只剩真正可以批的 PR;修好并复审通过后才重新挂回。
  • 为什么做:fix(spec)!: refuse a field whose inline options repeat a value #39400 被合并队列连踢三次仍挂着这个标签,你没法分辨哪些 PR 真的就绪。
  • 出错会怎样:最坏是席位摘错标签,PR 暂时从你的清单里消失,重挂即复原;只改技能文字。
  • 要你做什么:技能面(.claude/**)需要你审阅后批准。

What changes

Text only, two files.

  • .claude/skills/pm-dispatch/SKILL.md §路径分叉: pm:awaiting-merge leaves 「随获批、撤回判决或退回」 (was: approval or a withdrawal ruling only). The hand-off line's 「非例外 head 移 ⇒ 撤挂回等」 becomes 「非例外 head 移即退回」, so a head move takes the label off by the same rule.
  • .claude/skills/pm-dispatch/references/landing-operations.md: 「谁入队谁看护」 now defines a bounce-back (self-caused red, FAIL or a must/should-fix, the maintainer asking for changes) ⇒ disarm and take pm:awaiting-merge off in the same stroke, fix within one round, re-label and re-queue only after the re-review passes, and do not re-fill the four hand-off pieces in between; a flake re-queue or a kick for a missing approval keeps it. A conflict is a head move and follows the SKILL.md head-move rule and its exception. L2 FAIL ⇒ 撤挂 becomes L2 FAIL ⇒ 退回, so a FAIL takes the label off too.

Why the re-add works with the tools as they are: label-write --handoff treats a PR that already carries the label, requests and a brief as "already handed off" and writes nothing, so a label left on through a fix would also have suppressed the new-head review request. With the label off, the hand-off after the fix writes normally.

Why

Bill, project thread, 2026-12-04T06:11:38Z, verbatim: 「技能是不是有问题,退回修改的时候应该撤掉维护者合并标签,否则我搞不清楚啊」. Ruling record #39512 comment 7403256916. Seen on #39400: labelled 2026-12-03T21:08Z, removed from the merge queue at 23:46Z, 00:28Z and 2026-12-04T05:59Z with the label still on.

Out of scope: H48 and --handoff --dry-run still read a bounced PR as missing its label; follow-up #39516.

Verification

  • pnpm check:pm-skill-ratchet ✓: SKILL.md 33325 of 33327, landing-operations.md 10693 of 10705 (paid inside existing headroom, no ceiling raised).
  • pnpm check:pm-skill-id-lint ✓.
  • node scripts/pm/label-write.mjs --self-test ✓ (401 cases; it pins 「只挂 PR、不入六态」, which is unchanged).

Clause-②: no
Metadata-protocol: none
Rule-change: ruled
Ruling-ref: 7403256916 (Bill, project thread, 2026-12-04T06:11:38Z 「技能是不是有问题,退回修改的时候应该撤掉维护者合并标签,否则我搞不清楚啊」)

Human Minimum

  • 1. N/A (no spec).
  • 2. No names added.
  • 3. No formatter ran.
  • 4. One issue, one branch, one PR.
  • 5. Publishes nothing; no changeset.
  • 6. N/A.
  • 7. No hand edits there.
  • 8. English.

Generated by Claude Code

A PR sent back for changes (conflict or self-caused red, L2 FAIL or a
must/should-fix, the maintainer asking for changes, a non-exception head
move) leaves the maintainer's awaiting-merge inbox in the same stroke; the
label goes back on only after the fix passes re-review. A flake re-queue
or a kick for a missing approval keeps it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CY7zGwfU72j8D7ANvS
@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7

Contract-review-claim: session_016WV4cxiJF5PkqquFk98Bh7 · head 3d49f72 · 2026-12-04T06:17Z
On the request of seat repo:objectstack@os-bill (mailbox #39411 comment 7403276837).

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Dec 4, 2026
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Dec 4, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 3d49f7249046604b8fa55d3f33b26a486e831f99
Local-runs: none
Scope: .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/landing-operations.md + none
Rule-change-verified: yes

Read for this record: card #39512 (body, ruling comment 7403256916, claim comment 7403257191), PR #39513 (body, two-file list, net diff against main at merge-base 3e83ef2b: 5 insertions, 4 deletions), and the check-runs on the head. Read to judge, not reviewed: scripts/pm/label-write.mjs (--handoff), scripts/pm/check-half-states.mjs (H48), references/execution-duties.md, references/contract-review.md, references/area-lease.md, AGENTS.md disarm sentence.

Rule-change line, why yes and not the declared ruled: the Ruling-ref: line quotes one sentence, 「退回修改的时候应该撤掉维护者合并标签」. Three hunks copy it (SKILL.md:202 adds 退回 to the label's leave-set; landing-operations.md:10 turns an L2 FAIL into a 退回; landing-operations.md:39 takes the label off in the same stroke). Two hunks change what gets done beyond those words:

  • SKILL.md:206 makes EVERY non-exception head move a 退回. On main that move was 「撤挂回等」 with the label staying. A clean merge of main into a labelled Tier H pull is a non-exception move (contract-review.md:52 excepts only pure regeneration and prose-only moves; area-lease.md:48 says a clean merge keeps the ACCEPT only), so the label now leaves a pull nobody sent back for changes. Defensible, and a derivation, not a copy.
  • landing-operations.md:39 rewrites the watch duty of every enqueued pull, labelled or not: 「一轮巡查内出队修复再入队」 becomes 「一轮内修,复审 PASS 才重挂」. The re-enqueue duty is no longer written and a review precondition is, for pulls the quoted sentence does not speak about.
    Also on the record: ruling comment 7403256916 itself says 「Landing: governed .claude/** → Tier H, os-zhuang approval」 and the PR brief asks the maintainer to approve, while Rule-change: ruled would land it on this record alone. The pull waits for the maintainer.

① Derived judgments

  • No accept-set and no public surface: two skill prose files, no schema, no script, no workflow. Right.
  • The label's leave-set widens from two exits to three (approval, withdrawal ruling, 退回). Right, and it is the ruling.
  • L2 FAIL and an open must-fix or should-fix count as 退回. Right: contract-review.md:51 already refuses a hand-off with either open, so the label now tracks the hand-off's own precondition.
  • A flake re-queue and a kick for a missing approval keep the label. Right: neither changes the head or the verdicts, the pull is still what the maintainer was handed, and this is the behaviour on main.
  • A non-exception head move is a 退回. Right against the tool (--handoff demands the newest ## 席位核对 be newer than the head and a same-head PASS), with the Rule-change note above.
  • Byte ratchet and id-lint: Lint · PM dispatch-gates concluded success on this head.

② Semver level

Clause-②: no — confirmed. The diff touches no packages/spec/src/** path and no published package; nothing is released, so no changeset is owed and skip-changeset (on the pull since 06:19:48Z) is the matching declaration.

Gate state on the head: every check-run is success or an expected skip except Check Changeset, where the opened run 144863155849 concluded failure at 06:19:15Z, before the label landed, and the labeled run 144864553389 was skipped. That is the label race pr-automation.yml documents; the red run still stands on the head and needs a re-run to go green before any landing. A gate state, not a design finding.

③ Boundary flags

  • Dev flags: none raised; no open_questions entry on the card or the pull.
  • Out-of-scope item (a patrol row for a labelled pull whose head moved or whose last queue removal followed a red build): declared out of scope on both the card and the pull, with no follow-up card named. S1 below shows the existing H48 row already reads the bounced state the wrong way round, so the tooling question is live, not optional; it needs a card.
  • SQL push-down (AGENTS.md Prime Directive 5): no code, no query, nothing to push down.

④ Design judgment

.claude/skills/pm-dispatch/SKILL.md and .claude/skills/pm-dispatch/references/landing-operations.md, judged together against the card's scenario (#39400: labelled, then removed from the merge queue three times for a self-caused red with the head unchanged, the label 「stayed on (or was re-added)」).

What holds. The removal is one relay stroke the tools allow (label-write never refuses a removal). The re-add works as claimed: --handoff short-circuits as 「already handed off」 only when the label is on, every approver is covered and a brief is on the thread (label-write.mjs:2170), so with the label off the hand-off after the fix writes the new request comment and the label; with the label left on it would have written nothing. After a fix push, --handoff refuses until a ## 席位核对 newer than the head and a same-head PASS exist, which enforces 「复审 PASS 才重挂」 mechanically.

S1 (should-fix) — The rule does not hold in the card's own scenario between the bounce and the fix push, because two unchanged readers tell the seat to put the label back. references/execution-duties.md:14-15 says each round to check the seat's terminal four-piece pulls at the current head and 「缺件同轮补」, reading label-write.mjs --handoff --dry-run, where exit 7 means a piece is missing. On a #39400-shaped pull (self-caused queue red, head unchanged, ACCEPT and same-head PASS still on the thread) the label is now off by rule, H48 (check-half-states.mjs, h48GovernedVerdictWithoutBrief) reads ACCEPT without the label as a finding whose remedy is 「add pm:awaiting-merge」, the dry run prints now H48 ✗ and exits 7, and a real --handoff passes its record checks and adds the label back. The same holds when the maintainer asks for changes on an unchanged head. That is the 「or was re-added」 half of the observed failure, and the diff leaves it open: nothing in the two changed lines or in execution-duties.md says a 退回 suspends the four-piece duty until the re-review PASS. Fix in skill text: carve the bounced state out of execution-duties.md:14 (or state in landing-operations.md:39 that the per-round 补 does not apply until the re-review PASS), and file the H48 and dry-run reading as the tooling card ③ asks for.

N1 (nit) — landing-operations.md:39 lists 冲突 as a 退回 that needs 「复审 PASS」 with no pointer to the head-move exception, while SKILL.md:206 excludes exception moves and landing-operations.md:85-86 sends a dirty merge to contract-review.md head 后移例外条. A conflict resolved by pure regeneration reads two ways (fresh L2, or the carried record with Regen-provenance:).

N2 (nit) — on the same line 「复审 PASS 才重挂」 has no referent for an enqueued pull that owes no contract review (ungoverned, Clause-②: no), and 重挂 now stands for both re-arming auto-merge and re-adding the label; the earlier text said 再入队 outright.

Implemented-by: claude/project-thread-3eutfb
Reviewed-by: session_016WV4cxiJF5PkqquFk98Bh7

VERDICT: PASS

… the re-review passes

Review 7403521157 S1: the per-round four-piece check would put the label
straight back on a bounced PR whose head did not move. N1: a conflict is a
head move and follows SKILL.md's head-move rule. N2: the line says re-queue
again and names no tier for the re-review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CY7zGwfU72j8D7ANvS
@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7

Contract-review-claim: session_016WV4cxiJF5PkqquFk98Bh7 · head 8c178bb · 2026-12-04T06:32Z
Delta on record 7403521157, on the request of seat repo:objectstack@os-bill (mailbox #39411 comment 7403551155).

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8c178bb31b2f3e3846cb3fe6d2b2847f70bbeeaa
Local-runs: none
Scope: .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/landing-operations.md + none
Rule-change-verified: yes

Delta review of record 7403521157 (head 3d49f724, PASS with S1, N1, N2). Read: the delta 3d49f724..8c178bb3 (one commit, landing-operations.md:39 only, 1 insertion and 2 deletions; net against main 4 insertions and 4 deletions over the same two files), the PR body as it stands, card #39516, and the check-runs on the new head. SKILL.md is byte-identical to the reviewed head.

Rule-change line, still yes against the declared ruled: the PR body's Rule-change: and Ruling-ref: lines are unchanged, and so is the hunk that kept the first record from ruled. SKILL.md:206 still makes every non-exception head move a 退回, a clean merge of main included, which the quoted sentence 「退回修改的时候应该撤掉维护者合并标签」 does not say. The second reason is eased by this delta (再入队 is written again). The new clause 「其间不补四件」 suspends a per-round duty; it follows from the ruling and I do not count it against ruled. The pull waits for the maintainer, as ruling comment 7403256916 (「Landing: Tier H」) and the PR brief both ask.

① Derived judgments

  • No accept-set and no public surface in the delta: one prose line. Right.
  • 冲突 leaves the 退回 list. Right: a conflict is now handled only by landing-operations.md:85-86 (dirty ⇒ merge origin/main, re-arm per the head-move exception), and SKILL.md:206 still takes the label off when that merge is a non-exception move.
  • A bounced pull's four pieces are not re-filled until the re-review passes. Right, and it is what the ruling needs to hold between the bounce and the fix.
  • The other judgments of record 7403521157 stand unchanged.

② Semver level

Clause-②: no — confirmed, unchanged. Nothing published; skip-changeset is on the pull. Check Changeset on the new head is one run, skipped on the label (144869418134); the stale red of the earlier head does not exist here.

Gate state on the new head at the time of writing: every check-run is success or an expected skip, Lint · PM dispatch-gates and Governed Surface Queue Guard included, except Type Check · consumer gates, still in progress after about twelve minutes. No verdict is read from it; a prose-only delta gives it nothing to judge, and the seat reads its conclusion before landing.

③ Boundary flags

④ Design judgment

landing-operations.md:39 now reads: 「谁入队谁看护;退回(自因红、FAIL/前两级、维护者要改)⇒同笔撤挂摘 pm:awaiting-merge,一轮内修;复审过再挂、入队,其间不补四件;flake/缺批准被踢不摘。」

Tried against the changed line: a self-caused queue red with the head unchanged (label off, no re-fill, fix, re-review, re-label and re-enqueue: holds); a FAIL at the hand-off head (label off by line 10 and line 39: holds); a flake kick (label stays: holds); a conflict on a labelled pull (label stays until the merge push, then SKILL.md:206 decides by exception or not: holds).

No must-fix, no should-fix.

Implemented-by: claude/project-thread-3eutfb
Reviewed-by: session_016WV4cxiJF5PkqquFk98Bh7

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

速读 · 技能文字:退回修改(自因红、复审 FAIL、维护者要改)的 PR 同笔摘掉 pm:awaiting-merge,修好复审过再挂回。
要你做什么 · os-zhuang 批准本 PR(Tier H,.claude/**);契约复核 PASS 7403521157,delta PASS 7403841851,Head-sha 8c178bb31b2f3e3846cb3fe6d2b2847f70bbeeaa。
风险 · 只改两处技能文字(+4/−4),不碰代码与产品包。
席位意见 · ACCEPT,批准且全绿后席位落地。

席位核对

ACCEPT · 2026-12-04T06:46Z · head 8c178bb31b2f3e3846cb3fe6d2b2847f70bbeeaa · repo:objectstack@os-bill

  1. Shape: 2 files, +4/−4: .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/landing-operations.md. Fixes #39512; Clause-②: no, Metadata-protocol: none, Rule-change: ruled, Ruling-ref: 7403256916 (the maintainer's project-thread words 2026-12-04T06:11Z). skip-changeset (text only).
  2. Premise measured: seen on fix(spec)!: refuse a field whose inline options repeat a value #39400, labelled while removed from the merge queue three times; the PR body records the stamps.
  3. Gates:
    • Contract review: PASS 7403521157 at 3d49f724 (S1 should-fix, N1 N2), delta PASS 7403841851 at this head, S1 N1 N2 closed, no must-fix or should-fix; both Served-tier: CONTRACT_REVIEW_TIER, Rule-change-verified: yes, by the seat repo:objectstack@os-elon-musk.
    • Ratchet and id-lint green per the PR body; label-write --self-test green.
    • Check-runs at this head: no failure; Type Check · consumer gates and PR-body guards still running at this ACCEPT. The seat lands only on all green.
  4. Accepted deviations: none open.
  5. Out of scope: H48 and --handoff --dry-run still read a bounced PR as missing its label: pm tooling: H48 and --handoff --dry-run re-add pm:awaiting-merge to a PR the seat sent back for rework #39516 (p2), part of pm-dispatch: a PR sent back for changes keeps pm:awaiting-merge, so the maintainer's inbox lists PRs that are not ready #39512.
  6. Landing: Tier H (.claude/** rule text). Waits for os-zhuang's approval; then the seat runs the pre-land checks and lands it.

@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 4, 2026 06:48
@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 4, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review December 4, 2026 08:22
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit 88d1aab Dec 4, 2026
57 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-3eutfb branch December 4, 2026 08:48
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xs skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pm-dispatch: a PR sent back for changes keeps pm:awaiting-merge, so the maintainer's inbox lists PRs that are not ready

3 participants