Skip to content

fix(pm): the landing door reads the opt-in dogfood lane's check run on a breaking PR's head - #38727

Merged
os-zhuang merged 1 commit into
mainfrom
claude/issue-38688-door-reads-dogfood-lane
Nov 30, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/issue-38688-door-reads-dogfood-lane

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread
Fixes #38688
Clause-②: no
Metadata-protocol: none
Rule-change: yes

维护者速读

  • 用户无感;只改内部合并流程:破坏性改动要排队合并时,合并门不再看开发代理自己填写的「回归已跑」一栏,改看云端流水线在这个改动最新提交上的真实结果;开发代理也不再在本机跑完整的真实应用回归。
  • 兑现你在「破坏性改动的完整回归,今后在哪儿跑」上选的「云端流水线代跑」里合并门这一半,替开发代理解决本机跑不完、结果只能靠自报的问题。
  • 出错只会往「拦多了」的方向错:没打专用标签、或云端没跑出通过结果的破坏性改动,一律被合并门拦下并提示去打标签、等结果;撤回这一个改动即可恢复原样。它必须排在云端流水线那个改动之后合并,否则所有破坏性改动都会被拦在门外。
  • 要你做什么:这改了开发代理的工作规则,合并前需要你批准。

Lands after: #38694 (PR #38705)

What changes

Maintainer ruling 7269391948 on the card (letter D, 「云端流水线代跑」): "the landing door reads that lane's conclusion on the head and stops reading the typed dogfood_battery field", and os-dev.md 216–218, its report template, l1-review-checklist.md:53 and landing-operations.md:61 point at the lane. This PR is that half. The lane itself is PR #38705 (card #38694), not touched here.

The door (scripts/pm/label-write.mjs --land). For a pull whose title carries ! before its colon or whose Clause-②: line carries a (narrowing) arm, landDogfoodGate now asks two questions of the platform and nothing of any report:

Question Read Pass Refusal says
Does the pull edit the lane? every page of GET /pulls/{n}/files, by filename and previous_filename, the count checked against the pull's changed_files no row is .github/workflows/dogfood-optin.yml names the file and its status; "a pull may not certify itself with a lane it edits"; land the lane change on its own
Is the battery proven on this head? GET /commits/{head}/check-runs?check_name=Dogfood battery (opt-in)&filter=all, paged ANY completed run of that name by github-actions with conclusion success on the head sha add the label needs:dogfood-battery, wait for the check run to conclude success on the head, land again
  • Seat order 1: the reader asks "is there a success of this name on this head", never "what does the newest run say". Unrelated label events publish skipped runs of the same name on the same head (three runs, two skipped and one success, measured on PR ci: label-gated lane runs the three dogfood shards on a breaking PR's head #38705's head 9e8e9b20). A success on an older sha is not read at all: only the head's check runs are requested.
  • Seat order 2: the file-list question is asked first, so a pull that edits the lane is refused before its own run is even looked at. It applies to MARKED pulls only. An unmarked pull that edits the lane is not judged (zero gate reads), which is the "lands on its own" pull; otherwise the lane could never be changed through this door.
  • Seat order 3: scripts/pm/ensure-pm-labels.sh creates needs:dogfood-battery (colour 006b75, the description as ordered), beside its two siblings.
  • Fail closed, as before: an unreadable marker, a pull with no full head sha or no changed_files, a file list not read whole, a truncated check-run listing and every non-success conclusion are exit 2 with zero writes; a read the platform did not answer is exit 3. An unmarked pull and a pull in a repository with no battery are not judged, with zero extra reads.
  • Deleted with the typed field: the report readers (reportedDogfoodBattery, reportedPayloadString, reportNamesPull, readBatterySha), the sibling-pull rule, the fold tie over several cards and the first-parent walk over merges of the base (LAND_COMMENT_PAGE_CAP, LAND_MERGE_HOP_CAP). The lane proves a head, so a push (a merge of main included) owes a new run; with the label on, the push starts it.

New module: scripts/pm/land-dogfood-lane.mjs (157 lines). label-write.mjs is over 1,000 lines, so the new concern (the lane's contract and its two reads) is a sibling module and the door only calls it: the three literals (needs:dogfood-battery, Dogfood battery (opt-in), .github/workflows/dogfood-optin.yml), two pure verdicts and readDogfoodLane. label-write.mjs goes from 4,535 to 4,340 lines.

The L1 face (scripts/pm/l1-face.mjs). The dogfood item used to flag every marked PR "owed, not judged". It now judges a marked PR with the door's own two verdicts, from readings it already makes (the head's check runs, the file list): ok on a lane success at the head, flag on none (naming the label), flag on a PR that edits the lane, not measured while the lane run is in progress.

Rule text.

  • .claude/agents/os-dev.md 216–218: a dev no longer runs the full dogfood locally; the owning seat labels a marked PR, CI runs the three shards on its head, the door reads the check, and a marked PR does not edit the lane's workflow.
  • The report template's dogfood_battery field is REMOVED, not turned into a pointer: a field an agent types is the thing the ruling retires, and no reader is left (label-write.mjs, l1-face.mjs and the checklist all read the check run).
  • l1-review-checklist.md:53 and landing-operations.md:61 name the lane's check and label.

Rule-change: yes, by my own reading of the whole diff. Every .claude/** hunk is one the ruling names, but two choices in them are mine or the seat's and are not the maintainer's words: the report field is removed (the ruling says the template "points at the lane"), and os-dev.md says the owning seat hangs the label and a dev does not (the lane's own header says so; the ruling does not say who). The seat may read it as ruled; I did not.

Byte arithmetic (the three governed files; wc -c, ceilings from scripts/pm/check-skill-line-ratchet.mjs)

File Before After Delta Ceiling
.claude/agents/os-dev.md 33,475 33,407 −68 33,491
.claude/skills/pm-dispatch/references/l1-review-checklist.md 6,871 6,870 −1 6,875
.claude/skills/pm-dispatch/references/landing-operations.md 10,705 10,699 −6 10,705

No ceiling row is moved: the ratchet file is outside this card's file surface, so the three rows keep their values and each file sits at or under its own.

Tests

Every reading below is at head 4d864db1.

label-write.mjs --self-test: 401 cases across 19 batteries, exit 0; the gate's battery re-pinned 70 to 64

The --land dogfood battery was rewritten with the gate. Its floor moves 70 to 64, with the reason beside the pin: the report, sibling-pull, tie and commit-walk cases left with the code they drove. Cases whose verdict flipped carry the flip in their name:

  • "FLIPPED by ruling D (was PASSES: a ! title whose newest report ran on the head)": the same head-pinned typed report with no lane check now REFUSES.
  • "FLIPPED by ruling D (was REFUSED: a ! title whose newest report says n/a)": the same n/a report over a lane success on the head now PASSES.
  • "FLIPPED by ruling D (was: from the pull and the card thread alone)": the gate reads the pull, its file list and the head's check runs; no card thread, no commit.
  • "FLIPPED by ruling D (was FAIL CLOSED: NO CARD …)": a marked pull naming no card lands on the lane's success.
  • "FLIPPED by ruling D (was: a fold's tie read on every tied card)": a fold is judged on its one head.
  • "FLIPPED by ruling D (was PASSES: … one merge of main below the head)": a success one merge below the head now REFUSES.
  • "FLIPPED by ruling D (was: the report template carries the typed key the door reads)": os-dev.md carries the typed key nowhere, and no local dogfood command.

Added, by seat order:

  • Order 1: the pure verdict over skipped, skipped, success in every position; "PASSES: skipped, skipped, then success on ONE sha"; "REFUSED: a success only on an OLDER sha"; "REFUSED: only skipped runs on the head"; a failed, a cancelled, an in-progress run and a failure beside a skip each refuse; a failed attempt beside a success passes; a success on another sha, under a shard's name, under the required gate's name or by another app is not counted; a success on the second page of the listing passes, a truncated listing refuses.
  • Order 2: "REFUSED: a marked pull whose file list changes the lane's workflow, EVEN WITH a success on its head"; refused before the check runs are read; renamed away, added and removed are changes too; the workflow on the second page of a long file list is still seen; another workflow is not self-certifying; "NOT JUDGED: an UNMARKED pull that edits the lane".
  • Order 3: the label a refusal names is one ensure-pm-labels.sh creates.
  • Fail closed: fourteen boards, each carrying a success on its head, each refusing for its own reason (exit 2 judged, exit 3 for a read the platform did not answer).
  • Kept: the title marker, the markers, the battery repositories, the cloud not-judged cases, the long-title quote cap, the gate before judgeBody.

The fake board gained GET /pulls/{n}/files and GET /commits/{sha}/check-runs (paged, filtered by check_name) and lost GET /compare, which nothing reads now.

l1-face.mjs --self-test: 57 cases across 7 batteries, exit 0; the gate-evidence battery pinned 7 to 13
  • Flipped, named: "FLIPPED by ruling D (was: ! before the title's colon owes the dogfood battery — flagged, not judged)".
  • Added: a marked PR with the lane's success beside two skipped runs reads ok; only skipped runs, or a failure, flag with their tally; a run in progress is not measured; a success under a shard's name flags; a marked PR that edits the lane flags even with a success; an unmarked PR is not owed whatever it edits.
  • Extended: "unreadable check-runs leave both check items not measured, and a marked PR's dogfood item with them".
  • The two rule-text phrases the face is built from were updated with the checklist line they pin.
Ablation: three mutations of land-dogfood-lane.mjs, each landed on disk, each red, each restored byte-identical

Through scripts/ablation-replace.mjs (anchor hit once, blob f3a15b5127fa before and after each restore), running node scripts/pm/label-write.mjs --self-test:

  1. "any success" replaced by "the first row only" (newest-only): exit 1, 4 cases red, among them the skipped-then-success pair and the second-page success.
  2. The self-certification refusal disabled: exit 1, 4 cases red (the refusal, its order before the check-run read, the three statuses, the second page of files).
  3. The head-sha match removed from the check verdict: exit 1, 1 case red (a success on another sha is not the head's).
Derived gates: 74 derived, 72 run with exit 0, 2 read as NOT-MEASURED from a first exit 3 that passed on re-run

node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran FILE printed: ✓ dispatch-gates --ran: 74 derived famil(ies) accounted for — 72 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3).

The two are pnpm --filter @objectstack/lint run check:doc-formula-expressions and pnpm check:i18n-coverage. Each first exited 3, stating its own unmet prerequisite (a workspace package not built in this worktree; this diff touches no package). After the builds the gates named, each re-ran exit 0 on the same head. The record keeps every line, and the tool reads a command recorded with two codes as the first one; I did not edit the record. Among the 72: check:pm-label-write, check:pm-dispatch-gates (423 s), check:pm-skill-ratchet, check:pm-skill-id-lint, check:pm-label-desc-cap, check:pm-governed-prose, check:pm-governed-merges, check:doc-authoring, check:nul-bytes, check:required-contexts, check:pm-expected-skips.

Also on this head: eslint --no-inline-config over the three scripts, exit 0; node scripts/check-platform-checklist.mjs --changed-from origin/main, "0 anchored files in the change set — nothing judged" (two exported constants are deleted, neither is a checklist anchor); node scripts/pm/overlap-check.mjs --branch=HEAD, "VERDICT clean exit 0" against origin/main and PR #38684.

Seat rulings 2026-11-30T08:17Z

Seat repo:objectstack#3 on the dev's four open questions (report 7272639732), each as the dev recommended:

  1. Rule-change: yes, not ruled. Removing the dogfood_battery field and having the owning seat put the label on are the seat's reading of ruling D, not the maintainer's words.
  2. Only a Dogfood battery (opt-in) check run from app github-actions counts.
  3. The door refuses an edit of .github/workflows/dogfood-optin.yml only on a marked pull (! or (narrowing)), since the door judges only those.
  4. Head SHA only: after a merge of main, the lane runs again on the new head.

Out of scope, carried by the seat: the AGENTS.md §10 sentence → #38735 (lands after this PR; replacement proposed in the report), and a pin of this module's three literals to the workflow, joined to the ci.yml vs dogfood-optin.yml drift card.

Acceptance notes

Verification

Files to read first, by risk:

  1. scripts/pm/land-dogfood-lane.mjs, dogfoodLaneCheckVerdict and readDogfoodLane: the only place a pass is decided (which rows count, and when the listing stops).
  2. scripts/pm/label-write.mjs, landDogfoodGate and landDogfoodRefusal (about line 1,770): what is still read before the lane, and the unread-versus-refused split.
  3. .claude/agents/os-dev.md 216–218 and the report template: the rule a dev follows from now on.

Two-minute check: node scripts/pm/label-write.mjs --self-test, expecting 401 cases pass across 19 batteries; the cases named "Seat order" above are in the battery that opens with "the --land dogfood gate".

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmRJUY9Ncce14hVHd25

…n the head

Maintainer ruling 7269391948 (letter D): a labelled breaking pull has the
dogfood battery run by a CI runner, and `label-write.mjs --land` reads that
result instead of the typed report field.

- `land-dogfood-lane.mjs` (new): the two questions the door asks, a success
  check run named `Dogfood battery (opt-in)` on the head sha (any such run,
  never the newest of that name) and whether the pull's own file list changes
  the lane's workflow (a pull may not certify itself).
- `label-write.mjs`: `landDogfoodGate` calls it; the report, sibling-pull, tie
  and commit-walk readers are deleted with their cases, each flip named in
  the self-test.
- `l1-face.mjs`: a marked PR is judged on the lane, with the door's verdicts.
- `ensure-pm-labels.sh`: `needs:dogfood-battery`.
- `os-dev.md`, `l1-review-checklist.md`, `landing-operations.md` point at the
  lane; the report template's typed field is removed.

Claude-Session: https://claude.ai/code/session_01ADHkmRJUY9Ncce14hVHd25
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 30, 2026
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation labels Nov 30, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmRJUY9Ncce14hVHd25

Final green head for review: 4d864db15c5ef031f9d383466a48a1a5637ae60b (read 2026-11-30T08:34Z: 28 check-runs success, 29 skipped, 0 failed or pending; mergeable clean). Card #38688, claim 7271651815, dev report 7272639732 on the card; seat rulings on the four open questions in the body (2026-11-30T08:17Z). Tier H (.claude/** ×3 + scripts/pm/** instruments, Rule-change: yes), +434/−426 ≤ 3000. Lands after PR #38705 (in the merge queue). Owed: L1 (L1-b) and the seat's contract review of the governed rules text; the PR stays draft and lands through the owner seat.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract-review-claim: session_01ADHkmSAjFEZHRpRq3WCj6z · head 4d864db · 2026-11-30T08:36Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB
L1-b, the seat's L1 thread · 2026-11-30T08:38Z · first review

席位核对

REWORK @ 4d864db (card #38688; draft; 7 files, +434/−426; one commit)

Must-fix

  1. Fixes #38688 closes a card whose ruled work is not all here, and the remainder has no home. Ruling 7269391948 (letter D) lists the skills half as the door change and ".claude/agents/os-dev.md 216–218, its report template, l1-review-checklist.md:53, landing-operations.md:61 and AGENTS.md §10 point at the lane". The claim (7271651815) rightly kept AGENTS.md off this PR's file surface, and the body's Seat rulings say "Out of scope, carried by the seat: the AGENTS.md §10 sentence". But it is carried by nothing that survives the merge: merging this closes os-dev full-dogfood definition of done has no route once a gate past the foreground limit may not run in the background #38688, and no card is named for the sentence. Until it moves, AGENTS.md:550 ("dogfood once, on the final head") outranks the new os-dev.md line "全量 dogfood ⛔ 不在本地跑" (SKILL.md 〈优先级〉: AGENTS.md > 细则), so the rule text contradicts itself on the exact point the ruling settled. Either of two fixes, body only:
    • (a) the seat files the AGENTS.md §10 card (Tier H, the ruling's sentence as its premise) and the body's out-of-scope line names it as #N; Fixes #38688 then stands; or
    • (b) the first line becomes Part of #38688, with no verb beside the number, and the card stays open for the §10 PR (landing rule B: pm:dispatched comes off by hand).
      On the delta I re-read only the first line and that body line.

Everything else passed

  • The door. landDogfoodGate keeps the marker read (title !, the (narrowing) arm through the one Clause-②: reader, unreadable ⇒ refuse) and now reads nothing an agent typed: the pull, its file list, and the head's check runs, through readDogfoodLane. Fail closed holds on every branch I traced: no full head sha, no changed_files, a file list short of changed_files, a non-list page, the check listing past 10 pages, and every non-success conclusion refuse with exit 2; a platform non-answer is unread and exits 3; the gate runs before judgeBody, so a refusal sends nothing. { …, head: null, ...lane } lets the lane's head win.
  • Seat orders 1–4 are implemented as ruled. Any completed success of Dogfood battery (opt-in) by app github-actions on the exact head sha passes; skipped, failed, cancelled, in-progress and older-sha runs do not. The file question is asked first and refuses a marked pull that touches .github/workflows/dogfood-optin.yml by filename or previous_filename, on any page; an unmarked pull is not judged. ensure-pm-labels.sh creates needs:dogfood-battery in the family colour.
  • The three literals match the lane as it stands (PR ci: label-gated lane runs the three dogfood shards on a breaking PR's head #38705 at 9e8e9b20, still open): label needs:dogfood-battery (lines 137–138, 239–240), aggregate job name Dogfood battery (opt-in) (line 235), file .github/workflows/dogfood-optin.yml. The unpinned seam is recorded in Acceptance notes and fails loud (every marked pull refuses), not open.
  • New module, not a fatter file. label-write.mjs is over 2,000 lines but shrinks 4,535 → 4,340; the lane's contract lives in the new 157-line land-dogfood-lane.mjs, which is what the module rule asks.
  • Rule text, line by line. os-dev.md 216–218: no local full dogfood; the seat hangs the label; the door reads the head's success, not a report; a marked PR does not edit the lane. The report template loses dogfood_battery, and no reader is left (grepped: label-write.mjs, l1-face.mjs and the checklist read the check run). l1-review-checklist.md:53 and landing-operations.md:61 name the check and the label. Byte counts are under each ceiling, no ratchet row moves. Rule-change: yes is the honest reading (the field removal and who hangs the label are the seat's, not the maintainer's words).
  • My runs (fresh worktree at head): label-write.mjs --self-test 401/401; l1-face.mjs --self-test 57/57. Two ablations of my own on land-dogfood-lane.mjs, each red, each restored: dropping the app.slug filter turns the "by another app is not counted" case red (1 of 401); stopping the file list after page 1 turns the "SECOND page of a long file list" case red (1 of 401). These are on top of the dev's three.

Notes for L2 (not must-fix)

  • The self-certification refusal covers the workflow file only. The lane also runs code the pull controls: ./.github/actions/setup-workspace, scripts/run-with-stall-guard.mjs, scripts/vitest-worker-cap.mjs, scripts/check-test-completeness.mjs, and the dogfood package's own vitest config. The same holds for the required queue gate, so this is not new; it is what seat ruling 3 bounds.
  • l1-face judges from filter=latest and the door from filter=all, so a success later superseded by a red re-run reads flag on the face and passes the door. It is documented in the face's header; the door's "any success on the head" is the ruled reading.

Checks at this head (read before writing, latest per name): 28 success, 29 skipped, 0 failure, 0 in progress; Lint & Repo Gates and TypeScript Type Check both success.
L2: owed at CONTRACT_REVIEW_TIER (face rules); check-owed-reviews shows a live claim. Tier: H (governed .claude/**, Rule-change: yes). Landing order: after PR #38705, as the body says. Dogfood: not owed (this PR is neither breaking nor narrowing).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB
L1-b, the seat's L1 thread · 2026-11-30T08:41Z · delta review (body only)

席位核对

ACCEPT @ 4d864db (delta from REWORK 7273162169; same head, the PR body only)

Checks at this head (read before writing): 28 success, 0 failure, Lint & Repo Gates and TypeScript Type Check success; one PR-body guards run in progress, started by the body edit. Landing waits for it green.
L2: owed at CONTRACT_REVIEW_TIER (face rules), with the seat. Tier: H. Landing order: after PR #38705.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 4d864db15c5ef031f9d383466a48a1a5637ae60b
Local-runs: none
Scope: .claude/agents/os-dev.md, .claude/skills/pm-dispatch/references/l1-review-checklist.md, .claude/skills/pm-dispatch/references/landing-operations.md + scripts/pm/land-dogfood-lane.mjs, scripts/pm/label-write.mjs, scripts/pm/l1-face.mjs, scripts/pm/ensure-pm-labels.sh
Security-touching: yes
Rule-change-verified: yes

Read for this record: card #38688 (body and all six comments, ruling 7269391948 and report 7272639732 among them), PR #38727 (body, file list, the net diff against main at merge-base d2caaec4), the check-runs on the head, and the lane as PR #38705 defines it on 9e8e9b20 (.github/workflows/dogfood-optin.yml and that head's four check runs of the lane's name). Nothing was built or run.

① Derived judgments

  • Accept-set of --land for an UNMARKED pull (no ! before the title's colon, no (narrowing) arm): unchanged, right. landDogfoodMarkers and repoCarriesDogfoodBattery are context lines, not edited; an unmarked pull still returns { judged: false } before any read, and a pull outside LAND_DOGFOOD_BATTERY_REPOS still returns noBattery with zero reads. The narrowing of the door for non-breaking pulls is zero, lane-editing pulls included.
  • Accept-set for a MARKED pull: replaced, right, and it is the ruling's own replacement ("the landing door reads that lane's conclusion on the head and stops reading the typed dogfood_battery field"). Was: newest trusted report naming a sha the head reaches over merges of the base. Is: a completed success check run named Dogfood battery (opt-in), app github-actions, head_sha equal to the pull's current head, and a file list that leaves .github/workflows/dogfood-optin.yml alone. Two sub-changes narrow further than the ruling's words and both fail closed: a success one merge of main below the head no longer counts (seat ruling 4), and a marked pull that edits the lane is refused (seat ruling 3).
  • Break attempts, each read in land-dogfood-lane.mjs at the head:
    • a marked pull with no success on its head: refused (verdict.success === null), whether the head carries no run, only skipped, a failure, a cancelled run or one in progress; a truncated listing refuses too.
    • a success from another head or an older head: not reachable. Only /commits/{head}/check-runs is requested, and dogfoodLaneCheckVerdict filters on head_sha again.
    • a same-named check run from another app: dropped by app.slug === 'github-actions'. A third-party commit status is never read (the statuses API is not asked).
    • a shard's name or Dogfood Regression Gate: exact-name match, not counted.
    • a marked pull editing the lane: refused before the check runs are asked, by filename and previous_filename, with the listing checked against changed_files.
    • the live shape agrees: on 9e8e9b20 the platform lists four runs of the name (three skipped, one success), all github-actions, all on the head sha, so "any success, never the newest" is the reading that head needs.
  • Public surface: none published. Deleted exports of label-write.mjs (reportedDogfoodBattery, reportedPayloadString, reportNamesPull, readBatterySha, LAND_DOGFOOD_REPORT_KEY, LAND_COMMENT_PAGE_CAP, LAND_MERGE_HOP_CAP) have no reader left at the head: git grep dogfood_battery over .claude, scripts, AGENTS.md and docs finds only the door's own header sentence and one self-test fixture. Right.
  • The os-dev report shape loses one key. No validator in scripts/ reads or requires it, so a report that still carries it (every report written before this lands) is neither read nor refused. Right.
  • Gate verdicts are the head's check-runs: every completed run is success or skipped, none failed; Lint & Repo Gates, TypeScript Type Check, Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Governed Surface Queue Guard and Check Changeset are success.

② Semver level

skip-changeset is right: the diff touches .claude/** and scripts/pm/** only, no published package, no spec. Check Changeset concluded success on the head.

Clause-②: no. Confirmed against the diff: no published accept-set, schema or runtime contract moves.

③ Boundary flags

  • Open question 1 (Rule-change: yes or ruled): yes is verified. The .claude/** hunks change what gets done and in what order (a dev no longer runs the full battery; the seat labels; the door reads a check). The PR body carries no Ruling-ref: line, and two hunks are not the ruling's words: the report field is removed where the ruling says the template "points at the lane", and "席位给 PR 挂 … dev 不自挂该标签" assigns the label to the seat, which is the lane header's sentence, not the maintainer's. ruled is not available. The pull request waits for the maintainer.
  • Open question 2 (app filter): accepted. It narrows only what passes, and the live runs on 9e8e9b20 all carry github-actions.
  • Open question 3 (self-certification on marked pulls only): accepted. An unmarked pull is not judged by this door at all, and any pull touching .github/workflows/** is Tier H in the governed register regardless, so the lane-change pull still goes to the maintainer.
  • Open question 4 (head only): accepted. It is the ruling's "on the head"; the cost is one more lane run after a merge of main, started by the push while the label is on.
  • Security-touching yes: the hunks teach who may put on the label that unlocks landing (the seat, not the dev), that a pull may not certify itself, and that only one app's check run is trusted. No hit path is under skills/** or ui/skills/**, so no security label is owed by this record.
  • Threads that ran the battery locally and reported dogfood_battery (metadata-protocol: beside one enabled holder of a doc, the bare /meta doc doors serve the holder's doc while the registry and MetadataFacade.get serve the environment's stamp-less entry #34452's PR2 named in the brief): once this lands, their typed report is not read. --land refuses once with exit 2 and zero writes, and the refusal names the label and the check; the seat adds needs:dogfood-battery and lands again after the run. The local run is wasted, nothing is lost and nothing lands unproven.
  • Landing order: this door needs .github/workflows/dogfood-optin.yml on main. main at 80ddfb50 does not carry it yet (PR ci: label-gated lane runs the three dogfood shards on a breaking PR's head #38705 is open at 9e8e9b20). Landed first, every breaking pull in objectstack is refused; that direction is fail-closed, and the PR body states it. PR docs(os-dev): a run past the foreground limit is declared NOT MEASURED, not sent to the background #38684 is already on main, so until both land no breaking pull has a route either way.
  • AGENTS.md §10 ("dogfood once, on the final head"): not made false in a new way by this diff; the lane also runs once on the final head. The reword is the seat's.
  • os-dev.md line 90 at this head still names the full dogfood among background gates; main rewrote that line (PR docs(os-dev): a run past the foreground limit is declared NOT MEASURED, not sent to the background #38684) and this diff does not touch it, so the merged file does not carry it. No conflict: main moved lines 90 and 293 only.
  • SQL push-down: not applicable, no data path in the diff.

④ Design judgment

No must-fix, no should-fix.

.claude/agents/os-dev.md (216-218 and the report template): holds. Each sentence has its code: "席位给 PR 挂 needs:dogfood-battery" is the lane's guard literal and DOGFOOD_LANE_LABEL; "落地门只读该 head 上 Dogfood battery (opt-in) 的 success,⛔ 不读报告" is readDogfoodLane (no comment, card or commit read is left in landDogfoodGate, and the self-test pins that); "每次 push 换 head 即欠新一轮" is the head-only query; "⛔ 该类 PR 不改 .github/workflows/dogfood-optin.yml" is the edits refusal. Removing the report key rather than leaving a pointer is consistent with the code: a key nothing reads would be the typed field the ruling retires.

.claude/skills/pm-dispatch/references/l1-review-checklist.md:53: holds. It names the check and the label the door names, and l1-face.mjs' RULE_FILES phrase was moved with it.

.claude/skills/pm-dispatch/references/landing-operations.md:61: holds against landDogfoodGate.

scripts/pm/land-dogfood-lane.mjs: agrees with the lane's "What the door reads" table on 9e8e9b20 literal for literal (label, check name, workflow path), and with the platform's rows (name, head_sha, app.slug, status, conclusion). The file listing is fail-closed at both ends (page cap, then the changed_files count). The early break on the first success is sound: later pages cannot take a success back.

scripts/pm/label-write.mjs: the gate sits before judgeBody, exit 3 for an unanswered read and exit 2 for a judged refusal are kept, and the ✓ line prints the check run id and the tally.

scripts/pm/l1-face.mjs: reads the marker with the door's own landDogfoodMarkers and judges with the door's own two verdicts, in the door's order (files first). Its rows come raw from pr-state.mjs' check-runs read, so head_sha and app.slug are present; filter=latest on 9e8e9b20 still lists the success beside the three skipped runs (separate check suites), so the face reads ok where the door passes. The one divergence (a success superseded by a red re-run of the same workflow run) flags on the face and passes the door; the header says so, and the face is a reader, not a gate.

scripts/pm/ensure-pm-labels.sh: the label, colour and description are the family's; the comment's two claims (merge preview, head sha) match the lane.

Nits:

  • N1 (nit) — nothing pins the three literals in land-dogfood-lane.mjs to .github/workflows/dogfood-optin.yml. A rename there refuses every breaking pull, loudly. The seat already owes this pin as a card; left as that follow-up.
  • N2 (nit) — the self-certification guard names one file, while the module's own reason ("a pull that edits the lane publishes whatever that edit says under the lane's name") holds for more: a marked pull that ADDS another workflow with a job named Dogfood battery (opt-in), or a second pull request of the same head against a base branch whose copy of the lane is edited, also puts a github-actions success of that name on the head, and the lane executes the pull's own scripts/check-shard-attestation.mjs and .github/actions/setup-workspace. None is reachable by accident; any .github/workflows/** change is Tier H, and the merge queue still runs the three shards on every entry, so the door is a pre-flight and not the last proof. Follow-up card if the maintainer wants the door to bind the run to the pull (the check run's pull_requests and base ref) or to refuse any marked pull touching .github/workflows/**.
  • N3 (nit) — l1-face.mjs does not apply the door's repoCarriesDogfoodBattery limb: on a marked pull in a repository with no lane it now prints "add needs:dogfood-battery and wait for the run", where the door does not judge at all. It flagged such pulls before too; only the advice is new. Reader only.
  • N4 (nit) — l1-review-checklist.md:53 says what to do when the success is absent (hang the label) and no longer says what a RED lane run means for the verdict; the old line ended "缺或收窄 ⇒ REWORK". The door refuses either way.
  • N5 (nit) — the door judges the head once, at --land. A push after auto-merge is armed is not judged again, although os-dev.md now says each push owes a new run. This was so before this diff (the typed report was read once too), and the queue's own shards cover it.

Implemented-by: claude/issue-38688-door-reads-dogfood-lane
Reviewed-by: session_01ADHkmSAjFEZHRpRq3WCj6z

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

维护者速读

Seat opinion: land as is, after #38705. The four seat rulings (08:17Z) are on the PR body; contract review PASS has no must-fix or should-fix.

席位核对

ACCEPT at head 4d864db15c5ef031f9d383466a48a1a5637ae60b · Tier H (.claude/**, Rule-change: yes) · Fixes #38688

  1. Shape: 7 files: the door's new module scripts/pm/land-dogfood-lane.mjs, label-write.mjs (the typed dogfood_battery read removed), l1-face.mjs, ensure-pm-labels.sh (the label), and three rule files (os-dev.md, the L1 checklist, landing-operations.md).
  2. Premise measured: ruling D on os-dev full-dogfood definition of done has no route once a gate past the foreground limit may not run in the background #38688 (7269391948); the lane on PR ci: label-gated lane runs the three dogfood shards on a breaking PR's head #38705's head lists four runs of the check name, one success, all github-actions, all on the head sha.
  3. Gates: check-runs on this head success or expected skip, 0 failed; skip-changeset (nothing published).
  4. Accepted deviations: none. Rule-change yes, not ruled: removing the report field and the seat putting the label on are the seat's readings of ruling D, not its words.
  5. Out of scope and where it went: AGENTS.md item 10 → AGENTS.md Multi-agent discipline item 10 still says "dogfood once, on the final head" as a local run; since #38688 the breaking-PR battery runs on the opt-in CI lane #38735 (seat carries, Tier H, lands after this PR); the literal pin to the workflow → the seat's owed drift-pin card; review nits N2 to N5 noted on the record, no card yet.
  6. Landing: L1 ACCEPT 7273229162 and L2 contract review PASS 7273231704 on this head. Lands after PR ci: label-gated lane runs the three dogfood shards on a breaking PR's head #38705 and os-zhuang's approval.

ACCEPT → PR #38727 comment 7273229162 · Contract review → comment 7273231704

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 30, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 30, 2026 08:55
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 991520c Nov 30, 2026
67 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-38688-door-reads-dogfood-lane branch November 30, 2026 09:15
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l 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.

os-dev full-dogfood definition of done has no route once a gate past the foreground limit may not run in the background

3 participants