Skip to content

pm(check-owed-reviews): drop the account bar on L2 seats; independence is per session - #34557

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-47uc27
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-47uc27

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #34400

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:欠审表工具 check-owed-reviews.mjs 不再按账号禁 L2 席;删掉 barred/unjudged 席位状态、区域租约注释和对应自测。
  • 为什么改:你在 [PM seat] review · seat 2 — 🟢 os-project-manager · 由 os-project-manager 账户的项目负责 #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 pm-dispatch: the L2 seat is the fallback for lanes that cannot reach the contract-review tier #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

Live reading, before and after (report-only tool, run against the board)
Gates

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.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzhScbCkSBGiFaDrxK9

…e is per session

Ruling A on #33258 (6917060639): an L2 seat may review a PR its own
account dispatched or implemented, so long as the reviewing session is
not the implementing one. lanes/l2-review.md already says so; the tool
still barred same-account seats.

Removes ownAccountsOf, the barred and unjudged L2-seat states and every
print of them, AREA_LEASE_BAR_NOTE and reportNotes (and the --json notes
key), and the eight self-test cases that pinned them. Adds one case
pinning same account, different session => seated and named, and keeps
the unread-card-thread reading (record unjudged, no own delta). The L2
battery floor goes 24 -> 18.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhScbCkSBGiFaDrxK9
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw

席位核对

Verdict: ACCEPT · head 8a6bf57a381018363b4cf6a5d52d92444a00ba3b · card #34400 (p2) · claim 6933562431 · os-dev-report 6934062562 · read 2026-11-17T00:58Z.

  • Shape: draft → main, Fixes #34400, one file scripts/pm/check-owed-reviews.mjs (+38/−99), skip-changeset. Clause-②: no, Metadata-protocol: none. check-governed-merges --pr 34557: NOT governed (0 of 1 path on the register) — dispatch-runbook.md:44 reads 「只接 take 点名本席的行」 with no account reading, so it was left untouched as the order allowed.
  • Ruling carried: maintainer ruling A on [PM seat] review · seat 2 — 🟢 os-project-manager · 由 os-project-manager 账户的项目负责 #33258 (6917060639) quoted verbatim in the body; lanes/l2-review.md 独立性 unchanged. The account bar, ownAccountsOf, the barred / unjudged L2 seat states, AREA_LEASE_BAR_NOTE, reportNotes and the --json notes key are gone; no other file imports any of them (git grep on the head). The session pair and the record's own unjudged state (unreadable card thread) stay.
  • Seat read: the PR file's --self-test on this head: 91 cases in 10 batteries, exit 0. Live run of the PR file: grep -c -i barred → 0 (dev: 12 barred rows before). The new case pins seats on the implementing and the dispatching account as seated and named, the label row still the lane's, the own-delta taker intact; the unread-card-thread case keeps the record unjudged with no L2 own delta.
  • Accepted deviation: option B (seat correction 2026-11-16, recorded in the body): the order's "same session ⇒ not eligible" case is not pinned, because this reader never sees a reviewer's session before it signs — that bar is the Reviewed-by: ≠ Implemented-by: pair on the record itself. Battery floor 24 → 18 with the reason commented at the floor.
  • Gates: check-runs on this head 49, 26 success, 23 skipped, none red; mergeable clean. Dev dispatch-gates 32 derived, 32 exit 0, --ran 0 NOT-MEASURED; eslint exit 0.
  • Landing: ungoverned, K 10 < 15. pr_ready + automerge_enable via the relay.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 00:59
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 8fb9fbf Nov 17, 2026
50 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-47uc27 branch November 17, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pm(check-owed-reviews): drop the account bar on L2 seats; independence is per session (ruling A on #33258)

2 participants