Repository navigation
pm: relay pr_dequeue door and the approved large-PR jump; the landing seat watches its queued PR - #33732
Conversation
pr_dequeue removes a pull from its base's merge queue, fenced to three causes judged on the relay's own reads (conflict: mergeable_state dirty; own-failure: the entry UNMERGEABLE or its merge-group rollup failing; seat-asks: a relay comment signed by the dispatching session). It writes ONE audit comment before the mutation, mints merge-queues write for its stroke alone, and lands only when the queue read back no longer lists the pull. pr_enqueue_front's size fence now lifts for a pull over the human-merge line that carries an authorised APPROVED review on its current head, or an earlier one carried to the head by an authorised comment (approval_comment). Claude-Session: https://claude.ai/code/session_01FEkQ5nn2c5rose69uoEzmE Co-Authored-By: Claude <noreply@anthropic.com>
…e doors landing-operations.md names the jump's over-3,000-line lift, pr_dequeue's three causes with its audit comment and read-back, and the duty of the seat that queued a PR to watch it there. Ceiling 108 to 112 under a recorded ruled raise. Claude-Session: https://claude.ai/code/session_01FEkQ5nn2c5rose69uoEzmE Co-Authored-By: Claude <noreply@anthropic.com>
…size-lifted jump The queue seat may now dequeue on an offline landing seat's behalf for causes (a) and (b) through the relay's pr_dequeue, and jump a PR over 3,000 lines when an authorised approval sits on its head or is carried by the maintainer's approval_comment. The interim "maintainer removes it" line is gone. Ceiling 30 -> 32, measured. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5nn2c5rose69uoEzmE
The landing window's retro-review line said findings open a new card, which the ruling on per-PR checklist cards (later reviews appended to one card) now contradicts. Same line, zero lines added. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5nn2c5rose69uoEzmE
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: PR #33732, PR 2 of 2 for card #33647 (items 1 to 3 and the charter widening, as triage comment 6889317333 splits them). Read: the card body and all six comments, the PR body, the six-file list, the net diff against merge-base Check-runs on the head when this record was written: every concluded run is success or skipped, none failed, and TWO ARE STILL IN PROGRESS — ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentFences I tried to break, and what held:
Findings:
Sentence-by-sentence agreement, skill against code: the lift line, the three causes, "audit comment first, read back not listed to land", the refusal line (draft, head moved, governed, release) and the charter's "FAILED, no resend, report to the maintainer" each match No must-fix. S1, S2 and S3 each earn a delta review of their fix on the new head; this record covers Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-15T08:31Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
…ged, refuse a seat-signed carry - seat-asks now holds only on a relay comment signed by the seat and account the pull body's signed trailer names, under the dispatching session; a body naming no seat is refused before its comments are read. - the dequeue lands only when the queue no longer lists the pull AND the pull's own GET reads it open with merged false; a merge or close inside the window is FAILED naming it. - a carrying approval_comment that opens with a seat signature lifts nothing. - the mutation uses the node id of the preflight's own pull read, and the header names the unmeasured merge-group rollup reading. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5nn2c5rose69uoEzmE
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: DELTA review of PR #33732 (card #33647, PR 2 of 2), from Check-runs on the head when this record was written: 48 runs, ALL COMPLETED, none pending, none failed. Success on every gate that ran, among them ① Derived judgments
② Semver levelUnchanged from the prior record: ③ Boundary flags
④ Design judgmentPrior findings: S1 closed, S2 closed, S3 closed, N1 closed, N2 closed. What I tried against each fix:
Findings on this head:
Sentence-by-sentence, skill against code on the changed lines: 「(c) PR 正文签名尾行之席以签名评论自请」 and 「(c) 中继只认正文签名尾行之席」 match No must-fix. This record covers Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-15T09:02Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
The queue's removal and the pull's merge arrive seconds apart in either order, so one pull read the moment the queue stops listing it can miss a merge. The read-back now lands only when two pull reads one poll interval apart both read it open with merged false. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5nn2c5rose69uoEzmE
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: DELTA review of PR #33732 (card #33647, PR 2 of 2), from Check-runs on the head when this record was written: 48 runs, ALL COMPLETED, none pending, none failed; 26 success and 22 skipped by the affected-set filter or the ① Derived judgments
② Semver levelUnchanged from the prior records: ③ Boundary flags
④ Design judgmentPrior findings: S1 closed, S2 closed, S3 closed, N1 closed, N2 closed (6891728476); D1 closed, D4 declined with reason (6892058186). The delta touches none of D1, what I tried against
Findings on this head:
Sentence by sentence, skill against code on the lines that speak of the read-back: 「审计评论在先,回读离队且仍开未合才落地」 and 「仍在队或已合即 FAILED,⛔ 不重发,报维护者」 both still hold; the second read makes the code stricter than the lines, never looser. Nothing else the delta touched broke: the jump's read, the six fences, the audit-first order, the node id from the preflight's read and the pacing are as on No finding above nit grade. This record covers Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-15T09:53Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb 席位核对Verdict: ACCEPT, seat lands (Tier S) · head
|
…-ups, p3 copy nits into area loose-ends cards, a dedupe step, and the 24h flow line (objectstack-ai#33731) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XSd2LdkGDq79ihifNMPq7ZQ)_ domain:skills#1 · os-project-manager · session_01FEkQ5nz1BoBSawC99X5UqM Fixes objectstack-ai#33718 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:复审的后续事项改成每个 PR 一张清单卡(标题 `review follow-ups of PR #N`,后来的 delta 或追溯复审往里追加);p3 文案和文档小问题并进该区已有的 loose ends 卡;复审立卡前先按 PR 号和文件路径查重,同一发现就追加;代码 PR 欠的 skills/ADR 文本改成每个 PR 一张卡;分诊轮次记录每 3 小时报一次 24 小时的开卡、关卡、净变、合并 PR 数、open p1 和引契约复审的新卡数。 - 为什么改:维护者 2026-11-15 选了 B(「b」,记录 6891082225):复审默认做法不变,只改后续事项变成卡的形态,减少一个 PR 拆出多张卡和重复卡。 - 风险与回滚:只动三份 pm-dispatch 参考文件和行数棘轮的两行上限;「仅 nit 即终轮」的默认、每个缺陷一张卡的配额行、队列守卫都没动。回滚即还原本 PR。 - 先看:`.claude/skills/pm-dispatch/references/filing-gate.md` 新增的三行(配额行之后);`references/triage-duties.md` 第 16 行和第 74 行;`references/contract-review.md` 第 41-42 行和第 57 行。 - 两分钟验证:`node scripts/pm/check-skill-line-ratchet.mjs`,预期全部 ✓,filing-gate.md 82 行(上限 82)、triage-duties.md 104 行(上限 104)。 - 需要你做的:无,席位落地(Tier S)。 ## What changes All four items of the card's "What lands", under ruling B (record 6891082225, the maintainer's 「b」, 2026-11-15). The review default is unchanged. - **`references/filing-gate.md`, three lines after the quota line (one home for items 1 to 3).** - Item 1: review follow-ups (nits, accepted deviations, same-lane findings outside the diff) go into one card per reviewed PR, titled `review follow-ups of PR #N`, ticked item by item; a later review of the same PR appends and files nothing new. - Item 2: a p3 copy or docs nit goes into the area's `AREA loose ends` card, and one is opened only when none exists. - Item 3: before a review files, it searches open cards for `PR #N` and the file path, and appends a repeat of the same finding. - The quota line (one card per defect, objectstack-ai#25687) is untouched, and the exception says so in place (「① 缺陷仍各立」): a real gate ① defect found outside the diff keeps its own card and is not a tick item. The dedupe step merges only repeats of the same finding. - **`references/contract-review.md`, two in-place edits (0 lines).** The nit clause now sends nits to the PR's follow-up card (「转 PR 后续卡」), which points to the filing rule. The landed-head must-fix line says 「立卡」 instead of 「立新卡」, so a search hit on the same finding is appended rather than filed again. One character (「才」) moved from L42 to L41 to keep both lines within 120 bytes. - **`references/contract-review.md` L51, carried for objectstack-ai#33604 (PR objectstack-ai#33736), in place (0 lines):** the landing pre-check's ① now reads 「现 head 同形达档 PASS 在案,无前两级」, matching objectstack-ai#33736's queue guard, which refuses a same-head PASS that still lists an open must-fix or should-fix. To fit 120 bytes, 「过则 Tier S 入队、Tier H 等人批」 became 「过则 S 入队、H 等人批」 (the tier letters in the same sentence). - **`references/triage-duties.md`.** - L74, the 11-11 carve-out (ruling 6797014134), changed in place: skills/ADR text owed by a code PR is now one `domain:skills` card per PR, not one per finding. - L16, new: the round record states the 24h flow every 3 hours (issues created, closed, net; PRs merged; open p1; new cards citing a contract review). The card says the triage patrol prompt already carries this. No rule text did, and a patrol routine is deleted when its seat goes off duty (`seat-lifecycle.md`), so the rule text is the durable home. - **`scripts/pm/check-skill-line-ratchet.mjs`, two CEILINGS rows.** An ordinary ruled raise under the ratchet header's rule (ruling 6184799323): the ruling of record that orders this text is **6891082225**. Measured deltas: `filing-gate.md` **79 → 82 (+3)**, `triage-duties.md` **103 → 104 (+1)**. Each row moves by exactly its delta, with a comment that names the ruling. Neither file has a whole line that restates another file, so paying by deletion would have dropped a live rule. The dispatch order first said not to raise. The seat then ruled raise A for both files, citing this ruling. ## Tests No test file changes. The ratchet script's own self-test was run because the diff edits its CEILINGS map (results under Verification). ## Acceptance notes - **Review round 1 (at-tier PASS with S1):** S1 fixed at `afffd197`: filing-gate.md L35-36 now states that a ① defect keeps its own card, with no new line (「接受的偏差」 to 「接受偏差」, 「合一卡」 to 「一卡」, 「后轮复核」 to 「后轮」 paid the bytes). N2 (point contract-review.md L42 at filing-gate.md) was not taken: L41 and L42 both sit at 120 bytes, and the pointer would cost about 7 bytes of rule content. N3 and N4 were accepted as they are. The L51 carry for objectstack-ai#33604 landed at `51787fa6` and is part of the same delta review. - **Out of surface, carried elsewhere:** `references/landing-operations.md` L13 (a retro review's findings 「立新卡」 to 「发现照立卡门入卡」) is in PR objectstack-ai#33732's diff (objectstack-ai#33647 PR 2). objectstack-ai#33732 also edits `check-skill-line-ratchet.mjs` on other rows; whichever lands second merges `origin/main`. - **Reading chosen:** the per-PR checklist card carries what the card's item 1 lists (nits, accepted deviations, same-lane findings outside the diff). A must-fix on a landed head stays one card per finding, graded by finding (contract-review.md L57), and is deduped by the same search. That keeps item 3's 「the per-defect rule still holds for real defects」. - **Not added:** the card mentions spec wording next to skills/ADR in the carve-out. The 11-11 ruling covers ADR and skills text only, so L74 names those two. Adding spec would widen that ruling. - **Execution-time carve-out untouched:** `execution-duties.md` L110 (an implementation card's file surface excludes ADR/skills paths, 「各立 `domain:skills` 卡」) is the dispatch-time split, not a review follow-up, and stays as is. - **No gate or recogniser checks the follow-up filing shape:** `grep` over `scripts/` and `.github/` for 「转后续卡」, 「立新卡」, 「折清单卡」, 「携带注记」, `follow-ups of PR` and `loose ends` finds no hit, so no recogniser or lint pins the old text and no gate was added. - Serial note: objectstack-ai#33716 (contract-review.md) waits for this PR. ## Verification On head `afffd197` (the full derived list; `51787fa6` changes only contract-review.md L51, and its re-run subset is listed at the end of this section) (branch `claude/project-thread-7lnz38`, merge base `origin/main` `48e69596`), each exit code captured before any pipe: - `node scripts/pm/check-skill-line-ratchet.mjs`: exit 0. `filing-gate.md` 82 lines (ceiling 82), `triage-duties.md` 104 (ceiling 104), `contract-review.md` 63 (ceiling 63); no line over 120 bytes. - `node scripts/pm/check-skill-line-ratchet.mjs --self-test`: exit 0, 「164 cases pass」. - `node scripts/pm/dispatch-gates.mjs --tier`: **no path-derived mandate** (the surface hits none of the 4 declared globs); 29 changed lines, under the 3000 threshold. - `node scripts/pm/check-governed-merges.mjs --branch HEAD`: **GOVERNED, Tier S** (`.claude/**` x3; `scripts/pm/check-skill-line-ratchet.mjs` not on the register). The owning seat lands it after an at-tier contract review PASS on the current head. - Derived gates (`node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`, 40 families, after `pnpm --filter "@objectstack/lint..." build` under the lock, exit 0): all 40 exit 0. `--ran`: 「40 derived famil(ies) accounted for — 40 run, 0 NOT-MEASURED」. <details><summary>Derived gate run (40 of 40 exit 0)</summary> ```text node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/check-declaration-mirrors.mjs :: exit 0 node scripts/check-declaration-mirrors.mjs --self-test :: exit 0 node scripts/check-self-test-wired.mjs :: exit 0 node scripts/check-self-test-wired.mjs --self-test :: exit 0 node scripts/check-self-test-workflow-commands.mjs :: exit 0 node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0 node scripts/check-whole-set-label-write.mjs :: exit 0 node scripts/check-whole-set-label-write.mjs --self-test :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0 node scripts/pm/check-harness-current.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm check:agent-test-spelling :: exit 0 pnpm check:bash32-floor :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:cli-command-ids :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:entry-guard :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:parse-guard :: exit 0 pnpm check:pm-dispatch-gates :: exit 0 pnpm check:pm-governed-merges :: exit 0 pnpm check:pm-half-states :: exit 0 pnpm check:pm-label-write :: exit 0 pnpm check:pm-record-recognisers :: exit 0 pnpm check:pm-skill-id-lint :: exit 0 pnpm check:pm-skill-ratchet :: exit 0 pnpm check:pnpm-filter-targets :: exit 0 pnpm check:pnpm-flag-spellings :: exit 0 pnpm check:ratchet-remedy-authority :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:scripts-symbol-anchors :: exit 0 pnpm check:skill-frame-sync :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` </details> Re-run on `51787fa6` (contract-review.md L51 only; ratchet still 63/63, no line over 120 bytes), all exit 0: ```text pnpm check:pm-skill-ratchet :: exit 0 node scripts/pm/check-skill-line-ratchet.mjs --self-test :: exit 0 pnpm check:pm-record-recognisers :: exit 0 pnpm check:pm-skill-id-lint :: exit 0 pnpm check:pm-governed-merges :: exit 0 pnpm check:pm-half-states :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:skill-frame-sync :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 ``` Label: `skip-changeset` (only `.claude/**` and `scripts/pm/**` change; neither ships). <!-- signed: domain:skills#1 · os-project-manager · session_01FEkQ5nz1BoBSawC99X5UqM --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…d on a seat signature on any line (objectstack-ai#34037) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9N1Z1u2rEtm3MkQHMEhxcoQ)_ Part of objectstack-ai#33768 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:给中继出队(dequeue)补一条自测——出队后第二次读 PR 失败时不算确认、整对重读;两处函数注释改成"读两次";插队的"携带批准"评论只要任一行带席位签名就拒收(原来只看首行)。 - 为什么改:这是 PR objectstack-ai#33732 复审留下的三条小尾巴(E2、E3、D3),注释与文件头不一致,签名藏在第二行就能绕过"席位评论不算维护者批准"。 - 风险与回滚:只动 `scripts/pm/fleet-write/` 两个脚本,不发布;D3 只会让更多评论被拒、不会放宽;回滚 = revert 本 PR。 - 先看:`scripts/pm/fleet-write/ops.mjs` 的 `enqueueFrontSizeLift`(逐行读签名那一行);`execute.mjs` 自测里新增的 "a SECOND pull read that fails" 一行。 - 两分钟验证:`node scripts/pm/fleet-write/execute.mjs --self-test`,应看到 "424 cases pass across 31 batteries"。 - 需要你做的:无,席位落地。 ## What changes Three items of the objectstack-ai#33768 checklist (review follow-ups of PR objectstack-ai#33732). The rest stay open on the card: the `fleet-write.yml` comment and the AGENTS.md sentence (Tier H, a later governed batch), N1/E1 (measured at the first live stroke), D2, D4 and N2 (each needs a budget or a ruling). - **E2** (`execute.mjs` self-test). The rows near the dequeue read-back pinned a failed FIRST pull read (`pullLate`: 502, ok) and a merge that shows only on the second read (`mergedLate`), but no failed SECOND read. New row: pull reads ok, 502, ok, ok. The 502 confirms nothing, so the queue is read again at the interval and the pair starts over. It lands at three polls (clock `3 * DEQUEUE_POLL_MS`), with 5 pull GETs and 4 GraphQL calls. The pr_dequeue battery pin goes 28 → 29, with a roster comment. - **E3** (jsdocs). `dequeueAction` now says the pull's own GET reads it open and unmerged TWICE, one `pollMs` apart, and that a failed second read starts the pair over. `dequeuePullAfter` now says it judges ONE of the two reads and the executor lands only when both are `ok`. Both match the file headers. - **D3** (optional hardening, taken: it stays inside `scripts/pm/fleet-write/**`). `enqueueFrontSizeLift` runs the passed-in signature reader on every line of the `approval_comment`, not only the first non-empty one. A seat signature on any line refuses the carry, and the reading says "holds the seat signature". The row "⭐ CARRIED, the other way: … signature line further down … still carries it" flips to "⛔ CARRIED, refused on ANY line", which also checks that the reading names the seat. The SIZE lift battery stays at 12 cases; its name ("holding a seat signature on any line"), the `ops.mjs` header paragraph and the `execute.mjs` header sentence now say any line. The reader stays passed in, so `ops.mjs` still imports no guard. No changeset: the diff is `scripts/pm/**` only and publishes nothing (`skip-changeset`). ## Tests At head 1c433b2: - `node scripts/pm/fleet-write/execute.mjs --self-test`: 424 cases pass across 31 batteries (423 at base c3c0c30). - Forced test edit: the D3 row "signature line further down still carries it" is flipped to a refusal, as the card asks. <details><summary>Ablations (both red on exactly the new pin, restored, `git diff HEAD` empty)</summary> Run with `node scripts/ablation-replace.mjs` (the anchor must hit, restore is checked on disk) after the fix was committed. - E2: the second read's `if (after.ok) return` changed to `if (after.ok || after.pending) return`. Result: `✗ a SECOND pull read that fails (ok, 502) … — got [0,3000,3,3], want [0,9000,5,4]`, 1 of 424 failed. - D3: the line scan changed back to `signatureOf(c.body)` (first line only). Result: `✗ ⛔ CARRIED, refused on ANY line … — got [[0,1,200],false], want [[5,0,"not sent"],true]`, 1 of 424 failed. </details> ## Acceptance notes - Concurrency: PR objectstack-ai#33975 (self-test fixtures near L2909–2962) and PR objectstack-ai#34022 (removes the mailbox lock rows and battery, so the battery floor goes 31 → 30) also touch `execute.mjs`. Their hunks do not overlap these. Whichever lands later rebases; the floor and the per-battery pins here move independently of objectstack-ai#34022's. ## Verification <details><summary>Derived gates (37 of 37 exit 0, at head 1c433b2)</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` listed 37 commands; each one exited 0: check-closing-keyword-parity (+ self-test), check-comment-mask-corpus, check-declaration-mirrors (+ self-test), check-self-test-wired (+ self-test), check-self-test-workflow-commands (+ self-test), check-whole-set-label-write (+ self-test), plan-test-core-shards self-test, bare-root-worklist self-test, and the pnpm checks agent-test-spelling, bash32-floor, ci-filter-parity, cli-command-ids, cross-package-test-inputs, driver-memory-census, entry-guard, gitlink-declared, nul-bytes, parse-guard, pm-close-cards, pm-dispatch-gates, pm-fleet-write-dispatch, pm-fleet-write-execute, pm-fleet-write-validate, pm-issue-transfer, pm-post-stamped, pm-record-recognisers, pm-write-pace, pnpm-filter-targets, pnpm-flag-spellings, refd-timer-probe, scripts-symbol-anchors, watch-hint-literal. `--ran` reconciliation: `✓ dispatch-gates --ran: 37 derived famil(ies) accounted for — 37 run, 0 NOT-MEASURED (a DERIVED zero — all 37 recorded an exit code and none of them is 3).` </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ADHkmPoZhhhS5uc7UQqwZ7 --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmPoZhhhS5uc7UQqwZ7)_ Co-authored-by: Claude <noreply@anthropic.com>
Requested by Leehom · project thread
Fixes #33647
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb
Clause-②: no
Metadata-protocol: none
维护者速读
pr_dequeue(三因围栏:与基座冲突、自身改动致队列构建红、PR 正文签名尾行所记落地席以签名评论自请;先贴审计评论再出队,回读离队且仍开未合才算落地);pr_enqueue_front对逾 3,000 行 PR 认现 head 上的授权批准,或你点名现 head 的评论承接旧批准(首行是席位签名的评论不算);landing-operations.md写入「谁入队谁看护」;队列席章程放宽到这两扇新门。scripts/pm/fleet-write/ops.mjs的pr_dequeue一节与DEQUEUE_FENCES;execute.mjs的dequeuePreflight与dequeueAction。node scripts/pm/fleet-write/execute.mjs --self-test && node scripts/pm/fleet-write/validate.mjs --self-test,预期 415 例与 428 例全过。objectstack-fleetApp 开Merge queues: write(见下文 item 5);合并本身是席位落地(Tier S,须现 head 达档复核 PASS)。What changes
pr_dequeue, a new relay row (ops.mjs,execute.mjs,validate.mjs). It sends GraphQLdequeuePullRequest(input: { id })for one pull. The required fields arepull,expected_head_sha,cause(one ofconflict,own-failure,seat-asks) andreason(at most 1,000 bytes). Before any write, the executor reads the pull, its base's merge queue (with each entry's merge-group check rollup) and, forseat-asksonly, the landing seat that the pull body's signed trailer names and then the pull's comments. It then judges six fences (DEQUEUE_FENCES):open: the pull is open.head: the pull's head is stillexpected_head_sha.release: the pull is not the Version Packages pull.queue: the base's queue was read whole.queued: the queue lists the pull.cause, by the named cause:conflictneedsmergeable_statedirty(unknownis not judged);own-failureneeds the entry to readUNMERGEABLE, or its merge-group rollup to readFAILURE/ERROR(null is refused);seat-asksneeds the pull body's signed trailer (<!-- signed: LANE#N · ACCOUNT · SESSION -->) to name a seat, and a comment byobjectstack-fleet[bot]whose signature line names that same seat and account under the dispatching session (signedByLandingSeat). A body with no trailer is refused before its comments are read. Another seat's signed comment (a review record, a triage knock, the queue seat's own jump comment) and the relay's own audit comments answer nothing.payload.sessionis still the sender's own word: the fence binds it to the seat the pull names, but does not prove who typed it.Any failed fence is refused with zero writes (exit 5). When all hold, the relay posts ONE audit comment on the pull (session, request, cause, what the relay read and the seat's reason), and sends the mutation, on the node id from the preflight's own pull read, only after that comment answers 201. It then re-reads the queue every 3 s for up to 30 s, and lands only when the pull is gone AND two reads of its own GET, one poll interval apart, both read it still open with
mergedfalse. The queue's removal and the merge arrive seconds apart in either order (platform-readings.md). A pull that merged or closed inside the window is FAILED, naming it. If the pull is still listed, the action is FAILED, UNCONFIRMED; a 200 is never trusted alone. The row mintsmerge-queues: writefor its stroke alone (as the jump does), spendscontentsandissuesbeside it, and travels alone. Whether WHO failed is a flake is the three-fact test, which no read can run, so the seat states it inreasonand the audit comment carries it.automerge_disableis unchanged.The size lift on
pr_enqueue_front(ops.mjs,execute.mjs). The over-3,000-line fence now holds when an authorised approval lifts it, read only for a pull over the line (enqueueFrontSizeLift):GOVERNED_APPROVERSaccount is APPROVED on the current head (the queue guard's ownauthorizedApprovalVerdict).approval_commentnames a comment on this pull, by aGOVERNED_APPROVERSaccount, that names the current head (7 or more hex characters). It is read by its own GET, and a comment whose first non-empty line is a seat signature carries nothing: authorised accounts are agent-operated too, so a seat's knock or record that quotes the head is not the maintainer's confirmation.An approval on another head, by another account, or in a comment on another pull lifts nothing. The governed fence, the one-jump fence and the three jump reasons are untouched, and the relay never gives an approval.
landing-operations.md. The jump's §7 line folds into its refusal line, and four lines are added:pr_dequeue's three causes, over two lines: (c) is the seat that the PR body's signed trailer names, asking through a signed comment, and the dequeue lands only on "out of the queue, still open, unmerged", with the audit comment first;lanes/queue.md. The charter widens to the two doors:pr_dequeueon an offline landing seat's behalf for causes (a)(b) only; for (c) the relay accepts only the seat that the body's signed trailer names;The "maintainer removes it until the relay op lands" section loses its dequeue line and keeps the approval itself, governed PRs, Version Packages, queue config and the App permission.
Carried for pm/skills: one checklist card per reviewed PR for its review follow-ups, p3 copy nits into area loose-ends cards, and a dedupe step for retro reviews #33718 (the seat's request, ruling record 6891082225, letter B). In
landing-operations.md, the retro-review line 「发现立新卡」 becomes 「发现照立卡门入卡」, because B keeps one checklist card per reviewed PR with later reviews appended. To stay within the 120-byte cap, 「落地后才见」 became 「落地后见」. The line is now exactly 120 bytes, and no lines are added.check-skill-line-ratchet.mjs: two ceilings raised, both measured and both quoting the maintainer's words on the card.landing-operations.mdgoes from 108 to 112 (+4), with a matchingruledRaisesrecord on its CROSS_FILE_MOVES entry dated 2026-11-15.lanes/queue.mdgoes from 30 to 32 (+2).Ruling of record for both: card pm: merge-queue stewardship without the maintainer — a relay dequeue door, the front-jump for approved large PRs, each landing seat owning its queued PRs, and a queue#1 seat for the cross-lane duties #33647 (filing gate ③), 「建议有专人来跟进队列吗?这种操作不应该等我」. Items 1–3 and the charter widening order this text, and both stay at headroom 0.
skip-changeset:.claude/**andscripts/pm/**only, published by no package.For the maintainer (item 5, not in this diff)
objectstack-fleetApp'sMerge queues: writegrant is yours to give. This PR changes no workflow and no ruleset. Until the grant exists, apr_dequeuestroke fails at the token mint with zero writes, the same as the jump does today.dequeuePullRequestneeds that grant at all, and whether the input it accepts is the pull's node id, are read from GitHub's schema documentation and NOT MEASURED. So is the reading that a queue entry'sheadCommit { statusCheckRollup }is its merge-group commit's rollup, which is the second half of theown-failurecause. GraphQL is closed to this container, and no live stroke has run. The first live stroke measures the mutation and the grant, and a GraphQL error is a FAILED action that names the grant. The firstown-failurestroke measures the rollup, because the audit comment prints the rollup it read.Tests
node scripts/pm/fleet-write/execute.mjs --self-test: 415 cases across 30 batteries pass (floor 28 → 30). There are two new batteries:pr_dequeue. Every fence is tested both ways, and every cause holds and fails. The audit comment is posted before the mutation. No mutation is sent when the comment fails.seat-asksrefuses each of these: another seat's signed comment, the queue seat's jump comment, the landing seat's lane under another account, the relay's own earlier audit comment, and a body with no trailer (whose comments are never read). A pull read with no node id writes nothing, and no second pull read sits between the comment and the mutation. A read-back that still lists the pull is FAILED, UNCONFIRMED. A pull that merges, or closes, inside the window is FAILED naming it, including a merge that shows only on the second pull read, and amerged_atbeside a falsemerged. A pull that leaves within the window still open and unmerged lands, including after a failed pull read. A pin holdsRELAY_COMMENT_AUTHORequal tocheck-handover.mjs'sFLEET_BOT_LOGIN.node scripts/pm/fleet-write/validate.mjs --self-test: 428 cases across 22 batteries pass (floor 21 → 22). The newpr_dequeuebattery covers:merge-queuesgrant;ALLOWED_MUTATIONSholdingdequeuePullRequest.The table pins (
alsoSpends,alone, the merge-queue rows, andpr_enqueue_front's optionalapproval_comment) moved with it.node scripts/pm/fleet-write/dispatch.mjs --self-test: 401 cases pass.node scripts/pm/check-skill-line-ratchet.mjsexits 0 with every line at most 120 bytes, and its--self-testpasses 164 cases.Acceptance notes
Review round 1 (record 6891728476, PASS on
e40c1bd6), fixed atfebb3a98:seat-asksis bound to the landing seat named by the body's signed trailer.fleet-write.ymlcomment and the PD#14 sentence go to this PR's follow-up card.The skill lines change in place, with no line added. In
landing-operations.mdthe carried line reads 「维护者非席位签名评论」, and (c) reads 「PR 正文签名尾行之席以签名评论自请。审计评论在先,回读离队且仍开未合才落地」.lanes/queue.mdchanges to match.Review round 2 (delta record on the PR, S1–S3 and N1–N2 closed), fixed at
0bbf4a3a(head94df19bcafter mergingorigin/mainwith pm-dispatch: one checklist card per reviewed PR for its review follow-ups, p3 copy nits into area loose-ends cards, a dedupe step, and the 24h flow line #33731):mergedfalse. A row pins a merge that shows only on the second read; ablating the second read reds 4 rows.landing-operations.mdcarry line needs 128 bytes against the 120-byte cap. The shorter spellings would either coin 「席签」, which the skills never use, or add a line.N2 (a SKILL.md lane-table pointer to
lanes/queue.md) is not done. The pm-dispatchSKILL.mdlane-table row is 340 bytes against its 341-byte width pin, and the pointer needs about 360, so it would need a ruled raise of a row pin. Reported, not raised.N3 is done. The charter's "opens no PR" stays as worded on main beside the mailbox, as in
lanes/eval.md.Read and left alone (
.github/**is out of scope):.github/workflows/fleet-write.ymlstill callspr_enqueue_frontthe ONE consumer of the validate outputpermission_merge_queues.pr_dequeuenow consumes it too. The comment is stale and needs no functional change.Two ratchet rows instead of the order's "one line-ratchet row". Both files the order names grew, so each needs its own measured ceiling.
Tier.
check-governed-merges.mjs --branchreads Tier S. The only governed paths are the two.claude/**files, andscripts/pm/**is not on the register. The seat lands it after a## Contract reviewPASS atCONTRACT_REVIEW_TIERon the current head.dispatch-gates --tierreads no path-derived mandate.Verification
check-governed-merges --branch (head 94df19b)
dispatch-gates --tier and --ran (head 94df19b)
Derived gates: 47 of 47 exit 0 (head 94df19b)
Every command from
dispatch-gates --commandsexited 0, captured before any pipe:node scripts/check-closing-keyword-parity.mjs,node scripts/check-closing-keyword-parity.mjs --self-test,node scripts/check-comment-mask-corpus.mjs,node scripts/check-declaration-mirrors.mjs,node scripts/check-declaration-mirrors.mjs --self-test,node scripts/check-self-test-wired.mjs,node scripts/check-self-test-wired.mjs --self-test,node scripts/check-self-test-workflow-commands.mjs,node scripts/check-self-test-workflow-commands.mjs --self-test,node scripts/check-whole-set-label-write.mjs,node scripts/check-whole-set-label-write.mjs --self-test,node scripts/ci/plan-test-core-shards.mjs --self-test,node scripts/pm/bare-root-worklist.mjs --self-test,node scripts/pm/check-harness-current.mjs --self-test,pnpm --filter @objectstack/lint run check:doc-formula-expressions,pnpm check:agent-test-spelling,pnpm check:bash32-floor,pnpm check:ci-filter-parity,pnpm check:cli-command-ids,pnpm check:cross-package-test-inputs,pnpm check:doc-authoring,pnpm check:driver-memory-census,pnpm check:entry-guard,pnpm check:gitlink-declared,pnpm check:nul-bytes,pnpm check:parse-guard,pnpm check:pm-close-cards,pnpm check:pm-dispatch-gates,pnpm check:pm-fleet-write-dispatch,pnpm check:pm-fleet-write-execute,pnpm check:pm-fleet-write-validate,pnpm check:pm-governed-merges,pnpm check:pm-issue-create,pnpm check:pm-issue-transfer,pnpm check:pm-label-write,pnpm check:pm-post-stamped,pnpm check:pm-record-recognisers,pnpm check:pm-skill-id-lint,pnpm check:pm-skill-ratchet,pnpm check:pm-write-pace,pnpm check:pnpm-filter-targets,pnpm check:pnpm-flag-spellings,pnpm check:ratchet-remedy-authority,pnpm check:refd-timer-probe,pnpm check:scripts-symbol-anchors,pnpm check:skill-frame-sync,pnpm check:watch-hint-literal.Outside the derived list (os-dev.md ⑤, the edited scripts' own suites):
fleet-write/execute.mjs --self-test,fleet-write/validate.mjs --self-test,fleet-write/dispatch.mjs --self-test,check-skill-line-ratchet.mjs --self-test, each exit 0.Generated by Claude Code