Repository navigation
ci(required-contexts): register Dogfood Regression Gate as a required context again - #31133
Conversation
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ihL2ebbZkr2QAEG1x7UC8
…ion Gate row Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ihL2ebbZkr2QAEG1x7UC8
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ihL2ebbZkr2QAEG1x7UC8
…e, not on the PR Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ihL2ebbZkr2QAEG1x7UC8
|
domain:devx#2 · marchtian · session_017ihL2ebbZkr2QAEG1x7UC8 Contract reviewServed-tier: Inputs: card #30461 (body; rulings 6663883327 and 6669982756; landed note 6671431307; 24h reading 6707277208; round-2 claim 6707739409; dev reports 6707728600 and 6707962476), PR #31133 body and files, ① Derived judgmentsThe row (ci.yml / dogfood-gate / Dogfood Regression Gate). Same five-field shape as the The tombstone and the counts. The #22998 tombstone now covers The sweep window (merge → ruleset edit). The skill line. review-checklist.md:49 now reads 「dogfood 门禁不跑于 PR、跑于队列,全绿 PR 照样被队列弹出」: not on PR (the The landing. Findings.
② Semver levelnone. No package's ③ Boundary flags
④ Design judgment
Implemented-by: VERDICT: PASS |
|
domain:devx#2 · marchtian · session_017ihL2ebbZkr2QAEG1x7UC8 维护者速读
席位意见:建议批准。改动只限登记行和说明文字,复审无必须修改项,检查全绿;唯一要你动手的是合并后改规则集。 席位核对 — ACCEPT ·
|
…) as a required context again (objectstack-ai#38331) Part of objectstack-ai#38087 (item 3's repo half; the ruleset entry stays the maintainer's, and the card keeps the follow-up nits N4/N5) Clause-②: no Metadata-protocol: none Rule-change: ruled Ruling-ref: 「设为必过」 on 「要不要把真库测试(PG+MySQL)设为合并必过?」 — the maintainer, on the decision card in the o1-F area thread, 2026-11-28T10:59:46Z; recorded on objectstack-ai#38087 comment 7238262118. **Tier H** (`AGENTS.md`, `.github/workflows/ci.yml`; `.claude/**` rides along). Draft until an approval from GOVERNED_APPROVERS. The ruling of record is objectstack-ai#38087 comment 7238262118: the `REQUIRED_CONTEXTS` row merges first, then the maintainer adds `Temporal Conformance (live PG + MySQL)` to the `main` ruleset the same day. This PR does not edit the ruleset. ## 维护者速读 - 用户能看到什么变化:用户无感。改 SQL 驱动、知识库等相关文件的 PR,真库测试从此成为合并必过:在合并队列里没过就进不了主干;其他 PR 跳过这一项,照常合并。 - 为什么做:落实你在「要不要把真库测试(PG+MySQL)设为合并必过?」上选的「设为必过」。观察期里 23 个相关 PR 跑了 38 次,没有偶发失败;唯一一次红是真问题,却因为不是必过照样合进主干,主干红了约 6 小时。 - 出错会怎样:本次只改登记表和说明文字,不改任何检查本身。若这一项将来出现偶发失败,会把相关 PR 弹出队列;从 Rulesets 删掉这一项、再撤回本次改动即可恢复。 - 要你做什么:合并当天请在 Rulesets 加上 `Temporal Conformance (live PG + MySQL)`,否则检查会报设置不一致。 ## What changes - `scripts/check-required-contexts.mjs` - One `REQUIRED_CONTEXTS` row: `ci.yml`, `temporal-conformance`, `Temporal Conformance (live PG + MySQL)`. Its `authorized` names ruling 7238262118 and the queue reading 7237905765. Its `carries` names the driver-sql suite against both live servers plus the non-SQL temporal backends, and says the `if:` skips the job on `pull_request` and runs it on a `merge_group` entry only when the diff hits `temporal_live`. Same row shape as the `Dogfood Regression Gate` row (objectstack-ai#31133). - The objectstack-ai#22998 tombstone had only this context left. It is now a short history paragraph and two `Returned:` lines, Dogfood's and this one (ruling 7146156389 put the leg on the queue; ruling 7238262118 re-enrolled the row). - Both `statesTheSet` surfaces' `mustName` gain `Temporal Conformance (live PG + MySQL)`. The two history comments read `11→12 by objectstack-ai#38087`. - Self-test: battery (3) gains the rename fixture this battery first carried: the job name dropping its `(live PG + MySQL)` suffix ⇒ red, naming `temporal-conformance` and the context. The 2026-08-18 ruleset-snapshot comment now says both contexts objectstack-ai#22998 dropped are pinned again; the assertion stays derived. - `AGENTS.md` (merge-queue rule): the required-set list names `Temporal Conformance (live PG + MySQL)`. The three count words ("eleven contexts block", "those eleven" twice) are deleted under the volatile-counts rule, which pays for the added name: 78708 → 78704 bytes against the 78712 ceiling, line count unchanged. No ceiling raised. - `.claude/skills/pm-dispatch/references/readings-ci.md`: the seat's required-set list gains the name and drops its count word; the line about the unpinned count word now states that the word is deleted. 4900 → 4896 bytes against the 4900 ceiling. - `docs/agents/multi-agent-discipline.md`: "outside those eleven" becomes "outside the required set". The two-speeds paragraph no longer calls the queue leg advisory: a red there ejects the entry. - `.github/workflows/ci.yml`: comments only. THE TWO SPEEDS said the context is not in the required set and its queue red lands on `main`; it now says it is required again and names both returns. The `temporal-conformance` header and its `if:` comment say the name is pinned again and that a skip publishes `skipped`, which the ruleset counts as passing. No job, `if:`, timeout or step changed. Not changed, because the row does not make them false: - `scripts/check-aggregator-roster.mjs`: the job aggregates nothing (`needs: filter` only). - `scripts/pm/check-expected-skips.mjs`: the frozen fixture tree and the derived roster (see Acceptance notes). - The dated readings in `docs/audits/gate-census-2026-09.md` and `cross-repo-issue-closer.yml`. ## Tests - `node scripts/check-required-contexts.mjs --self-test`: 192 assertions pass (190 before), including the new rename fixture. - `node scripts/check-required-contexts.mjs`: `12 required context name(s) pinned across 3 workflow(s)`, last line `ci.yml:temporal-conformance → 'Temporal Conformance (live PG + MySQL)'`. ## Acceptance notes - **The settings half reads the row as missing, as expected.** `NODE_OPTIONS=--use-env-proxy node scripts/check-required-contexts.mjs --verify-required-set` (exit 0, report-only): `11 live required context(s) on main, 1 registered-but-not-required, 0 required-but-unpinned`, direction A naming `Temporal Conformance (live PG + MySQL)`. That is this PR's repo half landing first. It clears when the maintainer adds the context to the ruleset on the merge day. Until then the `Live required-set sweep` adds one warning annotation and pages nobody. Nothing here works around it. - **Until the ruleset edit, a red on this leg still does not eject a queue entry.** `AGENTS.md` and the docs already describe the state after the edit, the convention of the `Dogfood Regression Gate`, `Test UI` and `Live E2E UI` rows. - `check-expected-skips`'s derived reason for this job says "answered by the merge-queue build", which is true only on an entry that hits `temporal_live`; it hedges with "plus 2 further condition(s) the recogniser does not read". Noted on objectstack-ai#38087 in the previous round; not filed (the area is closing). ## Verification - Read first: `scripts/check-required-contexts.mjs` — the new `REQUIRED_CONTEXTS` row and the rewritten tombstone block above it; then the `AGENTS.md` merge-queue paragraph. - Two-minute check: `node scripts/check-required-contexts.mjs` should print `12 required context name(s)` and end with `ci.yml:temporal-conformance → 'Temporal Conformance (live PG + MySQL)'`. <details><summary>local gates: 82 derived, 77 exit 0, 5 NOT MEASURED (heads 4eceaab and e4f2798)</summary> - `dispatch-gates --commands` derived 82 families at `4eceaabb0c`; `--ran` at `e4f279813e`: `82 derived famil(ies) accounted for — 77 run, 5 NOT-MEASURED (5 DERIVED from a recorded exit 3)`. Each exit code was captured before any pipe. - The 5 NOT MEASURED families exit 3 PREREQUISITE NOT MET: they read built `packages/*` output (their refusal: "Run pnpm build first"). This diff touches no package, and no whole-workspace build was run in this shared container; CI's `Lint & Repo Gates` runs them. Declared narrowing. - The no-merge check: the derivation reported the tree 2 commits behind `origin/main` with none of them touching what it derives from, so `main` was not merged. `overlap-check`: `VERDICT clean exit 0` (`origin/main` 4997cae and objectstack-ai#38286, which shares `ci.yml`, both merge cleanly). - `e4f279813e` changed one line of `readings-ci.md` after the first run started, so the 20 families derived for that file alone were run again on `e4f279813e` (all exit 0), and `check:pm-dispatch-gates` was run again there: `✓ dispatch-gates self-test (fast tier): 2385 cases pass`, exit 0. ``` node scripts/check-adr-links.mjs :: exit 0 node scripts/check-adr-links.mjs --self-test :: exit 0 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 node scripts/check-declaration-mirrors.mjs :: exit 0 node scripts/check-declaration-mirrors.mjs --self-test :: exit 0 node scripts/check-dts-emitted.mjs --self-test :: exit 0 node scripts/check-platform-checklist-watchdog.mjs :: exit 0 node scripts/check-platform-checklist-watchdog.mjs --self-test :: exit 0 node scripts/check-release-section-coverage.mjs :: exit 0 node scripts/check-release-section-coverage.mjs --strict :: exit 0 node scripts/check-self-test-wired.mjs :: exit 0 node scripts/check-self-test-wired.mjs --self-test :: exit 0 node scripts/check-self-test-workflow-commands.mjs :: exit 0 node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0 node scripts/check-step-collectors.mjs :: exit 0 node scripts/check-step-collectors.mjs --self-test :: exit 0 node scripts/check-whole-set-label-write.mjs :: exit 0 node scripts/check-whole-set-label-write.mjs --self-test :: exit 0 node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0 node scripts/ci/scheduled-full-run.mjs --self-test :: exit 0 node scripts/docs-audit/check-drift-comment.mjs :: exit 0 node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0 node scripts/pm/board-snapshot.mjs --self-test :: exit 0 node scripts/pm/check-harness-current.mjs --self-test :: exit 0 node scripts/render-release-coverage-anchor.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 3 pnpm check:adr-anchors :: exit 0 pnpm check:agent-test-spelling :: exit 0 pnpm check:aggregator-roster :: exit 0 pnpm check:bash32-floor :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:cli-command-ids :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:declared-population-live :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:docs-audit-scope :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:dts-closure :: exit 3 pnpm check:dual-build-cjs-loads :: exit 3 pnpm check:entry-guard :: exit 0 pnpm check:fetch-history :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:lean-entry-closure :: exit 3 pnpm check:node-version :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:parse-guard :: exit 0 pnpm check:platform-checklist :: exit 0 pnpm check:pm-close-cards :: exit 0 pnpm check:pm-expected-skips :: exit 0 pnpm check:pm-fleet-write-dispatch :: exit 0 pnpm check:pm-fleet-write-execute :: exit 0 pnpm check:pm-fleet-write-validate :: exit 0 pnpm check:pm-governed-merges :: exit 0 pnpm check:pm-governed-prose :: exit 0 pnpm check:pm-issue-transfer :: exit 0 pnpm check:pm-post-stamped :: exit 0 pnpm check:pm-record-recognisers :: exit 0 pnpm check:pm-settings-deny-roster :: exit 0 pnpm check:pm-skill-id-lint :: exit 0 pnpm check:pm-skill-ratchet :: exit 0 pnpm check:pnpm-acquisition :: exit 0 pnpm check:pnpm-filter-targets :: exit 0 pnpm check:pnpm-flag-spellings :: exit 0 pnpm check:ratchet-remedy-authority :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:required-contexts :: exit 0 pnpm check:scripts-symbol-anchors :: exit 0 pnpm check:shard-attestation :: exit 0 pnpm check:skill-frame-sync :: exit 0 pnpm check:sourcemap-no-sources-content :: exit 3 pnpm check:stall-guard-budget :: exit 0 pnpm check:stall-guard-headroom :: exit 0 pnpm check:type-check-coverage :: exit 0 pnpm check:type-check-debt :: exit 0 pnpm check:watch-hint-literal :: exit 0 pnpm check:workflow-status-functions :: exit 0 pnpm check:workflow-step-name-quoting :: exit 0 pnpm check:pm-dispatch-gates :: exit 0 ``` Rerun on `e4f279813e` (the families `readings-ci.md` derives): ``` 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 node scripts/pm/check-harness-current.mjs --self-test :: exit 0 pnpm check:adr-anchors :: exit 0 pnpm check:agent-test-spelling :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: 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-record-recognisers :: exit 0 pnpm check:pm-settings-deny-roster :: 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:skill-frame-sync :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` </details> --- _Generated by [Claude Code](https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by 田騏 · project thread
Part of #30461
Clause-②: no
Metadata-protocol: none
Tier H (
AGENTS.md,.github/workflows/ci.yml;.claude/**rides along). Draft until an approval from GOVERNED_APPROVERS. This is step 3 of ruling 6669982756: theREQUIRED_CONTEXTSrow merges first, then the maintainer addsDogfood Regression Gateto themainruleset the same day. #30461 stays open until that ruleset edit, so this PR does not close it.维护者速读
Dogfood Regression Gate(ci.yml 的dogfood-gate)重新登记为必过检查:注册表加一行,必过名单从 10 个变 11 个,AGENTS.md、seat 读数表和说明文档同步改,旧墓碑注释改成一行"已回归"的历史。不改任何 CI 任务、条件或超时。scripts/check-required-contexts.mjs新增的注册行和改写的墓碑注释;AGENTS.md第 507–512 行的名单。node scripts/check-required-contexts.mjs,应看到11 required context name(s)和ci.yml:dogfood-gate → 'Dogfood Regression Gate'。main的必过检查里加上Dogfood Regression Gate。What changes
scripts/check-required-contexts.mjsREQUIRED_CONTEXTSrow:ci.yml,dogfood-gate,Dogfood Regression Gate. Itsauthorizednames ruling 6669982756 and the 24-hour reading 6707277208. Itscarriesnames the shardedDogfood Regression Gate (k/3)matrix read through the aggregate, and theDogfood Verify CLIleg that itsif:skips on merge_group and pull_request. Same row shape as theTest UIprecedent (833e4a8).Temporal Conformance (live PG + MySQL)alone; its substance is unchanged. The dogfood half is oneReturned:line that keeps the history (dropped by skills(ci): two-speed CI — fast set on PR and merge-queue runs, full battery hourly on main and before a release, main-red stops the lane, four required contexts plus the guard, timing gates report-only, test budgets not deletions #22998, back by [Decision] Merge queue: should the three Dogfood Regression Gate shards run on merge_group, so a dogfood red stops a PR before main instead of after? #30461).statesTheSetsurfaces'mustNamegainDogfood Regression Gate. The two history comments read10→11/the eleven.Dogfood Regression Gate (aggregate)⇒ red, namingdogfood-gate). Battery (9) gains the shard-name collision fixture (adogfoodshard wearing the bare name ⇒ red) and the coexistence control. The ruleset-snapshot comment now says only Temporal reads as unpinned.AGENTS.md(merge-queue rule) and.claude/skills/pm-dispatch/references/platform-readings.md: the required-set list goes from ten to eleven.check:required-contextsis red until both name the registry exactly. The count words are followed by hand, and both files keep their line counts (ratchet headroom 0, every line ≤120 bytes)..claude/skills/pm-dispatch/references/review-checklist.md:49: was "dogfood 门禁不跑于 PR 与队列" (stale since ci(dogfood): the three Dogfood Regression Gate shards run on merge_group #30639). It now readsdogfood 门禁不跑于 PR、跑于队列,全绿 PR 照样被队列弹出。The line is 118 bytes, and the file keeps its 76-line ceiling.docs/agents/multi-agent-discipline.md: "outside those ten" becomes "eleven". The two-speeds paragraph no longer calls the queue dogfood red advisory..github/workflows/ci.yml: comments only. THE TWO SPEEDS and thedogfood-gateheader said the context is outside the required set and its name is unpinned, and this row makes that false. No job,if:, timeout or step changed.Not changed, because the row does not make them false:
scripts/check-aggregator-roster.mjs:REQUIRED_AGGREGATORSalready listsci.yml/dogfood-gate, and its header already counts five required-context aggregators.fleet-patrols.yml,governed-surface-guard.yml,pr-body-guards.ymlandlint.yml'sREQUIRED_CONTEXTScross-reference.cross-repo-issue-closer.yml,publish-smoke.ymlanddocs/audits/gate-census-2026-09.md.Tests
node scripts/check-required-contexts.mjs --self-test: 190 assertions pass, including the three new fixtures. Each fixture asserts its own anchor matched, so a no-op mutation would fail.node scripts/check-required-contexts.mjs: 11 pinned,ci.yml:dogfood-gate → 'Dogfood Regression Gate'.Acceptance notes
fleet-patrols.ymljobLive required-set sweep) will reportDogfood Regression Gatein direction A: registered here, not yet live. That covers this PR's own Fleet Patrols run (it triggers onscripts/check-required-contexts.mjs) and any scheduled sweep (04:23 / 16:23 UTC) before the edit. Direction A exits 0. The job stays green and adds one::warning::annotation. It writes no issue, label or comment and pages nobody. The reading is the sitting's reminder, and it clears once the ruleset carries the context. No fix is proposed.AGENTS.mdand the docs already describe the state after the edit, as theTest UIandLive E2E UIrows did.review-checklist.md:49had been stale since ci(dogfood): the three Dogfood Regression Gate shards run on merge_group #30639, and round 2 (bacd70b11e) rewrote it. It now reads as the state after the ruleset edit, the same convention asAGENTS.md.Verification
Head:
bacd70b11e(round 2 added thereview-checklist.mdline, and the same 82 gates were re-derived and rerun, all exit 0).origin/mainwas merged once before opening (already up to date at5f00374492).mainataf3451b08btouches none of the six files, and merge-tree is clean.The touched gate and its self-test
dispatch-gates derived families: 82 derived, 82 run, 0 NOT-MEASURED
node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran ran.list→ exit 0: 82 derived, 82 run, 0 NOT-MEASURED (a derived zero). On a first pass, five families read exit 3 (PREREQUISITE NOT MET: no builtpackages/*dist):check:doc-formula-expressions,check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closureandcheck:sourcemap-no-sources-content. Afterpnpm turbo run build --filter='./packages/**'underos-verify-lock(VERDICT command-exit 0), the whole list was run again on this head and all 82 exited 0.check:pm-dispatch-gates: 1954 fast-tier cases pass.Not run locally:
ui/scripts/__tests__. It is not derived, theci.ymledits are comments only, and grep finds no pin on the edited text. The repo-widepnpm lintis CI's.Session:
session_017ihL2ebbZkr2QAEG1x7UC8🤖 Generated with Claude Code