Repository navigation
Commit 77d7f52
chore(pm): governed approvers are os-zhuang alone (hotlong removed) (#34671)
<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9MvxuzfDMfyAL28bsgrUsox)_
Fixes #34626
Clause-②: no
Metadata-protocol: none
## 维护者速读
- **改了什么**:受管改动的批准账号从 os-zhuang 加 hotlong 两个,减成只有 os-zhuang。改在批准账号常量、它在
ui/ 下的副本、CODEOWNERS,以及跟着两人写死的自测。
- **为什么改**:你 2026-11-17 在分诊会话里的原话「hotlong 从批准账户中去掉,只保留
os-zhuang」。hotlong 在跑席位,而批准账号不能跑席位。
- **风险与回滚**:落地后 hotlong 的批准、入队都不再放行受管 PR,hotlong 账号写在 GitHub
上的评论也不再被工具当作维护者亲笔或可信记录。现在开着的 PR 里没有一个只靠 hotlong 批准。回滚就是 revert 本 PR。
-
**先看**:`scripts/pm/check-governed-queue-guard.mjs`(常量和新裁决说明)、`.github/CODEOWNERS`、`scripts/pm/fleet-write/execute.mjs`(中继的自测注入口)。
- **两分钟验证**:`node scripts/pm/check-governed-queue-guard.mjs
--self-test`,预期 581+ 例全过,其中一例写明「只有 hotlong 批准的 head 读作未批准」。
- **需要你做的**:用 os-zhuang 批准本 PR(受管面,Tier H),席位随后落地。
## What changes
The maintainer's order, given in the triage session on 2026-11-17 at
about 03:50Z, verbatim: 「hotlong 从批准账户中去掉,只保留 os-zhuang」. It supersedes
the membership of the 2026-08-27 set (「os-zhuang hotlong 批准算数」); every
docblock that quoted that ruling keeps it as history, marked superseded,
and cites the new one with its date.
- `scripts/pm/check-governed-queue-guard.mjs`: `GOVERNED_APPROVERS` is
`['os-zhuang']`. The header gains a fourth dated layer (2026-11-17), the
2026-08-27 and 2026-10-26 passages say which half the new order
superseded, and the two rendered remedy lines that named the old set now
name the new one. Self-test: the membership pin is the one account; new
cases pin that a head approved only by `hotlong` reads unapproved, that
an enqueue by `hotlong` reads unauthorized, and that `hotlong` is not in
the set. Cases that used `hotlong` as an authorized login, or indexed
`GOVERNED_APPROVERS[1]`, use `os-zhuang` (the CODEOWNERS mirror's
negative cases use the removed login as the wrong owner).
- `scripts/pm/check-governed-merges.mjs`: the weekly-audit N10 cases
read the approver list through `loadAuditRulingAccounts()` (the guard's
constant, as the job loads it) instead of a second literal
`['os-zhuang', 'hotlong']`, with a pin that it equals `os-zhuang`; a
hand close by `hotlong` is pinned as ruling nothing. Cases that used
`hotlong` as the authorizing login use `os-zhuang`.
- `ui/scripts/check-governed-queue-guard.mjs`: the ui copy of
`GOVERNED_APPROVERS` moves with the root one, its docblock records the
2026-11-17 order, and its self-test pins the one account and refuses a
`hotlong`-only approval. Each copy has its own pin to the ruling, so
neither can drift silently.
- `.github/CODEOWNERS`: every governed row names `@os-zhuang` only; the
header records the new order with its date and keeps the old one and the
old `hotlong` verification as history.
- `scripts/pm/check-half-states.mjs` (overlap-check against open #34110:
clean): the two comments that named the pair now read the 2026-11-17
set, and the H43 fixture `APP43` is marked as an injected two-account
set, not the live roster.
### Forced test changes (named)
- `scripts/pm/check-half-states.mjs`, case `H43 register: the imported
matcher answers governed and clear, and the approver set is non-empty`:
it asserted `approvers.length >= 2`; it now asserts a non-empty set,
which is what its title says.
- `scripts/pm/fleet-write/execute.mjs`, battery `the governed-review
follow-up`: 16 cases destructured `const [A1, A2] = GOVERNED_APPROVERS`
and went red with one account. The relay's follow-up gains an
`approvers` deps seam (default `GOVERNED_APPROVERS`; no behaviour change
for the relay), and the battery runs against an injected pair whose
first member is the live constant's first account, so the two-account
union and the author-identity branch stay exercised. Two new cases pin
the live wiring with nothing injected: the plan and an end-to-end
`pr_ready` request `os-zhuang` alone.
## Acceptance notes
- **Who else reads the constant.** `GOVERNED_APPROVERS` is also the
trusted-author half of `recordTrustedAuthors` (records read by the queue
guard, `check-owed-reviews`, `label-write`, the H43 hand-off), the
mailbox knock authors (`readMailboxComment`) and the audit's ruling
closes. From this merge a comment or close authored by `hotlong` on
GitHub is no longer read as the maintainer's or as a trusted record.
Records a seat writes through the relay (`objectstack-fleet[bot]`) are
unaffected. Records `hotlong` writes directly are not: for example the
`Claim:` on #34659 (comment 6939887560, authored by `hotlong` on
2026-11-17T05:47Z) is a direct write, and from this merge only a record
written through the relay counts; a `hotlong`-authored one is no longer
trusted, consistent with #33541. The importers' self-tests pass
unchanged.
- **In-flight governed PRs.** Measured 2026-11-17 ~05:40Z with the
search API: no open PR in this repository carries a review by `hotlong`
(`reviewed-by:hotlong` → 0), so no head loses its only approval. Four
open PRs still list `hotlong` as a requested reviewer: #34612, #34600
(which requested both `os-zhuang` and `hotlong`), #34524 and the Version
Packages PR #33849. A pending request does not count for anything; after
this lands, only an `os-zhuang` approval lands them. The seat re-reads
this list at merge time.
- **Seats running as `hotlong`** (triage#1, repo:cloud#5, the local
coordinator) become compliant with the account rule that an approver
never runs a seat. No seat change is needed.
- **#33011** (named on the card as "one open PR has a `hotlong` review")
is an open p3 issue in this repository, not a pull request, and carries
no review. No PR with that number exists to list.
- Follow-up: #34680 (the second `GOVERNED_APPROVERS` table in
`ui/scripts/check-governed-queue-guard.mjs`; this PR only aligns its
value).
- Not touched: `scripts/pm/check-governed-merges.mjs:1049` (a dated
reading, `merged_by: hotlong`), `check-prior-rulings.mjs` and
`fleet-roster.mjs` fixtures, and ADR-0130's evidence line. They record
history or use the login as plain data, not as an approver.
## Verification
Head `fd6c64c745b2d22d5ec0145a53f2dd390a9f0134` (main e533651 merged
in).
<details><summary>Self-tests of every script that reads
GOVERNED_APPROVERS</summary>
```
node scripts/pm/check-owed-reviews.mjs --self-test :: exit 0
✓ check-owed-reviews self-test: 91 cases pass in 10 batteries (the owed face from paths, the Clause-② line…
node ui/scripts/check-governed-queue-guard.mjs --self-test :: exit 0
OK check-governed-queue-guard self-test: 183 cases pass (the six ruled surfaces pinned in both directions incl…
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
✓ check-governed-queue-guard self-test: 581 cases pass (register-driven verdicts, the queue/PR event split,…
node scripts/pm/fleet-write/execute.mjs --self-test :: exit 0
✓ fleet-write/execute self-test: 426 cases pass across 30 batteries — the sender gate from the target repo…
node scripts/pm/check-governed-merges.mjs --self-test :: exit 0
✓ check-governed-merges --self-test: 911 assertions (the unified governed predicate + near misses, subject…
node scripts/pm/check-half-states.mjs --self-test :: exit 0
✓ check-half-states self-test: 5313 cases pass. Batteries: H66 released queue card 182/172, H19 judged-set f…
node scripts/pm/label-write.mjs --self-test :: exit 0
✓ label-write self-test: 277 cases pass across 17 batteries — the union/difference arithmetic, the ONE-OF…
node scripts/pm/record-recognisers.mjs --self-test :: exit 0
✓ record-recognisers self-test: 451 cases pass (the locator on either thread with its recognition dialects,…
npx eslint scripts/pm/check-governed-queue-guard.mjs scripts/pm/check-governed-merges.mjs scripts/pm/check-half-states.mjs scripts/pm/fleet-write/execute.mjs ui/scripts/check-governed-queue-guard.mjs :: exit 0
```
</details>
<details><summary>Derived gate round (dispatch-gates --commands, 82
commands)</summary>
Every command ran on head `fd6c64c745` with stdin closed; exit codes
captured before any pipe. The record is
`objectstack-seat2/34626-gates-ran.txt` on the project share.
```
dispatch-gates --commands → 82 commands
80 :: exit 0 on the first pass
pnpm check:i18n-coverage :: exit 3 (prerequisite: no CLI build) → after a full `pnpm build` (lock VERDICT command-exit 0, 12m49s) :: exit 0
pnpm --dir ui exec vitest run scripts/ :: exit 1 (56 failures, all reading an unbuilt @objectstack/spec / ui dist) → after the build :: exit 0, Tests 5077 passed | 2 skipped
dispatch-gates --ran → 82 derived, 82 run, 0 NOT-MEASURED, 0 UNRUN
```
CI on the same head: every required context green, including `Governed
Surface Queue Guard`, `Lint & Repo Gates`, `Test Core`, `Test UI` and
`Dogfood Regression Gate`.
</details>
<details><summary>overlap-check</summary>
```
node scripts/pm/overlap-check.mjs --pr=34110 → VERDICT clean exit 0 (with the half-states commit on the branch)
node scripts/pm/overlap-check.mjs → VERDICT clean exit 0
```
</details>
---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmQ6PjSaHTK32B2RjNT)_
<!-- signed: repo:objectstack#2 · os-steve ·
session_01ADHkmQ6PjSaHTK32B2RjNT -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 0d0a088 commit 77d7f52
6 files changed
Lines changed: 216 additions & 148 deletions
File tree
- .github
- scripts/pm
- fleet-write
- ui/scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9675 | 9675 | | |
9676 | 9676 | | |
9677 | 9677 | | |
9678 | | - | |
| 9678 | + | |
9679 | 9679 | | |
9680 | | - | |
9681 | | - | |
| 9680 | + | |
| 9681 | + | |
9682 | 9682 | | |
9683 | 9683 | | |
9684 | | - | |
| 9684 | + | |
9685 | 9685 | | |
9686 | 9686 | | |
9687 | 9687 | | |
| |||
11043 | 11043 | | |
11044 | 11044 | | |
11045 | 11045 | | |
11046 | | - | |
| 11046 | + | |
| 11047 | + | |
| 11048 | + | |
| 11049 | + | |
| 11050 | + | |
| 11051 | + | |
11047 | 11052 | | |
11048 | 11053 | | |
11049 | 11054 | | |
| |||
11052 | 11057 | | |
11053 | 11058 | | |
11054 | 11059 | | |
| 11060 | + | |
11055 | 11061 | | |
11056 | 11062 | | |
11057 | 11063 | | |
11058 | 11064 | | |
11059 | 11065 | | |
11060 | 11066 | | |
11061 | | - | |
11062 | | - | |
11063 | | - | |
| 11067 | + | |
| 11068 | + | |
| 11069 | + | |
11064 | 11070 | | |
11065 | | - | |
| 11071 | + | |
11066 | 11072 | | |
11067 | 11073 | | |
11068 | 11074 | | |
11069 | 11075 | | |
11070 | | - | |
| 11076 | + | |
11071 | 11077 | | |
11072 | 11078 | | |
11073 | 11079 | | |
| |||
0 commit comments