Repository navigation
Commit 5c5b54d
chore(pm): ensure-pm-labels stops seeding the lease:* labels (#35632)
<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuR8F5nRQPQ47C5tRSxaHjFv)_
Part of #35350
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 用户能看到什么变化:用户无感;建标签的脚本不再建那批「区名」标签。
- 为什么做:你同意不再用区名标签、改在认领评论里写区名;这一步保证标签删掉后不会被脚本重新建回来。
- 出错会怎样:最坏是脚本少建一类已经不用的标签,派发照常;可直接撤回。
- 要你做什么:无。
## What changes
Card item 2, script half only. The ruling on the card (Bill, 2026-11-19
05:57Z, 「同意,立卡更新skills」): no more `lease:*` labels; the area name goes
into the claim comment, with the assignee and the seat's area table; the
old labels are deleted. Item 1 (the skill text) landed in PR #35363.
- `scripts/pm/ensure-pm-labels.sh`: removed the `lease:AREA` family
block (the 18-line comment, the `for A in A1 A2 A3 A4 A5 E1 E2 E2b` loop
and its `gh label create "lease:$A"` line; lines 433-453 at base
a186b2b). A default or `--reconcile` run of the script no longer
recreates `lease:A1`-`A5`, `E1`, `E2`, `E2b` after the seat deletes
them.
- In its place, a six-line absence note in the same form as the file's
existing `target:*` note: ownership is the `Area:` line in the `Claim:`
comment (pm-dispatch `references/area-lease.md`), no reference reads a
`lease:*` label, leftover objects are deleted by a deliberate PM action,
and no row is to be re-added.
- The script's header has no family index naming `lease:*` (the first
`lease` match in the file is line 213, a `release` word), so nothing
else in the file changed. File: 755 to 740 lines (+6 / -21).
Files to read first (by risk): 1. `scripts/pm/ensure-pm-labels.sh`, the
hunk at line 433 (the only hunk).
### Left to the seat: deleting the label objects
Deleting a label object has no relay op, so this PR deletes nothing and
the card stays open. Live `lease:*` set read during this run at head
76d9360 (`GET /repos/objectstack-ai/objectstack/labels`, paginated):
**32 labels**.
- On the card's list (24): `lease:A1`, `lease:A2`, `lease:A3`,
`lease:A4`, `lease:A5`, `lease:E1`, `lease:E2`, `lease:E2b`,
`lease:o1-A`, `lease:o1-B`, `lease:o1-D`; seat 5's nine: `lease:ux-1`,
`lease:ux-2`, `lease:ux-3`, `lease:ai-1`, `lease:data-1`,
`lease:data-2`, `lease:pkg-1`, `lease:pkg-2`, `lease:fleet-1`; other
seats' areas (confirm first, per the card): `lease:o1-C`, `lease:o3-H`,
`lease:o4-A`, `lease:o4-C`.
- Added in the claim: `lease:b1-H` (created 2026-11-19 15:54Z, after the
step had retired).
- Live but on neither list (7): `lease:b1-A`, `lease:b1-B`,
`lease:b1-F`, `lease:b1-G`, `lease:d7-B`, `lease:d7-C`, `lease:d7-D`.
Their owning seats are not recorded on the card; the seat confirms each
before deleting.
## Tests
No package touched, so no package build or test is owed. The script's
own test surface is `check:pm-label-desc-cap` (its `--self-test` runs
the real script under a fake `gh`): exit 0, `50 label descriptions in
scripts/pm/ensure-pm-labels.sh, all ≤100 characters` (floor 12). `bash
-n scripts/pm/ensure-pm-labels.sh`: exit 0. No test file names the
script (`git grep ensure-pm-labels` over test files: no match). No
ablation: no tested behaviour changed.
## Acceptance notes
- `git grep -n 'lease:' -- scripts/pm .github/workflows` after the
change: no line seeds, writes or reads a `lease:*` label. The matches
left are `Release:`/`release:` prose and
`scripts/pm/fleet-token.mjs:521` ("Under the lease:", the token write
lease, not a label).
- The remote branch had been deleted when PR #35587 merged, so the first
push was a plain `git push -u` of a branch made from `origin/main`
a186b2b; no force push was needed.
## Verification
Two-minute check: `grep -c 'gh label create "lease'
scripts/pm/ensure-pm-labels.sh` prints `0`, and `pnpm
check:pm-label-desc-cap` prints the 50-descriptions line.
<details><summary>Derived gate families at 76d9360 (27: 19 exit 0, 8
NOT MEASURED)</summary>
`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 27 commands for the one path. The
worktree has no `node_modules` (S card, no install), so:
- exit 0 (19): `check-self-test-wired` (+ `--self-test`),
`check-whole-set-label-write` (+ `--self-test`),
`ci/plan-test-core-shards --self-test`, `check:adr-anchors`,
`check:agent-test-spelling`, `check:bash32-floor`,
`check:cross-package-test-inputs`, `check:entry-guard`,
`check:gitlink-declared`, `check:nul-bytes`, `check:parse-guard`,
`check:pm-label-desc-cap`, `check:pnpm-filter-targets`,
`check:pnpm-flag-spellings`, `check:refd-timer-probe`,
`check:scripts-symbol-anchors`, `check:watch-hint-literal`.
- NOT MEASURED, exit 3 PREREQUISITE NOT MET (`yaml` not installed) (6):
`check-closing-keyword-parity` (+ `--self-test`),
`check-comment-mask-corpus`, `check:ci-filter-parity`,
`check:cli-command-ids`, `check:driver-memory-census`.
- NOT MEASURED, exit 1 from a missing dependency (2):
`check-self-test-workflow-commands` (+ `--self-test`). The finding is
`release-pending-publish --self-test` printing "Cannot find package
'@changesets/cli'", and the self-test failure is `ci/lane-verdict
--self-test`, which answers PREREQUISITE NOT MET (`yaml`) when run
alone. Neither involves this file.
- `--ran` reconciliation: exit 0, `27 derived famil(ies) accounted for —
19 run, 8 NOT-MEASURED (6 DERIVED from a recorded exit 3, 2 claimed)`.
CI runs all of them with dependencies installed; the PR's check-runs are
the verdict for the eight.
</details>
<details><summary>overlap-check</summary>
`node scripts/pm/overlap-check.mjs --branch=HEAD` at 76d9360: exit 0,
`✓ origin/main: merges cleanly`, `VERDICT clean exit 0` (0 open PR heads
share the file).
</details>
---
_Generated by [Claude
Code](https://claude.ai/code/session_01L6bhgWh7NM35xq2HajeYCx)_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01L6bhgWh7NM35xq2HajeYCx
<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgWh7NM35xq2HajeYCx -->
Co-authored-by: Claude <noreply@anthropic.com>1 parent 6d86b43 commit 5c5b54d
1 file changed
Lines changed: 6 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
454 | 439 | | |
455 | 440 | | |
456 | 441 | | |
| |||
0 commit comments