Skip to content

feat(pm): label-write --handoff — the seat's Tier H hand-off (comment + pm:awaiting-merge + review request) as one relay stroke - #36214

Merged
os-zhuang merged 4 commits into
mainfrom
claude/issue-35948-tier-h-handoff
Nov 22, 2026
Merged

os-zhuang merged 4 commits into
mainfrom
claude/issue-35948-tier-h-handoff

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread

Fixes #35948

Clause-②: no
Metadata-protocol: none
Rule-change: yes

维护者速读

  • 用户能看到什么变化:用户无感。车队内部:座位把需要你批的 PR 交给你时,交接评论、等你合并的标签和给你的审核请求改成一条命令一次完成,并当场回读核对。
  • 为什么做:前天有三个需要你批的 PR 只收到评论提醒,没进你的待合并清单和审核队列,空等了约四个半小时;这是座位交接流程的修补。
  • 出错会怎样:最坏是某次交接被这条命令拒绝、座位改回手工补写;它不合并、不放行任何东西,可整体撤回。
  • 要你做什么:批准本 PR(它改了座位交接流程的条文,按规则须你批)。

What changes

  • scripts/pm/label-write.mjs --issue PR --comment-file request.md --handoff makes the seat's Tier H hand-off (pm-dispatch 〈路径分叉〉 ② and ③) ONE relay stroke: the request comment, then labels_add pm:awaiting-merge, then assign for an approver who is the pull's author, then pr_request_reviewers for every other GOVERNED_APPROVERS account not already requested, assigned or holding a submitted review.
  • Refused with zero writes (exit 2) unless:
    • 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 (narrowed route: the queue guard's narrowingDeclarationsIn over 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.
    • The newest ## 席位核对 reads ACCEPT and is newer than the head's committer date (H69's comparison).
    • The newest trusted ## Contract review naming the head reads PASS, and its Served-tier: stands.
    • A ## 维护者速读 comment is on the thread, or is the request itself (H48's brief half).
  • Read-back: labels, assignees and comment (the fold's lines), plus ④ reviewers, ④ H43 and ④ 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-run may omit --comment-file. It reads everything, prints now H43 / now H48 for 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 --rows mode 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:

  1. scripts/pm/label-write.mjs, handoffGate: the refusal order and the record readings it reuses.
  2. scripts/pm/label-write.mjs, foldStroke's --handoff hunks: the action order and the ④ H43 / ④ H48 read-back.
  3. .claude/skills/pm-dispatch/SKILL.md line 203.
  4. .claude/skills/pm-dispatch/references/execution-duties.md line 17: the per-round 四件读数器 now names label-write.mjs --issue PR --handoff --dry-run (exit 7 = a piece is missing) in place of the full check-half-states.mjs run; 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:

  • --handoff writes all three in one dispatch, in this order: comment → labels_add → assign → pr_request_reviewers.
  • The author-approver is ASSIGNED and never requested.
  • Control: the fixture pull fires BOTH H43 and H48 before the hand-off, and the same row functions read null on the board after it.
  • Refusals with zero sends, one each: Tier S, ungoverned, a PASS on an older head, no PASS, a same-head FAIL, a PASS whose Served-tier does not stand, an untrusted PASS author, REWORK, an ACCEPT older than the head, no brief, an issue, a closed pull, an unsigned request, and the direct route.
  • An unanswered tier reading is exit 3.
  • Idempotence: a covered approver, or the label already on, costs no action.
  • A relay that skips a part reads ④ reviewers ✗ / ④ H43 ✗ or ④ labels ✗ / ④ H48 ✗, exit 4.
  • The dry run sends nothing, both before and after the hand-off.
  • SKILL.md carries the pointer and the author-assign rule as substrings.
  • Rework at d513fbc. The PASS is read the queue guard's way, over the pull AND the card it delivers: a same-head PASS on the card clears the gate; the same PASS by an untrusted author is refused; a pull that delivers no card does not read the card. The size-limb face: a code-only size-limb pull is judged on the declaration face (a TIER_DEFAULT PASS is handed off, a CONTRACT_REVIEW_TIER PASS is refused); a committed changeset declaring (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)
  • handoffReviewPlan made 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.
  • The !handoff.passed refusal 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.
  • At d513fbc: handoffSlice made 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 from declaredOn went red on the narrowing-face case. Each restored (blob == HEAD, git diff HEAD empty).

A read-only check of the spawn half on a merged pull: readGovernedTier on objectstack-ai/objectstack 35610 answered exit 3, Tier H, 5 matched rows. Per the dispatch, --handoff itself 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 (narrowed route, CONTRACT_REVIEW_TIER face), control: none refused; 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; S3 reviewFace gets every pre-lift path (hit, clear, exceptions) and, on the size route, narrowingDeclared and the changeset texts; N1 the guard's LOW_RISK_CHANGESET_PATH is reused; N4 --handoff --dry-run exits 7 while a now row 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

Verification

Two minutes: node scripts/pm/label-write.mjs --self-test should print ✓ label-write self-test: 398 cases pass across 19 batteries.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC

…roke (wip, self-test next)

Claude-Session: https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 21, 2026
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation labels Nov 21, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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>
@github-actions github-actions Bot added size/l and removed size/m labels Nov 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract-review-claim: session_01QsR2jTeURPvEm465RcoYEC · head d513fbc · 2026-11-22T06:39Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: d513fbcdb4e07d4bf1f4ac06db0d25d7b3f27e02
Local-runs: none
Scope: .claude/skills/pm-dispatch/SKILL.md + scripts/pm/label-write.mjs
Security-touching: no
Rule-change-verified: yes

Inputs read: card #35948 (body, triage, claim, both os-dev-report comments), PR #36214 (body, two files, net diff against merge base cbd582f4b92b), the check-runs on the head. Cited code read at the head, never reviewed: check-governed-queue-guard.mjs (loadRecordRecognisers, readRecordThreads, recordVerdict, recordPassVerdict, narrowingDeclarationsIn, readChangesetTexts, the narrowed leg), record-recognisers.mjs (reviewFace, locateReviewOfRecord, servedTierStands, deliveredCardNumber), check-half-states.mjs (h43HandoffReading, h43GovernedReviewRequestGap, h48GovernedVerdictWithoutBrief, governedLandsOnRecord), check-governed-merges.mjs (testVerdict, applyGeneratedExceptions, pullPathsFrom, sizeLimbFires, landingTierOf). None of those files, nor either file of the diff, moved on main between the merge base and 3f7fdd002130.

① Derived judgments

  • Public surface: none published. The diff touches one internal script and one governed skill line; no package, no schema, no generated output. Right.
  • CLI accept set of label-write.mjs: one new mode flag --handoff, refused beside --land, --release and every label or assignee flag, and allowed without --comment-file only under --dry-run. parseOptions matches the header and the usage text. Right.
  • New exports (readGovernedTier, handoffTierVerdict, handoffReviewPlan, loadHandoffRecognisers, handoffSlice, handoffRowLines, four HANDOFF_* constants) and two new classifyOp classes (reviews-list, contents-read): internal, additive, no existing class re-ordered into a different answer (/pulls/N/reviews did not match pull-read before). Right.
  • New static namespace imports of record-recognisers.mjs and check-handover.mjs: the cycle note is plausible against the guard's own laziness rule, and the tooling self-test and PM dispatch-gates check-runs on the head are green, so the module graph evaluates. Right.
  • Check-runs on the head: every run concluded success or skipped; Governed Surface Queue Guard, PR-body guards, Lint (all families), Type Check, Test Core and Dogfood Regression Gate success; Check Changeset skipped under skip-changeset.
  • The accept set of the hand-off itself (which pulls the mode admits) is WRONG in one population: see M1.

② Semver level

skip-changeset is right: scripts/pm/** and .claude/** publish nothing. Clause-②: no and Metadata-protocol: none on the PR body agree with the diff: no spec key, no accept set of a published package, no protocol shape moves.

③ Boundary flags

  • Dev deviation, base moved (dispatch named fa304140, branch cut at cbd582f4, main now 3f7fdd00): accepted; no file the diff reads or edits moved since the merge base.
  • Dev deviation, PR body not re-patched after the rework: the body is internally inconsistent (its Tests section says 382 cases, its Verification line still says 371). The seat's to patch; prose, not judged.
  • Dev deviation, Rule-change: yes declared: verified below as yes. No Ruling-ref: line is on the body, so ruled is not available.
  • Out-of-scope finding carried by 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 (open): governedReviewPlan and the full-patrol H43/H48 read the .claude/** row path-only. Accepted as carried; the mode's own read-back does ask the rows on the post-split slice, as claimed.
  • Out-of-scope finding, execution-duties.md line 17 still names the full patrol run as the per-round reader: To-do 3 of the card is therefore delivered as a capability (--handoff --dry-run) that no rule text points at. "Noted, not filed" is not a carrier. Escalated to the seat: file the follow-up card or the reading stays unread, which is the second half of the 2026-11-20 miss.
  • Out-of-scope finding "carrier: none", a narrowing declared on the Metadata-protocol: line alone is not read: NOT accepted as out of scope. It is a divergence from the guard this mode says it copies; answered as S3, and it is the small end of M1.
  • Claim line: the implementation ran under a stated exit from the tier the dispatch gates read as mandatory for SKILL.md, compensated by this review. Not ruled here; visible to the maintainer on the card, and the pull waits for him in any case.
  • SQL push-down: not applicable, the diff reads no data store.
  • open_questions: empty in both reports.

④ Design judgment

.claude/skills/pm-dispatch/SKILL.md, line 203. The line now defines ③ as one stroke of label-write.mjs --handoff delivering ② and ③. Against the rule it sits under: line 194 (Tier H), and line 195, which gives the same terminal four-piece, ③ included, to a pull over 3000 lines OR one that declares a narrowing, with no Tier S exception. Against the card: the three writes, refused without ACCEPT and a same-head PASS. Byte budget 33859 of 33872, ratchet green.

scripts/pm/label-write.mjs. What holds, each tried and not broken:

  • Refusal order: kind, open state, tier, then reads, ACCEPT, PASS, brief, self-request, all before the comment is judged or anything is packed; every refusal returns through nothing() with no send. The direct route is refused at ③, still before a write.
  • Tier: handoffTierVerdict refuses a fork first, admits Tier H or a firing size limb (a Tier S slice with the size limb firing is admitted, which line 195 requires), refuses Tier S and ungoverned; no verdict object is exit 3.
  • PASS: the guard's own readers on the pull thread AND the delivered card, each cut to trusted authors by readRecordThreads; newest same-head record governs; unsigned, below-tier (exact, both directions), a non-PASS word, two verdict lines, a FAIL spelling, an open or unattributable grade all refuse through recordPassVerdict. No runGit is handed, so no carried record is accepted: stricter than the guard, never looser.
  • ACCEPT: h43HandoffReading's record, plus the newer-than-committer-date comparison; an undated record refuses.
  • Read-back: ④ reviewers against pending requests, ④ H43 and ④ H48 on handoffSlice, whose added Tier H entry does keep governedLandsOnRecord false on a Tier S or empty slice (landingTierOf is ALL-quantified), so the rows cannot stand down on a size-limb pull. Any ✗ is exit 4.
  • Plan: author-approver assigned and never requested; covered approvers cost nothing.

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, 「或申报收窄同换终局四件套含③请审」). check-governed-merges.mjs --pr carries no narrowed limb (humanMerge is register, size or fork), so handoffTierVerdict falls to its last branch and prints "reads this pull as NOT governed ... nobody is owed a hand-off", exit 2. Line 203 now names this command as the way ③ is made, so a seat following the changed line on a narrowing pull is told by the instrument to hand nothing over, and no patrol row covers that population either: the 2026-11-20 miss, reproduced by the tool that closes it. Either admit a declared narrowing (the guard's exported narrowingDeclarationsIn over the body and the committed changesets, as its narrowed leg reads them, with the face held to narrowing), or make the refusal say that the mode does not judge a declared narrowing and that ③ is still owed by hand, and scope line 203 to match. A self-test pin on a narrowing-only pull either way.

S1 (should-fix) — A pull whose diff DELETES or RENAMES a changeset can never be handed off. paths comes from the tier tool's list, which holds removed files and every rename's previous_filename (pullPathsFrom); each .changeset/*.md in it is read with GET /contents/PATH?ref=HEAD, which answers 404 for a path the head does not hold, and the gate returns exit 3 "could not be read" on every run. The guard's own reader, readChangesetTexts, leaves a deleted changeset out as declaring nothing and tells it apart from a failed read. This happens on the tier route too, where the paths already decided the face and the changeset text is never consulted. Read a 404 on a changeset path as "not at the head, declares nothing" (or take the file statuses), and skip the read when the paths decide the face.

S2 (should-fix) — The idempotent exit ignores the brief half, so it can exit 0 with H48 still firing. With pm:awaiting-merge on, every approver covered, and NO ## 维护者速读 comment on the thread (the state a seat is in after repairing the label and the request by hand, as on 2026-11-20), a --handoff whose request carries the brief passes the brief check on the request's strength, then takes the "already handed off" branch and returns exit 0 without posting that request. The brief never reaches the thread, now H48 ✗ is printed two lines above the line that says the pull is whole, and the card's acceptance ("a seat that runs only --handoff leaves the PR passing H43 and H48") fails on that pull. The whole-pull test must include gate.hasBrief; with no brief on the thread the comment is still owed. The no-file dry run takes the same branch and prints the same contradiction.

S3 (should-fix) — On a size-limb pull the review face is derived from less than the guard hands reviewFace, in two ways, so the tier a PASS must stand at can differ from the guard's. (a) narrowingDeclared is never set: a narrowing declared on the Metadata-protocol: line beside a bare Clause-②: line puts the guard on the narrowing face (NARROWING_FACE_LINE) and this mode on the declaration face, so a TIER_DEFAULT PASS the guard refuses is handed to the maintainer and the at-tier PASS the guard wants is refused here as below-tier. (b) paths is hitPaths plus clearPaths, and a path lifted as a pure regeneration is in neither (applyGeneratedExceptions records it under exceptions), while reviewFace reads the register pre-lift: a large pull whose only register hit is a regenerated file reads the rules face at the guard and the declaration face here. Hand reviewFace the tool's whole list (exceptions[].path included) and the guard's narrowing reading. The header sentence "the PASS the queue guard's way" is not true until then.

Nits, none affecting the verdict:

  • N1 — isChangesetFile re-spells record-recognisers.mjs's private isChangesetPath under a header that says nothing is re-spelled; export the one.
  • N2 — reviews-list reads one page of 100; a later page's approver reads uncovered and is requested again. Harmless direction.
  • N3 — handoffReviewPlan matches logins case-insensitively and H43 matches exactly; on a case-different login the plan reads covered and the row reads ✗.
  • N4 — --handoff --dry-run exits 0 whatever now H43 / now H48 read; as the per-round reading it is text-only, which a patrol script cannot branch on.
  • N5 — the ACCEPT is read from any commenter (H43's existing reading, not this diff's): only the PASS is author-bound.

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 yes is verified as yes: the pull waits for the maintainer.

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: claude/issue-35948-tier-h-handoff
Reviewed-by: session_01QsR2jTeURPvEm465RcoYEC

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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract-review-claim: session_01QsR2jTeURPvEm465RcoYEC · head 27e6000 · 2026-11-22T07:49Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 27e6000b1a1efe5c32d2db37ee34f66f6de9ca0e
Local-runs: none
Scope: .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/execution-duties.md + scripts/pm/label-write.mjs
Rule-change-verified: yes

Delta round on the FAIL record 7075527312 (head d513fbcd). Inputs read: card #35948 (body, triage, claim, the three os-dev-report comments), PR #36214 (body, three files, the net diff against merge base cbd582f4b92b and the fix delta d513fbcd..27e6000b), the 48 check-runs on the head. Cited code read at the head, never reviewed: check-governed-queue-guard.mjs (narrowedReading, narrowingDeclarationsIn, readChangesetTexts, recordVerdict, NARROWING_FACE_LINE, the narrowed leg), record-recognisers.mjs (reviewFace), check-governed-merges.mjs (LOW_RISK_CHANGESET_PATH, applyGeneratedExceptions, the hitPaths / clearPaths / exceptions shape), check-half-states.mjs (h43GovernedReviewRequestGap, h48GovernedVerdictWithoutBrief, h48SpeaksAbout). main moved since the merge base in three of those files (#36215 for #35612, landed 06:36Z as b78b14cc); the exports this diff calls kept their signatures there.

Closure of the earlier findings:

  • M1: closed
  • S1: closed
  • S2: closed
  • S3: closed

① Derived judgments

  • Public surface: none published. One internal script and two governed skill lines; no package, schema or generated output. Right.
  • Accept set of the hand-off (which pulls the mode admits): now three populations, Tier H, the size limb, and a declared narrowing on a new narrowed route, admitted whatever the register reads, Tier S included; a fork, and a Tier S or ungoverned pull that declares nothing, are refused. This is SKILL.md line 195 in full. Right, and it is the M1 correction.
  • CLI: no new flag. One new exit code, 7 (EXIT_HANDOFF_OWED), for --handoff --dry-run alone, declared in the header's exit table and exported. A dry run that used to exit 0 with a ✗ row now exits 7; nothing in the tree branches on the old 0 (no caller of --handoff exists outside this file). Right.
  • New exports handoffOwesDeclarations and EXIT_HANDOFF_OWED; handoffTierVerdict gains a second, defaulted parameter; isChangesetFile is gone in favour of the tier tool's exported LOW_RISK_CHANGESET_PATH; two more names are imported from the guard (narrowedReading, NARROWED_RULING). Internal and additive. Right.
  • Per-round reader (execution-duties line 17): moves from the full check-half-states.mjs run, which read governed Tier H only and left a size-limb pull to a self-read, to the dry run per pull, which reads all three populations. A widening of what the reader covers, at one tier-tool spawn per pull. Right.
  • Check-runs on the head: every one concluded success or skipped. Success: Governed Surface Queue Guard, PR-body guards, Check PR Size, every Lint family (PM dispatch-gates and the tooling self-tests among them), every Type Check family, Test Core, Dogfood Regression Gate. Check Changeset skipped under skip-changeset.

② Semver level

skip-changeset is right: scripts/pm/** and .claude/** publish nothing. Clause-②: no and Metadata-protocol: none on the PR body agree with the diff: no spec key, no accept set of a published package, no protocol shape moves.

③ Boundary flags

  • Earlier escalation, execution-duties line 17 "noted, not filed": answered inside the PR. The line is in the diff and the self-test pins it as a substring.
  • Dev deviation, base not merged (main at b3bcfefc at report time): accepted. The pull reads mergeable and clean, and the byte budgets hold after the merge by arithmetic: SKILL.md 33869 on main less 4 is 33865 of 33872; execution-duties 20154 on main less 5 is 20149 of 20154.
  • Dev deviation, new exit code 7: accepted, see ①.
  • Dev deviation, a changeset read over REST GET /contents with 404 read as "not held", where the guard asks git ls-tree: accepted. The path comes from the pull's own file list and is read at the head's sha on the token that just read the pull; every other status is exit 3. The residual (a 404 that is not absence) fails toward a refusal or a cheaper face, and is small enough to leave; a later hardening could take the file status from the pull's file list.
  • Dev deviation, one ablation attempt crashed and measured nothing, replaced by a measuring mutation: accepted as declared.
  • Dev deviation, Rule-change: stays yes: verified below.
  • Out-of-scope finding carried by 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: that card's fix is on main (b78b14cc). Nothing is owed here; see N7 for the two sentences it made stale.
  • Out-of-scope finding, N2, N3 and N5 not taken, "carrier: seat": nits, so not taking them is allowed, but a seat is not a carrier. Escalated to the seat: file one follow-up card or state them as accepted deviations in the seat record.
  • Claim line: the stated exit from the tier the dispatch gates read as mandatory for SKILL.md was argued on "one pointer line". The diff now rewrites a second governed line, in execution-duties.md, which the claim's File surface: does not name. Not ruled here. Escalated to the seat: amend the claim's file surface, and keep the exit visible to the maintainer, who approves this pull in any case.
  • PR body: it now names the third file and the round-3 counts. Its Acceptance notes still call 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 "the open card" and say the full patrol stands down on a .claude/** pull declaring Rule-change: yes; both are untrue of main since b78b14cc. Prose, the seat's to patch, not judged.
  • SQL push-down: not applicable, the diff reads no data store.
  • open_questions: empty in all three reports.

④ Design judgment

.claude/skills/pm-dispatch/SKILL.md, line 203 (unchanged since 26da765b). It names label-write.mjs --handoff as the one stroke for ② and ③. Line 195 gives the same terminal four-piece, ③ included, to a pull over 3000 lines or one that declares a narrowing, with no Tier S exception; the command now admits all three, so the line holds for every pull the rule sends through it. 「Tier S 不交人」 on line 204 agrees with the code: a Tier S pull is refused only when it declares no narrowing, and the refusal says so.

.claude/skills/pm-dispatch/references/execution-duties.md, line 17. 「每 PR 跑 label-write.mjs --issue PR --handoff --dry-run,含超行与收窄;7 即缺件」, read against the code:

  • 含超行与收窄: true. The dry run runs the same gate, so the size limb and the narrowed route are both read, and the two rows are asked on handoffSlice, which carries a Tier H entry for either.
  • 7 即缺件: true in the direction it is written. Exit 7 is reached only past the gate with a now row reading ✗. Exit 0 is sound as "whole": it needs an ACCEPT newer than the head, a same-head PASS at the face's tier, the label, every approver covered and a brief on the thread. No missing piece reads 0, except under N3.
  • Against line 16, the duty it serves (席位记录 / pm:awaiting-merge / 请审 / 终版速读 at the current head): the last three read 7; the first reads 2, see N6.
  • The rule dropped, 「超行无受管 PR 自读」, is replaced by the instrument reading that population. Nothing a seat owed before is owed by nobody now.

scripts/pm/label-write.mjs, the fix delta, each tried and not broken:

  • M1. handoffTierVerdict returns the narrowed route when the guard's own narrowedReading finds a declaration on the body or a changeset committed at the head. The order is fork, Tier H, unread declarations (exit 3, never a pass), size, narrowed, then the two refusals, and both refusals now name the missing declaration. handoffSlice adds one Tier H entry on that route, so governedLandsOnRecord cannot stand H43 and H48 down on a Tier S or empty slice. Pinned with a control: the same pull declaring none is refused with zero sends.
  • S1. readHeadChangesets skips a 404, returns NOT MEASURED on any other failed read, and is not called on the tier route (handoffOwesDeclarations is false for a fork and for Tier H). On the tier route recordVerdict is handed no declaredOn, which is the guard's governed entry; a Tier H reading always holds a register hit, so reviewFace decides on the paths before any declaration would be read.
  • S2. The idempotent exit now requires gate.hasBrief. With the label on, every approver covered and no brief on the thread, a request carrying the brief goes out as a comment-only stroke and H48 reads clean after; a request without one is refused; the no-file dry run exits 7 and never prints "already handed off". The idempotence test is H48's own conjunction (label and brief), so the two cannot disagree.
  • S3. paths is the union of hitPaths, clearPaths and every exceptions[].path, so a path lifted as a pure regeneration reaches reviewFace as it does at the guard. Off the tier route the pair carries the guard's declaredOn (body, then each changeset text) and narrowingDeclared, which recordVerdict turns into NARROWING_FACE_LINE. The header sentence "the PASS the queue guard's way" is now true of the face as well.
  • N1 and N4 of the earlier record are taken: the guard's LOW_RISK_CHANGESET_PATH is imported, and the dry run exits 7 on a ✗ row.
  • Refusal order unchanged in kind: every read and refusal still precedes the comment and the pack, and each returns with zero sends.

No must-fix, no should-fix.

Nits, none affecting the verdict:

  • N2, N3, N5 of record 7075527312 stand as written, not taken. N3 has one more consequence on this head: on a case-different approver login the plan reads covered and H43 reads ✗, so a dry run can take the "already handed off" exit 0 beside a now H43 ✗ line, against the header's "exit 7 when a now row reads ✗". GitHub returns canonical login case, so this needs a mis-cased entry in GOVERNED_APPROVERS.
  • N6: as the per-round reader, exit 2 covers both "nothing is owed" (Tier S, ungoverned, a fork, a closed pull) and "a piece is missing before the rows can fire" (no ACCEPT, an ACCEPT older than the head, no same-head PASS). The refusal sentence tells them apart and 0 is never reached, so no missing piece reads as whole; but line 17 names only 7, and a head that moved after a hand-off, the case line 16 exists for, reads 2. A later wording could say that any non-zero exit is read by its sentence.
  • N7: the header sentence that governedReviewPlan "reads the .claude/** row path-only, so it would request nobody" describes main before b78b14cc; it is stale the moment this merges. The decision not to call it is unaffected.

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 Ruling-ref: line, so ruled is not available. The declared yes is verified as yes: the pull waits for the maintainer.

Implemented-by: claude/issue-35948-tier-h-handoff
Reviewed-by: session_01QsR2jTeURPvEm465RcoYEC

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

维护者速读

席位核对

  • 形态:l1-face --pr 36214 CLEAN(13 项无标记);draft、base main、Fixes #35948;3 个文件 +696 −32;skip-changeset 正确,Clause-②: no、Metadata-protocol: none、Rule-change: yes(无 Ruling-ref:)。
  • 前提实测:check-governed-merges --pr 36214 读到 .claude/** 声明拆分为 Tier H,728 行 ≤ 3000;审查按合并后算术核过两个文件的字节上限仍守住(SKILL.md 33865/33872、execution-duties.md 20149/20154)。
  • 门禁 check-runs @ 27e6000b1a1efe5c32d2db37ee34f66f6de9ca0e:26 success · 22 expected skip · 0 failed · 0 pending(含 Queue Guard、PR 正文门禁、Test Core、Dogfood)。
  • 接受的偏差:审查的接受偏差——变更集读 REST 时把 404 当「不存在」(其他状态一律退出 3);认领原先按「一行指针」走档位例外,返工后多了 execution-duties.md 第 17 行,认领已改写为两行并写明(7076214445),两行都在合同审查范围内。
  • 范围外去向:N2、N3、N5、N6、N7 五个细节立为 label-write --handoff: review paging, login case, ACCEPT author, exit-2 reading and a stale header (nits left by #35948's reviews) #36356(p3,等本 PR 合并);PR 正文中关于 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 的过时说法已按 main 改正。
  • 落地条款:Tier H(.claude/** 声明 Rule-change: yes,无 Ruling-ref:)。L2 记录 7076207941 PASS,无未闭 must-fix/should-fix ⇒ 挂 pm:awaiting-merge、请 os-zhuang 审批;获批后席位落地。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 22, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 22, 2026 08:12
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 5e37a35 Nov 22, 2026
58 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-35948-tier-h-handoff branch November 22, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/l 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.

Seat Tier H hand-off as one relay write: approval comment + pm:awaiting-merge + pr_request_reviewers, refused without ACCEPT and a same-head PASS

3 participants