Repository navigation
feat(pm): label-write --handoff — the seat's Tier H hand-off (comment + pm:awaiting-merge + review request) as one relay stroke - #36214
Conversation
…roke (wip, self-test next) Claude-Session: https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC Co-authored-by: Claude <noreply@anthropic.com>
…points at the one command Claude-Session: https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract-review-claim: session_01QsR2jTeURPvEm465RcoYEC · head 26da765 · 2026-11-21T23:43Z |
…card, the face's tier), carries the size limb into the rows, is idempotent and never requests the seat's account Claude-Session: https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract-review-claim: session_01QsR2jTeURPvEm465RcoYEC · head d513fbc · 2026-11-22T06:39Z |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Inputs read: card #35948 (body, triage, claim, both os-dev-report comments), PR #36214 (body, two files, net diff against merge base ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Findings: M1 (must-fix) — The mode refuses one of the three populations line 195 hands to the maintainer, and tells the seat nothing is owed. A pull that declares a narrowing, touches no governed path and stays under the size threshold lands by the maintainer (the guard's narrowed leg, ruling 2026-11-19 on #35321; SKILL.md line 195, 「或申报收窄同换终局四件套含③请审」). S1 (should-fix) — A pull whose diff DELETES or RENAMES a changeset can never be handed off. S2 (should-fix) — The idempotent exit ignores the brief half, so it can exit 0 with H48 still firing. With S3 (should-fix) — On a size-limb pull the review face is derived from less than the guard hands Nits, none affecting the verdict:
Rule-change check: the changed line makes the hand-off to the maintainer conditional on an instrument's gates (tier, ACCEPT age, face tier, brief) and, per M1, changes which pulls reach him in practice. That alters what goes to him and how, it copies no quoted ruling, so the declared Security check: line 203 teaches no permission, credential, token or authentication behaviour; the script hunks reuse the guard's existing record-author binding and add none. Implemented-by: VERDICT: FAIL |
…rrowed leg), reads changesets the guard's way, owes the brief before it is whole - M1: a pull that declares a narrowing (body or a committed changeset, read with the guard's narrowedReading) is handed off whatever the register says, on its own `narrowed` route and slice entry, the narrowing face held by narrowingDeclared. - S1: a changeset the head does not hold (deleted, renamed away) answers 404 and declares nothing; the Tier H route reads no changeset at all. - S2: "already handed off" needs the brief on the thread too. - S3: the face reads every path the tier tool read, the lifted pure regenerations included, and narrowingDeclared on the size route. - N1: LOW_RISK_CHANGESET_PATH, the guard's changeset regex, replaces the re-spelling. - N4: --handoff --dry-run exits 7 while a `now` row reads a cross. - execution-duties 四件读数器 points at the dry run (net -5 bytes). Claude-Session: https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract-review-claim: session_01QsR2jTeURPvEm465RcoYEC · head 27e6000 · 2026-11-22T07:49Z |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Delta round on the FAIL record 7075527312 (head Closure of the earlier findings:
① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
No must-fix, no should-fix. Nits, none affecting the verdict:
Rule-change check: line 203 makes the hand-off to the maintainer one instrument's stroke, conditional on its gates (population, ACCEPT age, the face's tier, the brief), and line 17 changes what a seat runs each round and which pulls that reading covers. Both alter what is done and what reaches him; the body carries no Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC 维护者速读
席位核对
|
Requested by Steedos · project thread
Fixes #35948
Clause-②: no
Metadata-protocol: none
Rule-change: yes
维护者速读
What changes
scripts/pm/label-write.mjs --issue PR --comment-file request.md --handoffmakes the seat's Tier H hand-off (pm-dispatch 〈路径分叉〉 ② and ③) ONE relay stroke: the request comment, thenlabels_add pm:awaiting-merge, thenassignfor an approver who is the pull's author, thenpr_request_reviewersfor every otherGOVERNED_APPROVERSaccount not already requested, assigned or holding a submitted review.check-governed-merges.mjs --pr OWNER/NAME#N --json(spawned, so every split it chains,Rule-change:included, is the one reading) reads Tier H, or the size limb fires, or a narrowing is declared (narrowedroute: the queue guard'snarrowingDeclarationsInover the PR body and the head's committed changesets; admitted whatever the register reads, Tier S included). Tier S, ungoverned and fork pulls are refused. An unanswered reading is exit 3.## 席位核对reads ACCEPT and is newer than the head's committer date (H69's comparison).## Contract reviewnaming the head reads PASS, and itsServed-tier:stands.## 维护者速读comment is on the thread, or is the request itself (H48's brief half).④ reviewers,④ H43and④ H48. The last two call the patrol rows themselves (h43GovernedReviewRequestGap,h48GovernedVerdictWithoutBrief) on the pull as read back, using the tier tool's post-split slice. Any ✗ is exit 4, not repaired.--handoff --dry-runmay omit--comment-file. It reads everything, printsnow H43/now H48for the pull as it stands and the stroke it would send, and sends nothing. This is the shape chosen for To-do 3: the per-round reading of a seat's own governed pulls, without a check-half-states run (over two minutes) and without a new--rowsmode there..claude/skills/pm-dispatch/SKILL.md〈路径分叉〉 ③: one line now points at the command (同轮一笔 label-write.mjs --handoff 交②③). The file is 4 bytes smaller (33863 to 33859, ceiling 33872 unchanged).Read first, by risk:
scripts/pm/label-write.mjs,handoffGate: the refusal order and the record readings it reuses.scripts/pm/label-write.mjs,foldStroke's--handoffhunks: the action order and the④ H43/④ H48read-back..claude/skills/pm-dispatch/SKILL.mdline 203..claude/skills/pm-dispatch/references/execution-duties.mdline 17: the per-round 四件读数器 now nameslabel-write.mjs --issue PR --handoff --dry-run(exit 7 = a piece is missing) in place of the fullcheck-half-states.mjsrun; rewritten in place, 20148 to 20143 bytes, ceiling unchanged.Tests
label-write self-test at 27e6000: 398 cases across 19 batteries, exit 0 (was 339 across 18)
The new battery
--handoff: …is pinned at 59 cases (32 at 26da765, 43 at d513fbc). It shows:--handoffwrites all three in one dispatch, in this order:comment→labels_add→assign→pr_request_reviewers.nullon the board after it.④ reviewers ✗/④ H43 ✗or④ labels ✗/④ H48 ✗, exit 4.(narrowing)moves the face. The register's own slice is empty on that pull and both rows read null; the hand-off slice fires both rows before the hand-off and reads null after. A pull already whole sends nothing. A request signed by an uncovered approver is refused.Ablation, one-time, at 26da765, through scripts/ablation-replace.mjs (restore verified: blob == HEAD, git diff HEAD empty)
handoffReviewPlanmade to request the author (toRequest: missing, toAssign: []): the self-test went red on 3 cases (the plan, the stroke and the author-assigned case), then was restored.!handoff.passedrefusal disabled: the self-test went red on the same-head FAIL case (exit 0 and one send instead of exit 2 and zero), then was restored.handoffSlicemade to ignore the size limb went red on 2 cases; the card thread read as empty went red on the card-PASS case; the changeset texts dropped fromdeclaredOnwent red on the narrowing-face case. Each restored (blob == HEAD,git diff HEADempty).A read-only check of the spawn half on a merged pull:
readGovernedTieron objectstack-ai/objectstack 35610 answered exit 3, Tier H, 5 matched rows. Per the dispatch,--handoffitself was never run against a real pull.Round 3 at 27e6000 (contract review 7075527312 FAIL at d513fbc): M1 a declared narrowing is a hand-off population (
narrowedroute, CONTRACT_REVIEW_TIER face), control:nonerefused; S1 a deleted or renamed-away changeset (404 at the head) declares nothing, any other failed read is exit 3, the Tier H route reads no changeset; S2 "already handed off" needs a## 维护者速读on the thread, else a comment-only stroke goes out; S3reviewFacegets every pre-lift path (hit, clear, exceptions) and, on the size route,narrowingDeclaredand the changeset texts; N1 the guard'sLOW_RISK_CHANGESET_PATHis reused; N4--handoff --dry-runexits 7 while anowrow reads ✗. Ablations (each restored, blob == HEAD): M1 red on 7, S2 on 2, S1 on 1, S3a and S3b red, N4 red, tier-route read red on 1.Acceptance notes
cbd582f4:--landdoes NOT read ACCEPT + same-head PASS. Its only gate is the dogfood battery gate. The reading lives incheck-half-states.mjsh43HandoffReading, which this mode calls.fleet-write/execute.mjsgovernedReviewPlanis not reused. Since PR fix(pm): the relay review plan, H43 and the early-warning leg chain the .claude/** declaration split, and the split reads the queue's record leg (#35612) #36215 (b78b14cc, Part of pm: after the.claude/**declaration split lands, the relay review plan and the patrol landing row still read the raw Tier S and never ask the maintainer #35612) it chains the.claude/**split too, but this mode still takes its tier fromcheck-governed-merges --prand its coverage union from H43's own reading, so there is one reading for both, not two kept in step. (Earlier text here called that split missing; it was true when written and is not onmainnow.)--handoff's read-back asks the same rows on the tool's post-split slice, so they judge it.GOVERNED_APPROVERSholds only the maintainer's account today. A seat whose login is in that set would be requested.execution-duties.mdline 17 is now in this PR (the review would not accept "noted, not filed"): the card's To-do 3 pointer.EXIT_HANDOFF_OWED) for the dry run only, declared in the header's exit-code table.Verification
Two minutes:
node scripts/pm/label-write.mjs --self-testshould print✓ label-write self-test: 398 cases pass across 19 batteries.🤖 Generated with Claude Code
https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC