Skip to content

feat(pm): round-open.mjs and check-handover --inflight read the round-open mutex and the in-flight check - #37878

Merged
os-zhuang merged 7 commits into
mainfrom
claude/issue-35237-slice4-inflight-round-open
Nov 27, 2026
Merged

os-zhuang merged 7 commits into
mainfrom
claude/issue-35237-slice4-inflight-round-open

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Part of #35237 — slice 4 (the in-flight check and the round-open mutex, with the area-lease.md pointer) plus carrier items 1 and 2 of comment 7181970862. The card stays open for slice 7 and carrier item 3 (serial behind #37064 on dispatch-gates.mjs).

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

维护者速读

  • 用户无感:这是车队内部工具,席位开轮前和派发前要手工重打的两段读法,现在各有一个只读脚本。
  • 属于「产品区域与定级规则落地」专题下车队技能整理的第六步:把每次重打的散文步骤换成脚本,替各执行席省掉重复读板。
  • 读错只会让席位多等一轮或多看一张卡,脚本什么都不写,删掉指针行即可撤回。
  • 要你做的一件事:这条改了受管的规则文件和守卫脚本,需要你的审批后由席位落地。

What changes

Each pointer line keeps its rule sentence and names the reader as its reading; only the retyped procedure moved into the script (the done-when form of Release: 7017468070).

Rule line on main Retyped procedure it carried Now read by
seat-lifecycle.md 〈开轮互斥〉 line 5, readings 1–4 (lines 6–10) find the seat post, its newest stand-down brief and the newest marker after it; walk the lane's pm:dispatched ∪ pm:queue cards for the newest same-seat claim by another session; git ls-remote card by card for a push since the brief; walk the closed lane cards newest-updated first scripts/pm/round-open.mjs (new). Line 5 names it; line 9 loses only (逐卡 \git ls-remote`), the rule 「推即认领,欠一条 Claim:`」 stays
area-lease.md line 31 「开轮互斥读法照 seat-lifecycle.md」 the same reading, for an area session the same script: 「开轮互斥照 seat-lifecycle.md,现读 round-open.mjs」
SKILL.md 〈车道与域〉 「派发前在飞检查:读 pm:dispatched 卡认领评论申报的文件面,本地求交」 and execution-duties.md line 42 (the ui/** remainder's in-flight intersection) read each pm:dispatched claim's File surface: line, expand it, intersect it with the dispatch's surface by hand scripts/pm/check-handover.mjs --inflight --paths=… [--card=N]. execution-duties.md line 42 names it. SKILL.md is outside this claim's file surface, so its line is unchanged (see Acceptance notes)

round-open.mjs — --seat LANE#N --session S [--own S,…] [--post N] [--intake …] [--round-minutes 60]. Reading 1 is the newest stand-down brief on the seat post, recognised on its headline from the nine spellings measured on the live posts (## Clock-out, Clock-out brief, ## 收班简报, Stand-down brief, Shift end, …). Reading 2 is the newest comment after it that carries this seat's signature from a session outside --own. Reading 3 is the newest same-seat Claim: by another session on EVERY open pm:dispatched ∪ pm:queue card updated inside the window, on the intake or off it (a p0/p1 card is taken from any area). Reading 3 also covers a push: one git ls-remote --heads for the whole board, intersected locally with the claude/issue-N… heads of every open pm:dispatched card and of the intake's cards (the intake is the post title's area:* / epic #N, through seatIntakeKeys); each matched head's commit is read for its committer date and its Claude-Session: trailer. A push counts as a claim (推即认领) when the card's newest claim is this seat's, or, on the intake only, when the card has no claim. Reading 4 is the first closed card, on the intake or off it, carrying this seat's claim. It is timed by that session's newest comment on the card, because a merge closes a card and is no act of the seat.

A foreign session's activity yields the seat when it is newer than the brief and under one round old (exit 5). "One round" defaults to contract-review.md's 「一轮(约 60 分钟)」, and the self-test pins that phrase. An unread session counts as foreign. A brief newer than every activity clears at once (简报即最新事件 ⇒ 立即坐席). Every read is bounded by that window: a card not updated inside it buys no thread read. Exits: 0 CLEAR · 2 usage · 3 prerequisite · 4 INCOMPLETE · 5 YIELD. The footer names five unread legs: the maintainer's summon, the lease table (pass its sessions with --own), non-convention branches, the real push time, and the touch readings after a clear mutex. The self-test has 37 cases across 6 pinned batteries, with the handshake, and is wired into check:pm-prior-rulings beside card-pick.mjs.

check-handover --inflight reads every open pm:dispatched card's thread through (a)'s own paging, now one helper (readDispatched). For each card it takes the NEWEST Claim: that no Release: follows, plus every later Claim amendment, read in thread order: a fence removes only what was declared at or before it, so the newest declaration wins. It reads their File surface: lines, both the one-line form and the measured multi-line form (an empty value with list items under it). From those lines it keeps the code spans that are paths, with braces expanded, minus what a Not … / No … / ⛔ … clause fences (a No changes outside … clause is surface). It then intersects them with --paths (meetKind: literal paths, directories, globs read root-relative). A claimed bare file name reads as that name anywhere; a claimed path fragment (lanes/director.md, references/contract-review.md) reads as a whole-segment suffix, and a dispatch DIR and DIR/** answer it alike. A dispatched bare name is the root file. A claimed bare name against a dispatch directory or DIR/** is listed NOT COMPARED, and the clear line states that a deeper fragment and a glob fragment are never judged. Exits: 0 clear · 2 OVERLAP (each meeting pair named) · 4 no verdict · 5 no readable surface meets, but a claim's surface names no path. The self-test grew from 67 to 92 cases, with an inflight: floor of 24. Per the ruling in its header (「Local, by ruling」, 6162084315 letter A), no workflow runs this script, and its self-test stays unwired as before.

Carrier item 1 — record-recognisers.mjs HANDOFF_TARGET now reads repo:NAME#N (a dotted repo name included) and epic:#N#k, beside l2-review#N / review#N and the retired domain:LANE#N. It has two new self-test rows, with controls (repo:objectstack, repo:#2, epic:#35205, epic:35205#1 stay unreadable), and the battery floor rises 17 → 19. Carrier item 2 — the card-pick.mjs docblock and its lane-ownership footer leg no longer say a domain:* card outside the seat's lane may not be claimed. They say domain:* reads as file ownership only (lanes are seats and epics), and that a cloud card or a security card may still not be claimed. A new CLI-battery case covers this (floor 12 → 13). execution-duties.md line 50, which explained the stale footer, now states the rule alone. check-skill-line-ratchet.mjs's comment names 〈车道与域〉.

Read first (by risk): scripts/pm/record-recognisers.mjs HANDOFF_TARGET (a guard instrument, Tier H); scripts/pm/round-open.mjs mutexVerdict and readMutex's push leg; scripts/pm/check-handover.mjs surfaceTokens / surfacesMeet.

Tests

Self-tests and ablations at `ab7e76dc`
  • node scripts/pm/round-open.mjs --self-test → ✓ round-open self-test: 37 cases pass across 6 batteries — offline, no network.
  • node scripts/pm/check-handover.mjs --self-test → ✓ check-handover self-test: 92 cases pass — offline, no network, no token. (was 67)
  • node scripts/pm/record-recognisers.mjs --self-test → ✓ record-recognisers self-test: 466 cases pass …
  • node scripts/pm/card-pick.mjs --self-test → ✓ card-pick self-test: 63 cases pass across 8 batteries (was 62)
  • Ablations through scripts/ablation-replace.mjs. Each mutation was proven on disk (anchor 1 → 0, blob moved) and restored to the HEAD blob with git diff HEAD empty:
    1. HANDOFF_TARGET back to the domain-only arm: exit 1, 2 of 466 red (both new rows).
    2. card-pick footer back to 「against your lane」: exit 1, 1 of 63 red.
    3. surfaceTokens with no exclusion clause: exit 1, 3 of 85 red.
    4. claimed bare name meeting a DIR/**: exit 1, 1 red.
    5. no exit 5 for unread surfaces: exit 1, 1 red.
    6. mutexVerdict ignoring the brief: exit 1, 1 of 32 red.
    7. every session read as own: exit 1, 4 red.
    8. a push on another seat's card counted: exit 1, 1 red.
    9. the window bound on thread reads deleted: exit 1, 1 red.
  • Fix rounds 1–2 (contract review 7214100600, delta 7214788709), same tool, each restored to the HEAD blob: S1 open listing back to the intake → 3 of 36 red; S1 closed listing back to the intake → 1 red; N1 own filter removed → 1 red; S2 every fence over the final union → 1 of 90 red; S3 suffix arm removed → 2 red; N4 not-compared listing disabled → 1 red; S4 heads matched to the intake only → 2 of 37 red; S4 holder check letting an unclaimed off-intake card count → 1 red; S5 DIR/** not read as its directory → 1 of 92 red; N8 single-segment directory skipped → 1 red.
Live runs
Gates at `030220ea`, re-run at `ab7e76dc`
  • At ab7e76dc the same 80 families were derived and re-run: 74 exit 0, 6 exit 3 PREREQUISITE NOT MET = NOT MEASURED (the same six, built dist), none red; dispatch-gates --ran → ✓ dispatch-gates --ran: 80 derived famil(ies) accounted for — 74 run, 6 NOT-MEASURED (6 DERIVED from a recorded exit 3). (families 1–52 ran in one detached run, 53–80 in a resumed one after a session pause.)

  • node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands (no paths; 9 paths against the merge base, after merging origin/main 02ed840) derived 80 families. All 80 ran, with each exit captured before any pipe. Results: 73 exit 0 on the first pass; 6 exit 3 PREREQUISITE NOT MET, read as NOT MEASURED (check:doc-formula-expressions, check:dts-closure, check:dual-build-cjs-loads, check:i18n-coverage, check:lean-entry-closure, check:sourcemap-no-sources-content); and 1 exit 1. Those six read built dist, and the diff touches no package, so no closure was built. The exit 1 was check-self-test-workflow-commands.mjs, which refused with spawnSync node ETIMEDOUT while running a sibling's self-test under load average 7; re-run alone, it exits 0: ✓ check-self-test-workflow-commands: no self-test CI runs prints a line the Actions runner would parse as a workflow command.

  • dispatch-gates --ran → ✓ dispatch-gates --ran: 80 derived famil(ies) accounted for — 74 run, 6 NOT-MEASURED (6 DERIVED from a recorded exit 3).

  • Inside the union, among others: pnpm check:pm-prior-rulings 0 (three self-tests), pnpm check:pm-record-recognisers 0, pnpm check:pm-skill-ratchet 0, pnpm check:pm-skill-id-lint 0, pnpm check:pm-governed-prose 0, pnpm check:pm-dispatch-gates 0, pnpm check:pm-half-states 0, node scripts/check-self-test-wired.mjs 0, pnpm check:nul-bytes 0, pnpm check:commit-card-trailers 0.

  • Outside it: node scripts/pm/check-skill-line-ratchet.mjs 0; npx eslint --no-inline-config on the four edited scripts and the new one, 0.

  • check-prior-rulings.mjs --card 35237 --paths over this surface reads 641 hit lines. None of the lines this PR edits cites a ruling. The one ruling next to an edit is check-handover's 「Local, by ruling」 (6162084315, letter A), and --inflight keeps it: no workflow runs the script.

Acceptance notes

  • SKILL.md 〈车道与域〉's in-flight line names no reader. SKILL.md was fenced out of this claim's surface. The pointer belongs on that line (「派发前在飞检查:… 本地求交、不另发查询」 → add 「现读 check-handover.mjs --inflight」); carrier: the seat.
  • The Contract-review-handoff: TEMPLATE still prints the placeholder l2-review#N|domain:LANE#N (inside angle brackets). The self-test pins it verbatim in references/contract-review.md, which is outside this surface. The reader now accepts the live seat spellings, and the template's placeholder should follow in that file; carrier: the seat.
  • 「非豁免 Claim:」 (reading 4) is read as a claim of this seat. The 不占席 chains (review, director) never carry an executing seat's number, so the seat filter already leaves them out. No other exemption is written in the rule text.
  • The in-flight surface reader is new code, not a borrowed one. dispatch-gates.mjs holds a private FILE_SURFACE_KEY_LINE for one effort check, and that file is serial behind dispatch-gates: a key added to a served metadata type other than field (object, flow, page, agent, …) derives nothing, though metadata-protocol pins its property count #37064, so nothing was exported from it.
  • A push counts as a claim only on a lane card that this seat claims or that nobody claims, so another seat's push on a shared area (area:fleet has two seats) never yields this one.
  • area-lease.md line 37 spells overlap-check.mjs without its scripts/pm/ prefix. The other pointers already spell script names bare, and this deletion pays for the new pointer's bytes.
  • Byte ratchet: seat-lifecycle.md 9054 → 9054 (ceiling 9070), area-lease.md 6577 → 6584 (ceiling 6586), execution-duties.md 22301 → 22281 (ceiling 22307). Line counts unchanged (99, 66, 207). No ceiling row moved.
  • L2: this PR moves .claude/** rule text and edits a guard instrument (record-recognisers.mjs), so it lands at Tier H after a contract-tier review; the seat routes both.

Verification

Two minutes: node scripts/pm/round-open.mjs --self-test && node scripts/pm/check-handover.mjs --self-test prints the two ✓ lines above. Live: node scripts/pm/check-handover.mjs --inflight --paths=scripts/pm/dispatch-gates.mjs exits 2 and names #37064's claim.


Generated by Claude Code

…k footer reads domain:* as file ownership

Carrier items 1 and 2 of #35237's script step.

Claude-Session: https://claude.ai/code/session_01ASNY8UcT2uJmgTyCPnMiMZ
Co-authored-by: Claude <noreply@anthropic.com>
…surfaces against a dispatch

Claude-Session: https://claude.ai/code/session_01ASNY8UcT2uJmgTyCPnMiMZ
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 27, 2026
@github-actions github-actions Bot added size/xl dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation labels Nov 27, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#8 · os-mickey · session_01ASNY8UcT2uJmgTyCPnMiMZ

Contract-review-claim: session_01ASNY8UcT2uJmgTyCPnMiMZ · head 030220e · 2026-11-27T08:40Z

The dispatching seat runs this head's contract-tier review in an isolated at-tier sub-agent (contract-review.md); the record follows on this PR.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#8 · os-mickey · session_01ASNY8UcT2uJmgTyCPnMiMZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 030220ea73955e9e7f00068db538827cfce73172
Local-runs: probe — check-handover.mjs --self-test at the head: its header's ruling keeps it out of every workflow, so no check-run answers its 18 new inflight cases; run once offline from a git-archive export of the head in scratch, with the ④ break inputs in the same call (an earlier call read main's tree because FETCH_HEAD had moved, and was discarded)
Scope: .claude/skills/pm-dispatch/references/area-lease.md, .claude/skills/pm-dispatch/references/execution-duties.md, .claude/skills/pm-dispatch/references/seat-lifecycle.md, scripts/pm/record-recognisers.mjs + scripts/pm/round-open.mjs, scripts/pm/check-handover.mjs, scripts/pm/card-pick.mjs, package.json
Security-touching: no
Rule-change-verified: none

PR #37878 (card #35237, slice 4 plus carrier items 1 and 2), rules face. No must-fix. S1, S2 and S3 below are open on this head and earn a delta review of their fix; each is a path where a new reader prints a clean answer it has not earned. N1 to N6 are nits.

Gates on this head when read: 44 check-runs success, 14 skipped, 6 in progress (Test UI shards 1, 3, 4, 11, 14 and 16 of 16), none red. The diff touches no ui/** path. Lint · repo & tooling gates is green; it runs check:pm-prior-rulings (round-open's self-test included), check:pm-record-recognisers, check:pm-skill-ratchet, check:pm-skill-id-lint, check:pm-governed-prose, check:pm-half-states and check-self-test-wired. Lint · PM dispatch-gates, Lint · ESLint, Governed Surface Queue Guard, PR-body guards and Check Changeset are green.

① Derived judgments

  • hits are four, not the three the brief lists: reviewFace on this file list also returns scripts/pm/record-recognisers.mjs (a governed path). It is reviewed as a hits file.
  • HANDOFF_TARGET accept set: adds repo:NAME#N (the name may carry ., -, _) and epic:#N#k; l2-review#N, review#N and domain:LANE#N read as before; triage, a seat with no number, repo:#2, epic:#N and epic:N#k stay unreadable. Right. It is carrier item 1 (7181970862). No gate reads the line; its one consumer, takerOf in check-owed-reviews.mjs, prints the target verbatim and tests for an L2 lane on the text before the first #, which holds for both new shapes. A dotted repo seat is live (repo:www.objectos.ai, mailbox-open.mjs:610).
  • card-pick.mjs docblock and UNREAD_LEGS lane-ownership leg: wording only, no behaviour. Right against execution-duties.md line 50 and area-lease.md line 47 (domain seats retired, domain:* is file ownership only; cloud and security cards still not claimed).
  • check-handover.mjs CLI: new mode --inflight with --paths, --card and its own exit 5; --repo validation moves ahead of the mode split; the pm:dispatched listing becomes readDispatched with the same ceiling and the same truncated throw. Right, and behaviour-preserving for the handover mode. FLEET_BOT_LOGIN, which the queue guard loads from this file, is untouched and the module loads at the head (probe).
  • round-open.mjs: new CLI, exits 0, 2, 3, 4, 5 (usage is 2 here and 1 in check-handover.mjs; each documents its own). Its self-test joins check:pm-prior-rulings in package.json. Right.
  • The three skill files: every changed line keeps its rule sentence and names the reader, the done-when form of 7017468070. Right.
  • Readings round-open.mjs had to choose, since the rule text does not spell them: reading 2 is any seat-signed comment after the brief (a superset of the marker; right, it only adds self-exits); the brief is read on its headline from any author (right by lines 6 and 13, which bind the brief to no session); a push counts on a lane card this seat claims or nobody claims (right; conservative on an area two seats share); reading 4 is timed by the claiming session's newest comment on the card, not by the close (acceptable and declared: a merge closes a card); 非豁免 is the same-seat filter (acceptable: no other exemption is written anywhere under pm-dispatch/). The lane as the post title's intake keys is wrong: S1.

② Semver level

skip-changeset is right: the diff publishes nothing. It changes scripts/pm/**, three .claude/** reference files and one scripts entry of the private root package.json. Check Changeset is green on the head. Clause-②: no holds: nothing a consumer can author, call or read changes.

③ Boundary flags

  • open_questions: none in the dev report (7213710664).
  • SQL push-down: not applicable, the diff holds no query. The new reads are REST listings; the label and since filters are pushed to the API, and thread reads are bounded by the round window.
  • One round as 60 minutes (ROUND_MINUTES): answered, accepted as the reading. seat-lifecycle.md gives no number, SKILL.md line 73 defines a round by its end, and contract-review.md line 25 carries the only figure under pm-dispatch/. A round that runs past 60 minutes with no new trace reads CLEAR. The flag is overridable and the self-test pins the phrase. Escalated to the seat as a carrier: the number belongs on the rule line, which is rule text and not this PR's to add.
  • check-handover.mjs self-test stays unwired, by the ruling its header quotes (6162084315, letter A): answered, holds. That is why this review ran it once: 85 cases pass at the head.
  • The in-flight surface reader is new, not borrowed from dispatch-gates.mjs' private FILE_SURFACE_KEY_LINE: answered, accepted while that file is serial behind dispatch-gates: a key added to a served metadata type other than field (object, flow, page, agent, …) derives nothing, though metadata-protocol pins its property count #37064. The two key-line spellings should become one when carrier item 3 opens that file.
  • Out-of-scope items the report marks "noted, not filed": the SKILL.md line 184 pointer to check-handover.mjs --inflight, and the hand-off TEMPLATE placeholder with its verbatim copy in contract-review.md. Escalated to the seat: each needs a carrier note on pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237, which stays open. Until the first lands, the in-flight rule's own line names no reader.
  • Branch cut from e69fa46d and merged with 02ed8408: answered. No file of this diff has changed on main since that merge base.
  • The dev's one red local gate (check-self-test-workflow-commands, a timeout under load): answered by the head's check-runs, which are green.
  • execution-duties.md line 50 and area-lease.md line 37 edits: inside the claimed surface, judged in ④.

④ Design judgment

.claude/skills/pm-dispatch/references/seat-lifecycle.md (hits). Line 5 gains the pointer; line 9 loses only the retyped procedure and keeps 推即认领,欠一条 Claim:. Read against round-open.mjs sentence by sentence: lines 5, 6, 7, 9, 11 (executing seats only; lease sessions through --own), 12 (director refused) and 13 (mutexVerdict clears every activity at or before the brief) agree. Lines 8 and 10 do not, in one respect: S1. Line 14 (the maintainer's summon) is named as unread on every run.

.claude/skills/pm-dispatch/references/area-lease.md (hits). Line 31 keeps the rule and names the reader. Line 37 drops the scripts/pm/ prefix, as the sibling pointers spell names. Holds, with N3: an area session that runs the reader as pointed gets YIELD on its own seat's PM session until it passes that session with --own.

.claude/skills/pm-dispatch/references/execution-duties.md (hits). Line 42 keeps the rule and names check-handover.mjs --inflight; the mode reads every open pm:dispatched claim, a superset of the domain:ui claims the line asks for. Line 50 states the rule alone and agrees with the new card-pick.mjs footer. The pointer holds only as far as the reader does: S2, S3.

scripts/pm/record-recognisers.mjs (hits). The regex was walked against every row and control in the two new self-test cases and against repo:a#1#2 and epic:#35205#1#2 (both unreadable, the tail is no tier token). It holds against carrier item 1 and its consumer. N6.

scripts/pm/round-open.mjs (implementing).

S1 (should-fix) — Readings 3 and 4 walk only cards under the post title's intake keys (onIntake, lines 300, 324, 340, 366). A seat's claims lawfully sit outside those keys: card-pick.mjs rules 1 and 2 on main pick p0 and p1 from any area, and on this card seat 4 took it as "p1 outside area:cloud and area:ux" (7129081501). A claim, a push or a closed card of this seat by another session on such a card, inside the round, reads CLEAR, and neither a gap nor a footer leg says the walk stopped at the intake. Line 7 makes the claim the one trace that cannot be missing, so this is the reading the mutex rests on when the marker was skipped. Fix: read same-seat claims on every open pm:dispatched ∪ pm:queue card updated inside the window (the window already bounds the thread reads) and on the closed listing, or name the leg in UNREAD_LEGS and on the CLEAR line.

N1 (nit) — Reading 2 keeps the newest seat-signed comment whoever wrote it, so an own or --own comment newer than another session's marker hides that marker. Line 6 says "newest", so the code agrees with the text; keeping the newest comment by a session outside own, as reading 3 does, costs nothing.

N2 (nit) — seatOfPostTitle is a new spelling of a reading fleet-roster.mjs:276 already has (· seat N anywhere in the name half), against the header's "every reader is borrowed". And --post cannot rescue a title the reader does not parse: line 289 pushes a gap, so the run ends at exit 4 whatever USAGE says about --post. It fails closed.

N3 (nit) — A mode:remote dev's push, a head commit with no Claude-Session: trailer (a platform merge of main), and, from an area session's side, the seat's PM session all read foreign until passed with --own. USAGE and the YIELD line name only the lease table's area sessions. The YIELD line could say that --own clears a session the seat knows as its own.

scripts/pm/check-handover.mjs --inflight (implementing). Probe inputs and results are quoted with each finding.

S2 (should-fix) — inflightSurface applies every fence to the whole union, blind to order (line 600). A path that a later Claim amendment adds is removed when the claim before it fenced that name. Probe: a claim with "Not dispatch-gates.mjs", then an amendment whose surface is scripts/pm/dispatch-gates.mjs, reads paths scripts/pm/check-handover.mjs only, and --paths=scripts/pm/dispatch-gates.mjs exits 0. This card's own claim (7212701571) carries exactly that fence and takes carrier item 3 next, on the fleet's most serial file. The self-test pins only the other direction (a later fence over an earlier path). Fix: a fence removes only what was declared at or before it; the newest declaration wins.

S3 (should-fix) — surfacesMeet reads a claimed entry that carries a slash as root-relative (line 554), so a path fragment meets nothing and the card is not listed as unread. Probe: lanes/director.md against .claude/skills/pm-dispatch/references/lanes/director.md is false, and so is references/contract-review.md against its full path; the run exits 0. The first spelling is on this card's own thread (claim 7006559529), and references/NAME.md is how the fleet's prose names skill files. Fix: a claimed entry that matches a dispatch path on a whole-segment suffix meets it, reported like a bare name; or the card is listed as unread.

N4 (nit) — Three more entries drop without a word when the claim names other paths: a clause opening No changes outside … reads its path as fenced; a bare root directory (docs, ui) is no path token; a literal .claude reads as a file with an extension and meets no glob under it (probe: false). A claimed bare file name never meets a DIR/** or bare-directory dispatch entry (probe: false for scripts/pm/** and scripts/pm/); that one is declared and pinned, and the trade is sound, but exit 0 still prints "clear". Listing the claimed entries that were not compared would make the clean line true.

N5 (nit) — The header says "conservative where it cannot tell, in the direction of reporting"; the bare-name rule and S3 go the other way. The sentence should say which cases report and which do not.

scripts/pm/card-pick.mjs (implementing). Text only; agrees with the rule lines named in ①. The new CLI-battery case pins both the retired phrases gone and the new one present. Holds.

package.json (implementing). One chain entry; the job that runs it is green on the head. Holds.

N6 (nit) — record-recognisers.mjs: the comment on CONTRACT_REVIEW_HANDOFF_TEMPLATE still says the verbatim pin keeps the text and HANDOFF_TARGET from drifting apart, while the placeholder names one retired sibling spelling and the reader now takes two more. It rides the template carrier in ③.

Rule-change: every .claude/** hunk is a pointer, a dropped procedure step or wording; none alters what an agent may do without the maintainer, what gets done and in what order, or what must go to him. none matches the PR body.

Not reviewed here, the lane seat's ACCEPT at TIER_DEFAULT: the one comment in scripts/pm/check-skill-line-ratchet.mjs.

Implemented-by: claude/issue-35237-slice4-inflight-round-open
Reviewed-by: session_01ASNY8UcT2uJmgTyCPnMiMZ

VERDICT: PASS

… order and reads path fragments

Contract review fix round 1: S1, S2, S3 and nits N1, N3, N4 (in part), N5.

Claude-Session: https://claude.ai/code/session_01ASNY8UcT2uJmgTyCPnMiMZ
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#8 · os-mickey · session_01ASNY8UcT2uJmgTyCPnMiMZ

Contract-review-claim: session_01ASNY8UcT2uJmgTyCPnMiMZ · head 935adc3 · 2026-11-27T09:25Z

Delta review of the fix round for record 7214100600 (S1–S3), by the same isolated at-tier reviewer.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#8 · os-mickey · session_01ASNY8UcT2uJmgTyCPnMiMZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 935adc314147bfd574e08181013c20fc423c5244
Local-runs: probe — check-handover.mjs --self-test at the new head, which no workflow runs: one offline call from a git-archive export of the head in scratch, with the delta's break inputs on both readers in the same call
Scope: .claude/skills/pm-dispatch/references/area-lease.md, .claude/skills/pm-dispatch/references/execution-duties.md, .claude/skills/pm-dispatch/references/seat-lifecycle.md, scripts/pm/record-recognisers.mjs + scripts/pm/round-open.mjs, scripts/pm/check-handover.mjs, scripts/pm/card-pick.mjs, package.json
Security-touching: no
Rule-change-verified: none

This is a DELTA record on PR #37878 (card #35237). Record 7214100600 on head 030220ea left S1, S2 and S3 open. The delta 030220ea..935adc31 is two fast-forward commits touching scripts/pm/round-open.mjs and scripts/pm/check-handover.mjs only.

S1: closed

S2: closed

S3: closed

No must-fix. Two narrower findings are new on this head, S4 and S5 below; each is what remains of S1 and S3 on one input, and each earns a delta review of its fix.

Gates on this head: all 60 check-runs completed, 50 success and 10 skipped, none red, none running. Lint · repo & tooling gates is green (round-open's self-test rides it), as are Lint · PM dispatch-gates, Lint · ESLint, Governed Surface Queue Guard and PR-body guards. Check Changeset reads skipped, the skip-changeset label's job-level exemption.

① Derived judgments

  • The four hits files, card-pick.mjs and package.json are byte-identical to 030220ea; record 7214100600 judged them and that judgment carries.
  • round-open.mjs: readings 3 and 4 now walk every open pm:dispatched ∪ pm:queue card and every closed card updated inside the window, on the intake or off it. Right: it is the reading S1 asked for, and the window still bounds the thread reads (the dev's live run read 41 threads, was 5).
  • round-open.mjs: reading 2 skips comments signed by an own session (postReadings takes own). Right; it is N1, and it makes readings 2 and 3 filter alike.
  • round-open.mjs: a post title with no intake no longer ends the run early; readings 3 and 4 are taken and the gap names only the push leg. Right; the exit is still 4.
  • check-handover.mjs: inflightSurface reads the claim and its amendments in thread order; a fence removes only what was declared at or before it. Right; probe: the answer does not depend on the order the rows arrive in.
  • check-handover.mjs: meetKind replaces the boolean and adds a suffix reading for a claimed path fragment; surfacesMeet stays as its boolean. Right for a dispatch file path. Not consistent for a dispatch directory: S5.
  • check-handover.mjs: a clear run lists claimed bare names it did not compare; a clause opening No changes outside … is surface. Right, with N8.

② Semver level

Unchanged: the delta publishes nothing, skip-changeset holds and Clause-②: no holds.

③ Boundary flags

  • open_questions: none in the dev report (7214634452).
  • SQL push-down: not applicable, the delta holds no query.
  • S1 widens the reads: answered, accepted. The window bounds them and the run prints the count.
  • N2 and N6 left by the seat's order: answered, they stay accepted deviations. The single-segment tokens of N4 (docs, ui, .claude) also stay unread, as the report says.
  • The PR body still quotes 32 and 85 cases and the round-0 fence and fragment readings: escalated to the seat, which owes the refresh. This record judged the tree.
  • The carriers from record 7214100600 (the SKILL.md line 184 pointer, the hand-off template with contract-review.md, the round's number on the rule line) are untouched by the delta and still owed.

④ Design judgment

scripts/pm/round-open.mjs. The S1 shape is pinned (a claim of this seat by another session on a p1 card off the intake yields) and so is an off-intake closed card. Probe: the self-test passes, 36 cases. N1 and N3 are taken as written.

S4 (should-fix) — The push leg reads an off-intake card only when seatCards holds it, and seatCards is filled inside the loop that skips every card not updated in the window (the continue before seatCards.add). A push does not move a card's updated_at. So a card off the intake that another session of this seat claimed more than one round ago, with a push ten minutes old, reads CLEAR with no thread and no commit read; the same card on the intake reads YIELD (probe: exit 0 against exit 5). The push is the only fresh trace a long round leaves on such a card, and p0 and p1 cards from other areas are a seat's first picks. The footer leg names only "an off-intake card no claim names", which is a different case. Fix: match heads against every open pm:dispatched card and let the existing holder check keep this seat's (an unclaimed one still counts on the intake only), or name this leg in UNREAD_LEGS and in reading 3 of the header.

scripts/pm/check-handover.mjs --inflight. Probe: the self-test passes, 90 cases. Both S2 directions hold on a three-step thread. Both S3 spellings meet their full paths as suffix, and a partial segment does not. N5 is taken as written.

S5 (should-fix) — One directory, two spellings, two answers. references/contract-review.md meets the dispatch entry .claude/skills/pm-dispatch/references as a suffix, but against .claude/skills/pm-dispatch/references/** it meets nothing, is not listed NOT COMPARED (that listing takes bare names only) and the run prints "clear" (probe: suffix, then null, exit 0, empty list). DIR/** is how the claim template's directory surface is usually spelled on --paths. The meetKind docblock says both: its suffix line has a fragment meet a dispatch directory it starts inside, and its closing paragraph says a fragment against a bare directory is no meeting. Fix: read a trailing /** as its directory in the suffix arm, and make the docblock say what the code does.

N7 (nit) — A fragment that sits deeper inside the dispatch directory (lanes/director.md against …/references or …/references/**) meets nothing and is not listed. This reader cannot tell it from a root-relative path, so not judging it is sound; but the header's "a clear run says what it did not judge" is true for names only. One standing sentence on the clear line would cover it. A claimed fragment that is itself a glob or a directory (references/*.md, references/lanes) is not suffix-read either.

N8 (nit) — The NOT COMPARED listing skips a single-segment dispatch directory: --paths=scripts/ against a claimed card-pick.mjs lists nothing, while scripts/pm/ and scripts/** each list it (probe: 0, 1, 1). notComparable asks for a slash in the entry after the trailing one is stripped.

N9 (nit) — The suffix arm also fires for a root-relative claimed path whose first segment is the dispatch directory's last: ui/packages against packages/spec/src/x.ts, ui/skills against skills/…. It reports, which is the safe direction, and prints the pair as "a path fragment on the claim". Accepted; the label could say the path may be root-relative.

Nits from record 7214100600: N1, N3 and N5 are fixed; N4 is fixed in part (N8 and the single-segment tokens remain); N2 and N6 stand as accepted deviations.

Rule-change: the delta touches no .claude/** file, and the hunks verified in record 7214100600 are unchanged. none matches the PR body.

Not reviewed here, the lane seat's ACCEPT at TIER_DEFAULT: the one comment in scripts/pm/check-skill-line-ratchet.mjs, unchanged in the delta.

Implemented-by: claude/issue-35237-slice4-inflight-round-open
Reviewed-by: session_01ASNY8UcT2uJmgTyCPnMiMZ

VERDICT: PASS

…ads DIR/** as its directory

Contract review fix round 2: S4, S5, nits N7 and N8.

Claude-Session: https://claude.ai/code/session_01ASNY8UcT2uJmgTyCPnMiMZ
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#8 · os-mickey · session_01ASNY8UcT2uJmgTyCPnMiMZ

Contract-review-claim: session_01ASNY8UcT2uJmgTyCPnMiMZ · head ab7e76d · 2026-11-27T15:56Z

Delta review of fix round 2 for record 7214788709 (S4, S5), by the same isolated at-tier reviewer. The PR body was refreshed to this head by the seat (issue_patch, 15127 bytes).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#8 · os-mickey · session_01ASNY8UcT2uJmgTyCPnMiMZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ab7e76dc26618b3a82f36f794a9fc432c1e08122
Local-runs: probe — check-handover.mjs --self-test at the new head, which no workflow runs: one offline call from a git-archive export of the head in scratch, with the delta's break inputs on both readers in the same call
Scope: .claude/skills/pm-dispatch/references/area-lease.md, .claude/skills/pm-dispatch/references/execution-duties.md, .claude/skills/pm-dispatch/references/seat-lifecycle.md, scripts/pm/record-recognisers.mjs + scripts/pm/round-open.mjs, scripts/pm/check-handover.mjs, scripts/pm/card-pick.mjs, package.json
Security-touching: no
Rule-change-verified: none

This is a DELTA record on PR #37878 (card #35237). Record 7214788709 on head 935adc31 left S4 and S5 open. The delta 935adc31..ab7e76dc is one fast-forward commit touching scripts/pm/round-open.mjs and scripts/pm/check-handover.mjs only.

S4: closed

S5: closed

No must-fix, no should-fix. N10 to N12 below are nits, and the open question in ③ is answered: option A is acceptable for landing.

Gates on this head when read: all 64 check-runs completed, 51 success and 13 skipped, none red, none running. Lint · repo & tooling gates is green (round-open's self-test rides it), as are Lint · PM dispatch-gates, Lint · ESLint, Governed Surface Queue Guard and PR-body guards.

① Derived judgments

  • The four hits files, card-pick.mjs and package.json are byte-identical to 030220ea; record 7214100600 judged them and that judgment carries.
  • round-open.mjs: the push leg matches heads against every open card on the intake or carrying pm:dispatched; the holder check keeps a card whose newest claim is this seat's, and an unclaimed card only on the intake. Right: it is the first fix S4 named. Probe: an off-intake card another session of this seat claimed 300 minutes ago, with a push 10 minutes old, reads YIELD; the same card unclaimed, or claimed by seat 3, adds no activity.
  • check-handover.mjs: meetKind reads a trailing /** as its directory in the suffix arm. Right: references/contract-review.md meets …/references, …/references/ and …/references/** alike (probe: suffix three times), and a sibling directory …/referencesx/** does not.
  • check-handover.mjs: the clear line carries one standing sentence on what is never judged (N7), and a single-segment dispatch directory now lists a claimed bare name NOT COMPARED (N8). Right; probe: scripts/ lists one.

② Semver level

Unchanged: the delta publishes nothing, skip-changeset holds and Clause-②: no holds.

③ Boundary flags

  • SQL push-down: not applicable, the delta holds no query.
  • Open question (dev report 7222610187): a head commit with no Claude-Session: trailer reads as a foreign session, so a seat YIELDs for one round on its own platform merge of main. Answered: option A is acceptable for landing and need not change in this PR. It errs only toward self-exit, never toward a clear mutex; line 11 of the rule lets readings three and four only add self-exits; the PR declares "one more round of waiting" as its misread cost; and the YIELD line names the head and says the session is unread. Probe: a card this session claims, with a trailer-less merge as its head, reads exit 5.
  • Two corrections to carry with it. First, record 7214100600 N3 said such a head reads foreign "until passed with --own"; that is wrong for this case, since --own takes session ids and an unread session matches none (probe: still exit 5). Only the round's passing clears it. Second, S4 widened the exposure on purpose: every pm:dispatched card this seat claims is now read, so each merge of main on such a branch costs the seat up to one round.
  • Option B stays a follow-up on the card, and it is not a pure gain: the newest non-merge commit's trailer names who wrote the last real commit, not who pushed the merge, so another session that only merges main onto this seat's branch would read as own. B needs its own review at this tier. An explicit clear of one named head by the seat would keep the default conservative; that is the maintainer's or the seat's choice, not this record's.
  • N9 left by order: answered, it stays an accepted deviation, with N2 and N6.
  • The PR body was refreshed by the seat and now quotes 37 and 92 cases; the probe reads the same counts at this head. Its Rule-change: none and Clause-②: no lines are unchanged.
  • The carriers from record 7214100600 (the SKILL.md line 184 pointer, the hand-off template with contract-review.md, the round's number on the rule line) are untouched by the delta and still owed.

④ Design judgment

scripts/pm/round-open.mjs. The S4 shape is pinned on the intake and off it. The header's reading 3 now says why every dispatched head is read. Probe: the self-test passes, 37 cases.

N10 (nit) — A card off the intake that carries this seat's claim but still wears pm:queue is not in pushCards, so its head is not read (probe: no thread, no commit). A claimed card carries pm:dispatched by the claim's atomic pair, so this is a half-state the patrol reports, not a reading this file owes.

N11 (nit) — The YIELD line ends "a push with no Claude-Session trailer reads foreign the same way", right after saying --own clears a known session. It should say that --own cannot clear such a head. It rides the option-B follow-up.

scripts/pm/check-handover.mjs --inflight. The S5 pair is pinned, and the meetKind docblock now says what the code does. Probe: the self-test passes, 92 cases.

N12 (nit) — A third spelling of one directory still answers apart: references/contract-review.md against …/references/**/*.md meets nothing (probe: null), while …/references/*.md and …/references/* meet as a suffix. The clear line's standing sentence does not cover it. It is a rare way to spell --paths; a follow-up, not this round's.

Rule-change: the delta touches no .claude/** file, and the hunks verified in record 7214100600 are unchanged. none matches the PR body.

Not reviewed here, the lane seat's ACCEPT at TIER_DEFAULT: the one comment in scripts/pm/check-skill-line-ratchet.mjs, unchanged in the delta.

Implemented-by: claude/issue-35237-slice4-inflight-round-open
Reviewed-by: session_01ASNY8UcT2uJmgTyCPnMiMZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#8 · os-mickey · session_01ASNY8UcT2uJmgTyCPnMiMZ

维护者速读

  • 用户能看到什么变化:用户无感。这是车队内部工具:席位开轮前的「开轮互斥」四个读数、派发前的「在飞文件面求交」,原来每次手工重打,现在各有一个只读脚本(round-open.mjs、check-handover.mjs --inflight)。
  • 为什么做:pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237(p1,北极星「产品区域与定级规则落地」专题下的车队技能整理第六步)——把重复手打的散文步骤换成脚本;三份规则文件各改一行指针,规则句不变。
  • 出错会怎样:脚本只读、不写任何东西;读错最多让席位多等一轮或多看一张卡。撤回 = 回退本 PR。
  • 要你做什么:这条改了受管规则文件(.claude/** 三份)和守卫脚本 record-recognisers.mjs,是 Tier H,需要你审批。契约审核 PASS 评论 7222751511,Head-sha: ab7e76dc26618b3a82f36f794a9fc432c1e08122。批准后由席位落地。

席位意见:建议批准。三轮契约审核(7214100600 → 7214788709 → 7222751511)共 5 条应修项全部关闭,终轮无必修、无应修;规则变更经审核核为 none。

席位核对

L1: ACCEPT · 2026-11-27T16:02Z · Head-sha: ab7e76dc26618b3a82f36f794a9fc432c1e08122 · reports: os-dev-report 7213710664, 7214634452, 7222610187 on #35237

  1. Shape: draft against main; first line Part of #35237 — slice 4 … (the card stays open for slice 7, carrier item 3 and carriers 4–6; no closing keyword anywhere in the body; #37064 appears with no verb beside it). 9 files, +1219/−40 at this head (under 3000). skip-changeset: scripts/pm/**, three .claude/** reference files and one scripts entry of the private root package.json; nothing published.
  2. Premise, measured: at the claim's adb65d16 no round-open.mjs and no --inflight existed; readContractReviewHandoff and the stale card-pick.mjs lane sentence were where the carrier notes said (dev re-read them at e69fa46d).
  3. Gates (check-runs on this head): 64 completed: 51 success, 13 skipped, 0 red, 0 running (the L2 record's reading). check-handover.mjs --self-test runs in no workflow by its header's ruling (6162084315, letter A); the reviewer ran it once offline at this sha: 92 cases pass. Self-tests: round-open 37, check-handover 92, record-recognisers 466, card-pick 63. Each S-finding fix has an ablation that reds and restores.
  4. Accepted deviations: branch cut from e69fa46d and merged with 02ed8408 (no file of the diff changed on main since); the L2 nits N2, N6, N9 left by order; option A for a trailer-less head (a platform merge of main reads as a foreign session for one round) — the L2 record 7222751511 ③ judged it acceptable for landing; the dev's local gate union ran in two parts across the usage pause (80 families, 74 exit 0, 6 NOT MEASURED for want of built dist, none red).
  5. Out of scope → where it went: carrier note 7214125474 on pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237 (items 4–6: the SKILL.md in-flight pointer, the hand-off template with contract-review.md, the round's number on the rule line). New follow-ups from the delta records, carried on pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237 in this round's note: option B (read the newest non-merge commit's trailer; needs its own contract review), N10–N12. Skills-docs: not owed (Metadata-protocol: none).
  6. Landing: Tier H (check-governed-merges.mjs --pr 37878: .claude/**×3, scripts/pm/record-recognisers.mjs×1). Hand-off = pm:awaiting-merge + review request to the approver, in one stroke after this record. After an authorized approval the seat lands it (落地前检, pr_ready, auto-merge).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#8 · os-mickey · session_01ASNY8UcT2uJmgTyCPnMiMZ

维护者速读

  • 用户能看到什么变化:用户无感。这是车队内部工具:席位开轮前的「开轮互斥」四个读数、派发前的「在飞文件面求交」,原来每次手工重打,现在各有一个只读脚本(round-open.mjs、check-handover.mjs --inflight)。
  • 为什么做:pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237(p1,北极星「产品区域与定级规则落地」专题下的车队技能整理第六步)——把重复手打的散文步骤换成脚本;三份规则文件各改一行指针,规则句不变。
  • 出错会怎样:脚本只读、不写任何东西;读错最多让席位多等一轮或多看一张卡。撤回 = 回退本 PR。
  • 要你做什么:这条改了受管规则文件(.claude/** 三份)和守卫脚本 record-recognisers.mjs,是 Tier H,需要你审批。契约审核 PASS 评论 7222751511,Head-sha: ab7e76dc26618b3a82f36f794a9fc432c1e08122。批准后由席位落地。

席位意见:建议批准。三轮契约审核(7214100600 → 7214788709 → 7222751511)共 5 条应修项全部关闭,终轮无必修、无应修;规则变更经审核核为 none。

席位核对

ACCEPT · 2026-11-27T16:03Z · L1 · Head-sha: ab7e76dc26618b3a82f36f794a9fc432c1e08122 · reports: os-dev-report 7213710664, 7214634452, 7222610187 on #35237

  1. Shape: draft against main; first line Part of #35237 — slice 4 … (the card stays open for slice 7, carrier item 3 and carriers 4–6; no closing keyword anywhere in the body; #37064 appears with no verb beside it). 9 files, +1219/−40 at this head (under 3000). skip-changeset: scripts/pm/**, three .claude/** reference files and one scripts entry of the private root package.json; nothing published.
  2. Premise, measured: at the claim's adb65d16 no round-open.mjs and no --inflight existed; readContractReviewHandoff and the stale card-pick.mjs lane sentence were where the carrier notes said (dev re-read them at e69fa46d).
  3. Gates (check-runs on this head): 64 completed: 51 success, 13 skipped, 0 red, 0 running (the L2 record's reading). check-handover.mjs --self-test runs in no workflow by its header's ruling (6162084315, letter A); the reviewer ran it once offline at this sha: 92 cases pass. Self-tests: round-open 37, check-handover 92, record-recognisers 466, card-pick 63. Each S-finding fix has an ablation that reds and restores.
  4. Accepted deviations: branch cut from e69fa46d and merged with 02ed8408 (no file of the diff changed on main since); the L2 nits N2, N6, N9 left by order; option A for a trailer-less head (a platform merge of main reads as a foreign session for one round) — the L2 record 7222751511 ③ judged it acceptable for landing; the dev's local gate union ran in two parts across the usage pause (80 families, 74 exit 0, 6 NOT MEASURED for want of built dist, none red).
  5. Out of scope → where it went: carrier note 7214125474 on pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237 (items 4–6: the SKILL.md in-flight pointer, the hand-off template with contract-review.md, the round's number on the rule line). New follow-ups from the delta records, carried on pm scripts: turn retyped prose procedures into scripts, including a card-pick reader by epic and area (step 6) #35237 in this round's note: option B (read the newest non-merge commit's trailer; needs its own contract review), N10–N12. Skills-docs: not owed (Metadata-protocol: none).
  6. Landing: Tier H (check-governed-merges.mjs --pr 37878: .claude/**×3, scripts/pm/record-recognisers.mjs×1). Hand-off = pm:awaiting-merge + review request to the approver, in one stroke after this record. After an authorized approval the seat lands it (落地前检, pr_ready, auto-merge).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#8 · os-mickey · session_01ASNY8UcT2uJmgTyCPnMiMZ

Hand-off · 2026-11-27T16:04Z · Tier H, awaiting a human merge

  • Seat record (维护者速读 + ## 席位核对 ACCEPT) on this head: the comment above. Contract review PASS: 7222751511, Head-sha: ab7e76dc26618b3a82f36f794a9fc432c1e08122.
  • Asked of the approver: an approval on this head. After it, the seat lands the PR (pre-landing checks, pr_ready, auto-merge); a push after approval re-runs this hand-off.

@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 27, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 27, 2026 17:02
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46038662203 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Build Core — 失败步骤: Build packages (excluding docs)(日志不可读,点进 job 看)

  • Live E2E UI — 失败步骤: Build the Console for the live lane

    ✗ Build failed in 5.28s
    
  • Lint UI — 失败步骤: Build every ui package the gates below read(日志不可读,点进 job 看)

  • Build & E2E UI — 失败步骤: Build the Console for E2E

    ✗ Build failed in 4.67s
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • ⚠️ 本次没有可用的聚合签名(日志里没有能解析出测试文件名的 FAIL 行)—— 这不是「没有同签名的其他 PR」,是这一轮没测到。跨 PR 聚合本次不可用,请手工比对其他 PR 的同类评论。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 12 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

Merged via the queue into main with commit ebb2d82 Nov 27, 2026
70 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-35237-slice4-inflight-round-open branch November 27, 2026 17:50
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…e probe rule (objectstack-ai#35237 slice 13) (objectstack-ai#38393)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XHogQ9ogKPxHhiFfT2UQgJi)_

Fixes objectstack-ai#35237
Claim on the card naming this branch: 7247494260 (slice 13; base claim
7245952141).
Clause-②: no
Metadata-protocol: none
Rule-change: none

## 维护者速读

- 用户无感:车队开发代理用的内部脚本和开发代理规则里的一行命令写法做了收尾修整,推送前后的行为对用户不可见。
- 属于「车队技能整理」里「把每次手敲的流程改成脚本」这一步,本次清掉这一步最后几项遗留小问题,做完后这一步可以关闭。
- 最坏情况是开发代理推送遇到超时、限流类错误时多重试几次(有固定上限)或照旧提前停下;一个提交即可整体撤回。
- 无

Slice 13 of the card: carrier item 24, the rule half of item 14 N7, and
items 26–29 (notes 7246458172 and 7246788470), plus the card's done-when
check below. 6 files, +54 / −16.

| Item | Where | What changed |
|:---|:---|:---|
| 24 | `scripts/pm/check-owed-reviews.mjs:140` | "The name is kept:
importers read it" was false (nothing imports `TRIAGE_ROUND_MINUTES`).
It now says the name is kept because this file reads it, in the trigger
(b) docblock and `owedReviewRow`, and that nothing imports it. Comment
only. |
| 14 N7 (rule half) | `.claude/agents/os-dev.md:31` | The probe command
now spells `--branch=BRANCH`, so it runs as written instead of ending in
a usage exit. Bytes are offset on the same line (see Acceptance notes).
|
| 14 N7 (ratchet) | `scripts/pm/check-skill-line-ratchet.mjs` | The
`os-dev.md` row is lowered 33500 → 33492, the landed size. No row
raised. |
| 26 | `scripts/pm/dev-worktree.sh` `classify_push_failure` | A new arm,
ahead of the 4xx arm and keyed exactly as it is, reads 408, 421, 429 and
every 5xx as `network`. "Received HTTP code 502 from proxy after
CONNECT" is now placed. The comment now says why. 5 classifier cases;
floor 14 → 19. |
| 27 | `scripts/pm/dev-worktree.sh` `rerun_with_probe` | A flag made
only of characters no shell reads specially is printed as typed
(`--backoff=2,4`). Any other flag is still quoted with `printf %q`. The
pinned line now carries `--backoff=2,4`. One round-trip case; floor 20 →
21. |
| 28 | `scripts/pm/git-history.mjs` self-test | The case titled "a
problem the CLI refuses as usage" now asserts through the CLI: `ancestor
--cwd=` pointed at a missing directory exits 1, prints nothing on stdout
and says "could not be checked" on stderr. |
| 29 | `scripts/pm/check-handover.mjs` `--inflight` clear line | The
line now names the unjudged case: "a claimed path fragment deeper inside
a dispatched directory, spelled DIR, DIR/** or DIR/**/GLOB alike". It is
pinned in the N12 case. |

### Why 408, 421 and 429 are network errors under rule 1
(`os-dev.md:33`, only a network error is retried)

The rule separates two kinds of failure. A refusal on the merits stops
the run (403, and every other judged 4xx). A failure of the path is
retried on a bounded schedule. Each of these three statuses says the
path failed and says nothing about the push itself:

- **408 Request Timeout.** The server closed the connection because the
request did not arrive whole in time. It is the same event as the
`Operation timed out` the classifier already retries; this time the
server noticed the timeout first.
- **421 Misdirected Request.** The request reached a connection that
cannot answer for this host, usually a reused HTTP/2 connection or a
proxy route. It describes the connection, not the request, and the
retry's new connection is the fix.
- **429 Too Many Requests.** The path is throttled for now. HTTP's own
remedy is to wait and retry, and the backoff schedule is that wait: four
retries, 30 s in all, never a loop.

All three read `network` before objectstack-ai#38387 (through the words "RPC failed").
This PR restores that reading and keeps 401, 404, 407 and 409 as
`other`. Every 5xx already read `network` in the `error:` and `HTTP`
spellings. The new arm adds the key words the 4xx arm uses (`status`,
`code`, `response`, `HTTP/N`), so a proxy's "Received HTTP code 502"
reads the same way.

### Done-when check, item by item

The card's done-when: each listed procedure is a script with a
self-test, its prose is a one-line pointer, and the card-pick reader
works against the live board. The closing check also asks that no
carrier item stays open apart from item 7 option B, which landing ruled
out of scope (7222751511 ③).

| Part | State | Evidence |
|:---|:---|:---|
| Slice 1: card-pick, lock depth, prior-rulings `--paths` | landed | PR
objectstack-ai#35482 |
| Slice 2: `landing-k`, `pr-state`, `sweep-closed-cards --pr` | landed |
PR objectstack-ai#35576 |
| Slices 3, 5, 6: `fleet-roster --health`, the dispatch-runbook pointer,
`l1-face` | landed | PR objectstack-ai#35671 |
| Slice 4: `check-handover --inflight`, `round-open` | landed | PR
objectstack-ai#37878 |
| Slice 7: `git-history ancestor`, `dev-worktree.sh` | landed | PR
objectstack-ai#38018 |
| Card-pick against the live board | works | `node
scripts/pm/card-pick.mjs --order area:fleet --seat repo:objectstack#5
--limit 3` at 23:04Z: read 231 open `pm:queue` issues over 3 pages, the
platform counts 231, `card-pick COMPLETE — 3 pick(s)`, exit 0 |
| Carrier items 1, 2 | done | slice 4 (landing note 7226135228) |
| 3, 5, 6, 11 (10's N6 too) | done | slice 8, PR objectstack-ai#38146 |
| 16–19 | done | slice 9, PR objectstack-ai#38212 |
| 4, 12, 13, 15 | done | slice 10, PR objectstack-ai#38222 |
| 20–22 | done | slice 11, PR objectstack-ai#38243 |
| 7 N11, 9, 14 N3/N5/N6 and N7's script half, 23, 25 | done | slice 12,
PR objectstack-ai#38387 |
| 24, N7's rule half, 26–29 | done | this PR |
| 8, 10 | owe nothing | listed for completeness and accepted as
deviations (7222785044) |
| 7 option B | out of scope | landing kept option A (7222751511 ③) |

Each part holds as far as it can be measured, so the first line is
`Fixes objectstack-ai#35237`. One limit: the review reports' section 4, the candidate
list the card names, cannot be read from this project, and slice 3's
claim (7022183772) recorded the same gap. "Each listed procedure" is
therefore checked against the slice plan in claim 7006559529, amendment
7013022048 and release 7017468070. If the seat holds a section-4
candidate outside that plan, the first line should become `Part of`.

## What changes

The four scripts and one comment above, one rule line and one ratchet
row. Nothing here ships in a package.

## Tests

All runs are at head `084b6dba7a`.

<details><summary>Self-tests of every script edited</summary>

- `bash scripts/pm/dev-worktree.sh --self-test`: `✓ dev-worktree
self-test: 95 cases pass across 7 batteries` (89 before: 5 classifier
cases and 1 probe case added).
- `node scripts/pm/git-history.mjs --self-test`: `git-history
--self-test: all cases passed.`
- `node scripts/pm/check-handover.mjs --self-test`: `✓ check-handover
self-test: 114 cases pass`.
- `node scripts/pm/check-owed-reviews.mjs --self-test`: `✓
check-owed-reviews self-test: 96 cases pass in 10 batteries`.
- `node scripts/pm/check-skill-line-ratchet.mjs --self-test`: `116 cases
pass`. The gate itself exits 0.

</details>

<details><summary>Ablations (scripts/ablation-replace.mjs; each mutation
was proven on disk and the restore proven blob == HEAD with an empty git
diff HEAD)</summary>

- A1 `(408|421|429|5[0-9][0-9])` → `(5[0-9][0-9])` in the new arm: 3 of
95 red, the 408, 429 and 421 cases.
- A2 `(408|421|429|5[0-9][0-9])` → `(408|421|429)`: 1 of 95 red, the
proxy CONNECT 502 case.
- A3 the as-typed branch of `rerun_with_probe` back to `printf %q`: 2 of
95 red, the pinned second-run line and the round-trip case.
- A4 the `--inflight` clear line back to its old text: 1 of 114 red, the
N12 case.
- A5 the CLI's usage refusal skipped for a "could not be checked"
problem: 1 red, the item 28 case, through its CLI half alone (the direct
calls stay green).

</details>

<details><summary>Classifier false-match probe (the shapes record
7246776227 tried against the 4xx arm, run against the new arm, at this
head and at the merge base)</summary>

A port (`port 429`, `github.com:502`), an errno (`errno 408`,
`errno=502`), an OpenSSL code (`error:0A000126`, `error:42900000`), a
byte count (`408 bytes`, `Total 429`, `(502/502)`) and an HTTP/2 stream
number (`HTTP/2 stream 421`, `stream 503`) read the same at head as at
base. Only two answers moved: `RPC failed; HTTP 429` and `Received HTTP
code 503 from proxy after CONNECT`, both from `other` to `network`.

</details>

## Acceptance notes

- **os-dev.md byte offset.** Adding `--branch=BRANCH ` costs 16 bytes
against 9 bytes of headroom. The same line drops 「建好分支后」 (15 bytes), so
the file lands at 33492 (+1 against main's 33491), within the 33500
ceiling. The row is then lowered to 33492. The rule is unchanged: the
timing it sets is still 「任何编辑前」, and the one command now builds the
branch and sends the probe in a single run. `BRANCH` is the placeholder
the file already uses three lines up (`Resume-from: BRANCH@SHA`). The
edit stays one line, adding one argument, with the offset on the same
line.
- **The old 5xx alternative is kept.** The case-insensitive
`(error:|HTTP)[ :]+5xx` alternative stays in the transport-words arm, so
no spelling that read `network` before reads anything else now.
- **`check-owed-reviews.mjs` keeps `export`.** Nothing imports the name,
and the sentence now says so. Removing the export would be a surface
change this item did not ask for.

## Verification

Read first, by risk: `scripts/pm/dev-worktree.sh` (the new arm in
`classify_push_failure`, then `rerun_with_probe`),
`.claude/agents/os-dev.md:31`, `scripts/pm/git-history.mjs` (the item 28
case).

Two-minute check: `bash scripts/pm/dev-worktree.sh --self-test` should
print `95 cases pass across 7 batteries`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn)_

<!-- signed: repo:objectstack#5 · os-project-manager ·
session_01FEkQ5oPfjnm2yWHEwkiYrn -->

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file 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/xl 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.

3 participants