Repository navigation
docs(pm-dispatch): point every PR-body rewrite at the issue_patch door - #31058
Conversation
rest-channel's "direct dispatch.mjs is for landing only" now names the single-op PR-body issue_patch as the second use and points at seat-post-protocol's PR-body line. The flake-note body edit in platform-readings and the seat's rewrite in os-dev.md point at the same line. platform-readings records that the relay issue_patch reads back byte-identical (no appended footer), beside the raw-REST +58 cell. check-handover's header now names seat-lifecycle's stay-behind line as the home of the sign-off hand-back rule. Two restatements are deleted to keep each file's line count flat; their homes are the post-stamped.mjs header (the pipe rule) and AGENTS.md (the merge-driver override and the repair-first rewrite). Claude-Session: https://claude.ai/code/session_01J8VVAkpKySQ5xGrSjjjnVw Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 Contract-review-claim: session_01J8VVAj7CvjkGXvgXzd6RZ7 · head 33bac6a · 2026-11-06T23:08Z The seat review runs at CONTRACT_REVIEW_TIER in an isolated subagent. No review seat ( |
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Findings
Implemented-by: VERDICT: FAIL |
…lay footer cell check-handover's header now names the decision-box refusal's home (seat-post-protocol's handover checklist step 2) apart from the stay-behind narrowing (seat-lifecycle's stay-behind line). platform-readings' relay issue_patch line moves below the raw-REST edit-side lines it is contrasted with, so the strip-both-spellings and attribution lines read with the cell they belong to. No line count changes. Claude-Session: https://claude.ai/code/session_01J8VVAkpKySQ5xGrSjjjnVw Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 Contract-review-claim: session_01J8VVAj7CvjkGXvgXzd6RZ7 · head 3ac6083 · 2026-11-06T23:31Z Delta review against the FAIL at head 33bac6a (comment 6698243950, must-fix M1, should-fixes S1–S4; S1 and S3 filed as #31059). The delta is one commit answering M1 and S2, plus the PR body (S4). The seat review runs at CONTRACT_REVIEW_TIER in an isolated subagent. |
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 Contract reviewServed-tier: ① Derived judgmentsThis is a delta review. Head 3ac6083 is one commit on top of 33bac6a, the head the FAIL was recorded on. There was no rebase or merge, and the merge base with
② Semver level
③ Boundary flags
④ Design judgment
Findings: none on this head. M1 is fixed. S2 and S4 are fixed. S1 and S3 are out of scope and carried by #31059. Implemented-by: VERDICT: PASS |
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 维护者速读
席位核对 — ACCEPT · domain:skills#3 · head
|
Requested by Irene · project thread
Fixes #31050
Clause-②: no
Metadata-protocol: none
dispatch-gates --tierreads a MANDATORY model tier, from clause ① (.claude/agents/os-dev.md, the dev-agent definition). This card ran on the project's default model: that mandate is waived by the maintainer's standing order in this project (2026-11-03), and the dispatching seat runs the contract review.维护者速读
rest-channel.md、platform-readings.md的 flake 记因、os-dev.md的席位代写)都指向seat-post-protocol.md的 PR 正文行;中继改 PR 正文不追加页脚这一读数补进platform-readings.md;check-handover.mjs头注分别点名交回规则的两处去处。rest-channel.md仍写「直调dispatch.mjs仅落地」,与 ACCEPT 前改正文相抵,另两处改正文不点门。skip-changeset),四个文件行数不变;回滚即 revert。rest-channel.mdL16–17(新例外行);platform-readings.mdL343(新页脚读数,排在 L337–342 的裸 REST 改侧格之后)。node scripts/pm/check-skill-line-ratchet.mjs,预期退出 0,rest-channel.md82 行、platform-readings.md458 行、os-dev.md405 行,各等于上限。What changes
Item 1,
.claude/skills/pm-dispatch/references/rest-channel.mdL16. The line said a directdispatch.mjscall is for landing only, but a seat rewrites a PR body before ACCEPT. It is split in two:闭合 op 表住 fleet-write/ops.mjs;读侧不走中继;批量恒走逐 op 工具。直调 dispatch.mjs 仅落地,与 PR 正文单笔 issue_patch(seat-post-protocol.md 正文行,不送页脚)。Item 2,
scripts/pm/check-handover.mjsL33–34 (header comment only, no code). PR #31049 deleted the old home (seat-post-protocol.md, 收班), and its two facts now live in two places, so the header names both:needs_decisioncard handed to the decision box and never back topm:queue→seat-post-protocol.md交接收尾清单 step 2 (L47,needs_decision 进决策箱);seat-lifecycle.md离任留守 (L44, 离任留守只写点名的已 ACCEPT 待队列或待人批 PR).The comment now reads:
The sign-off hand-back rule (seat-post-protocol.md, 交接收尾清单 step 2) names one refusal inside (a); seat-lifecycle.md 离任留守 narrows (a)'s stay-behind (section below):.Item 3, the two rewrites that named no door.
references/platform-readings.mdL290 (new, under theCheck Changesetflake line):⇒ 该正文改走 seat-post-protocol.md 的 PR 正文行,不送页脚。.claude/agents/os-dev.mdL66, rewritten in place:PR 正文 dev 只在 pr_create 写,⛔ 不 PATCH;改法报告点名,席位经 seat-post-protocol.md 代写。The meaning is the old line's (the dev writes the body once, at the create; the report names the change; the seat writes it), and it now names where the seat's rewrite goes.Item 4, the footer reading (
platform-readings.mdL336–341). Settled from code and stored bodies only; no test write was made.successrun,sendFleetWritereads every action that sent abody(READ_BACK_LOCATORS.issue_patch=GET /repos/{repo}/issues/{issue}) and judges it with post-stamped'sclassifyReadBack(judgeStoredBody,scripts/pm/fleet-write/dispatch.mjsL1081). The classidenticalisstored === sent(declaredNormalisation,scripts/pm/post-stamped.mjsL2843). Nothing is stripped before that comparison, andstoredBytesis the raw stored length. A stored body with the bare footer appended would printfooter-appended, notidentical.identical. PR fix(pm): let the seat rewrite a pull request body signed on its last line #29225's edit was read backidenticaltoo (its landing comment on pm relay: no door can rewrite a PR body after round 1; the dev writes it once (os-dev.md), and a seat issue_patch must open with its signature, which breaks the Fixes-first body shape #29145).GET /repos/objectstack-ai/objectstack/issues/{n}each, read only): docs(pm-dispatch): teach the seat the PR-body issue_patch door #31049 is 8149 bytes and fix(pm): let the seat rewrite a pull request body signed on its last line #29225 is 6785 bytes, and both end with the<!-- signed: … -->trailer and a newline. Neither carries a_Generated by …_footer.issue_patchappends no footer, while main L338–341 measured the raw-RESTPATCHcell (+58). Per AGENTS.md, the cells differ by channel and are not generalised. Main L341 (now L340) stays as it is. New L343 records the relay cell after the whole raw-REST edit-side band (L337–342), so the strip-both-spellings and attribution lines still read with their own cell:中继 issue_patch 不在此列:dispatch.mjs 读回 PR 正文存 = 送(identical),无追加。seat-post-protocol.mdL31 is unchanged. Adding 不送页脚 there does not fit at 120 B (the shortest spelling measured is 125 B), and the file has no restatement to delete to pay for a second line. For now the no-footer word rides on the pointers:rest-channel.mdL17 andplatform-readings.mdL290 carry it, andSKILL.mdL313 already did.os-dev.mdL66 is at exactly 120 B and carries the pointer only. Giving the rule its one home at L31 (and dropping the pointers' copies) is left to pm-dispatch: the relay header gives a stale footer reason, and the PR-body door line does not say to send no footer #31059.Deleted restatements (deletion only; each fact's surviving home)
rest-channel.md⛔ post-stamped/label-write 永不接进管道再 &&:拒收读成 0;看尾先落文件或 set -o pipefail。scripts/pm/post-stamped.mjsheader, 〈⛔ Never pipe this tool, then&&the write that follows〉 (L112–127: redirect then capture, orset -o pipefail; "it covers every writer beside it —label-write.mjsincluded");scripts/pm/label-write.mjsheader, 〈Exit codes — capture them BEFORE any pipe〉 (L156)platform-readings.md⛔ 永不用 -c merge.os-regen.driver= 覆盖:驱动不是被关掉而是跑失败,路由路径全报冲突。-c merge.os-regen.driver=… git runs the configured program, it fails, and every routed path is reported conflicted");scripts/pm/os-regen-merge.shheader L303–304platform-readings.md否则 repair-first 被正确地应用到完好的卡上,重写毁掉的是正确内容。Tests
None: the diff is instruction text and one comment line, with no runtime behaviour to test. The gates below are the checks.
Acceptance notes
Line budget (
scripts/pm/check-skill-line-ratchet.mjs, exit 0)references/rest-channel.mdreferences/platform-readings.md.claude/agents/os-dev.mdscripts/pm/check-handover.mjs(not ratcheted)Every touched line:
rest-channel.mdL16 120 → 88 B, new L17 118 B;platform-readings.mdnew L290 78 B, new L343 102 B;os-dev.mdL66 117 → 120 B;check-handover.mjsL33 111 → 113 B and L34 31 → 78 B. No new section; no fence line touched.Not changed here (found while reading)
scripts/pm/fleet-write/dispatch.mjsheader (〈A pull request's body …〉, L454–456 onmain) still says "an edit of a pull's body gets the bare footer block appended after the trailer (platform-readings.md, the edit side), so send no footer of your own". The relay read-backs above show no append on that path. The advice (send no footer) still holds: a footer after the trailer would be the body's last non-empty line, and the door would refuse the body as unsigned. Only the stated reason is stale. This is outside the card's file surface; it is filed as pm-dispatch: the relay header gives a stale footer reason, and the PR-body door line does not say to send no footer #31059 and not changed here.Verification
Local gates on 3ac6083: 41 derived, 41 run with exit 0, 0 NOT MEASURED (`dispatch-gates --ran`)
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived the same 41 commands for the 4 changed paths as on round 1 (33bac6a). Each ran under a 900 s timeout, its exit code captured before any pipe; all 41 exited 0 on the first run (the@objectstack/formula,@objectstack/lintand@objectstack/objectqlbuilds from round 1 were in place).check:pm-skill-ratchet,check:pm-skill-id-lint,check:pm-governed-prose,check:pm-governed-merges,check:pm-half-states,check:pm-post-stamped,check:doc-authoring,check:skill-frame-sync,check:commit-card-trailers,check-comment-mask-corpus.mjs, and the self-tests ofcheck-governed-queue-guard.mjsandcheck-harness-current.mjs.--ranprinted:41 derived famil(ies) accounted for — 41 run, 0 NOT-MEASURED (a DERIVED zero — all 41 recorded an exit code and none of them is 3).node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-0ili91: GOVERNED, Tier S (席内达档复核落地):.claude/**×3;scripts/pm/check-handover.mjsis not on the register; 14 changed lines (+7 / −7), under 3000.node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD: exit 0 before every push.Human Minimum
packages/specholds no runtime logic. (No schema touched.)main, one pull request..claude/**and ascripts/pm/**comment), so the PR takesskip-changeset. Both declaration lines are filled in above.packages/specnot touched; nothing to regenerate.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01J8VVAkpKySQ5xGrSjjjnVw