Repository navigation
Commit 3dfd867
ci(stale): exempt the governed-merges audit card from stale closing (#34065)
<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi97iMBTNTVSni5kLP5hxtETh)_
Fixes #33993
Clause-②: no
Metadata-protocol: none
## 维护者速读
- **改了什么:** `stale.yml` 的 `exempt-issue-labels` 加上
`governed-merges-audit`,上方补一行注释说明原因;其它键不动。
- **为什么改:** 治理合并周审立的卡在受管审批人亲手关之前都是未裁状态。巡查一旦停摆,这张卡 74 天后会被 stale
机器人关掉,而机器人关卡不算裁决,只由这张卡承载的 BREACH 行就此不在任何打开的卡上。与已有的 `tracking` 豁免同理。
- **风险与回滚:** 只影响 stale 机器人跳过带该标签的 issue,不碰 PR 规则、不碰其它 workflow。回滚即还原这一行。
- **先看:** `.github/workflows/stale.yml` 第 53–54 行(新注释与
`exempt-issue-labels`)。
- **两分钟验证:** 看 diff 只有 2 增 1 删;`exempt-issue-labels` 的值读作
`pinned,security,roadmap,tracking,governed-merges-audit`。
- **需要你做的:** 受管文件(`.github/workflows/**`,Tier H),需维护者合并或由
GOVERNED_APPROVERS 批准后由席位落地。
## What changes
- `.github/workflows/stale.yml`: `exempt-issue-labels` now names
`governed-merges-audit`, and one comment line above it gives the reason,
beside the existing `tracking` line.
## Why
The weekly `governed-merges-audit` job in
`.github/workflows/fleet-patrols.yml` files its card with
`ANCHOR_IDENTITY_LABEL: governed-merges-audit` (line 1632 at
`origin/main` fb79d47). Its header states that a close rules the card's
BREACH rows only when the closer is in `GOVERNED_APPROVERS` and that a
stale-bot close rules nothing, and that carried BREACH rows leave the
card only when the maintainer closes it. If the patrol stops, nothing
refreshes the open card, so the stale bot would mark it at 60 days and
close it 14 days later, taking the carried rows off every open card. The
`tracking` exemption already covers the same failure for the half-state
patrol's anchor.
## Tests
No test pins this workflow key; a config-only change carries no
ablation.
## Acceptance notes
None.
## Verification
- `exempt-issue-labels` parses as
`pinned,security,roadmap,tracking,governed-merges-audit` (YAML load of
the edited file).
- `node scripts/pm/check-governed-merges.mjs --branch HEAD`: GOVERNED,
landing tier H (`job:stale` holds a write token).
- No `actionlint` in this container; CI's workflow lint families judge
the file.
<details><summary>Derived gates at d63d5ea: 35 run, all exit 0; --ran
reconciliation 0 NOT-MEASURED</summary>
```
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-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-step-collectors.mjs :: exit 0
node scripts/check-step-collectors.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/docs-audit/check-drift-comment.mjs :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:aggregator-roster :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:declared-population-live :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:node-version :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-expected-skips :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-post-stamped :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pnpm-acquisition :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:required-contexts :: exit 0
pnpm check:shard-attestation :: exit 0
pnpm check:stall-guard-budget :: exit 0
pnpm check:stall-guard-headroom :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:workflow-status-functions :: exit 0
pnpm check:workflow-step-name-quoting :: exit 0
✓ dispatch-gates --ran: 35 derived famil(ies) accounted for — 35 run, 0 NOT-MEASURED
```
</details>
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(n/a: no spec change)
- [x] 2. Every name I added uses the casing for its kind. (no new names)
- [ ] 3. No formatter ran; `pnpm lint` passes. (no formatter ran; `pnpm
lint` is the CI-owned repo scan, not run locally)
- [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. (repo
workflow only: `skip-changeset`)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (n/a)
- [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_01ADHkmRCCWkucpDJMdEL9qC)_
<!-- signed: domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z
-->
Co-authored-by: Claude <noreply@anthropic.com>1 parent 6080387 commit 3dfd867
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
0 commit comments