Skip to content

Commit a419e3c

Browse files
committed
pm(labels): ensure-pm-labels.sh creates pinned and work-in-progress
stale.yml exempts both labels and neither exists on objectstack-ai/objectstack (both 404), so the exemption was dead; the per-seat mailbox tool also sends pinned on every mailbox PR. Main repo only, sweep-exempt colour family. Claude-Session: https://claude.ai/code/session_01QSeKYmhU5KEj1nukYhp1Tg Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4265176 commit a419e3c

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,37 @@ gh label create needs:upgrade-harness -R objectstack-ai/objectstack -c 006b75 -d
367367
# families.
368368
gh label create needs:contract-review -R objectstack-ai/objectstack -c bfdadc -d "Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides" 2>/dev/null || true
369369

370+
# pinned and work-in-progress — the two STALE-SWEEP EXEMPTION labels. Their
371+
# reader is a WORKFLOW rather than a query: `.github/workflows/stale.yml`
372+
# (actions/stale) skips any issue or PR carrying one of them. Like the needs:*
373+
# rows above they are not PM states, not lanes and not routing seams: one-of
374+
# with nothing, they block no dispatch, and no sweep in scripts/pm/ reads them.
375+
# Measured 2026-10-28 on objectstack-ai/objectstack: both answered 404 — the
376+
# exemption the workflow declares for them was dead, because a label that does
377+
# not exist cannot be applied (triage grade 6464839941 on #27151: create both).
378+
#
379+
# pinned — named readers: stale.yml `exempt-issue-labels` AND
380+
# `exempt-pr-labels`, and `scripts/pm/mailbox-open.mjs` (PR #27143), which sends
381+
# it as STALE_EXEMPT_LABEL in PR_LABELS on every mailbox `pr_create`, so a
382+
# mailbox PR — never merged, often quiet for weeks — is not marked stale at 30
383+
# days and closed 7 days later. Applied by that tool, or by hand to any issue or
384+
# PR that must outlive the sweep.
385+
#
386+
# work-in-progress — one named reader only: stale.yml `exempt-pr-labels`. No
387+
# tool applies it; it is applied by hand to a PR that must survive a quiet
388+
# stretch. It is declared here so that the exemption the workflow already
389+
# declares is not dead — the alternative, editing it out of stale.yml, is a
390+
# Tier H change this file does not make.
391+
#
392+
# Main repo only, for the needs:* rows' reason: the workflow that reads them
393+
# lives here (the other four repos' workflows were not readable from the seat
394+
# that measured this — widening the rows is a vocabulary decision, not a
395+
# maintenance edit). Colour cfd3d7 is the sweep-exempt family `tracking` and
396+
# `status:parked` already share; `tracking` is itself in the same stale.yml
397+
# exemption list.
398+
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
399+
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
400+
370401
# Routing labels exist only on the main backlog repo, and mark SEAM cards only
371402
# (file-at-destination ruling: pure sibling-repo fixes live in the target repo).
372403
#

0 commit comments

Comments
 (0)