Skip to content

docs(agents): item 10 points a breaking PR's dogfood at the opt-in CI lane - #38739

Merged
os-zhuang merged 1 commit into
mainfrom
claude/issue-38735-agents-dogfood-lane
Nov 30, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/issue-38735-agents-dogfood-lane

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread
Fixes #38735
Clause-②: no
Metadata-protocol: none
Rule-change: ruled
Ruling-ref: comment 7269391948 on the ruling card for the dogfood lane — maintainer chose 「云端流水线代跑」 (letter D), 2026-11-30T05:08Z; the option read: a breaking change, once labelled, has the real-app regression run by a CI runner and the landing door reads that result.

维护者速读

  • 用户无感:只改了给开发代理读的仓库总规则里一句话,产品和界面都不变。
  • 为什么做:落实你选的「云端流水线代跑」,让总规则与已上线的云端回归流水线和落地检查说法一致,不再暗示在本机跑完整回归。
  • 出错会怎样:措辞有误时,开发代理可能又在本机跑完整回归而超时;这只是一段文字,可以直接撤回。
  • 要你做什么:这是受管文件,需要你审阅并批准。

What changes

AGENTS.md, Multi-agent working discipline item 10, is the only file. Its clause "dogfood once, on the final head" read as a local run, and AGENTS.md outranks .claude/agents/os-dev.md, which since the landing-door change says the full battery does not run locally. The clause now restates the ruling: a breaking PR's battery runs on a CI runner once the PR carries needs:dogfood-battery, and the landing door reads that result on the final head. A (narrowing) arm is BREAKING by Post-Task Checklist step 3, so "breaking" covers both triggers os-dev.md names (a ! title, a narrowing arm).

The new words are paid for inside the same item: one illustrative example and one rationale clause are cut, a redundant "the same … the same" is folded, and hand-wrapped lines are rejoined. No rule is dropped; the phrase "never trust git's textual merge of a generated file", which docs/agents/multi-agent-discipline.md quotes, is kept verbatim.

Before and after, every changed sentence

Lead clause, before:

After the PR is open, merge `main` only on a GitHub-reported conflict, a `main`-caused CI red or a queue removal, then only the scoped re-checks; dogfood once, on the final head

After:

After the PR is open, merge `main` only on a GitHub-reported conflict, a `main`-caused CI red or a queue removal, then only the scoped re-checks; a breaking PR's dogfood runs on a CI runner once labelled `needs:dogfood-battery`, and the landing door reads that result on its final head

"Always" bullet, before:

`pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec check:generated` — generated snapshots (`api-surface`, baselines) are the classic jointly-wrong artifact, and only a rebuild of the merged source can validate them (never trust git's textual merge of a generated file). Then assert your branch's *delta vs `main`* is still exactly what your PR intends (e.g. "N removed / 0 added").

After:

`pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec check:generated` — only a rebuild of the merged source validates a generated snapshot (`api-surface`, baselines); never trust git's textual merge of a generated file. Then assert your branch's *delta vs `main`* is still exactly what your PR intends.

"Full typecheck" bullet, before:

**Full `pnpm typecheck && pnpm test` again only when** the incoming commits touch the same packages or the same behavior your diff does, or a conflict occurred outside trivially-mechanical files.

After:

**Full `pnpm typecheck && pnpm test` again only when** the incoming commits touch the packages or behavior your diff does, or a conflict occurred outside trivially-mechanical files.

The item's first sentence ("Before opening a PR, pull main, refresh build state (§9), and run the full suite once.") is unchanged in words; only its line breaks moved.

Bytes and lines

before after delta
AGENTS.md bytes (wc -c) 78704 78697 −7
AGENTS.md lines 1058 1054 −4
item 10 bytes 1286 1279 −7

Ceiling row in scripts/pm/check-skill-line-ratchet.mjs: 78712, unchanged (headroom 8 → 15). The ratchet counts bytes only; no raise is taken. The row is not lowered here because the ratchet file is outside this card's file surface.

Tests

Docs-only: no package is touched, so no build, unit test or ablation applies. node scripts/check-nul-bytes.mjs ran green on the final head (see Verification).

Acceptance notes

  • The Two-speeds sentence ("PR runs carry the fast set, queue runs add the dogfood shards") is left as it is. It describes the speeds of the CI battery that every PR gets; the opt-in lane is a separate, labelled workflow, and item 10 names it a few lines below. The temporal-leg mention in that sentence belongs to another card and is untouched.
  • docs/agents/multi-agent-discipline.md (the "Where joint breakage surfaces" section that item 10 links) carries no dogfood wording, so it does not contradict the new clause.
  • Item 10 still says "run the full suite once" before opening a PR, while .claude/agents/os-dev.md scopes a dispatched dev's local runs to targeted gates and leaves the full farm to CI. That tension predates ruling D and is outside this card; it is recorded in the report, not changed here.

Verification

Two-minute check: git grep -n "dogfood once" AGENTS.md prints nothing, and git grep -n "needs:dogfood-battery" AGENTS.md prints the item 10 line.

Read first: AGENTS.md item 10 (the only hunk; risk is the wording of the lead clause, which must agree with .claude/agents/os-dev.md lines 216–218).

Derived gates at 5909d7d — 16 derived, 16 run, 0 NOT-MEASURED

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 16 commands from the one changed path; each ran in the foreground, exit captured before any pipe:

node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:docs-audit-scope :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-governed-prose :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:pm-skill-ratchet :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:required-contexts :: exit 0
pnpm check:watch-hint-literal :: exit 0

--ran: "✓ dispatch-gates --ran: 16 derived famil(ies) accounted for — 16 run, 0 NOT-MEASURED". Ratchet line: "✓ check-skill-line-ratchet: AGENTS.md is 78697 bytes (ceiling 78712; headroom 15)." overlap-check.mjs --branch=HEAD: "VERDICT clean exit 0" against origin/main cb8d853. Every other family is CI's and is read from this PR's check runs.


Generated by Claude Code

… lane

Multi-agent discipline item 10 read "dogfood once, on the final head", a
local run. Ruling D (comment 7269391948) moved a breaking PR's real-app
regression onto a CI runner once the PR is labelled, with the landing door
reading that result; the lane and the door are on main. The clause now says
so. Paid for inside the same item: the jointly-wrong rationale and the
"N removed / 0 added" example are cut, and the wrapped lines rejoined;
AGENTS.md 78704 -> 78697 bytes.

Claude-Session: https://claude.ai/code/session_01ADHkmRJUY9Ncce14hVHd25
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract-review-claim: session_01ADHkmSAjFEZHRpRq3WCj6z · head 5909d7d · 2026-11-30T09:40Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmRJUY9Ncce14hVHd25

Final green head for review: 5909d7d75752eae9667cdaf98f6258b962da8c4e (read 2026-11-30T09:46Z: 23 check-runs success, 29 skipped, 0 failed or pending; mergeable clean). Card #38735, claim 7274087473, dev report 7274465812 on the card. Tier H (AGENTS.md), Rule-change: ruled (Ruling-ref 7269391948, kept on the seat's word), +11/−15, 78704 → 78697 bytes. Out of scope filed by the seat: #38740 (item 10's "run the full suite once"). Owed: L1 (L1-b) and the seat's contract review; 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

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 5909d7d75752eae9667cdaf98f6258b962da8c4e
Local-runs: none
Scope: AGENTS.md + none
Security-touching: no
Rule-change-verified: ruled

Face: rules (AGENTS.md, governed, Tier H). PR #38739, card #38735, ruling 7269391948 (letter D on #38688). Net diff against main: one file, AGENTS.md +11/−15, one hunk, Multi-agent working discipline item 10. Merge base cb8d8539; main has since moved to 95ffacc2 with no commit touching AGENTS.md, .claude/agents/os-dev.md or scripts/pm/check-skill-line-ratchet.mjs, so the merged file is the head's file.

① Derived judgments

  • Accept-set and public surface: none. No package, schema, generated artifact, script or workflow is in the diff. Right.
  • Rule surface, the one sentence that carries a rule: "dogfood once, on the final head" becomes "a breaking PR's dogfood runs on a CI runner once labelled needs:dogfood-battery, and the landing door reads that result on its final head". Right: it is the ruling's sentence ("a breaking change, once labelled, has the real-app regression run by a CI runner and the landing door reads that result") with the lane's label literal and the head read added, and both additions are what main implements (④).
  • "breaking" covers both triggers the door reads. AGENTS.md:1026-1027 at this head: "(narrowing) is BREAKING". label-write.mjs landDogfoodMarkers reads the title's ! and a (narrowing) arm; os-dev.md:216 names the same two. Right.
  • Scope of the old clause. It was unqualified ("dogfood once"); the new one says "a breaking PR's". This narrows nothing that was in force: os-dev.md:216 before fix(pm): the landing door reads the opt-in dogfood lane's check run on a breaking PR's head #38727 (991520c3^) already read "仅当标题带 ! 或 Clause-②: 带 (narrowing) 臂", and the ruling's own subject is the breaking change. Right.
  • Byte budget: AGENTS.md is 78704 bytes on main and 78697 at the head (read from both blobs), ceiling row 78712 in scripts/pm/check-skill-line-ratchet.mjs:146, headroom 15, no raise taken, the row untouched. The gate is pnpm check:pm-skill-ratchet (lint.yml:1081, job Lint · repo & tooling gates): success on this head. The widest-line pin (768) is not approached: the hunk's longest line is 119 bytes. Right.
  • Check-runs on the head, read 2026-11-30 after every run completed: 23 success, the rest skipped, none failed, none pending. Governed Surface Queue Guard, PR-body guards, Check Changeset, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates are all success. Dogfood battery (opt-in) is skipped twice, as it must be on an unlabelled, non-breaking PR.

② Semver level

Clause-②: no — agrees with the diff: nothing published changes. The PR carries skip-changeset and no changeset; Check Changeset is success on the head. Metadata-protocol: none agrees. Right.

③ Boundary flags

  • Open question 1 of report 7274465812 (ruled or yes): answered, option A, ruled. Verified hunk by hunk:
    • Lead clause: the only rule-bearing change. It copies the ruling (see ①). ruled.
    • "Always" bullet: deleted "generated snapshots … are the classic jointly-wrong artifact" (a reason) and "(e.g. "N removed / 0 added")" (an example); "can validate them" became "validates a generated snapshot". The three obligations stay word for word in force: rebuild what the merge touched; pnpm --filter @objectstack/spec build && … check:generated when packages/spec moved on either side; assert the branch's delta against main is what the PR intends. "never trust git's textual merge of a generated file" is kept verbatim, as docs/agents/multi-agent-discipline.md:228 quotes it. No rule moved.
    • "Full typecheck" bullet: "the same packages or the same behavior your diff does" became "the packages or behavior your diff does". Same condition. No rule moved.
    • First sentence ("Before opening a PR … run the full suite once."): words unchanged, line breaks only.
      No repository file pins any deleted phrase (git grep at the head for each deleted phrase: no hit).
  • Deviation "a Rule-change: line although no .claude/** path is touched": accepted. The line is true as written and costs nothing; the PR is Tier H by path either way.
  • Deviation "base cb8d8539, not 991520c3": accepted, see the header.
  • Deviation "ceiling row not lowered": accepted. The ratchet file is outside the claim's file surface; the row is a ceiling, and 15 bytes of headroom is not a defect.
  • Out-of-scope finding "run the full suite once" against os-dev.md: filed as AGENTS.md item 10 says "run the full suite once" before a PR opens, while .claude/agents/os-dev.md says local runs are targeted gates only and the full farm belongs to CI #38740, not judged here. The drift pin: dogfood lane drift: nothing pins dogfood-optin.yml to ci.yml's dogfood job, or land-dogfood-lane.mjs's label, check and workflow literals to the workflow file #38737, not judged here.
  • Two-speeds sentence (AGENTS.md:516) left unchanged: agreed. It describes what PR runs and queue runs carry by default; the opt-in lane is a labelled workflow outside both, and dogfood-optin.yml's header says the same of ci.yml's dogfood job.
  • SQL push-down: not applicable, no code in the diff.

④ Design judgment

AGENTS.md item 10, read against the merged implementations on main:

  • "runs on a CI runner once labelled needs:dogfood-battery": .github/workflows/dogfood-optin.yml runs on pull_request with labeled among its types, and every job is guarded by contains(labels, 'needs:dogfood-battery'). The label literal equals DOGFOOD_LANE_LABEL in scripts/pm/land-dogfood-lane.mjs. Agrees.
  • "the landing door reads that result on its final head": readDogfoodLane lists check runs on pull.head.sha and accepts only a completed success named Dogfood battery (opt-in) by github-actions on that sha; a success on an older head is a refusal. label-write.mjs --land calls it for a ! or (narrowing) pull (landDogfoodGate). os-dev.md:217: "落地门只读该 head 上 Dogfood battery (opt-in) 的 success". Agrees.
  • Nothing in the sentence says or implies a local run, which was the card's defect. git grep "dogfood once" at the head: no hit. The card's re-check holds.
  • Attempts to break it:
    • A PR labelled before its last push: the lane runs again on synchronize and the door reads the new head, so "on its final head" stays true.
    • Clause-②: no (narrowing): covered by AGENTS.md:1026-1027.
    • A reader taking "once" as "one time": the next words are "labelled", and a per-push re-run is what the workflow does; no agent action depends on the reading.
  • N1 (nit) — the passive "once labelled" does not say who labels. os-dev.md:216-217 and the workflow header say the owning seat hangs the label by hand and the dev does not. AGENTS.md is silent here, not contradictory, so the more specific text governs and no agent is told to do otherwise. Naming the actor costs about 16 bytes against 15 of headroom. Left as an accepted deviation.
  • N2 (nit) — the card's proposed wording said "a breaking or narrowing PR"; the PR says "a breaking PR" and relies on AGENTS.md:1026-1027 for the narrowing arm. Correct by the file's own definition, and cheaper. Accepted.

No must-fix, no should-fix.

Implemented-by: claude/issue-38735-agents-dogfood-lane
Reviewed-by: session_01ADHkmSAjFEZHRpRq3WCj6z

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对

ACCEPT @ 5909d7d (card #38735; draft; AGENTS.md only, +11/−15)

  • Shape. Draft on main, first line Fixes #38735, and merging delivers the whole card: the card asks for item 10's clause to say where the battery runs, paid for inside the file, and nothing else. No closing keyword binds another card. Clause-②: no, Metadata-protocol: none and skip-changeset are right for a root instruction file that ships in no package.
  • The new clause matches the rule text it must agree with. On main, PR ci: label-gated lane runs the three dogfood shards on a breaking PR's head #38705 (the lane) and PR fix(pm): the landing door reads the opt-in dogfood lane's check run on a breaking PR's head #38727 (the door) are both merged, and .claude/agents/os-dev.md:216-218 reads: no local full dogfood; a ! title or a (narrowing) arm gets needs:dogfood-battery from the seat; the door reads the head's Dogfood battery (opt-in) success, and every push owes a new run. The new words, "a breaking PR's dogfood runs on a CI runner once labelled needs:dogfood-battery, and the landing door reads that result on its final head", say the same. "Breaking" covers both triggers by Post-Task Checklist step 3 ("(narrowing) is BREAKING"). "Once labelled" does not say who labels, so it does not contradict os-dev.md's "dev 不自挂该标签". The contradiction my REWORK 7273162169 on fix(pm): the landing door reads the opt-in dogfood lane's check run on a breaking PR's head #38727 named (AGENTS.md:550 against os-dev.md) is gone: git grep "dogfood once" is empty at this head.
  • Rule-change: ruled is honest. Ruling 7269391948 (letter D, 「云端流水线代跑」) is the premise, and the clause restates its option text. The other edits are cuts that drop no rule: the "classic jointly-wrong artifact" clause and the "(e.g. N removed / 0 added)" example go; "the same packages or the same behavior" becomes "the packages or behavior", which reads the same; the anchor phrase "never trust git's textual merge of a generated file" is kept verbatim, as the body says. Every before/after block in the body matches the diff.
  • Bytes, my reads. AGENTS.md is 78704 → 78697 bytes and 1058 → 1054 lines (wc at merge base cb8d8539 and at this head). The ratchet row ['AGENTS.md', 78712] (scripts/pm/check-skill-line-ratchet.mjs:146) is unchanged, so headroom goes 8 → 15 and no raise is taken. main has not touched AGENTS.md since the merge base.
  • Acceptance notes. The Two-speeds sentence (line 516) describes the battery every PR gets and is right to leave alone. The "run the full suite once" tension with os-dev.md predates ruling D and is properly out of scope.

Checks at this head (read before writing, latest per name): 23 success, 29 skipped, 0 failure, 0 in progress; Lint & Repo Gates and TypeScript Type Check both success. The four Dogfood battery skips are the opt-in lane's label guard; this PR carries no marker, so they are expected.
L2: owed at CONTRACT_REVIEW_TIER (face rules); check-owed-reviews shows the seat's live claim 7274542085 at this head. Tier: H (AGENTS.md, governed), so landing waits for os-zhuang. Dogfood: not owed.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

维护者速读

Seat opinion: land as is.

席位核对

ACCEPT at head 5909d7d75752eae9667cdaf98f6258b962da8c4e · Tier H (AGENTS.md, Rule-change: ruled, Ruling-ref 7269391948) · Fixes #38735

  1. Shape: one file, AGENTS.md item 10 (+11/−15); 78704 → 78697 bytes under the 78712 ceiling, check:pm-skill-ratchet green.
  2. Premise measured: both halves of ruling D are on main (ci: label-gated lane runs the three dogfood shards on a breaking PR's head #38705 a1ef710a, fix(pm): the landing door reads the opt-in dogfood lane's check run on a breaking PR's head #38727 991520c3); the new sentence agrees with dogfood-optin.yml, land-dogfood-lane.mjs and os-dev.md.
  3. Gates: check-runs on this head 23 success, the rest expected skip, 0 failed; skip-changeset.
  4. Accepted deviations: N1 (the passive "once labelled" does not name the seat; os-dev.md does) and N2 ("a breaking PR" covers the narrowing arm by AGENTS.md's own definition).
  5. Out of scope and where it went: "run the full suite once" vs os-dev.md → AGENTS.md item 10 says "run the full suite once" before a PR opens, while .claude/agents/os-dev.md says local runs are targeted gates only and the full farm belongs to CI #38740; the lane drift pin → dogfood lane drift: nothing pins dogfood-optin.yml to ci.yml's dogfood job, or land-dogfood-lane.mjs's label, check and workflow literals to the workflow file #38737.
  6. Landing: L1 ACCEPT 7274742310 and L2 contract review PASS 7274737461 on this head. Lands after os-zhuang approves.

ACCEPT → PR #38739 comment 7274742310 · Contract review → comment 7274737461

@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 11:01
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit db2273d Nov 30, 2026
60 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-38735-agents-dogfood-lane branch November 30, 2026 11:21
@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/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

3 participants