Repository navigation
fix(pm): label-write --land refuses a breaking or narrowing pull with no dogfood battery on its head - #34303
Conversation
… no dogfood battery on its head A pull whose title carries `!` or whose Clause-② line carries a (narrowing) arm now lands only when the newest trusted os-dev-report on the card it delivers shows dogfood_battery run on the pull's head, or on a first-parent ancestor reached over merges of the base branch alone. Every unreadable case refuses before any write; an unmarked pull is not judged. Claude-Session: https://claude.ai/code/session_01ADHkmPoqLCQHtTFH1fsaSB Co-authored-by: Claude <noreply@anthropic.com>
…eason Claude-Session: https://claude.ai/code/session_01ADHkmPoqLCQHtTFH1fsaSB Co-authored-by: Claude <noreply@anthropic.com>
…m one Claude-Session: https://claude.ai/code/session_01ADHkmPoqLCQHtTFH1fsaSB Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv Contract-review-handoff: review#2 — CONTRACT_REVIEW_TIER unavailable (maintainer quota limit on the review tier, 2026-11-16T04:57Z) · head 88a02ae Owed: the at-tier contract review of card #34204 (claim 6907299833, triage first touch 6907138303). Card delta: The seat's L1 read, for the reviewer to confirm or overturn:
|
|
review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head 88a02ae · 2026-11-16T05:05Z |
|
review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW Contract reviewServed-tier: Read at 2026-11-16T05:17Z. First review of this head; claim: comment 6907857563; hand-off 6907745553 and lane request 6907758207 on mailbox #33873 (the lane's at-tier reviewer was unavailable). Independence: implemented in an os-steve project thread, dispatched by domain:skills#2 (os-steve); reviewed by os-tesla, who neither dispatched nor implemented it. Reviewed: the whole diff, ① Derived judgmentsCard acceptance.
Which pulls are classified, against the rest of the tooling.
What counts as a battery on the head.
Misfire on a pull that needs none. An unmarked pull returns before any new read; pinned by the read list. One new refusal reaches unmarked pulls: a title that does not read on step ①, which the issues endpoint always answers for a real pull. A marked pull with no card, or whose report sits on another thread, refuses with the remedy printed; that is the fail-closed direction and the rule owes such a pull a battery in every case. Findings:
No must-fix. ② Semver level
CI on this head: 48 check-runs; 24 success, 23 skipped, 1 still in progress (Test Core 1/8). Lint & Repo Gates, TypeScript Type Check, Lint · scoped · tooling self-tests, Lint · PM dispatch-gates, Check Changeset, Governed Surface Queue Guard and Dogfood Regression Gate are success. ⛔ This PASS is rendered while one check is running: the seat waits for Test Core 1/8 to read success before it lands, and a red there is not covered by this record. ③ Boundary flags
④ Design judgmentThe gate holds against the scenario it was accepted for. Both measured roots (#32926, #33431) carried What it is not: it is a check at the moment of the stroke on text the dev wrote, not a proof that the battery ran or was green, and not a replacement for the L1 line. The header says as much ("NOT MEASURED is never a pass") and S3 asks the skill to say where the gate sits. Implemented-by: VERDICT: PASS |
…s Clause-② line and exits 3 on an unread Review round 1: the refusal quotes the pull's title (capped as quoteLine caps); a near-miss Clause-② line refuses like a malformed one while an absent line stays not judged; a gate read the platform did not answer exits 3 (prerequisite) and a judged refusal stays 2; the ✓ line says the sha alone was judged; a newest report whose pr names another pull gives way to the newest naming this pull, or none; the truncation remedy sends the seat to the maintainer; the header names the title form read. Claude-Session: https://claude.ai/code/session_01ADHkmPoqLCQHtTFH1fsaSB Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmPoqLCQHtTFH1fsaSB Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmPoqLCQHtTFH1fsaSB Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv Contract-review-handoff: review#2 — CONTRACT_REVIEW_TIER unavailable (maintainer quota limit on the review tier, 2026-11-16T06:01Z) · head 524fac6 Owed: the delta review of fix round 1 against PASS 6908045917 (head The dev's reading, for the reviewer to confirm or overturn:
|
|
review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head 524fac6 · 2026-11-16T06:04Z |
|
review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW Contract reviewServed-tier: Read at 2026-11-16T06:08Z. Delta review of this head against PASS 6908045917 at 88a02ae; claim: comment 6908763313; hand-off 6908721317 and lane request 6908734327 on mailbox #33873 (the lane's at-tier reviewer was unavailable). Independence: implemented in an os-steve project thread, dispatched by domain:skills#2 (os-steve); reviewed by os-tesla, who neither dispatched nor implemented it. Reviewed: the net diff of this head against main, ① Derived judgmentsWhat moved between the two heads.
Prior findings.
Newly introduced, against the net diff.
Findings:
No must-fix. ② Semver level
CI on this head: 48 check-runs, 26 success, 22 skipped, none failed, none running. Lint & Repo Gates, Lint · scoped · tooling self-tests, Lint · PM dispatch-gates, Lint · ESLint, TypeScript Type Check, Test Core, Test UI, Governed Surface Queue Guard, PR-body guards and Dogfood Regression Gate are success. This PASS is not rendered ahead of any check. ③ Boundary flags
④ Design judgmentThe round makes the gate say more and assume less without moving what it accepts. The refusal now puts the title beside the report text, which is the side-by-side reading both measured roots (#32926, #33431) needed. The two exits now mean two different things, a verdict and a read that did not happen, which is how the rest of this file already speaks. The near-miss change closes the one place the marker read could answer "no" for a line it had not understood. The sibling-report rule narrows which report is read without loosening what that report must say. The limits stated in the prior record stand: this is a check at the moment of the stroke on text the dev wrote, not a proof that the battery ran or was green, and the L1 line keeps that duty; S1 is the sentence that tells the skill's reader so. Implemented-by: VERDICT: PASS |
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv 维护者速读
席位核对Verdict: ACCEPT · head
|
Requested by Steve · project thread
Part of #34204
Remainder 2 stays on the card: review#2's S3 (a clause on
landing-operations.md:60that--landjudges this, plus one ↔ case binding that text to the gate). It touches governed rules text, so it waits until open PR #34301 merges on the same file; the seat keeps the card open.Clause-②: no
Metadata-protocol: none
维护者速读
label-write --land(席位落地 PR 的那一笔)现在先看 PR 是不是破坏性(标题!)或收窄(Clause-②:带(narrowing));是的话,必须在卡上最新的可信os-dev-report里看到dogfood_battery跑在当前 head(或 head 之下只隔着合并 main 的提交)上,否则拒绝落地、一笔都不写。scripts/pm/label-write.mjs一个文件,不发布;无标记的 PR 不判、行为与读取次数不变;读不出就拒(宁可误拦),平台没答的读以 exit 3 报前提不足、判定拒绝以 exit 2。回滚 = revert 本 PR。本 PR 用Part of:S3(landing-operations.md一处补句)等 docs(pm-dispatch): a PR that spends a shared budget merges main first at any K #34301 合并后另做。scripts/pm/label-write.mjs的landDogfoodGate(合并链的判定)、foldStroke里闸门的位置(在评论判定和任何发送之前)、自测新电池the --land dogfood gate。node scripts/pm/label-write.mjs --self-test,预期273 cases pass across 17 batteries。What changes
scripts/pm/label-write.mjsonly.landDogfoodGate, header section "--landon a breaking or narrowing pull"). On a--landstroke, before the verdict comment is judged and before anything is packed or sent:titleandbody, so an unmarked pull costs zero extra reads): everything before the title's first colon, ending in!(titleBreakingMarker), or a(narrowing)arm on the body'sClause-②:line read byclause2-line.mjs's one reader (readClause2Line). The title form agrees with the changeset-side reader (check-adr-0087-registration.mjs, type, optional scope,!:) on all 1331 bang subjects among the 8521 commit subjects oforigin/mainat22438726f, 0 disagreeing; the header says so. Amalformedornear-missClause-②:line is unreadable and refuses ("make theClause-②:line read"), following that file's own fail-closed direction; a body with noClause-②:line at all is not judged, as Check Changeset reads it. No marker means not judged; the stroke lands exactly as today.deliveredCardNumberfromrecord-recognisers.mjs), its whole thread paged (LAND_COMMENT_PAGE_CAP= 30 pages of 100), filtered to trusted authors (recordAuthorTrusted/recordTrustedAuthors(RELAY_COMMENT_AUTHOR), the record leg's set: the relay identity andGOVERNED_APPROVERS), then the newestos-dev-reportbylatestMarkedComment(…, OS_DEV_REPORT_MARKER), and itsdogfood_batteryread throughdevReportPayloadCandidates(the shapecheck-handover.mjs'sreportedStatususes). No second parser. When that report'sprfield names another pull (sibling pulls on one card), the gate takes the newest trusted report whoseprnames this pull, or refuses when none does; aprof null keeps the newest.GET /repos/R/commits/Cmust answer exactly two parents;GET /repos/R/compare/P2...BASEmust answeraheadoridentical(the base branch holds the second parent); then step to the first parent. At mostLAND_MERGE_HOP_CAP= 20 hops.Clause-②:line, a pull with no full head sha, no card, a truncated thread or a page that is no list, no trusted report (or none naming this pull), no readabledogfood_battery,n/a, no sha, a one-parent commit, a second parent the base does not hold, or a walk past the cap: each is a judged refusal, exit 2, zero writes (nopr_ready). A gate read the platform did not answer (the pull, a thread page, a commit or a compare: refused, failed or rate-limited) is exit 3, PREREQUISITE, like every other unread in this file, also with zero writes. The line quotes the title (capped atquoteLine's 160) and names the marker, the report comment id and itsdogfood_batterytext, the reason, and what clears it (landDogfoodRefusal). A truncated thread's remedy is to report it to the maintainer.sha judged only: whether the battery was full and its reds fixed or reported staysl1-review-checklist.md:48's.--helptext describe the gate; exit 2 now also covers its refusal.(narrowing)marker is read from the body'sClause-②:line.Tests
New self-test battery
the --land dogfood gate(46 cases, pinned;SELF_TEST_BATTERY_FLOOR16 → 17). The card's rows both ways:!+n/arefused;!+ run on the head passes;(narrowing)+ run on an older non-merge ancestor refused;!+ run one (and two) main merges below the head passes; no marker is not judged and makes the same four reads as before; every fail-closed case refuses with its own reason; newest-trusted-report ordering both ways; a newer untrusted report ignored; the hop cap exactly at and one past. Round 1 added: the quoted title and its cap; a near-missClause-②:line refused and an absent one not judged; exit 3 for each unread (pull, thread, rate-limited thread, commit, compare) beside exit 2 for judged refusals; a sibling pull's newer report passed over, none naming this pull refused, a nullprkept; a thread page answering no list;sha judged onlyon the ✓ line.Forced test edits: none of the existing assertions changed.
fakeBoardgained fields (title,body,head,baseRef,cards,commits,onBase) and two ops (commit-read,compare-read), and step ①'s card read now answerstitle/body, because the gate refuses a pull whose title does not read: without a title the existing verdict-fold cases would have been refused.Acceptance notes
l1-review-checklist.mdline 48 (the L1 check for!/(narrowing)) andlanding-operations.mdline 60 (label-write --land) do not say the check is manual only, so neither contradicts the gate.Verification
Round 1, all on head
524fac67(=01ad0b0ewithorigin/main22bcc7699merged in: main had moved incheck-half-states.mjsandrecord-recognisers.mjs, two files this gate imports from, so the merge came first and every run below is on the merged head).git diff --name-only origin/main...HEAD=scripts/pm/label-write.mjsonly (+456 / -3). After the round, main moved again to3b1307ede; none of the new commits touches this file or the readers it imports.node scripts/pm/label-write.mjs --self-test:✓ label-write self-test: 273 cases pass across 17 batteries(round 0: 264; the new battery is pinned at 46 cases,SELF_TEST_BATTERY_FLOOR17).check-half-states.mjs,record-recognisers.mjs,post-stamped.mjsexit 0.pnpm exec eslint --no-inline-config scripts/pm/label-write.mjs: exit 0.node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 64 commands, each run and recordedCMD :: exit N, all exit 0;--ran:64 derived, 64 run, 0 NOT-MEASURED, 0 UNRUN. The same 64 were green on01ad0b0ebefore the merge.Round 1 ablations: one per new branch, 8 of 8 red, each restored to blob == HEAD
Same tool and command as round 0. B2 and B4 were first sent with a replacement that is a substring of the anchor;
ablation-replace.mjsrefused those (its count check: the replacement's count fell instead of rising by 1), so they did not count, and they were re-run with a distinct replacement.Round 0 ablations (head 88a02ae): one per branch, 21 of 21 red, each restored to blob == HEAD
Each through
node scripts/ablation-replace.mjs --file scripts/pm/label-write.mjs --anchor … -- node scripts/pm/label-write.mjs --self-test(anchor hit 1, restore verified by the tool). The count is the self-test's failing cases;0means the self-test died on a TypeError (the guard is what keeps a null from being read), which is exit 1 too.Generated by Claude Code