Skip to content

Commit 5c5b54d

Browse files
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

File tree

‎scripts/pm/ensure-pm-labels.sh‎

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -430,27 +430,12 @@ gh label create needs:contract-review -R objectstack-ai/objectstack -c bfdadc -d
430430
gh label create pinned -R objectstack-ai/objectstack -c cfd3d7 -d "Exempt from the stale sweep (stale.yml, issues and PRs); every pm:mailbox PR carries it" 2>/dev/null || true
431431
gh label create work-in-progress -R objectstack-ai/objectstack -c cfd3d7 -d "PR exempt from the stale sweep (stale.yml exempt-pr-labels); applied by hand, no tool sets it" 2>/dev/null || true
432432

433-
# lease:<area> — the AREA-LEASE family (.claude/skills/pm-dispatch/references/
434-
# area-lease.md). An area session hangs `lease:<area>` in the same write as its
435-
# dispatch pair when it claims a card, and reads it back with the pair; every
436-
# other area that reads a foreign `lease:*` on a card leaves the card alone. Those
437-
# two area-lease.md lines are the named readers; no script in scripts/pm/ reads
438-
# the family, and label-write.mjs sends it like any other label.
439-
#
440-
# The values are the lease table's area names, and the table is re-derived at
441-
# every seat, hand-over or shift (area-lease.md 〈分不分区,动态定〉), so the loop
442-
# below seeds the CURRENT table only — today the server lane's eight pilot areas,
443-
# whose objects already exist as GitHub's auto-created grey with an empty
444-
# description, which only `--reconcile` repairs. When a lane re-cuts its table,
445-
# MOVE the values here, as the release-board loop further down moves its window;
446-
# a retired area's object stays on its closed cards as history and needs no row.
447-
# A value with no row is auto-created grey on first use, so it owes one. Main
448-
# repo only: every lane that runs the mode keeps its cards here. Colour 0052cc is
449-
# outside every family above — a lease is an ownership seam, not a state, a lane
450-
# or a marker.
451-
for A in A1 A2 A3 A4 A5 E1 E2 E2b; do
452-
gh label create "lease:$A" -R objectstack-ai/objectstack -c 0052cc -d "Area lease $A: the card belongs to that area's thread session; other areas leave it alone" 2>/dev/null || true
453-
done
433+
# No `lease:<area>` family. An area's ownership of a card is the `Area:` line in
434+
# its `Claim:` comment, beside the assignee and the seat's area table
435+
# (pm-dispatch references/area-lease.md), so no reference reads a `lease:*`
436+
# label and this file seeds none. The leftover `lease:*` objects are deleted by
437+
# a deliberate PM action, never a side effect of this file; ⛔ do not re-add a
438+
# row here: any seeded value recreates a label that action removed.
454439

455440
# Routing labels exist only on the main backlog repo, and mark SEAM cards only
456441
# (file-at-destination ruling: pure sibling-repo fixes live in the target repo).

0 commit comments

Comments
 (0)