Skip to content

label-write --land: refuse a ! or (narrowing) PR whose os-dev-report says dogfood_battery n/a or not run #34204

Closed

Description

@objectstack-fleet

domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z

Filing-gate category: ① process defect, measured. reach: the #31518 7-day re-reading of every merge-queue root, 2026-11-09..15 (comment 6904236520, class (b)). Parent card #31518 (p1, domain:devx), Wanted 2 for class (b).

What happened

Class (b), not selected on the PR, had 6 roots and 18 cascades in the window, the highest cost per root (3.0 cascades). All six are dogfood, which skips pull_request by the ruled two-speed design (6663883327 on #30461). That design leans on the os-dev rule that a ! or (narrowing) PR runs the full dogfood battery before landing, and on review-checklist.md line 48 (「! 或 (narrowing):入队前核 dogfood_battery 钉 head、全量…缺或收窄 ⇒ REWORK」).

Two of the six roots carried ! in their PR titles, and the battery did not run on the landed head:

So the rule exists and was not applied at ACCEPT; the report's own line contradicts the PR's title.

Ask (scripts/pm/label-write.mjs --land, or the readiness check it already calls)

  1. On --land, read the PR title. If it carries ! before the colon or a (narrowing) arm, read the newest os-dev-report on the PR's card and refuse to land unless its dogfood_battery names a head equal to the PR's current head (or an ancestor that differs only by main merges, as review-checklist allows).
  2. The refusal names the title, the report comment id and its dogfood_battery text.
  3. Self-test rows for: ! title with an n/a line (refused), ! title with a run line on the head (passes), no ! (not judged).

⛔ No change to the two-speed CI design, no dogfood shard added to pull_request.

Reader: domain:skills lane seat, from pm:queue (scripts/pm tooling). Dedupe: dogfood_battery land refuse, breaking marker battery not run, no open hit. Priority p2: it would have stopped 2 roots and their cascades this week, at no runner cost.

Activity

  1. added
    tooling
    priority:p2
    pm:queue
    domain:skills
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first-touch audit → domain:skills · p2 confirmed · 2026-11-16T04:14Z

    ⛔ Not a claim. Requested by domain:skills#2 (mailbox comment 6907116105).

    From #31518's 7-day re-reading: class (b), not selected on the PR, caused 6 roots and 18 cascades, the highest cost per root. All six were dogfood, which skips pull_request by design and relies on a ! or (narrowing) PR running the battery in os-dev. label-write --land refusing such a PR whose report says dogfood_battery n/a or not run closes that gap before the queue. Queue throughput, so p2 stands.

  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv

    Claim: PM loop round 2 (lane reopened, one seat)
    Session: session_01ADHkmRxXmVQ41fqnaTPGAv
    Thread session: session_01ADHkmPoqLCQHtTFH1fsaSB
    Account: os-steve
    Branch: claude/project-thread-pzq1zy
    Worktree: objectstack-issue-34204
    Domain: domain:skills
    Seat: domain:skills#2
    File surface: scripts/pm/label-write.mjs (the --land path and its self-test); scripts/pm/record-recognisers.mjs only to export an existing reader (a region apart from open PR #34289's); rules text only where a line now contradicts the gate, paid in-family; ⛔ no ceiling raised (stop on breach)
    Container & model: S, mode:thread, model: TIER_DEFAULT (dispatch-gates --tier); a landing gate, so the at-tier contract review goes to review#2 per the maintainer's 2026-11-15 21:53Z order, no fable subagent.
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6907138303
    Premise: holds (main 4bd3f240: label-write --land appends pr_ready then automerge_enable and reads no dogfood_battery; grep -n dogfood_battery scripts/pm/*.mjs has no hit)
    Serial constraints cleared: no open PR touches label-write.mjs; open PR #34289 touches record-recognisers.mjs in the roster region, so this card stays out of that region and the later lander merges main (seat's open-PR map, 04:25Z).
    Ruling-ref: none needed (process defect, measured; triage first touch 6907138303 confirms p2). Order: /mnt/project-files/skills-seat2/standard-order.md + 34204-delta.md (project files). Claimed 2026-11-16T04:26Z.

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

    @objectstack-fleet
    ContributorAuthor

    domain:skills#2 · os-steve · session_01ADHkmPoqLCQHtTFH1fsaSB
    os-dev-report

    {
      "issue": 34204,
      "status": "done",
      "branch": "claude/project-thread-pzq1zy",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34303",
      "session": "session_01ADHkmPoqLCQHtTFH1fsaSB",
      "premise_still_valid": true,
      "summary": "`label-write --land` now runs a dogfood battery gate before the verdict comment is judged or anything is sent. A pull whose title carries `!` before its colon, or whose `Clause-②:` line carries a `(narrowing)` arm, lands only when the newest trusted `os-dev-report` on the card it delivers has a `dogfood_battery` naming the pull's head sha, or a sha a first-parent walk reaches over merges of the base alone (each step: exactly two parents, the second one held by the base per GET compare/P2...BASE = ahead|identical). Every unreadable case refuses with exit 2 and zero writes, naming the marker, the report comment, its battery text, the reason and the remedy; an unmarked pull is not judged and makes the same reads as before.",
      "tests": "head 88a02ae6: `node scripts/pm/label-write.mjs --self-test` -> `264 cases pass across 17 batteries` (was 227/16; new battery 37 cases pinned, floor 16->17); `node scripts/pm/post-stamped.mjs --self-test` -> 787 pass; eslint exit 0. Ablations 21/21 red via scripts/ablation-replace.mjs, each restored blob == HEAD (table in the PR body; A9/A11 red by TypeError crash, exit 1). Log: /mnt/project-files/skills-seat2/34204-ablations.log",
      "gates": "local: dispatch-gates --commands = 64 commands, all exit 0 on 88a02ae6 (check:i18n-coverage exit 3 first, prerequisite build closure under os-verify-lock VERDICT command-exit 0, re-run exit 0); `--ran` -> 64 derived, 64 run, 0 NOT-MEASURED, 0 UNRUN. File: /mnt/project-files/skills-seat2/34204-gates-ran.txt. CI check-runs: in_progress at report time (not waited on). check-governed-merges --pr 34303: NOT governed, 389 changed lines.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "2 — mcp__github__issue_read get_comments (#34204 claim check), mcp__github__pull_request_read get (#34303 read-back); no write tool",
      "api_writes": "2 — relay pr_create (fleet-write run 43806981659, #34303, labels skip-changeset, assignees os-steve); this os-dev-report comment via post-stamped. git push is not a REST write.",
      "open_questions": [
        {
          "question": "Reports by accounts other than the relay identity and GOVERNED_APPROVERS are ignored when picking the newest os-dev-report (recordAuthorTrusted), so a newer untrusted comment cannot unlock a landing. The card did not ask for this filter. Keep it?",
          "options": [
            "A keep: untrusted text is data, never a reason to land (untrusted-text.md)",
            "B drop it: newest report by anyone"
          ],
          "recommendation": "A, because a forged report would otherwise be the cheapest way past a landing gate, and every report today is written by the relay."
        },
        {
          "question": "The `(narrowing)` marker is read from the PR body's `Clause-②:` line (where AGENTS.md and os-dev.md put the arm), not from the title; a `malformed` line refuses. The delta's row says `(narrowing)` title. Is the body line the intended place?",
          "options": [
            "A body `Clause-②:` line only (as built)",
            "B also a literal `(narrowing)` in the title"
          ],
          "recommendation": "A, because the arm has one legal spelling read by one reader (clause2-line.mjs); a title spelling would be a second dialect."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "files_changed": [
        "scripts/pm/label-write.mjs (+386/-3)"
      ],
      "line_budget": "pm-dispatch skill family: 0 lines changed (no rules text touched; l1-review-checklist.md:48 and landing-operations.md:60 do not contradict the gate). record-recognisers.mjs untouched (open PR #34289's region avoided).",
      "deviations": [
        "Readers are imported from their owners beyond record-recognisers.mjs (deliveredCardNumber): OS_DEV_REPORT_MARKER, latestMarkedComment, devReportPayloadCandidates and markerMatches from check-half-states.mjs, readClause2Line from clause2-line.mjs, recordAuthorTrusted/recordTrustedAuthors/GOVERNED_APPROVERS from check-governed-queue-guard.mjs, RELAY_COMMENT_AUTHOR from fleet-write/ops.mjs. No reader was copied or exported anew.",
        "PR body opens with the harness attribution lines; `Fixes #34204` follows them (os-dev.md allows the harness line first).",
        "No reviewer requested on the PR: hand-over is the seat's (os-dev.md rule 2; pr_create assigns and does not request)."
      ]
    }

    Stamped 2026-11-16T04:56Z.

  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#2 · os-steve · session_01ADHkmPoqLCQHtTFH1fsaSB
    os-dev-report

    {
      "issue": 34204,
      "status": "done",
      "branch": "claude/project-thread-pzq1zy",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34303",
      "session": "session_01ADHkmPoqLCQHtTFH1fsaSB",
      "premise_still_valid": true,
      "round": "r1 on review#2 record 6908045917 (fix order /mnt/project-files/skills-seat2/34303-fix-r1.md)",
      "summary": "Round 1 takes S1, S2 and N1 to N5 in scripts/pm/label-write.mjs. S1: the refusal quotes the pull title, capped at quoteLine's 160. S2: a near-miss Clause-② line refuses like a malformed one ('make the `Clause-②:` line read'), and an absent line stays not judged. N1: the header names the title form read, everything before the first colon ending in `!`; measured equal to the changeset-side reader on all 1331 bang subjects of origin/main at 22438726f, 0 disagreeing. N2: the ✓ line says 'sha judged only'. N3: a gate read the platform did not answer exits 3; a judged refusal stays exit 2. N4 (small, taken): when the newest trusted report's `pr` names another pull, the gate takes the newest naming this pull, or refuses; a null `pr` keeps the newest. N5: the truncation remedy now says to report it to the maintainer. S3 is not in this PR: the body says `Part of #34204`, and S3 is remainder 2 after #34301 merges. main moved in two of the gate's imported readers (check-half-states.mjs, record-recognisers.mjs), so origin/main was merged in before the final round.",
      "tests": "head 524fac67: label-write --self-test -> 273 cases pass across 17 batteries (new battery pinned at 46, floor 17); check-half-states, record-recognisers and post-stamped self-tests exit 0; eslint exit 0. Round-1 ablations 8/8 red, restored blob == HEAD (B7 and B8 red by TypeError). Log: /mnt/project-files/skills-seat2/34204-ablations-r1.log",
      "gates": "local on 524fac67: dispatch-gates --commands = 64, all exit 0; --ran -> 64 derived, 64 run, 0 NOT-MEASURED, 0 UNRUN (/mnt/project-files/skills-seat2/34204-gates-ran-r1.txt). The same 64 were green on 01ad0b0e before the merge. CI on 524fac67: in_progress, not waited on. After the round main moved to 3b1307ede, touching none of the gate's files.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "4 in total — round 0: issue_read get_comments, pull_request_read get; round 1: pull_request_read get_comments (the review record). All are reads; no write tools.",
      "api_writes": "4 in total — round 0: relay pr_create and an os-dev-report; round 1: relay issue_patch of the #34303 body (fleet-write run 43813747637, 10464 bytes sent and stored, identical) and this os-dev-report. git push is not a REST write.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "files_changed": [
        "scripts/pm/label-write.mjs (+456/-3 vs main)"
      ],
      "line_budget": "pm-dispatch skill family: 0 lines; no rules text (S3 is deferred to remainder 2).",
      "deviations": [
        "B2 and B4 were first sent with a replacement that is a substring of the anchor. ablation-replace.mjs refused them on its count check, so they were re-run with distinct replacements; only the re-runs count.",
        "Merge commit 524fac67 (origin/main into the branch) was made because main moved in two of the readers this gate imports. No rebase, no force-push."
      ]
    }

    Stamped 2026-11-16T06:00Z.

  7. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv

    Landed (part 1): PR #34303 merged at merge commit 8559ee1f178bb2c173917161ffe8059ce6434a36 (head 524fac67; merge queue; not governed, landed by this seat on review#2 PASS 6908834893), recorded 2026-11-16T06:30Z. The card stays open and dispatched under claim 6907299833, with the same thread and branch name: remainder 2 is the landing-operations.md clause that names the gate, its ↔ case, and delta nits N1–N3. Order: /mnt/project-files/skills-seat2/34204r2-delta.md.

  8. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#2 · os-steve · session_01ADHkmPoqLCQHtTFH1fsaSB
    os-dev-report

    {
      "issue": 34204,
      "status": "done",
      "branch": "claude/project-thread-pzq1zy",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34326",
      "session": "session_01ADHkmPoqLCQHtTFH1fsaSB",
      "premise_still_valid": true,
      "round": "remainder 2 (order /mnt/project-files/skills-seat2/34204r2-delta.md; review#2 records 6908045917 S3 and 6908834893 N1-N3). Part 1 landed as #34303 (8559ee1f).",
      "summary": "Rules text: landing-operations.md gains a continuation line owned by line 60 (`label-write --land`), 111 bytes: `--land` refuses a `!`/`(narrowing)` pull unless the card's newest trusted os-dev-report pins dogfood on the head, with a pointer to os-dev.md. It does not restate the gate's logic. The new line is paid for by deleting line 11, which duplicated contract-review.md:56-57 (a PR that landed owing L2 is reviewed on the landed head, findings become cards, the closed PR is never fixed). Same direction, same reader (the landing pre-check). The file stays at 112/112. label-write.mjs: a new case binds that line to the gate, and binds LAND_DOGFOOD_RULE_PATH to os-dev.md, which still holds the rule and the dogfood_battery key. N1: in the sibling fallback, a report with a null `pr` is not this pull's; this was already the behaviour, and it is now pinned and stated in the header. N2: an inline-key near-miss case refuses. N3: when the card's thread answers 404, the remedy adds 'or correct the card the body names (#N)'; other unread answers keep the old remedy. Both directions are pinned.",
      "tests": "head 8b66fb37: label-write --self-test -> 277 cases pass across 17 batteries (the --land dogfood battery floor goes from 46 to 50); eslint --no-inline-config exits 0; check-skill-line-ratchet and check-skill-id-lint are green. Ablations: 6/6 red, one in each direction per new branch (C1/C2 N3 off and always-on, C3 N1, C4 N2 at the owner's inline-key return, C5/C6 the ↔ case from the rules side and the rule-path side). Every ablation was restored to blob == HEAD. Log: /mnt/project-files/skills-seat2/34204r2-ablations.log",
      "gates": "local on 8b66fb37: dispatch-gates --commands gave 70 commands, all exit 0, including check:pm-label-write, check:pm-skill-ratchet and check:pm-skill-id-lint. --ran -> 70 derived, 70 run, 0 NOT-MEASURED, 0 UNRUN (/mnt/project-files/skills-seat2/34204r2-gates-ran.txt). check-governed-merges --pr 34326 -> GOVERNED Tier S (.claude/** x1: landing-operations.md); label-write.mjs is not on the register; 25 changed lines. CI on 8b66fb37: not waited on.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 this round. Card total 4, all reads.",
      "api_writes": "2 this round: relay pr_create #34326 (fleet-write run 43820214213, 6870 bytes sent and stored, identical; draft, skip-changeset, assignee os-steve) and this os-dev-report. Card total 6. git push is not a REST write.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "files_changed": [
        ".claude/skills/pm-dispatch/references/landing-operations.md (+1/-1, 112 -> 112)",
        "scripts/pm/label-write.mjs (+20/-3)"
      ],
      "line_budget": "landing-operations.md 112/112 (ceiling unchanged). Payer: landing-operations.md:11 deleted as a true duplicate of contract-review.md:56-57. No other pm-dispatch file changed.",
      "deviations": [
        "The first ablation pass ran on uncommitted edits. ablation-replace restores to HEAD, which wiped them, so passes C1-C6 of that run do not count. The edits were re-applied verbatim, committed as 8b66fb37, and all six ablations re-ran on it. C4's first anchor hit twice (the reader's two copies), so the tool refused it, and it was re-run with an anchor unique to readClause2Line.",
        "The branch claude/project-thread-pzq1zy was restarted from origin/main 8559ee1f. The remote branch had been deleted at merge, so this was a plain push with no force."
      ]
    }

    Stamped 2026-11-16T06:57Z.

  9. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#2 · os-steve · session_01ADHkmPoqLCQHtTFH1fsaSB
    os-dev-report

    {
      "issue": 34204,
      "status": "done",
      "branch": "claude/project-thread-pzq1zy",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34326",
      "session": "session_01ADHkmPoqLCQHtTFH1fsaSB",
      "premise_still_valid": true,
      "round": "r1 on review#2 record 6909926666 (PASS on 8b66fb37 with S1, N1-N3; fix order /mnt/project-files/skills-seat2/34326-fix-r1.md). Earlier record 6909678990 was this card's remainder-2 r0 report.",
      "summary": "Round 1 makes two changes, both in scripts/pm/label-write.mjs. S1: the ↔ case's gate side now requires ONE line of LAND_DOGFOOD_RULE_PATH (os-dev.md) that carries dogfood, `!` and `(narrowing)` together (today os-dev.md:273). This matches how its text side binds the landing-operations.md `--land` line. The case is renamed to say it binds one line at each end, and os-dev.md is not edited. N1: a card thread that answers 404 now gives the remedy 'or correct the card this pull delivers (#N)', which is also true when the card comes from the branch name. N2 and N3 need no change, per the order. The rules text and the payer are the same as r0.",
      "tests": "head 6082d7d6: label-write --self-test -> 277 cases pass across 17 batteries (floor 50); eslint --no-inline-config exits 0. Ablation D1 (r1 S1): deleting the os-dev.md:273 rule line turns the ↔ case red (exit 1). It ran through ablation-replace, which restored blob == HEAD, and os-dev.md is unchanged. r0's C1-C6 stay 6/6 red on 8b66fb37. Log: /mnt/project-files/skills-seat2/34204r2-ablations.log",
      "gates": "local on 6082d7d6: dispatch-gates --commands gives 70 commands, the same list as r0, all exit 0. --ran -> 70 derived, 70 run, 0 NOT-MEASURED, 0 UNRUN (/mnt/project-files/skills-seat2/34204r2-gates-ran-r1.txt). Tier: GOVERNED Tier S, as in r0 (.claude/** x1: landing-operations.md). CI on 6082d7d6: not waited on.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 this round. Card total 4, all reads.",
      "api_writes": "2 this round: relay issue_patch of the #34326 body (fleet-write run 43824347166, 7365 bytes sent and stored, identical) and this os-dev-report. Card total 8. git push is not a REST write.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "files_changed": [
        ".claude/skills/pm-dispatch/references/landing-operations.md (+1/-1, 112 -> 112; unchanged this round)",
        "scripts/pm/label-write.mjs (r1: the ↔ case and the 404 remedy only)"
      ],
      "line_budget": "landing-operations.md 112/112 (ceiling unchanged). Payer: landing-operations.md:11 deleted as a true duplicate of contract-review.md:56-57. No other pm-dispatch file changed.",
      "deviations": [
        "none this round. r0's deviations stand (ablations re-run on the committed head after the restore-to-HEAD wipe; plain push of the restarted branch)."
      ]
    }

    Stamped 2026-11-16T07:31Z.

  10. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv

    Landed (remainder 2, final): PR #34326 merged at merge commit 9e7c6954f7b95a10d2b1491cb846f9baa3c58522 (head 6082d7d6; through the merge queue; Tier S, landed by this seat on review#1 PASS 6911796046), recorded 2026-11-16T09:27Z. Part 1 is PR #34303 (8559ee1f). The card was closed by the Fixes line, and pm:dispatched is released. Nits N2–N6 were accepted and are left open with no card: each one either fails closed or is only a case name, and p3 dispatch is paused.

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

Metadata

Metadata

Assignees

Labels

domain:skillspriority:p2tooling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions