Skip to content

Commit 76d9360

Browse files
committed
chore(pm): ensure-pm-labels stops seeding the lease:* family
Areas record ownership in the Claim comment's Area: line, beside the assignee and the seat's area table; no reference reads a lease:* label. Remove the seeder loop (lease:A1..A5, E1, E2, E2b) and its comment block so a default or --reconcile run no longer recreates the labels the seat deletes, and leave a one-paragraph absence note in its place. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgWh7NM35xq2HajeYCx
1 parent a186b2b commit 76d9360

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)