Repository navigation
Commit f4a2d14
chore(pm): queue guard refusal hints follow PD14 dequeue; record the live pr_dequeue reading (#34559)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBTFATNfMJ3wCadH4nywTxtZ)_
Part of #33768
Clause-②: no
Metadata-protocol: none
## 维护者速读
- **改了什么**:队列守卫两条拒收提示(受管面、超行数)的第一步改为:在队 PR 由其落地席发中继
`pr_dequeue`,其他席位或该笔未落地才请维护者手动移出;自测钉子同步。`platform-readings.md`
记一行实测出队读数,`landing-operations.md` 一行指给落地席。
- **为什么改**:AGENTS.md 第 14 条(已落地)写明落地席可发
`pr_dequeue`,守卫提示仍说「没有席位动作能出队」,把每个席位都送去找维护者,与规则相反。
- **风险与回滚**:只改提示文字、注释与自测钉子,判定逻辑不动;回滚 = revert 本 PR 一个提交。
- **先看**:`scripts/pm/check-governed-queue-guard.mjs` 1990–1999 与
2959–2968(两条提示正文)、5162–5205(钉子)。
- **两分钟验证**:`node scripts/pm/check-governed-queue-guard.mjs --self-test`
→ 581 cases pass。
- **需要你做的**:批准本 PR(Tier H:守卫是受管面自身的门)。
### AGENTS.md Prime Directive #14, as landed (merge `3bf9c5c4`), quoted
verbatim
> **Already armed or queued when you read this?** Disable auto-merge AND
convert it back to **draft**, which disarms
> an unqueued PR; a queued one's landing seat sends the relay's
`pr_dequeue` (measured live, comment 6902190812); any
> other seat, or a stroke that does not land, asks the maintainer at
once — then confirm from the remote that it is
> in neither the queue nor `origin/main`.
## What changes
**Box A: the queue guard's refusal remedies follow PD14.**
`renderGuardVerdict` and `renderSizeVerdict` step 1 now say: disabling
auto-merge and converting to DRAFT do not take a queued PR out of the
queue; its landing seat sends the relay's `pr_dequeue` AT ONCE (measured
live, comment 6902190812); any other seat, or a stroke that does not
land, asks the maintainer AT ONCE to remove it by hand; then disarm and
confirm from the remote. The old text ("no seat act is measured to take
it out of the queue") is gone. No new rule: the wording is PD14's.
Comments and pins kept in step:
- the remedy-order pin's first position is now `its landing seat sends
the relay's \`pr_dequeue\` AT ONCE` (was `ask the maintainer AT ONCE`);
its assert name drops `MAINTAINER-`;
- the queued pull-back battery's header comment, its `QUEUED_PULL_BACK`
pins (the old "no seat act" and "ask the maintainer" pins replaced by
three: not-out-of-the-queue, landing seat's `pr_dequeue`, any-other-seat
asks the maintainer), its assert name and its battery name (`…: the
landing seat sends the relay dequeue, never a DRAFT conversion`; the
roster row renamed with it, count stays 4);
- the self-test's closing summary sentence.
The DRAFT-dequeue detector and its fixtures are untouched: a draft
conversion still does not dequeue.
**Box B: the measured live dequeue.**
- `platform-readings.md`, queue membership: new row `中继 \`pr_dequeue\`
实测出队(run 43767458575,审计 6902190812):mutation 200,回读离队,仍开未合。` Read off
the run's job log: `pr_dequeue: POST /graphql dequeuePullRequest -> HTTP
200 · #34097 out of the merge queue and still open, unmerged · read back
25 entr(ies), none is #34097 · audit comment 6902190812`.
- `landing-operations.md`, right after the dequeue cause lines: `该 op
实测离队见 \`platform-readings.md\`;在队受管面 PR 亦由落地席发(Prime Directive #14)。`
Paid in-family, both files stay at their ceilings (458, 112):
- `platform-readings.md`: the two lines "不在 `origin/main` 上是二义读数…两者处置相反"
and "⇒ 落地检查恒两个读数…缺一不可" merged into one: `不在 \`origin/main\` 二义(在队等/没入队)⇒
落地检查恒读两数:队列成员资格与 \`origin/main\`。` Cut: "两者处置相反" and "缺一不可", both
carried by "恒读两数".
- `landing-operations.md` §D: "两棒散文互锁时分工由 PM 指派,允许前棒留占位交接。" and "PM
必须在两侧接力指令里写明谁动、谁不动。" merged: `…允许前棒留占位交接;PM 在两侧指令写明谁动、谁不动。` Cut: "必须",
"接力".
## Tests
- `node scripts/pm/check-governed-queue-guard.mjs --self-test`: 581
cases pass (581 at base; the battery's assertion count is unchanged).
- Ablation (scratch copy, restored): changing the size remedy's "So its
landing seat sends" back to an ask-the-maintainer opening → `✗ ⭐
every-size-refusal-kind-carries-the-SAME-pull-back`, 1 of 581 failed.
## Acceptance notes
- Tier H: `scripts/pm/check-governed-queue-guard.mjs` is the governed
surface's own gate. `skip-changeset` (no published file).
- Card boxes for the seat to tick: the two "Follower of PR #34256"
boxes. N1, E1, D2, D4, N2 stay open.
- E1 (removal-to-merge gap) is still not measured: the run log carries
no merge, the PR was dequeued and stayed open.
## Verification
Head `1f35f8d4` on base `ec6b5fd3`:
- `node scripts/pm/dispatch-gates.mjs --commands` derived 70; 68 exit 0;
2 exit 3 (PREREQUISITE NOT MEASURED, left to CI): `pnpm --filter
@objectstack/lint run check:doc-formula-expressions`
(`@objectstack/formula` not built) and `pnpm check:i18n-coverage` (CLI
not built). Neither reads the three files here.
- `--ran`: 70 derived, 68 run, 2 NOT-MEASURED, 0 UNRUN, exit 0.
- Among the 68: `check-governed-queue-guard --self-test` (581 pass),
`pnpm check:pm-skill-ratchet` (platform-readings 458/458,
landing-operations 112/112), `pnpm check:pm-skill-id-lint` (118 files
clean), `check:pm-governed-prose`, `check:scripts-symbol-anchors`,
`check:nul-bytes`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01WGufzfVcrqPWPvsYbkg1XX
Co-authored-by: Claude <noreply@anthropic.com>1 parent ffa6db1 commit f4a2d14
3 files changed
Lines changed: 40 additions & 32 deletions
File tree
- .claude/skills/pm-dispatch/references
- scripts/pm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | | - | |
112 | | - | |
| 112 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
698 | | - | |
| 698 | + | |
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
| |||
1987 | 1987 | | |
1988 | 1988 | | |
1989 | 1989 | | |
1990 | | - | |
1991 | | - | |
| 1990 | + | |
| 1991 | + | |
1992 | 1992 | | |
1993 | | - | |
1994 | | - | |
1995 | | - | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
1996 | 1998 | | |
1997 | 1999 | | |
1998 | 2000 | | |
| |||
2954 | 2956 | | |
2955 | 2957 | | |
2956 | 2958 | | |
2957 | | - | |
2958 | | - | |
| 2959 | + | |
| 2960 | + | |
2959 | 2961 | | |
2960 | | - | |
2961 | | - | |
2962 | | - | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
2963 | 2967 | | |
2964 | 2968 | | |
2965 | 2969 | | |
| |||
4276 | 4280 | | |
4277 | 4281 | | |
4278 | 4282 | | |
4279 | | - | |
4280 | | - | |
| 4283 | + | |
| 4284 | + | |
| 4285 | + | |
4281 | 4286 | | |
4282 | 4287 | | |
4283 | 4288 | | |
4284 | 4289 | | |
4285 | 4290 | | |
4286 | | - | |
| 4291 | + | |
4287 | 4292 | | |
4288 | | - | |
| 4293 | + | |
4289 | 4294 | | |
4290 | 4295 | | |
4291 | 4296 | | |
| |||
5154 | 5159 | | |
5155 | 5160 | | |
5156 | 5161 | | |
5157 | | - | |
| 5162 | + | |
5158 | 5163 | | |
5159 | 5164 | | |
5160 | | - | |
5161 | | - | |
| 5165 | + | |
| 5166 | + | |
5162 | 5167 | | |
5163 | | - | |
5164 | | - | |
5165 | | - | |
| 5168 | + | |
| 5169 | + | |
| 5170 | + | |
| 5171 | + | |
| 5172 | + | |
5166 | 5173 | | |
5167 | 5174 | | |
5168 | 5175 | | |
5169 | 5176 | | |
5170 | 5177 | | |
5171 | | - | |
| 5178 | + | |
5172 | 5179 | | |
5173 | 5180 | | |
5174 | | - | |
5175 | | - | |
5176 | | - | |
| 5181 | + | |
| 5182 | + | |
| 5183 | + | |
| 5184 | + | |
5177 | 5185 | | |
5178 | 5186 | | |
5179 | 5187 | | |
| |||
5192 | 5200 | | |
5193 | 5201 | | |
5194 | 5202 | | |
5195 | | - | |
| 5203 | + | |
5196 | 5204 | | |
5197 | 5205 | | |
5198 | 5206 | | |
| |||
6903 | 6911 | | |
6904 | 6912 | | |
6905 | 6913 | | |
6906 | | - | |
6907 | | - | |
| 6914 | + | |
| 6915 | + | |
6908 | 6916 | | |
6909 | 6917 | | |
6910 | 6918 | | |
| |||
0 commit comments