Repository navigation
Commit 499266d
chore(pm): stop teaching target: as the release-blocker mark in three PM tools (#34113)
<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi95MtRuVUJMXGzrVSFps2r9x)_
Fixes #32956
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:三个 PM
工具(`ensure-pm-labels.sh`、`record-recognisers.mjs`、`check-half-states.mjs`)不再把
`target:` 标签说成发版阻塞标记;`ensure-pm-labels.sh` 停止创建 `target:v17`。
- 为什么改:现行规则下发版阻塞只在发版窗内升 `priority:p0`,其余一概不算;工具还在教旧的 `target:`
板,信工具的席位会打一个发版清单不再读的标签,阻塞卡就看不见了。
- 风险与回滚:只改 `scripts/pm/` 内部工具的注释、说明文字和一条信箱表行,不改任何判定、不发布任何包;已存在的
`target:*` 标签对象原样保留。回滚即还原本 PR 的提交。
- 先看:`scripts/pm/ensure-pm-labels.sh` 末尾原 `target:`
循环处(删循环、换成说明);`record-recognisers.mjs` 的 `notify:release-blocker`
行;`check-half-states.mjs` H67 摘要句与其自测断言。
- 两分钟验证:`node scripts/pm/check-half-states.mjs --self-test && node
scripts/pm/record-recognisers.mjs --self-test && node
scripts/pm/check-label-desc-cap.mjs`,预期三条全过、无 `target:` 字样被当作阻塞标记。
- 需要你做的:无,席位落地。(另:仓里现存的 `target:*` 标签对象删不删由你定,本 PR 不删。)
## What changes
- `scripts/pm/ensure-pm-labels.sh`
- The `target:MAJOR` loop is removed: the file no longer seeds
`target:v17` in objectstack, objectui and cloud. In its place, a comment
says why there is no `target:` family: a release blocker is
`priority:p0` inside the release window and nothing else
(`references/filing-gate.md` 定级判据, which says 「⛔ 不打 `target:`」), and the
maintainer's release list is `label:priority:p0 is:open` per repo
(`references/seat-post-protocol.md` 〈发版板运维〉).
- Seeding was stopped rather than reworded because nothing reads the
label as the script described it (see Acceptance notes for the search),
and `--reconcile` would actively rewrite an existing `target:v17`
object's description to "Release blocker for v17". Existing `target:*`
objects are left exactly as they are, the same way the header already
treats a retired lane's objects.
- The objectos, hotcrm and mobile enrolment comments drop the clause
"OUT of the target:MAJOR loop", since that loop no longer exists.
- The `priority:p0` and `pm:blocking` comments named the old pull order
(`p0 > pm:blocking > target board > Bug > …`, citing a `SKILL.md 选择优先级`
section that no longer exists). They now name the current label order
(`p0 > pm:blocking > 功能点位次 > p1 > p2 > p3`,
`references/execution-duties.md` 取卡全序), and the p0 comment says a
release blocker sits there as p0 inside the window.
- `scripts/pm/record-recognisers.mjs`: the `notify:release-blocker`
roster row now reads `from:` the release-board producer (the director
seat in this repository; the whole-repository seat in cloud), `to:` the
lane the card sits in, `when:` a card is raised to `priority:p0` as a
release blocker inside the release window. This matches
`project-forms.md` (「发版板生产者→车道 `Notify: release-blocker`」) and
`seat-post-protocol.md` 〈发版板运维〉. The key, template and field reader are
unchanged, so every knock that read before still reads.
- `scripts/pm/check-half-states.mjs` (H67 area, report-only, no verdict
change): the block comment and the `H67_SELECTION_ORDER_LABELS` docblock
said the plan skips "`target:` board membership". They now name the legs
it really skips (功能点位次, and the two legs above the label order) and say
a release blocker needs no leg of its own because it is `priority:p0`,
which the first rank already reads. The H67 coverage clause in the
summary line says the same in one sentence.
- **Forced test edit:** the H67 battery case "what the order does NOT
model" asserted the old phrase `⛔ not \`target:\` board membership`; it
now asserts `⛔ not the 功能点位次 leg`. Battery count unchanged (158/158).
## Why
The p0-only ruling (card #32906, landed by PR #32918) made `priority:p0`
inside the release window the only release-blocker mark. These three
tools still taught the old `target:` board in their help, label
descriptions and findings, so a seat that trusted the tool over the
reference would write a label the maintainer's release query no longer
reads, and the blocker would be invisible.
## Tests
- `node scripts/pm/check-half-states.mjs --self-test` → exit 0, `5278
cases pass` (H67 battery 158/158).
- `node scripts/pm/record-recognisers.mjs --self-test` → exit 0, `399
cases pass`.
- `node scripts/pm/check-label-desc-cap.mjs` → exit 0, `46 label
descriptions … all ≤100 characters`; `--self-test` → exit 0.
- `bash -n scripts/pm/ensure-pm-labels.sh` → exit 0.
- `node scripts/pm/check-skill-line-ratchet.mjs --self-test` → exit 0,
`164 cases pass` (it pins the mailbox roster against
`project-forms.md`).
- `pnpm check:pm-skill-id-lint` → exit 0.
No ablation: the diff changes comments, descriptions and one roster
row's prose, not a tested behaviour.
## Acceptance notes
- Readers of `target:` searched at base 27c2f1e (`git grep` for
`target:v1N`, `label:target`, `target:*` and quoted `target:` across the
repo): no script, workflow or reference reads a `target:` label as a
release blocker. Two human-facing mentions remain outside this card's
surface: `ROADMAP.md` points readers at "milestones and the `target:*`
labels" for release targets (a planning use, not a blocker), and
`references/lanes/hotcrm.md` says hotcrm has no `target:*` labels (still
true). Neither is changed here.
- `scripts/pm/check-label-desc-cap.mjs` keeps `"Release blocker for $V
…"` / `for V in v17` in its header as the example of shell-variable
expansion, and its self-test uses the same literal. The example no
longer exists in the file it reads; it is a stale example, not a rule,
and it is outside this card's file surface. carrier: none.
- Whether the existing `target:*` label objects are deleted is the
maintainer's call; this PR deletes nothing.
## Verification
Local gate round on head `633f9b78` (after the last commit): `node
scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 49 commands from the three
`scripts/pm/` paths; all 49 ran, all exit 0. Eleven of them first
stopped at `PREREQUISITE NOT MET` (exit 3, no `node_modules`); they were
re-run after `pnpm install --frozen-lockfile` and the codes below are
from that run. `--ran` reconciliation: `49 derived famil(ies) accounted
for — 49 run, 0 NOT-MEASURED`. `check:pm-dispatch-gates` fast tier:
`2205 cases pass; 9 slow section(s) deferred`. Every family CI runs is
read from this PR's check-runs, not re-run here.
<details><summary>The 49 commands and their exit codes (head
633f9b7)</summary>
```text
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs --self-test :: exit 0
node scripts/check-issue-citations.mjs :: exit 0
node scripts/check-platform-checklist-watchdog.mjs :: exit 0
node scripts/check-platform-checklist-watchdog.mjs --self-test :: exit 0
node scripts/check-release-section-coverage.mjs :: exit 0
node scripts/check-release-section-coverage.mjs --strict :: exit 0
node scripts/check-self-test-wired.mjs :: exit 0
node scripts/check-self-test-wired.mjs --self-test :: exit 0
node scripts/check-self-test-workflow-commands.mjs :: exit 0
node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0
node scripts/check-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/ci/scheduled-full-run.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
node scripts/pm/board-snapshot.mjs --self-test :: exit 0
node scripts/pm/sweep-closed-cards.mjs --self-test :: exit 0
node scripts/render-release-coverage-anchor.mjs --self-test :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:bash32-floor :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:closing-target-claim :: exit 0
pnpm check:commit-card-trailers :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:issue-citations :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:partof-closing-keyword :: exit 0
pnpm check:platform-checklist :: exit 0
pnpm check:pm-half-states :: exit 0
pnpm check:pm-label-desc-cap :: exit 0
pnpm check:pm-post-stamped :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:ratchet-remedy-authority :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:scripts-symbol-anchors :: exit 0
pnpm check:single-claim-paths :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
```
</details>
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(not touched)
- [x] 2. Every name I added uses the casing for its kind. (no names
added)
- [x] 3. No formatter ran; `pnpm lint` passes. (CI)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
(`scripts/pm/**` only: `skip-changeset`)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (not touched)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmNsgz1yr8QLLGrbGJ7)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent d2b6232 commit 499266d
3 files changed
Lines changed: 36 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17746 | 17746 | | |
17747 | 17747 | | |
17748 | 17748 | | |
17749 | | - | |
17750 | | - | |
17751 | | - | |
| 17749 | + | |
| 17750 | + | |
| 17751 | + | |
| 17752 | + | |
| 17753 | + | |
| 17754 | + | |
| 17755 | + | |
17752 | 17756 | | |
17753 | 17757 | | |
17754 | 17758 | | |
| |||
17787 | 17791 | | |
17788 | 17792 | | |
17789 | 17793 | | |
17790 | | - | |
17791 | | - | |
17792 | | - | |
| 17794 | + | |
| 17795 | + | |
| 17796 | + | |
| 17797 | + | |
17793 | 17798 | | |
17794 | 17799 | | |
17795 | 17800 | | |
| |||
19278 | 19283 | | |
19279 | 19284 | | |
19280 | 19285 | | |
19281 | | - | |
| 19286 | + | |
| 19287 | + | |
19282 | 19288 | | |
19283 | 19289 | | |
19284 | 19290 | | |
| |||
36592 | 36598 | | |
36593 | 36599 | | |
36594 | 36600 | | |
36595 | | - | |
| 36601 | + | |
36596 | 36602 | | |
36597 | 36603 | | |
36598 | 36604 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
| 171 | + | |
| 172 | + | |
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
| |||
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
182 | | - | |
183 | | - | |
184 | | - | |
| 181 | + | |
| 182 | + | |
185 | 183 | | |
186 | 184 | | |
187 | 185 | | |
188 | 186 | | |
189 | 187 | | |
190 | 188 | | |
191 | | - | |
| 189 | + | |
192 | 190 | | |
193 | 191 | | |
194 | 192 | | |
| |||
247 | 245 | | |
248 | 246 | | |
249 | 247 | | |
250 | | - | |
251 | | - | |
252 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
708 | 696 | | |
709 | 697 | | |
710 | 698 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1347 | 1347 | | |
1348 | 1348 | | |
1349 | 1349 | | |
1350 | | - | |
| 1350 | + | |
1351 | 1351 | | |
1352 | 1352 | | |
1353 | 1353 | | |
| |||
0 commit comments