Repository navigation
Commit 8fb9fbf
pm(check-owed-reviews): drop the account bar on L2 seats; independence is per session (#34557)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB3L6MKM5wqJ1AYk148uoD5t)_
Fixes #34400
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:欠审表工具 `check-owed-reviews.mjs` 不再按账号禁 L2 席;删掉 `barred`/`unjudged`
席位状态、区域租约注释和对应自测。
- 为什么改:你在 #33258 裁定 A「按会话,修工具」;规则文本早已写明不限账号,工具还在禁同账号席,导致欠审表把 review#2 标成
barred、只给 review#1 派活。
- 风险与回滚:只是报告工具(退出码恒 0,不写任何东西),不影响合并门禁;回滚即 revert 本 PR。
- 先看:`scripts/pm/check-owed-reviews.mjs` 的 `reviewSeatsOf`(账号判断已删)和
`takerOf`(不再拼 barred 说明)。
- 两分钟验证:`node scripts/pm/check-owed-reviews.mjs --self-test` 通过;`node
scripts/pm/check-owed-reviews.mjs | grep -c barred` 预期为 0。
- 需要你做的:无,席位落地。
## The ruling
Maintainer ruling A on #33258, comment 6917060639, verbatim:
> 「A 按会话,修工具」 — 「同账号的审核席可以审本账号的
PR,只要审核会话不是开发会话。规则不动,立卡删掉工具里的账号禁令。今天已出的记录都有效。」
`references/lanes/l2-review.md` 〈独立性与边界〉, unchanged: 「记录恒带
`Implemented-by:`/`Reviewed-by:` 对,两会话相异;⛔ 不限账号,派发账号亦可坐。」
## What changes
`scripts/pm/check-owed-reviews.mjs` only (+38 / −99):
- `reviewSeatsOf(seats)` no longer takes or reads accounts. Its states
are `seated`, `stood-down`, `absent`, `unknown`; the `barred` and
`unjudged` states and the `barred` array are gone.
- `ownAccountsOf` is deleted, and so is its call in `owedReviewRow`. The
row loses `reviewBarred`.
- `takerOf` no longer appends "L2 seat … is on this PR's own account" to
the lane taker.
- `renderRow` no longer prints `(barred …)`.
- `AREA_LEASE_BAR_NOTE` and `reportNotes` are deleted, along with the
`⚖️` note in `renderReport`, the `notes` key of `--json` and its usage
line.
- The now-unused `CLAIM_COMMENT_MARKER` and `markerMatches` imports are
dropped.
- The header doc's L2-seat and taker paragraphs now say no account is
read.
The record's own `unjudged` state, when a thread can't be read, is
unchanged. It belongs to the record, not to a seat.
## Tests
The self-test went from 97 to 91 cases, still in 10 batteries. The L2
battery floor goes **24 → 18**, with the reason recorded beside the
floor:
- Eight cases are retired with the bar. They were the `ownAccountsOf`
reading; S2 ×3 (implementing account, dispatching account, lane gone);
"⛔ S2: the delta of its own record, the signer now barred" (review#2's
N3); S4 unjudged; S4 empty card thread; and the area-lease note.
- One new case pins **same account, different session ⇒ eligible**. L2
seats on the PR's implementing account (the attribution login) and its
dispatching account (the card claim's signer) both read `seated` and are
named. The row has no `reviewBarred`, and the report prints no `barred`,
`area-lease` or `⚖️` line. The label row stays the lane's, the seat on
the implementing account takes the delta of its own record, and with the
lane gone the lane's next seat takes it with no bar suffix.
- One case keeps the part of the old S4 that never needed the bar. An
unreadable card thread leaves the record `unjudged`, so no own delta
names an L2 seat and the lane takes. The seats still read `seated`.
- The `--json` case now checks that the document carries no `notes` key
and the row no `reviewBarred`.
## Acceptance notes
- **Seat correction (dispatch order).** The order asked to keep "the
session-pair reading (`Implemented-by:` / `Reviewed-by:`)" and to add a
"same session ⇒ not eligible" case. Measured at `ec6b5fd3`, this tool
has no session-pair reading. It reads `Reviewed-by:` only to print who
signed a record (`reviewedByOf`), it never reads `Implemented-by:`, and
seat posts give it an account, not a session. The seat ruled (option B)
that adding a session reading would be new behaviour the ruling did not
ask for. So only case 1 is pinned, and "same session ⇒ not eligible" is
not measurable in this tool: the queue guard reads the record's pair.
The order's premise was the seat's error.
- **`dispatch-runbook.md` line 44 is untouched.** Since #34393 it reads
「- L2 欠审:每席巡查跑 `check-owed-reviews.mjs`,只接 take 点名本席的行。」, with no
account wording left (review#2's N1 is already met). So this PR touches
no governed path and stays ungoverned.
- The rule text in `contract-review.md` line 26 (「他席皆禁之 head」) is
unchanged. A bar is still a per-session fact this reader never sees, and
it reaches the L2 seat through a hand-off line, as the header says.
## Verification
<details><summary>Live reading, before and after (report-only tool, run
against the board)</summary>
- **Before** (`origin/main` `ec6b5fd3`, 2026-11-17T00:18Z): 70 open PRs
read, 36 owe a review. **12 rows print `L2 seat barred (barred
l2-review#3,review#2)`**: WAIT #34238 #34333 #34355 #34439 #34477 #34503
#34513, HELD #34494, DONE #34347 #34429 #34483 #34501. The `⚖️ barred =
…` area-lease note printed once, so `grep -c barred` = 13.
- **After** (this branch, 2026-11-17T00:20Z): 72 open PRs read, 37 owe a
review. `grep -c barred` = **0**, `grep -c ⚖️` = 0, and `grep -c
unjudged` = 0. Every L2 seat reads `seated l2-review#3,review#2`.
</details>
<details><summary>Gates</summary>
`dispatch-gates --commands` derived 32 families from this change set,
and each was run on head `8a6bf57a`:
```
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-declaration-mirrors.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs --self-test :: 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-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:bash32-floor :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:ratchet-remedy-authority :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:scripts-symbol-anchors :: exit 0
pnpm check:watch-hint-literal :: exit 0
```
`dispatch-gates --ran`: 32 derived, 32 run, 0 NOT-MEASURED, 0 UNRUN
(exit 0). Also run: `node scripts/pm/check-owed-reviews.mjs --self-test`
passes 91 cases in 10 batteries (exit 0), and eslint on the file passes
(exit 0). No skill file was touched, so the pm-skill ratchet and id-lint
gates were not owed.
</details>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01WGufzhScbCkSBGiFaDrxK9
Co-authored-by: Claude <noreply@anthropic.com>1 parent c77f8ca commit 8fb9fbf
1 file changed
Lines changed: 38 additions & 99 deletions
0 commit comments