From 5909d7d75752eae9667cdaf98f6258b962da8c4e Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 30 Nov 2026 09:25:52 +0000 Subject: [PATCH] docs(agents): item 10 points a breaking PR's dogfood at the opt-in CI 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 --- AGENTS.md | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 3e9fbb72da0..59ae98a6890 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -544,21 +544,17 @@ Even inside your own worktree, operate defensively: a build fast but leaves no `.d.ts`, so `gen:api-surface` cannot run at all under it — that one needs a real build. 10. **A clean merge is not a working merge — but scope the re-check to the overlap** - ([why](docs/agents/multi-agent-discipline.md#why-a-clean-merge-is-not-a-working-merge)). **Before opening a - PR, pull `main`, refresh build - state (§9), and run the full suite once.** 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 - ([detail](docs/agents/multi-agent-discipline.md#where-joint-breakage-surfaces)): - - **Always:** rebuild what the merge touched, and if `packages/spec` moved on either - side, `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"). - - **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. + ([why](docs/agents/multi-agent-discipline.md#why-a-clean-merge-is-not-a-working-merge)). **Before opening a PR, pull + `main`, refresh build state (§9), and run the full suite once.** 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 ([detail](docs/agents/multi-agent-discipline.md#where-joint-breakage-surfaces)): + - **Always:** rebuild what the merge touched, and if `packages/spec` moved on either side, + `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 `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. 11. **Generated artifacts don't text-merge — a driver defers them and `pre-commit` collects the debt.** `.gitattributes` routes the generator-owned artifacts to `merge=os-regen` (`pnpm check:merge-driver` reconciles both directions); the driver does **not** regenerate — it records