Repository navigation
pm(check-owed-reviews): drop the account bar on L2 seats; independence is per session - #34557
Merged
Merged
Conversation
…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
Contributor
Author
|
domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw 席位核对Verdict: ACCEPT · head
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Yibo Wang · project thread
Fixes #34400
Clause-②: no
Metadata-protocol: none
维护者速读
check-owed-reviews.mjs不再按账号禁 L2 席;删掉barred/unjudged席位状态、区域租约注释和对应自测。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:
references/lanes/l2-review.md〈独立性与边界〉, unchanged: 「记录恒带Implemented-by:/Reviewed-by:对,两会话相异;⛔ 不限账号,派发账号亦可坐。」What changes
scripts/pm/check-owed-reviews.mjsonly (+38 / −99):reviewSeatsOf(seats)no longer takes or reads accounts. Its states areseated,stood-down,absent,unknown; thebarredandunjudgedstates and thebarredarray are gone.ownAccountsOfis deleted, and so is its call inowedReviewRow. The row losesreviewBarred.takerOfno longer appends "L2 seat … is on this PR's own account" to the lane taker.renderRowno longer prints(barred …).AREA_LEASE_BAR_NOTEandreportNotesare deleted, along with the⚖️note inrenderReport, thenoteskey of--jsonand its usage line.CLAIM_COMMENT_MARKERandmarkerMatchesimports are dropped.The record's own
unjudgedstate, 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:
ownAccountsOfreading; 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.seatedand are named. The row has noreviewBarred, and the report prints nobarred,area-leaseor⚖️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.unjudged, so no own delta names an L2 seat and the lane takes. The seats still readseated.--jsoncase now checks that the document carries nonoteskey and the row noreviewBarred.Acceptance notes
Implemented-by:/Reviewed-by:)" and to add a "same session ⇒ not eligible" case. Measured atec6b5fd3, this tool has no session-pair reading. It readsReviewed-by:only to print who signed a record (reviewedByOf), it never readsImplemented-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.mdline 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.contract-review.mdline 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)
origin/mainec6b5fd3, 2026-11-17T00:18Z): 70 open PRs read, 36 owe a review. 12 rows printL2 seat barred (barred l2-review#3,review#2): WAIT fix(metadata-protocol)!: a package-less action save on an object no package binds the name to writes the environment's own action #34238 feat(auth): an invitation is accepted in one step with the proof its mail carries #34333 fix(metadata-protocol,spec)!: the bare item read refuses a package-less row beside two row holders, and reads a row-held base at its dependent's added member (ADR-0150 D3) #34355 feat(objectql): a bulk update recomputes its parents' roll-up summaries once, at the end of the batch #34439 feat(automation): IAutomationService.dryRun runs an unpublished flow once, unarmed, as a named user #34477 fix(objectql)!: a write refused after its before* hook wrote through ctx.api rolls that hook's write back #34503 feat(metadata-protocol, spec, lint)!: a post-publish probe finding carries the sentence for the person who published, in their language #34513, HELD perf(metadata-protocol): the served item read caches its caller-independent compiled answer (ADR-0156) #34494, DONE fix(metadata-protocol)!: an exact?package=read answers its own package's item or a 409 naming the holders, and a bare doc read beside two holders serves the environment's own entry #34347 fix(cloud-connection): install-local keeps and honours the landed-key record, so a seed row a tenant deleted stays deleted #34429 docs(adr-0066, permissions): Modify All's own-row field vote is kept until the field-axis split #34483 docs(pm-dispatch): area-lease asks its L1 thread by thread message, mailboxes only across accounts or projects #34501. The⚖️ barred = …area-lease note printed once, sogrep -c barred= 13.grep -c barred= 0,grep -c ⚖️= 0, andgrep -c unjudged= 0. Every L2 seat readsseated l2-review#3,review#2.Gates
dispatch-gates --commandsderived 32 families from this change set, and each was run on head8a6bf57a:dispatch-gates --ran: 32 derived, 32 run, 0 NOT-MEASURED, 0 UNRUN (exit 0). Also run:node scripts/pm/check-owed-reviews.mjs --self-testpasses 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