Repository navigation
Commit db2273d
docs(agents): item 10 points a breaking PR's dogfood at the opt-in CI lane (#38739)
<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi98ZAtPQK4A8ABvN79TALFDE)_
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:
```text
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:
```text
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:
```text
`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:
```text
`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:
```text
**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:
```text
**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).
<details><summary>Derived gates at 5909d7d — 16 derived, 16 run, 0
NOT-MEASURED</summary>
`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:
```text
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.
</details>
---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmRJUY9Ncce14hVHd25)_
<!-- signed: repo:objectstack#3 · os-steve ·
session_01ADHkmRJUY9Ncce14hVHd25 -->
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2f8383f commit db2273d
1 file changed
Lines changed: 11 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
562 | 558 | | |
563 | 559 | | |
564 | 560 | | |
| |||
0 commit comments