Repository navigation
fix(pm): the landing door reads the opt-in dogfood lane's check run on a breaking PR's head - #38727
Conversation
…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>
|
repo:objectstack#3 · os-steve · session_01ADHkmRJUY9Ncce14hVHd25 Final green head for review: |
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract-review-claim: session_01ADHkmSAjFEZHRpRq3WCj6z · head 4d864db · 2026-11-30T08:36Z |
|
repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB 席位核对REWORK @ 4d864db (card #38688; draft; 7 files, +434/−426; one commit) Must-fix
Everything else passed
Notes for L2 (not must-fix)
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 |
|
repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB 席位核对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 |
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract reviewServed-tier: 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 ① Derived judgments
② Semver level
Clause-②: no. Confirmed against the diff: no published accept-set, schema or runtime contract moves. ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Nits:
Implemented-by: VERDICT: PASS |
|
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
ACCEPT → PR #38727 comment 7273229162 · Contract review → comment 7273231704 |
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_batteryfield", andos-dev.md216–218, its report template,l1-review-checklist.md:53andlanding-operations.md:61point 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 whoseClause-②:line carries a(narrowing)arm,landDogfoodGatenow asks two questions of the platform and nothing of any report:GET /pulls/{n}/files, byfilenameandprevious_filename, the count checked against the pull'schanged_files.github/workflows/dogfood-optin.ymlGET /commits/{head}/check-runs?check_name=Dogfood battery (opt-in)&filter=all, pagedgithub-actionswith conclusionsuccesson the head shaneeds:dogfood-battery, wait for the check run to concludesuccesson the head, land againskippedruns 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 head9e8e9b20). A success on an older sha is not read at all: only the head's check runs are requested.scripts/pm/ensure-pm-labels.shcreatesneeds:dogfood-battery(colour006b75, the description as ordered), beside its two siblings.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.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 ofmainincluded) owes a new run; with the label on, the push starts it.New module:
scripts/pm/land-dogfood-lane.mjs(157 lines).label-write.mjsis 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 andreadDogfoodLane.label-write.mjsgoes from 4,535 to 4,340 lines.The L1 face (
scripts/pm/l1-face.mjs). Thedogfooditem 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):okon a lane success at the head,flagon none (naming the label),flagon a PR that edits the lane,not measuredwhile the lane run is in progress.Rule text.
.claude/agents/os-dev.md216–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.dogfood_batteryfield 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.mjsand the checklist all read the check run).l1-review-checklist.md:53andlanding-operations.md:61name 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"), andos-dev.mdsays 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 asruled; I did not.Byte arithmetic (the three governed files;
wc -c, ceilings fromscripts/pm/check-skill-line-ratchet.mjs).claude/agents/os-dev.md.claude/skills/pm-dispatch/references/l1-review-checklist.md.claude/skills/pm-dispatch/references/landing-operations.mdNo 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
--landdogfood 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:!title whose newest report ran on the head)": the same head-pinned typed report with no lane check now REFUSES.!title whose newest report saysn/a)": the samen/areport over a lane success on the head now PASSES.os-dev.mdcarries the typed key nowhere, and no local dogfood command.Added, by seat order:
skippedruns 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.ensure-pm-labels.shcreates.judgeBody.The fake board gained
GET /pulls/{n}/filesandGET /commits/{sha}/check-runs(paged, filtered bycheck_name) and lostGET /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
!before the title's colon owes the dogfood battery — flagged, not judged)".ok; only skipped runs, or a failure, flag with their tally; a run in progress isnot 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.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, blobf3a15b5127fabefore and after each restore), runningnode scripts/pm/label-write.mjs --self-test: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 FILEprinted:✓ 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-expressionsandpnpm 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-configover 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" againstorigin/mainand PR #38684.Seat rulings 2026-11-30T08:17Z
Seat
repo:objectstack#3on the dev's four open questions (report 7272639732), each as the dev recommended:Rule-change: yes, notruled. Removing thedogfood_batteryfield and having the owning seat put the label on are the seat's reading of ruling D, not the maintainer's words.Dogfood battery (opt-in)check run from appgithub-actionscounts..github/workflows/dogfood-optin.ymlonly on a marked pull (!or(narrowing)), since the door judges only those.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 theci.ymlvsdogfood-optin.ymldrift card.Acceptance notes
e586cfd3); until this PR lands, a breaking PR has no route through the door. Landed before the lane exists onmain, this door refuses every breaking PR in objectstack, because no head can carry the check.AGENTS.mdsentence "dogfood once, on the final head" (Multi-agent discipline, item 10) still describes a local run, and moves under 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;os-dev.mdline 90 is PR docs(os-dev): a run past the foreground limit is declared NOT MEASURED, not sent to the background #38684's, now merged; it no longer names the full dogfood.land-dogfood-lane.mjsare copied from the lane's header. The workflow file is not onmainyet, so no self-test here can read it; a rename of the job in the workflow would make every breaking PR refuse, loudly, until the constant follows.app.slugisgithub-actions(measured on the lane's first labelled run). The seat's order says "a check run named …"; the filter narrows what passes and never widens it.filter=latestagainstfilter=all.l1-face.mjsjudges frompr-state.mjs' check-run reading, which asksfilter=latest; the door asksfilter=all. A success that a later red re-run of the same workflow run superseded readsflagon the face and passes the door. The face's header says so.(narrowing)or!PR that must edit the lane has no route through the door by design: it splits, and the lane change lands first.dogfood_batterykey; nothing reads it, and nothing refuses it.Verification
Files to read first, by risk:
scripts/pm/land-dogfood-lane.mjs,dogfoodLaneCheckVerdictandreadDogfoodLane: the only place a pass is decided (which rows count, and when the listing stops).scripts/pm/label-write.mjs,landDogfoodGateandlandDogfoodRefusal(about line 1,770): what is still read before the lane, and the unread-versus-refused split..claude/agents/os-dev.md216–218 and the report template: the rule a dev follows from now on.Two-minute check:
node scripts/pm/label-write.mjs --self-test, expecting401 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