Skip to content

fix(pm): label-write --land refuses a breaking or narrowing pull with no dogfood battery on its head - #34303

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-pzq1zy
Nov 16, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-pzq1zy

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Part of #34204

Remainder 2 stays on the card: review#2's S3 (a clause on landing-operations.md:60 that --land judges 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 的提交)上,否则拒绝落地、一笔都不写。
  • 为什么改:PR 侧 CI 按设计不跑 dogfood 分片,这类 PR 全靠 dev 手跑;ci(merge-queue): one bad entry turned into ~6 red rebuilds on 2026-11-06 (18 roots, 110 cascades) — find why each root was green on its PR, and stop the classes the enqueue step can catch #31518 七天复读里没跑就入队的 6 个根因带出 18 次连坐弹出。拒绝挪到入队之前,省下整批队列。
  • 风险与回滚:只碰 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。
  • 需要你做的:无,席位落地(落地闸门,席位先交 review#2 做契约复审)。

What changes

scripts/pm/label-write.mjs only.

  • The gate (landDogfoodGate, header section "--land on a breaking or narrowing pull"). On a --land stroke, before the verdict comment is judged and before anything is packed or sent:
    • Marker, read off step ①'s own card read (the issues endpoint answers a pull's title and body, 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's Clause-②: line read by clause2-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 of origin/main at 22438726f, 0 disagreeing; the header says so. A malformed or near-miss Clause-②: line is unreadable and refuses ("make the Clause-②: line read"), following that file's own fail-closed direction; a body with no Clause-②: line at all is not judged, as Check Changeset reads it. No marker means not judged; the stroke lands exactly as today.
    • Report: the card the pull delivers (deliveredCardNumber from record-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 and GOVERNED_APPROVERS), then the newest os-dev-report by latestMarkedComment(…, OS_DEV_REPORT_MARKER), and its dogfood_battery read through devReportPayloadCandidates (the shape check-handover.mjs's reportedStatus uses). No second parser. When that report's pr field names another pull (sibling pulls on one card), the gate takes the newest trusted report whose pr names this pull, or refuses when none does; a pr of null keeps the newest.
    • Sha: the battery text must open with a 7 to 40 hex sha. It passes when that sha prefixes the pull's head, or when a first-parent walk from the head reaches it over merges of the base alone. The exact test at each step: GET /repos/R/commits/C must answer exactly two parents; GET /repos/R/compare/P2...BASE must answer ahead or identical (the base branch holds the second parent); then step to the first parent. At most LAND_MERGE_HOP_CAP = 20 hops.
  • Fail closed: an unreadable title or 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 readable dogfood_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 (no pr_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 at quoteLine's 160) and names the marker, the report comment id and its dogfood_battery text, the reason, and what clears it (landDogfoodRefusal). A truncated thread's remedy is to report it to the maintainer.
  • The ✓ line says sha judged only: whether the battery was full and its reds fixed or reported stays l1-review-checklist.md:48's.
  • Header and --help text describe the gate; exit 2 now also covers its refusal.
  • Both round-0 choices were accepted by the seat and review#2 (record 6908045917): untrusted-author reports are ignored, and the (narrowing) marker is read from the body's Clause-②: line.

Tests

New self-test battery the --land dogfood gate (46 cases, pinned; SELF_TEST_BATTERY_FLOOR 16 → 17). The card's rows both ways: ! + n/a refused; ! + 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-miss Clause-②: 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 null pr kept; a thread page answering no list; sha judged only on the ✓ line.

Forced test edits: none of the existing assertions changed. fakeBoard gained fields (title, body, head, baseRef, cards, commits, onBase) and two ops (commit-read, compare-read), and step ①'s card read now answers title/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

  • No rules text changed: l1-review-checklist.md line 48 (the L1 check for ! / (narrowing)) and landing-operations.md line 60 (label-write --land) do not say the check is manual only, so neither contradicts the gate.
  • A merge-of-main commit with conflict resolutions still counts as a merge of the base; the card's rule is "later commits are only merges of main", and the gate tests exactly that.

Verification

Round 1, all on head 524fac67 (= 01ad0b0e with origin/main 22bcc7699 merged in: main had moved in check-half-states.mjs and record-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.mjs only (+456 / -3). After the round, main moved again to 3b1307ede; 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_FLOOR 17).
  • Self-tests of the imported owners on the merged head: check-half-states.mjs, record-recognisers.mjs, post-stamped.mjs exit 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 recorded CMD :: exit N, all exit 0; --ran: 64 derived, 64 run, 0 NOT-MEASURED, 0 UNRUN. The same 64 were green on 01ad0b0e before 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.mjs refused 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.

ablated branch failing cases
B1 S1 title quoted 3
B2 S1 title cap 2
B3 S2 near miss refuses 3
B4 N2 sha judged only 2
B5 N3 unread exits 3 6
B6 N4 sibling report passed over 3
B7 N4 none names this pull 0 (TypeError)
B8 no-list page 0 (TypeError)
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; 0 means the self-test died on a TypeError (the guard is what keeps a null from being read), which is exit 1 too.

ablated branch failing cases
A1 title bang 28
A2 narrowing arm 3
A3 malformed unreadable 3
A4 gate wired into fold 24
A5 pull unread 2
A6 no full head 2
A7 no card 2
A8 truncated 3
A9 thread unread 0
A10 trusted authors 4
A11 no report 0
A12 no battery string 3
A13 n/a 2
A14 no sha 2
A15 head match 6
A16 commit unread 2
A17 two parents 2
A18 compare unread 2
A19 on base 2
A20 hop cap 2
A21 ancestor reached 4

Generated by Claude Code

… 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>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 16, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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: /mnt/project-files/skills-seat2/34204-delta.md. os-dev-report 6907730918. check-governed-merges --pr 34303 reads NOT governed; this is a landing gate, so the seat asks for the at-tier review before landing it.

The seat's L1 read, for the reviewer to confirm or overturn:

  • Scope: scripts/pm/label-write.mjs only (+386/−3). No rules text: the dev measured that l1-review-checklist.md:48 and landing-operations.md:60 do not contradict the gate.
  • Markers: a ! before the title's colon, or a (narrowing) arm on the body's Clause-②: line (readClause2Line; a malformed line refuses). An unmarked pull returns before any new read and lands as today. The card asked for the arm "in the title"; the dev reads it from the Clause-② line, where AGENTS.md declares it. The seat agrees (dev's open question 2, recommendation A). Please judge.
  • Report: the newest os-dev-report on the delivered card (deliveredCardNumber), counting only rows by the relay or a GOVERNED_APPROVERS account (recordAuthorTrusted). The seat agrees with keeping that filter (open question 1, A).
  • Head match: the battery's sha prefixes the head, or a first-parent walk reaches it in at most 20 hops. Each hop must be a two-parent merge whose second parent compare reads as on the base (ahead or identical). Any other commit after the battery refuses.
  • Fail closed: every unread pull, card, thread page, commit or compare, a truncated thread (over 30 pages), n/a, and a battery line with no sha refuse with exit 2 and zero writes. The refusal names the marker, the report comment, the dogfood_battery text and what clears it.
  • Imports: readers come from their owners (check-half-states.mjs, clause2-line.mjs, record-recognisers.mjs, check-governed-queue-guard.mjs, fleet-write/ops.mjs), with no second parser. Please check that those imports have no side effects at load time on the land path.
  • Gates per the dev: 64 derived, all exit 0, --ran reconciles; self-test 264 cases (the new battery has 37); 21/21 ablations red.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head 88a02ae · 2026-11-16T05:05Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 88a02ae6a6386e9f121874bc0f7fc8f2ada1bd58
Local-runs: none

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, scripts/pm/label-write.mjs (+386/−3), every hunk. Read to judge it and not reviewed: scripts/pm/clause2-line.mjs, scripts/pm/check-half-states.mjs (markerMatches, latestMarkedComment, OS_DEV_REPORT_MARKER, devReportPayloadCandidates), scripts/pm/check-governed-queue-guard.mjs (recordAuthorTrusted, recordTrustedAuthors), scripts/pm/record-recognisers.mjs (deliveredCardNumber), scripts/check-changeset-no-major.mjs, scripts/check-adr-0087-registration.mjs, .claude/agents/os-dev.md, and the pm-dispatch references l1-review-checklist.md, landing-operations.md, contract-review.md. record-recognisers --template on main reads this file list as the declaration face, so the header carries no Scope: and no Security-touching: line; ④ is added because the hand-off asked for a full read of a landing gate.

① Derived judgments

Card acceptance.

  • Ask 1 (marked pull lands only on a report whose dogfood_battery names the head, or an ancestor differing by merges of main): met. landDogfoodGate runs in foldStroke before the comment file is read, so a refusal is exit 2 with nothing packed or sent. The head match is a prefix test on a 7 to 40 hex sha; the ancestor walk is first-parent, each step a two-parent commit whose second parent the base holds. I checked the compare direction: compare/P2...BASE answering ahead or identical does mean P2 is an ancestor of the base tip. --land cannot reach the two landing ops without --comment-file (parseOptions, pinned by an existing case), so there is no second path through this file.
  • Ask 2 (the refusal names the title, the report comment id and the battery text): met for the comment id and the text; the title itself is not printed. See S1.
  • Ask 3 (three self-test rows): met. ! with n/a refused, ! with a run on the head passes, no marker is not judged with the same four reads as before. The battery adds both directions for the merge walk, the hop cap at and one past, the page cap, newest-report ordering both ways, and one case per refusal reason keyed on that reason's own text. The self-test is a CI gate (check:pm-label-write in lint.yml) and the count is pinned (37, floor 17).
  • The card's ⛔ holds: no workflow file and no dogfood shard on pull_request is touched.

Which pulls are classified, against the rest of the tooling.

  • The two markers are exactly the rule's: os-dev.md:273 says title !, or a (narrowing) arm on the Clause-②: line, either value. l1-review-checklist.md:48 and contract-review.md:10 say the same. The card's own sentence can be read as a title spelling of the arm; no rule text and no reader in the tree knows such a spelling, so reading the arm off the body line through readClause2Line is the correct reading of the card, not a deviation from it.
  • The body line is read first-declaration-wins, the same way check-changeset-no-major.mjs reads the same body (declarationFromPullRequest), so the landing gate and the Check Changeset job cannot disagree about one body's arm.
  • A malformed line refuses. A near-miss line and an absent line are both read as no arm. See S2.
  • The changeset's own breaking signals (check-adr-0087-registration.mjs breakingDeclaration: the banner, a major, a bang summary, the arm on the changeset body) are not read. The rule the card enforces does not name them either, so this is an observation, not a finding. See N1.

What counts as a battery on the head.

  • The newest os-dev-report on the delivered card, among rows by the relay identity or a governed approver. The marker is anchored at the body start, so a comment that quotes the marker is not a report; newest-of is latestMarkedComment (created_at, thread order on a tie). The payload is read with the patrol's candidates. No second parser, and the structural case pins that.
  • n/a and a text naming no sha both refuse, so both measured texts from the card (n/a: no ! in the PR title… and not run: the title carries no breaking marker) are refused on a ! title.
  • The gate judges the sha only. A text that opens with the head sha and then reports failures passes; l1-review-checklist.md:48 still owns "full, and red fixed or reported" at ACCEPT. This matches the card's ask 1 and I do not ask for more. See N2.

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:

  • S1 (should-fix) — Card ask 2 says the refusal names the title. The line prints the marker as the words "! before the colon of the title" and never the title text, while the narrowing marker does quote its line. The measured defect was a report line contradicting the title; printing both side by side is the point of ask 2. Quote the title (capped, as quoteLine does) in landDogfoodRefusal and assert it in the case that already checks the other four fields.
  • S2 (should-fix) — The header says an unreadable marker fails closed, and landDogfoodMarkers refuses a malformed line for that reason. A line that readClause2Line answers as a near miss is treated as no arm and the pull is not judged, and no case pins that reading either way. clause2-line.mjs states that collapsing its readings into "no" is the defect it was written against. Either refuse a near miss, or keep it not judged, say so in the header beside the malformed rule, and pin it with a case. I accept either; an absent line staying not judged is right and agrees with Check Changeset.
  • S3 (should-fix) — Nothing in the pm-dispatch skill says --land now judges this. landing-operations.md:60 still reads as "green, then one relay stroke", and no ↔ case binds the rule text to the gate the way the existing fold case binds --land to that file. The tool's refusal line and --help do teach the remedy, and l1-review-checklist.md:48 already gives the seat the rule, so nothing contradicts. A clause on line 60 in place (no added line) plus one ↔ case closes it; that edit touches governed rules text, so a follow-up card is an acceptable way to pay it. Say which in the next report.
  • N1 (nit) — titleBreakingMarker cuts at the first colon of the title; the changeset-side reader anchors on type, optional scope, !:. The two agree on all 29 bang subjects in main's history. A header sentence naming the title form the gate reads would keep the two from drifting.
  • N2 (nit) — The ✓ line prints the battery text but not that only its sha was judged. Three words ("sha judged only") would stop a reader taking ✓ for the checklist's line 48.
  • N3 (nit) — A rate-limited or failed gate read is reported as a REFUSAL at exit 2, where every other unread in this file is exit 3 (prerequisite). The stroke writes nothing either way.
  • N4 (nit) — With several pulls delivering one card (Part of), the newest report may belong to a sibling pull, and the marked pull is refused until its own report is newest again. Fail-closed and the remedy is printed; the report's pr field could pick the right row.
  • N5 (nit) — The truncation refusal's remedy says to land by hand. landing-operations.md sends every landing through this stroke; word the remedy as "report to the maintainer" or name the documented route.

No must-fix.

② Semver level

scripts/pm/** only; nothing published, no package touched, no changeset owed (skip-changeset label; Check Changeset is green). Clause-②: no and Metadata-protocol: none on the PR body are true for this diff. The PR title carries no ! and the body no arm, so the report's dogfood_battery: n/a is correct for this pull by the gate's own rule.

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.
CI completed before posting: 49 check-runs on this head, 26 success, 23 skipped, none failed.

③ Boundary flags

  • Open question 1 (ignore reports by untrusted authors): keep, option A. It is the record leg's own author set, read through the same two functions, and a landing gate must not be opened by text any commenter can post.
  • Open question 2 (the arm read from the body's Clause-②: line, not the title): option A, for the reasons under ①.
  • Deviation, readers imported from their owners: confirmed, and it is the better shape. Each imported module guards its CLI behind isEntrypoint; check-governed-queue-guard.mjs was already in this file's load closure through check-half-states.mjs; none of them imports label-write.mjs back. The tooling self-tests job is green on this head, which is the load proof.
  • Deviation, attribution lines above Fixes #34204: deliveredCardNumber reads the closing keyword anywhere in the body; PR-body guards is green.
  • security_findings: none from the dev: I add nothing to the public record under this heading. The residual risks of a point-in-time landing gate are noted to the seat privately.
  • SQL push-down check: the diff adds no query, no id materialisation and no in-app join.

④ Design judgment

The gate holds against the scenario it was accepted for. Both measured roots (#32926, #33431) carried ! in the title with a report saying the battery was not applicable or not run; both texts are refused here before pr_ready, with the report comment and its text on the line. The placement is right: before the comment is judged, on the read step ① already makes, so an unmarked pull pays nothing. The walk is the narrowest test that still lets a seat merge main after the battery, and it refuses every shape it cannot prove (one parent, three parents, a second parent off the base, an unread commit or compare, the cap). The reuse of the patrol's and the record leg's readers means the gate cannot grow a private dialect of "report", "newest" or "trusted".

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: claude/project-thread-pzq1zy
Reviewed-by: session_01L9qibxTeW8xHnxoHxWNHWW

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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 88a02ae6, S1–S3, N1–N5). Fix order: /mnt/project-files/skills-seat2/34303-fix-r1.md. os-dev-report 6908698877. Not governed; the seat lands it after this record.

The dev's reading, for the reviewer to confirm or overturn:

  • S1: the refusal quotes the title, capped at 160 characters, and the existing four-field case asserts it.
  • S2: a near-miss Clause-②: line refuses ("make the Clause-②: line read"). An absent line stays not judged. Both are pinned, and the header says so beside the malformed rule.
  • S3: not in this PR, by the seat's order. The PR now opens Part of #34204; the landing-operations.md:60 clause and its ↔ case stay on the card as remainder 2, now that docs(pm-dispatch): a PR that spends a shared budget merges main first at any K #34301 has merged.
  • N1: the header names the title form, measured to agree with the changeset-side reader on all 1331 bang subjects among 8521 subjects on main, with 0 disagreeing. N2: the ✓ line says "sha judged only". N3: an unanswered read exits 3 and a judged refusal exits 2, both pinned, including a rate-limited read. N4: when the newest report's pr names another pull, the gate takes the newest report naming this pull, or refuses; a null pr keeps the newest. N5: the truncation remedy says "report it to the maintainer".
  • Added beyond the order: a thread page that answers no list refuses.
  • Main merged in (merge commit). Self-test 273 cases (new battery 46, floor 17); 64 gates derived, all exit 0, --ran reconciles; 8/8 ablations red, with two re-run using distinct replacements (noted in the body). Still label-write.mjs only (+456/−3).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head 524fac6 · 2026-11-16T06:04Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 524fac67e4d4c1d39e9914ed939c835df501804d
Local-runs: none

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, scripts/pm/label-write.mjs (+456/−3), and inside it every hunk of the round (88a02ae6..01ad0b0e1, +114/−44, two commits: 468c5ac4d the fixes, 01ad0b0e1 one added case). Read to judge it and not reviewed: scripts/pm/clause2-line.mjs (quoteLine, readClause2Line and its three near-miss reasons), scripts/check-changeset-no-major.mjs (declarationFromPullRequest), scripts/pm/check-half-states.mjs, scripts/pm/record-recognisers.mjs, .claude/agents/os-dev.md, landing-operations.md. record-recognisers --template reads this file list as the declaration face, and main's rules print no Scope: and no Security-touching: line on that face, so the header carries neither; ④ is kept because the prior record carried it for a landing gate.

① Derived judgments

What moved between the two heads.

  • The PR's own commits: 468c5ac4d and 01ad0b0e1, both scripts/pm/label-write.mjs only.
  • The main merge 524fac67e (second parent 22bcc7699, 13 commits of main): git show --remerge-diff prints no hunk, so the merge resolved nothing by hand and adds no content of its own. Main did not touch label-write.mjs. It did move two modules the gate imports from; the five imported readers (markerMatches, latestMarkedComment, devReportPayloadCandidates, OS_DEV_REPORT_MARKER, deliveredCardNumber) are byte-identical on both sides of the merge, so the gate reads through the same code the prior record judged. The diff against main is still one file.

Prior findings.

  • S1 (title not quoted): closed. landDogfoodGate carries title on every judged result, quoted through quoteLine at LAND_TITLE_QUOTE_CAP (160), and landDogfoodRefusal prints it first, JSON-quoted. The four-field case now asserts title: "fix(pm)!: a breaking fixture" beside the marker, comment id, battery text, reason and remedy; a second case pins the cap and its ellipsis both ways.
  • S2 (near-miss line read as no arm): closed, by the first of the two routes I offered. landDogfoodMarkers refuses near-miss on the same branch as malformed, names the reason, and the remedy now says which line to fix (clear travels with the reading instead of one shared sentence). The header and the jsdoc say so beside the malformed rule; an absent line stays not judged and says "as Check Changeset reads it". Pinned at the marker function and through the whole stroke, both for the near miss (exit 2, zero sends) and for the absent line (exit 0, "not judged"). See N2 for which reason the pin exercises.
  • S3 (the skill does not say --land judges this): open, on the route the prior record allowed. No rules text is in this PR; the body now opens Part of #34204 and names the clause on landing-operations.md:60 plus its ↔ case as remainder 2, so landing this pull does not close the card. docs(pm-dispatch): a PR that spends a shared budget merges main first at any K #34301, which the dev was waiting on for that file, is in this head's main merge, so nothing blocks the remainder now. Carried below as S1.
  • N1 (title form not named): closed. The header and titleBreakingMarker's jsdoc name the form read. The header also states a measurement (1331 bang subjects among 8521 on main at 22438726f, none disagreeing with the changeset-side reader). I could not re-measure that figure: the review clone is shallow. On the 228 subjects it does hold, the two readers agree on all 30 bang subjects and disagree on none.
  • N2 (✓ line silent on what was judged): closed. The line says "sha judged only", pinned in the passing case; the header adds that fullness and reds stay the L1 checklist's.
  • N3 (an unanswered read reported as a refusal): closed. The four gate reads (pull, thread page, walk commit, compare) return unread: true when the call's verdict is not ok, and foldStroke exits 3 with PREREQUISITE NOT MET and "NOTHING WAS WRITTEN" before the judged-refusal branch. Each is pinned at exit 3 with zero sends, a rate-limited read among them; every judged reason stays pinned at exit 2. The usage text names both exits. See N3 below for one read this classes loosely.
  • N4 (a sibling pull's report shadows this pull's): closed. When the newest trusted report's pr names another pull, the gate takes the newest trusted report whose pr names this pull, or refuses naming the sibling's comment. Only a report naming another pull moves the gate: a newest report with a null pr still decides. Pinned three ways (sibling passed over, null stays newest, none naming this pull refuses) plus the reader's four readings. The selected report still has to name the head or a merge-of-base ancestor, so the fallback admits nothing the head test would not. See N1 below for the one ordering it leaves.
  • N5 (truncation remedy said "by hand"): closed. The remedy is "report it to the maintainer", with the reason.

Newly introduced, against the net diff.

  • A thread page that answers 200 with no list is now its own judged refusal (exit 2) instead of sharing the unread sentence. Correct split: the platform answered, the answer is unusable. Pinned (01ad0b0e1).
  • reportedPayloadString generalises reportedDogfoodBattery over the key and is called for pr too; marker test and payload candidates are still the patrol's, so the "no second parser" property holds and the structural case still pins it.
  • Reach of the S2 fix onto pulls that need no battery: an unmarked pull whose body carries a near-miss line and no declaration is now refused at --land until one line is written. That is the fail-closed direction I asked for and the remedy is one line; I checked it cannot fire when a real declaration is present, because readClause2Line returns the declaration first wherever the near miss sits.
  • Battery count 37 to 46, floor unchanged; the count is pinned and the self-test is a CI gate.

Findings:

  • S1 (should-fix, continues S3) — The pm-dispatch skill still does not say --land judges a marked pull, and no ↔ case binds that text to the gate. Agreed route: remainder 2 on card label-write --land: refuse a ! or (narrowing) PR whose os-dev-report says dogfood_battery n/a or not run #34204 after this pull lands. The card must stay open until it is paid; the seat confirms that at landing.
  • N1 (nit, new, from the N4 fix) — When the newest report names a sibling pull, the fallback considers only reports whose pr names this pull, so a report for this pull written with a null pr is passed over there, although the same report decides when it is itself the newest. The header states the rule as written, so this is consistent; a case pinning that ordering, or a clause saying a null-pr report is not this pull's in the fallback, would make it deliberate.
  • N2 (nit, new, from the S2 fix) — The near-miss refusal is pinned on the spelling reason only. inline-key is the reason real bodies are most likely to produce (this PR's own summary writes the key mid-sentence, and is saved only by its declaration line). One case on that reason would pin the branch where it will actually be met.
  • N3 (nit, new, from the N3 fix) — A 404 on the card thread is classed as unread with the remedy "land again once the card reads". When the body names a card number that does not exist, that read never answers differently; the remedy could add "or correct the card the body names". Nothing is written either way.

No must-fix.

② Semver level

scripts/pm/** only; nothing published, no package touched, no changeset owed (skip-changeset label). Clause-②: no and Metadata-protocol: none on the PR body are true for this diff. The title carries no ! and the body no arm, so the report's dogfood_battery: n/a (os-dev-report 6908698877) is correct for this pull by the gate's own rule, and the gate would not judge this pull.

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.
CI completed before posting: 48 check-runs on this head, 26 success, 22 skipped, none failed.

③ Boundary flags

  • Deviation, merge commit instead of rebase: confirmed harmless. The remerge diff is empty and the imported readers did not move; no force-push.
  • Deviation, two ablations re-run with distinct replacements: a matter of the dev's evidence, not of the diff. I did not re-run them (Local-runs: none); the tooling self-tests job on this head is the proof I rely on.
  • N4 was taken in this round although I graded it a nit. It adds one pure reader and one branch, is pinned both ways, and stays inside the one file; I accept it as in scope.
  • Fixes became Part of: deliveredCardNumber reads both, and PR-body guards is green on this head.
  • security_findings: none from the dev: I add nothing to the public record under this heading. The gate's fail-closed direction is unchanged by this round, and no new write path exists.
  • SQL push-down check: the round adds no query, no id materialisation and no in-app join.

④ Design judgment

The 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: claude/project-thread-pzq1zy
Reviewed-by: session_01L9qibxTeW8xHnxoHxWNHWW

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv

维护者速读

席位核对

Verdict: ACCEPT · head 524fac67e4d4c1d39e9914ed939c835df501804d · card #34204 (p2, part 1) · os-dev-reports 6907730918 → 6908698877 · contract reviews 6908045917 (review#2, PASS on 88a02ae6, S1–S3) → delta 6908834893 (PASS on this head: S1, S2 and N1–N5 closed; no must-fix) · read 2026-11-16T06:09Z.

  • Shape: draft → main, Part of #34204. One file, scripts/pm/label-write.mjs (+456/−3). Not governed (check-governed-merges). skip-changeset; Clause-②: no; Metadata-protocol: none.
  • Gates: dev 64 derived, all exit 0, --ran reconciles; self-test 273 cases (new battery 46, floor 17); 8/8 ablations red then restored. CI on this head is complete: 48 runs, 26 success, 22 skipped, none failed.
  • Nits left open, accepted by the seat: delta N1 (the sibling-report fallback passes over a null-pr report for this pull), N2 (the near-miss refusal is pinned on the spelling reason only), N3 (a 404 card remedy). They ride with remainder 2.
  • Left on the card: remainder 2 (delta S1): a clause on landing-operations.md:60 saying --land judges a marked pull, plus an ↔ case binding that text to the gate. The card stays open; the seat dispatches it after this merges, serial on label-write.mjs.
  • Landing: not governed. The seat lands it through the relay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m 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.

2 participants