Repository navigation
fix(pm): the relay seat door judges a raw comment record tier (tier_evidence) - #33811
Conversation
A `comment` or `comment_edit` in a seat's actions file whose body is a `## Contract review` record naming CONTRACT_REVIEW_TIER is refused before anything is packed unless the action carries `tier_evidence`, the reviewing run's transcript, that post-stamped's own `recordTierEvidenceRefusal` passes (the record read by record-recognisers, the transcript by verify-review-tier). The key is read on the seat and taken off before the packer, so neither path nor transcript enters the payload. Claude-Session: https://claude.ai/code/session_01FEkQ5m4N58m3SfGfq95UF8 Co-Authored-By: Claude <noreply@anthropic.com>
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract-review-handoff: review#1 — CONTRACT_REVIEW_TIER unavailable (maintainer routing ruling for this account's seats: contract reviews go to review#1, 2026-11-15T11:17Z) · head 3c44cfe |
|
review#1 · os-elon-musk · session_016WV4cy7hQ5MvQ83ByNZ8ZH Contract-review-claim: session_016WV4cy7hQ5MvQ83ByNZ8ZH · head 3c44cfe · 2026-11-15T11:26Z |
|
review#1 · os-elon-musk · session_016WV4cy7hQ5MvQ83ByNZ8ZH Contract reviewServed-tier: Card #33715 · PR #33811 · one file, Tier note. ① Derived judgments
② Semver levelNone. ③ Boundary flags
Nits
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
Claude-Session: https://claude.ai/code/session_01FEkQ5m4N58m3SfGfq95UF8 Co-Authored-By: Claude <noreply@anthropic.com>
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract-review-handoff: review#1 — CONTRACT_REVIEW_TIER unavailable (maintainer routing ruling for this account's seats: contract reviews go to review#1, 2026-11-15T12:30Z) · head 8cf8d3d |
|
review#1 · os-elon-musk · session_016WV4cy7hQ5MvQ83ByNZ8ZH Contract-review-claim: session_016WV4cy7hQ5MvQ83ByNZ8ZH · head 8cf8d3d · 2026-11-15T12:32Z |
|
review#1 · os-elon-musk · session_016WV4cy7hQ5MvQ83ByNZ8ZH Contract reviewServed-tier: Delta record, merge only. Card #33715 · PR #33811 · head moved from ① Derived judgments
② Semver levelNone, as before. ③ Boundary flags
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb 席位核对Verdict: ACCEPT, seat lands (ungoverned, scripts/pm/)** · head
|
Requested by Leehom · project thread
Fixes #33715
Clause-②: no
Metadata-protocol: none
维护者速读
fleet-write/dispatch.mjs现在会检查动作文件里的comment/comment_edit:正文若是声明Served-tier: CONTRACT_REVIEW_TIER的契约复审记录,动作必须带tier_evidence(复审那次运行的 transcript 路径),并由 post-stamped 同一个判定函数通过,否则整份文件拒发。--tier-evidence,但直接经 dispatch.mjs 发的原始评论不被检查,未达档的复审记录可以绕过去落到 PR 上(pm: the post-merge governed audit has no owner or schedule, and shows a seat landing through the low-risk arm as a breach #33603 残项 7)。scripts/pm/fleet-write/dispatch.mjs,不触产品代码与发布包;非记录正文、其他档位的记录不受影响;回滚即 revert 本 PR。scripts/pm/fleet-write/dispatch.mjs的judgeRecordTierEvidence(拒绝逻辑)与main里紧跟签名检查之后的调用段。node scripts/pm/fleet-write/dispatch.mjs --self-test,预期末行418 cases pass across 33 batteries,退出码 0。What changes
scripts/pm/fleet-write/dispatch.mjsonly:judgeRecordTierEvidence(actions, refusalOf): for eachcomment/comment_edit(TIER_EVIDENCE_OPS) whose bodyrefusalOfreads as a## Contract reviewrecord namingCONTRACT_REVIEW_TIER, the action must carry"tier_evidence": "TRANSCRIPT"(TIER_EVIDENCE_KEY) andrefusalOfmust pass on it. Fail closed: no key, an empty or non-string key, a missing, unreadable or off-tier transcript are each refused. A body that is no record, or a record naming another tier, passes unchanged with no evidence. The key on any other op is refused. The key is taken off every action, so the path never reaches the packer.refusalOfis post-stamped's ownrecordTierEvidenceRefusal, loaded byloadRecordTierJudgewith a dynamic import (post-stamped imports this file; same pattern asloadReadBackJudge). It recognises the record withCONTRACT_REVIEW_HEADING_MARKERandreadServedTier(record-recognisers.mjs) and judges the transcript withverifyReviewTranscriptFile(verify-review-tier.mjs). So this door refuses exactly what the stamped writers refuse; no parser is restated.verify-review-tier.mjsandrecord-recognisers.mjsare not touched.mainruns it right after the signature check: on the file as handed, before the session, the packer and the dry-run exit. A refusal is usage (2), nothing packed or sent; a reader that does not load is PREREQUISITE NOT MET (3). Acommentrefusal names the stamped writer (post-stamped.mjs --comment=N --file=PATH --tier-evidence=TRANSCRIPT) and the key; no refusal or pass line prints the path or a model identifier.Where the evidence is judged, and why it does not travel in the action
The order asked, if the action needs a new field, that the evidence travel inside the action rather than as a local path, because the relay runs in a GitHub workflow. Measured, that cannot hold, so the evidence is judged on the seat at this door and the key never leaves it:
client_payloadis capped atCLIENT_PAYLOAD_MAX_BYTES= 65,536 bytes (validate.mjs). This thread's own session transcript measured 882,560 bytes after 15 turns. A review transcript does not fit a dispatch.How the other readers relate to the new key:
post-stamped.mjsandlabel-write.mjsdo not readtier_evidence. They judge their own--tier-evidencethroughjudgeBodyand pack withpackRequestdirectly, never throughmain, so they are unchanged.validate.mjs --from-event,execute.mjs) never sees the key, becausemaintakes it off before packing.Boundary, as for the signature rule:
packRequest(the library path) is not judged, and a sender that builds its own dispatch bypasses every seat-side door. The otherpackRequestcallers were checked:close-cards.mjspacks a fixed closing comment,label-write.mjsjudges its comment withjudgeBody, andissue-create,issue-transferandrerun-failedpack no comment.Tests
node scripts/pm/fleet-write/dispatch.mjs --self-test: exit 0,418 cases pass across 33 batteries. The new battery covers both directions:op, issue, body, and neither the path nor the model is in the payload;3c44cfeb,scripts/ablation-replace.mjs): the missing-evidence refusal line injudgeRecordTierEvidencereplaced by a comment. The mutation landed (anchor 1 → 0, bloba5747d85→bdf9b9e9). The self-test went red, 4 of 418, all rows that pin the missing-evidence refusal:The file was restored to blob == HEAD and
git diff HEADis empty.Acceptance notes
tier_evidencepaths resolve against the working directory, like post-stamped's--tier-evidence, not against the actions file's folder.issue_patchbody carrying a record is not judged (a card body). That matches post-stamped, whose rule is comments only.Verification
Readings on head
3c44cfeb(merge baseb76df9a6;origin/mainhas since moved to1e65a389with no change underscripts/pm/):node scripts/pm/dispatch-gates.mjs --tier: no path-derived mandate. The surface hits none of the 4 declared globs, so the tier is the PM's per-card call (default). Changed lines 201 (+199 / -2), under the 3000 threshold.node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-sohn2c: NOT governed. 0 of 1 path hit the register; ordinary queue landing applies. Head repo NOT MEASURED on--branch(--prreads it).scripts/pm/**only (skip-changeset).Derived gate list (dispatch-gates --commands, 39 commands) and results
All 39 run on head
3c44cfeb. Each exit code was captured before any pipe.dispatch-gates --ranreconciliation: 39 derived, 39 run, 0 NOT-MEASURED (a derived zero: all 39 recorded an exit code).