Skip to content

pm scripts: a folded PR with two Fixes lines cannot pass label-write --land's dogfood gate, because deliveredCardNumber finds no single card #35651

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Filing gate: ① fleet-tool defect. Source: fleet. Seat 1's area b1-C hit it landing PR #35629 (fold of #35251 + #35252), and reported it at 2026-11-19T21:28Z. ⛔ Not a claim.

Grade: left to triage. It does not block any fix today, because there is a workaround. But it works against the maintainer's standing order (2026-11-19 17:00Z: fold cards that share a file or mechanism into one PR by default), and every folded breaking or narrowing PR will hit it.

What happens

label-write.mjs --land runs landDogfoodGate (scripts/pm/label-write.mjs, around line 1727) on a breaking or narrowing pull. The gate asks deliveredCardNumber (scripts/pm/record-recognisers.mjs, around line 2210) which card thread holds the os-dev-report with the dogfood_battery. A folded PR's body carries one Fixes #N per card, at equal strength. So deliveredCardNumber returns card: null ("it delivers 2 cards at the same strength … not derivable from the pull request alone"), and the gate refuses with "no card".

The workaround used on PR #35629 was to demote one line to Part of #35252 and close that card by hand after the merge. That loses the auto-close and adds a manual step on every fold.

deliveredCardNumber is shared. The queue guard uses it to pair a PR with the one card thread its contract-review record may sit on (check-governed-queue-guard.mjs), so any change has to keep that pairing unambiguous.

Expected

A folded PR that names its chain head lands through --land with one Fixes per card. For example, a line-start declaration such as the claim's chain-head card could decide the tie, or the gate could accept the report on any delivered card's thread. The owner picks the shape. Either way the record pairing in the queue guard stays derivable, and the gate never reads a report it cannot locate.

Done when

  • --land passes on a fold whose body carries two Fixes lines and a dogfood report on the chain-head card, and still refuses when no delivered card carries one. Both are pinned in label-write.mjs --self-test.
  • record-recognisers.mjs --self-test and check-governed-queue-guard.mjs --self-test stay green, with a case for the tie-break.
  • execution-duties.md's fold text points at the tie-break line, if one is added.

Who acts: area:fleet (pm scripts).

Activity

  1. added
    bug
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:skills (scripts/pm) · pm:queue; rationale: area:fleet · Bug · Impeded (label-write --land's dogfood gate refuses a folded PR with two equal Fixes lines, because deliveredCardNumber finds no single card) · every folded breaking or narrowing PR, which the maintainer's 17:00Z fold-by-default order makes routine · a workaround exists → p2.

  3. added
    domain:skills
    pm:queue
    priority:p2
    on Nov 19, 2026
  4. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgVv6gTt6GofcDEN2Bd

    Claim: PM loop round 1 · 2026-11-20T04:33Z
    Area: b1-P
    Session: session_01L6bhgVv6gTt6GofcDEN2Bd
    Account: os-sales
    Branch: claude/project-thread-fatvim (this card thread can push only this branch, a measured platform exception to the issue-numbered branch name; it is cut from origin/main after PR #35712 merged, which it has, at a457b5157d)
    Worktree: objectstack-issue-35651
    Domain: domain:skills
    Seat: repo:objectstack#1
    File surface: scripts/pm/label-write.mjs (landDogfoodGate and its --self-test) and scripts/pm/record-recognisers.mjs (deliveredCardNumber or a sibling relation, and its --self-test); scripts/pm/check-governed-queue-guard.mjs and scripts/pm/check-owed-reviews.mjs only for a self-test case that pins their pairing unchanged. Not .claude/**, not AGENTS.md, not .github/workflows/**: if the fix needs a rule-text line in execution-duties.md, the dev stops and reports, because that line makes the PR a governed Tier S diff under a byte ratchet at headroom 0. (stop on breach; explain in the report)
    Container & model: M, mode:subagent (one os-dev inside this card thread), model: default — dispatch-gates --tier: no path-derived mandate, effort: high (M by difficulty: one gate branch with its self-test)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the fleet's own code in objectstack (scripts/pm/label-write.mjs landDogfoodGate refusing on deliveredCardNumber's tie) | no platform path covers it; the workaround is a hand-demoted Part of line plus a manual close | every seat landing a breaking or narrowing fold PR through --land, routine under the maintainer's fold-by-default order
    Thread-read: 7022769181
    Premise: holds — read at origin/main 598a34d04: deliveredCardNumber (scripts/pm/record-recognisers.mjs:2210) returns card: null for two equal closing keywords (its self-test pins that at :3925), and landDogfoodGate (scripts/pm/label-write.mjs:1727) refuses on that at :1748-1749 with "no card".
    Resume-from: none
    Serial constraints cleared: PR #35712 (neighbouring pm script) merged at a457b5157d. PR #35610 (open, draft) shares record-recognisers.mjs and check-governed-queue-guard.mjs; it also brings guard scripts onto the governed register, so the landing tier is read again with check-governed-merges.mjs --pr at landing. overlap-check.mjs on a local probe commit touching the three scripts, against origin/main 598a34d04: VERDICT clean exit 0, #35610 the only open head sharing a file, merging cleanly. It is re-run before every push.
    Fold-or-serial: serial, nothing folded. The other skills cards exempted with this one (#35693, #35732, #35731, #35480, #35456, #35714, #35496, #35692, #35696, #35647) are rule or docs text in other files; none touches these scripts or this mechanism, so gate ① fails for each.
    Pre-claim lane: area:fleet (an area of seat 1 since 2026-11-19T15:40Z) / domain:skills: non-gate PM loop tooling under scripts/pm/
    Pre-claim deps: no Blocked-by: line; the brief's "after #35712" is met (merged a457b5157d)
    Prior rulings read: check-prior-rulings.mjs --card 35651 --terms deliveredCardNumber,landDogfoodGate,fold,chain-head → 4 ADR hits (ADR-0019 D3, ADR-0029 D9.2, ADR-0106 D3, ADR-0128 D1), shared word "fold" only; the card's thread carries no ruling comment. --paths over the three scripts: 1041 hit lines, the scripts' own rule text; the constraint this card must keep is the one in deliveredCardNumber's own docblock: an equal-strength tie is reported, never resolved by number order, and the queue guard's record pairing stays derivable from the pull alone.

    Dispatch exemption: p2, dispatched under the maintainer's 2026-11-20T04:26Z 「skills 都派」 in the Objectstack build fleet project chat.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 20, 2026
  6. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgVv6gTt6GofcDEN2Bd
    os-dev-report

    {
      "issue": 35651,
      "status": "done",
      "branch": "claude/project-thread-fatvim",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35753",
      "session": "session_01L6bhgVv6gTt6GofcDEN2Bd",
      "premise_still_valid": true,
      "summary": "Route B, measured and taken. record-recognisers.mjs gains deliveredCardsAtStrongest(pr): every delivered card at the strongest grade, in body order. It answers from the same private enumeration (strongestDeliveredRows, which asks deliveryEvidence) that deliveredCardNumber now answers from, so deliveredCardNumber's answers are unchanged, the tie's card:null included, and the queue guard and owed-reviews pairing is untouched. label-write.mjs landDogfoodGate, on a tie, reads every tied card's thread whole, with the same page cap, trusted-author filter and sibling-pull rule. It lands when the head, or one shared first-parent walk from it, reaches any tied card's battery sha. A tie refusal names every tied card read and why each failed. An unread tied thread is still exit 3, and a body naming no card still refuses. H1 holds: the gate was the only refusing path, and the other readers stay byte-identical in behaviour. H2 is not relied on. No tie-break line was added, so the execution-duties.md bullet does not apply and nothing under .claude/** changed. files_changed: scripts/pm/label-write.mjs, scripts/pm/record-recognisers.mjs (+227/-69, 3 commits). deviations: none. A first header line in record-recognisers.mjs moved the dispatch-gates self-test-reads declaration off its census-pinned line 77, and check:pm-dispatch-gates went red on it. Commit c398e4802 folded the header entry into an existing line, and the full union was re-run on that head.",
      "tests": "At final head c398e4802, each exit captured before any pipe. node scripts/pm/label-write.mjs --self-test: EXIT=0, '334 cases pass across 18 batteries'. The dogfood-gate battery floor goes 50 to 65 with 15 new cases: two-Fixes fold with the report on the chain-head card PASSES; swapped lines pass on the same card; report on the second-named card; Part-of tie; a merge-of-main walk on one tied card over n/a on the other; sibling-pull rule per card. REFUSED: no tied card carries a report (names #8 and #9 and why each failed); n/a plus a non-merge walk; a shared walk refused; each distinct battery sha named once; untrusted report. Exit 3: unread tied thread; unread walk commit. One tied thread answering no list. One structural pin: the tie is read only via deliveredCardsAtStrongest(pull.json), with no enumeration or ranking in the gate. The 319 pre-existing cases are unchanged. node scripts/pm/record-recognisers.mjs --self-test: EXIT=0, '459 cases pass', with a new tie-relation battery (8 cases) and the roster floor 19 to 20. node scripts/pm/check-governed-queue-guard.mjs --self-test: EXIT=0, '581 cases pass', unedited; its existing case 'a-pull-request-delivering-TWO-cards-at-equal-strength-picks-NEITHER' pins the pairing unchanged on a tie. node scripts/pm/check-owed-reviews.mjs --self-test: EXIT=0, '94 cases pass in 10 batteries'. Ablation, with the fix committed: scripts/ablation-replace.mjs replaced the new gate body (anchor hits 1, 'mutation landed: anchor 1 -> 0, blob eabe0e5d1a57 -> 550b388c54c3') with origin/main 598a34d04's, then ran the label-write self-test: '15 of 334 case(s) failed', including the 'PASSES: a ! fold whose body carries TWO Fixes lines' case (why: 'no card: it delivers 2 cards at the same strength'). Restored with 'blob == HEAD (eabe0e5d1a57) and git diff HEAD is empty'. No build or dist leg: these are standalone node scripts run from source.",
      "gates": "Local subset at c398e4802: the 64 families from node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack (2 paths). 63 exit 0, including pnpm check:pm-dispatch-gates ('2249 cases pass'; it was red on the first head 397e174de over the census line, fixed in c398e4802), check:pm-label-write, check:pm-record-recognisers, check:nul-bytes and check:issue-citations. 1 exit 3: pnpm check:i18n-coverage, PREREQUISITE NOT MET because it needs the built workspace closure. The diff touches no package, so this is a declared narrowing to CI. Reconciliation: dispatch-gates --ran: '64 derived famil(ies) accounted for — 63 run, 1 NOT-MEASURED', EXIT=0. overlap-check --branch=claude/project-thread-fatvim: 'VERDICT clean exit 0' before every push; #35610 merges cleanly. Raw control-byte self-scan: no hits. PR check-runs at c398e4802 when the report was written: Governed Surface Queue Guard=success, Check Changeset=success; Lint & Repo Gates lanes, Type Check lanes, Check PR Size and PR-body guards in_progress. line_budget: no skills/** touched, so n/a.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay dispatches: pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, POST /repos/objectstack-ai/objectstack/issues/35753/assignees, POST /repos/objectstack-ai/objectstack/issues/35753/labels) and this os-dev-report (POST /repos/objectstack-ai/objectstack/issues/35651/comments via post-stamped). git push x3 is not REST.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  7. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgVv6gTt6GofcDEN2Bd

    Close-out (area b1-P), 2026-11-20T06:19Z: delivered by PR #35753, merged at 0e2de25149ec81ecb00094300ad2f1e506ddc1fd (the approver's own enqueue after the card's script joined the governed register at Tier H). label-write --land's dogfood gate now reads the report on every card a fold PR's equal Fixes lines deliver, and lands only when one carries a battery reaching the head; deliveredCardNumber and the queue guard's record pairing are unchanged. Nothing remains on this card; pm:dispatched comes off with this comment.


    Generated by Claude Code

  8. removed
    pm:dispatched
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:fleetbugdomain:skillspriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions