Repository navigation
fix(pm): label-write --land reads the dogfood report on every card a fold's equal Fixes lines deliver - #35753
Conversation
…e pairing that still refuses one deliveredCardsAtStrongest returns the delivered cards at the strongest grade, in body order, from the same enumeration deliveredCardNumber answers from. deliveredCardNumber is unchanged: it still yields no card on a tie, so the queue guard's record pairing does not move. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVv6gTt6GofcDEN2Bd
…fold's equal Fixes lines deliver A folded pull carries one closing keyword per card, and deliveredCardNumber reports that tie rather than break it, so the gate refused with no card. The gate now reads every tied card's thread whole, under the same author filter and sibling-pull rule, and lands when some tied card's battery is reached from the head by the same first-parent walk. A refusal names every tied card and why each failed; a body naming no card still refuses. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVv6gTt6GofcDEN2Bd
…line the census pins The header names deliveredCardsAtStrongest on deliveredCardNumber's own line, so the dispatch-gates declaration census still reads line 77. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVv6gTt6GofcDEN2Bd
|
repo:objectstack#1 · os-sales · session_01L6bhgVv6gTt6GofcDEN2Bd Final head for L1: Generated by Claude Code |
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgVv6gTt6GofcDEN2Bd Landing (area b1-P) — head
State change: ready + auto-merge now; on MERGED, #35651 closes by Generated by Claude Code |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Tier change · 2026-11-20T05:58Z · #35610 merged at 509289c and added @os-zhuang, could you review and approve |
Requested by Sales · project thread
Fixes #35651
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
label-write.mjs --landruns a dogfood-battery gate on a breaking or narrowing pull. It askeddeliveredCardNumberfor the ONE card thread holding theos-dev-report; a folded pull carries oneFixesline per card at equal strength,deliveredCardNumberreports that tie (card: null) instead of breaking it, and the gate refused with "no card". The workaround was demoting a line toPart ofand closing that card by hand.This takes the seat's Route B and leaves the record pairing alone:
scripts/pm/record-recognisers.mjs: a new exported sibling,deliveredCardsAtStrongest(pr), returns every delivered card at the strongest grade, in body order, with that grade. It anddeliveredCardNumberboth answer from one private enumeration (strongestDeliveredRows), which asksdeliveryEvidenceexactly as before, so there is no second parser.deliveredCardNumber's answers are unchanged, the tie included, so the queue guard's andcheck-owed-reviews.mjs's pairing behaves byte-identically. Its docblock rule ("AMBIGUITY IS NOT RESOLVED, it is REPORTED") still holds: nothing picks a card by number order.scripts/pm/label-write.mjslandDogfoodGate: on a tie it reads EVERY tied card's thread in full, with the same page cap, the same trusted-author filter and the same sibling-pull rule as the single-card path. It lands when the head, or one shared first-parent walk from it, reaches ANY tied card's battery sha. The verdict cannot depend on reading order. A tie refusal names every tied card read and why each failed (landDogfoodRefusalprintsreports: card #A …; card #B …). A tied thread that does not read is still exit 3 (unread: true), and one that cannot be read whole still refuses, whatever the other cards carry. A body naming no card still refuses as before. The single-card path keeps its reads and messages: all 50 pre-existing cases in that battery pass unchanged.--landpass line on a tie adds· a tie of N cards (#A, #B), every thread read, cleared by card #A comment X.Not touched:
.claude/**(no tie-break line was added, so the card's third Done-when bullet,execution-duties.md's fold text, does not apply),check-governed-queue-guard.mjs,check-owed-reviews.mjs.Branch note for the Duplicate Fix Guard:
claude/project-thread-fatvimis the platform-fixed branch of this card thread, the only branch this container can push. It is not issue-numbered, and the card is #35651.Read first (by risk)
scripts/pm/label-write.mjslandDogfoodGate: thereadCard/outcomes/pass/walkRefusehunk. Risk: the single-card path must stay unchanged in reads and in text.scripts/pm/record-recognisers.mjsstrongestDeliveredRows/deliveredCardNumber: the refactor must leavedeliveredCardNumber's answers exactly as they were.scripts/pm/label-write.mjslandDogfoodRefusaland the② dogfood gate ✓line: the printed shape on a tie.Two-minute verification
node scripts/pm/label-write.mjs --self-test: expect✓ label-write self-test: 334 cases pass across 18 batteries, with the case⭐ PASSES: a ! fold whose body carries TWO Fixes lines and a dogfood report on the chain-head cardamong them.Tests
Final head
c398e4802.label-write.mjs --self-test: the dogfood-gate battery floor goes from 50 to 65, with 15 new cases. Passing cases: twoFixeswith the report on the chain-head card; the same with the lines swapped (order-independence, threads read in body order [WIP] Create a new release version #9 then Convert to monorepo with scoped packages #8); the report on the second-named card; aPart oftie; a tied card's battery one merge of main below the head, over ann/aon the other card; the sibling-pull rule applied per card. Refusing cases: no tied card carries a report (it names both cards and why each failed);n/aon one card and a non-merge walk on the other; a shared walk refused on a non-base merge; the walk naming each distinct battery sha once; an untrusted report on a tied card. NOT MEASURED cases (exit 3): an unread tied thread, even with the other card clearing, and an unread walk commit on a tie. One case for a tied thread answering no list. One structural pin: the gate reads a tie only throughdeliveredCardsAtStrongest(pull.json), enumerates nothing itself, and ranks nothing (sort,Math.min/Math.maxabsent).record-recognisers.mjs --self-test: one new battery (8 cases), and the roster floor goes from 19 to 20. Its cases: a two-keyword tie in body order and never sorted;deliveredCardNumberstillcard: nullon that body; aPart oftie; a stronger grade leaves one card; a branch adds nothing once the body speaks; no card gives an empty result; a control that one card in the tie equalsdeliveredCardNumber's card on every fixture, and none equals its null; a structural pin that both relations callstrongestDeliveredRows(pr)and neither callsdeliveryEvidence(directly.check-governed-queue-guard.mjs --self-testpasses unedited. Its existing case⛔ and-a-pull-request-delivering-TWO-cards-at-equal-strength-picks-NEITHERalready pins the pairing unchanged on a tie: it refuses and reads only the PR thread.Self-test readings (final head)
Ablation: the gate hunk reverted to origin/main, with the fix committed
Done with
scripts/ablation-replace.mjs. The anchor was the new gate body, fromconst delivered = deliveredCardNumber(pull.json);to the end of the function, and the replacement was the same region at598a34d04. Thennode scripts/pm/label-write.mjs --self-testran.All 15 new cases went red on the old gate: every fold refuses with "no card". The 319 earlier cases stayed green. The restore was proven by blob hash equal to HEAD and an empty
git diff HEAD.Acceptance notes
deliveredCardNumberand its readers (check-governed-queue-guard.mjs×3,check-owed-reviews.mjs) are byte-identical in behaviour, so no rule text changes and this PR stays off the governed register.deliveryEvidencealready rejects the branch-name grade, and the fold PR that hit this defect carried an issue-numbered branch, while card threads pushclaude/project-thread-*.record-recognisers.mjsheader names the new export ondeliveredCardNumber's own line. Adding a header line would move thedispatch-gates: self-test-readsdeclaration off line 77, whichdispatch-gates.self-test.mjspins in its census. The first local run ofcheck:pm-dispatch-gateswent red on exactly that, and this PR's third commit fixed it..claude/**lands by declared rule-change, a declared narrowing waits for the maintainer #35610 (draft) sharesrecord-recognisers.mjs.overlap-check.mjswas run before every push:VERDICT clean exit 0, merging cleanly. The new battery's roster row and floor bump sit outside chore(governance): the guard scripts join the governed register,.claude/**lands by declared rule-change, a declared narrowing waits for the maintainer #35610's hunks.Verification
Local subset at
c398e4802, with each exit code captured before any pipe: the 64 familiesnode scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderives for this diff (2 paths).pnpm check:pm-dispatch-gates(✓ dispatch-gates self-test (fast tier): 2249 cases pass),pnpm check:pm-label-write,pnpm check:pm-record-recognisers,node scripts/pm/check-governed-queue-guard.mjs --self-test,pnpm check:nul-bytesandpnpm check:issue-citations.pnpm check:i18n-coverageexit 3, PREREQUISITE NOT MET. It needs the built workspace closure (dist/), this diff touches no package, and it is left to CI.node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran ran.list:✓ dispatch-gates --ran: 64 derived famil(ies) accounted for — 63 run, 1 NOT-MEASURED.node scripts/pm/overlap-check.mjs --branch=claude/project-thread-fatvim:VERDICT clean exit 0before each push.scripts/pm/**publishes nothing, so this PR carriesskip-changeset. No!in the title and no(narrowing)arm, so the dogfood battery is n/a.🤖 Generated with Claude Code
Generated by Claude Code