Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .claude/skills/pm-dispatch/references/readings-ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
- 并发输出的相邻不等于因果:先查 `turbo.json` 依赖边,⛔ 不只看 tail。
- turbo 一败多包同印 `ELIFECYCLE Command failed`:权威读数是 `Failed:` 行与该包自己的 `##[error]`。
- 公开发出的诊断被推翻时,更正发在同样公开的位置,据它开的 PR 撤回 draft、解绑 `Fixes`。
- required checks 的名单是每仓事实,objectstack 十一个:
- required checks 的名单是每仓事实,objectstack:
`TypeScript Type Check` · `Lint & Repo Gates` · `Test Core` · `Build Core` · `Lint UI` · `Test UI` ·
`Governed Surface Queue Guard` · `Type Check UI` · `Build & E2E UI` · `Live E2E UI` · `Dogfood Regression Gate`。
`Governed Surface Queue Guard` · `Type Check UI` · `Build & E2E UI` · `Live E2E UI` · `Dogfood Regression Gate` ·
`Temporal Conformance (live PG + MySQL)`。
- ⭐ 本表的 `mustName` 声明 `statesTheSet` ⇒ 必须逐字等于注册表,加注册行不跟改本表即红。
- ⇒ 门绿即名单逐字齐全的读数;⛔ 但数量词未钉:实测 七→六 照绿,只能手跟改。
- ⇒ 门绿即名单逐字齐全;数量词门不钉,本表已删。
- ⛔ 聚合命令同样不作判定:`check:type-check-debt` 可在包级 typecheck 绿时红。
- `check:i18n` 以 PREREQUISITE NOT MET(workspace CLI 未 build)退 3,不是漂移。
- 退出码是字段字面值:判据取门禁印的判定行,⛔ 不取码 —— 同一脚本里一个码可两义。
Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ concurrency:
# in their `if:` — `dogfood-verify` and `ui-published-artifacts` — and
# `temporal-conformance`, which since ruling record 7146156389 (#37095)
# also runs on a `merge_group` entry whose diff hits the filter's
# `temporal_live` paths (never on `pull_request`). It is NOT in the required
# set, so that queue run is advisory: a red does not eject the entry, it
# lands and shows on `main`. Nothing is deleted: the jobs moved off the per-PR
# `temporal_live` paths (never on `pull_request`). It is in the required set
# again (ruling record 7238262118), so a red on that queue run ejects the
# entry instead of landing on `main`. Nothing is deleted: the jobs moved off the per-PR
# path, `ui-published-artifacts` never had one (#26717). A red in one of them is a main-red
# for the owning lane, and the publish lane reads the full battery before its
# approval (release.yml's `full-battery` job,
Expand All @@ -147,7 +147,9 @@ concurrency:
# `core` output, which is 'true' on `merge_group` (letter C was not ruled).
# The queue enforces only the ruleset's required set. `Dogfood Regression
# Gate` left it by #22998 and rejoined it by the #30461 follow-up ruling
# (ruling record 6669982756); check:required-contexts pins its row.
# (ruling record 6669982756); `Temporal Conformance (live PG + MySQL)` left it
# by #22998 and rejoined it by ruling record 7238262118 (#38087).
# check:required-contexts pins both rows.
#
# Spelled as a DENY-list of the per-PR events on purpose — the filter
# contract's half 1 below, applied to events: a trigger added to `on:` later
Expand Down Expand Up @@ -2505,16 +2507,19 @@ jobs:
# driver-memory, driver-mongodb, service-analytics) — the other backends the
# temporal conformance matrix holds to one standard. Its NAME still says
# "live PG + MySQL" on purpose: it was a required check until #22998 moved
# the job to the full battery, and its readers (the scheduled run's red card,
# merge-queue triage history, every instruction that names it) find it by
# that literal — renaming it is a contract change, not a tidy-up.
# the job to the full battery, and is one again since ruling record
# 7238262118 (#38087), pinned by `check:required-contexts`; its readers (the
# ruleset, the scheduled run's red card, merge-queue triage history, every
# instruction that names it) find it by that literal — renaming it is a
# contract change, not a tidy-up.
temporal-conformance:
name: Temporal Conformance (live PG + MySQL)
needs: filter
# See THE FILTER CONTRACT on the filter job's outputs (#4928). Full battery
# (see THE TWO SPEEDS above `jobs:`, #22998), plus the merge queue when the
# entry's diff hits the `temporal_live` paths ([#37095], ruling record
# 7146156389). Never on pull_request.
# 7146156389). Never on pull_request. A skip publishes the required
# context as `skipped`, which the ruleset counts as passing.
if: ${{ !cancelled() && needs.filter.outputs.core != 'false' && github.event_name != 'pull_request' && (github.event_name != 'merge_group' || needs.filter.outputs.temporal_live != 'false') }}
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down
10 changes: 5 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -507,12 +507,12 @@ Even inside your own worktree, operate defensively:

**Green means the gate-carrying jobs' `conclusion` is `success`** — not "no failure yet"; `in_progress` is not a
pass, and arming a red PR hides it ([why](docs/agents/multi-agent-discipline.md#arming-a-red-pr-hides-it)). Always
read *two* things: the queue branch **and** `origin/main`. And **the queue enforces only the required set** —
eleven contexts block: `Lint & Repo Gates` (all `check:*` gates), `TypeScript Type Check`, `Test Core`, `Build Core`,
`Governed Surface Queue Guard`, `Lint UI`, `Type Check UI`, `Test UI`, `Build & E2E UI`, `Live E2E UI` and
`Dogfood Regression Gate`; a check outside those eleven is advisory ([why that
read *two* things: the queue branch **and** `origin/main`. And **the queue enforces only the required set**:
`Lint & Repo Gates` (all `check:*` gates), `TypeScript Type Check`, `Test Core`, `Build Core`,
`Governed Surface Queue Guard`, `Lint UI`, `Type Check UI`, `Test UI`, `Build & E2E UI`, `Live E2E UI`,
`Dogfood Regression Gate` and `Temporal Conformance (live PG + MySQL)`; any other check is advisory ([why that
matters](docs/agents/multi-agent-discipline.md#advisory-checks-ride-through)). A required context is matched by
check-run name, so a rename detaches its gate silently — treat those eleven names as contract. **Two speeds** —
check-run name, so a rename detaches its gate silently — treat those names as contract. **Two speeds** —
PR runs carry the fast set, queue runs add the dogfood shards; `main`'s scheduled runs carry the full battery, and a
push run carries it by running the main-only jobs and borrowing the rest from the green queue runs of its commits
([detail](docs/agents/multi-agent-discipline.md#two-speeds-which-runs-carry-which-battery)). **Main-red:** a
Expand Down
6 changes: 3 additions & 3 deletions docs/agents/multi-agent-discipline.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Arming a red PR does not queue it, it hides it:

← [`AGENTS.md` › Multi-agent working discipline](../../AGENTS.md#multi-agent-working-discipline)

A check outside those eleven is advisory and rides through, and an advisory red
A check outside the required set is advisory and rides through, and an advisory red
that lands rides `main`'s merge ref into every later PR until stanched.

## Two speeds: which runs carry which battery
Expand All @@ -138,8 +138,8 @@ A check outside those eleven is advisory and rides through, and an advisory red
any approval. Queue runs also carry the three `Dogfood Regression Gate` shards (ruling record
6663883327), so a dogfood red shows on the queue build; `Dogfood Verify CLI` and
`UI Published Artifacts` stay full-battery only. One exception: Temporal Conformance also runs on a queue
entry whose diff hits `ci.yml`'s `temporal_live` paths (ruling record 7146156389); it is not a required
context, so that run is advisory and a red lands on `main`. The `Dogfood Regression
entry whose diff hits `ci.yml`'s `temporal_live` paths (ruling record 7146156389), and it is a required
context again (ruling record 7238262118), so a red there ejects the entry. The `Dogfood Regression
Gate` context is in the required set again (ruling record 6669982756), so a dogfood red ejects the entry.

**A push run borrows what the queue ran** (#31519). Every commit the queue lands was tested there on the same
Expand Down
76 changes: 46 additions & 30 deletions scripts/check-required-contexts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -371,25 +371,15 @@ const UNATTRIBUTED_BATTERY = '(no battery open)';
* is a property of the workflow, so the workflow is where it is read from: the
* job's own step list, one grep away and never stale (#9103).
*
* ⛔ TOMBSTONE — `Temporal Conformance (live PG + MySQL)`
* (ci.yml:temporal-conformance), dropped by the
* #22998 ruling (two-speed CI; ruling record 6120820653 on #22991): its leg
* moved to the FULL BATTERY — `main`'s push, scheduled and dispatch runs — off
* the PR and queue builds' fast set, and the context left the
* required set. Since ruling record 7146156389 (#37095) the leg also runs on a
* `merge_group` entry whose diff hits ci.yml's `temporal_live` filter paths
* (never on `pull_request`); it is still no required context, so that queue run
* is advisory and its red lands on `main` — whether it rejoins the set is the
* maintainer's call, made in the ruleset. The order is the #9325 two-step: the registry and the
* instruction surfaces drop the row in the PR, and the maintainer removes the
* context from the ruleset in the same sitting as the merge; until then
* `--verify-required-set` reports it in direction B (required, pinned by no
* row), report-only, which is the sitting's own reminder. Prose and not a
* RETIRED_CONTEXT_NAMES row, for the reason the `Build Docs` / `Console Pin
* Gate` tombstone above gives: the name is not dead — the job still publishes
* this check-run on every full-battery run and on such a queue entry, and the instruction files name
* where it runs.
* Returned: `Dogfood Regression Gate` (ci.yml:dogfood-gate) left with it by #22998 and is back since #30461 (letter B 6663883327 put its shards on `merge_group`; letter A 6669982756 re-enrolled the row below).
* The #22998 ruling (two-speed CI; ruling record 6120820653 on #22991) dropped
* two contexts whose legs it moved to the FULL BATTERY — `main`'s push,
* scheduled and dispatch runs — off the PR and queue builds' fast set, in the
* #9325 two-step (the registry and the instruction surfaces dropped the rows;
* the ruleset edit was the maintainer's). Both are back, each
* once its leg ran on `merge_group` again, the row landing first and the
* ruleset edit after it:
* Returned: `Dogfood Regression Gate` (ci.yml:dogfood-gate) left by #22998 and is back since #30461 (letter B 6663883327 put its shards on `merge_group`; letter A 6669982756 re-enrolled the row below).
* Returned: `Temporal Conformance (live PG + MySQL)` (ci.yml:temporal-conformance) left by #22998 and is back since #38087 (ruling 7146156389 put its leg on a `merge_group` entry that hits the `temporal_live` paths; ruling 7238262118 re-enrolled the row below).
*/
export const REQUIRED_CONTEXTS = [
{
Expand Down Expand Up @@ -507,6 +497,18 @@ export const REQUIRED_CONTEXTS = [
'the sharded dogfood matrix, `Dogfood Regression Gate (k/3)`, read through the aggregate by check:shard-attestation, ' +
'and the `Dogfood Verify CLI` leg, which its `if:` skips on merge_group and pull_request',
},
{
workflow: 'ci.yml',
job: 'temporal-conformance',
context: 'Temporal Conformance (live PG + MySQL)',
authorized:
'#38087 ruling 7238262118, maintainer 「设为必过」 2026-11-28T10:59Z — after the queue reading 7237905765 ' +
'(38 runs over 23 entries, zero flakes) met the step-3 condition of ruling 7135915693 (#36614); this row is the ' +
'repo half and merges first, the ruleset entry is the maintainer\'s, the same day (#9325)',
carries:
'the driver-sql suite against live PostgreSQL and MySQL servers plus the non-SQL temporal backends; its `if:` ' +
'skips it on pull_request and runs it on a merge_group entry only when the diff hits the `temporal_live` paths',
},
];

/**
Expand Down Expand Up @@ -623,10 +625,12 @@ export const INSTRUCTION_SURFACES = [
// contexts moved to the full battery). Then 5→7 by #25853 (the `ui/`
// import's `Lint UI` and `Build & E2E UI`), 7→8 with `Type Check UI`
// once bill item 49 closed (#25856), 8→9 with the `Test UI` aggregate
// (#26460), 9→10 with `Live E2E UI` (#27154), and 10→11 with `Dogfood
// Regression Gate` back (#30461). The full set is pinned here so the
// corrected sentence cannot rot back — a rename in ANY of the eleven
// reddens this gate instead.
// (#26460), 9→10 with `Live E2E UI` (#27154), 10→11 with `Dogfood
// Regression Gate` back (#30461), and 11→12 with `Temporal Conformance
// (live PG + MySQL)` back (#38087), when the sentence also dropped its
// count word (AGENTS.md's volatile-counts rule). The full set is pinned
// here so the corrected sentence cannot rot back — a rename in ANY of the
// twelve reddens this gate instead.
file: 'AGENTS.md',
statesTheSet: true,
mustName: [
Expand All @@ -641,6 +645,7 @@ export const INSTRUCTION_SURFACES = [
'Test UI',
'Live E2E UI',
'Dogfood Regression Gate',
'Temporal Conformance (live PG + MySQL)',
],
},
{
Expand Down Expand Up @@ -675,6 +680,7 @@ export const INSTRUCTION_SURFACES = [
'Test UI',
'Live E2E UI',
'Dogfood Regression Gate',
'Temporal Conformance (live PG + MySQL)',
],
},
{
Expand All @@ -696,7 +702,7 @@ export const INSTRUCTION_SURFACES = [
* of the six surfaces have one; `AGENTS.md` does not, because a repo-root FILE
* has no separator to be found by — so an AGENTS.md card derived this gate not
* at all, while that surface is the one carrying `mustName` for every
* required context (widened 2→6 by #9677, 6→7 by #17798, 7→5 by #22998, 5→7 by #25853, 7→8, 8→9 by #26460, 9→10 by #27154, 10→11 by #30461). Editing the merge-queue
* required context (widened 2→6 by #9677, 6→7 by #17798, 7→5 by #22998, 5→7 by #25853, 7→8, 8→9 by #26460, 9→10 by #27154, 10→11 by #30461, 11→12 by #38087). Editing the merge-queue
* paragraph there is precisely how this gate goes red, and it was reachable
* only by judgment.
*
Expand Down Expand Up @@ -2026,6 +2032,17 @@ async function selfTest() {
renamedDogfood.problems.some((p) => p.includes("job 'dogfood-gate'") && p.includes("'Dogfood Regression Gate'")),
'growing a suffix on the bare `Dogfood Regression Gate` name ⇒ red, naming the aggregate job and the required context',
);
// The fixture this battery first carried, back with its row (#38087): the
// job's name dropping its "(live PG + MySQL)" suffix is a rename too.
const renamedTemporal = fixture('rename Temporal Conformance', 'ci.yml', (s) =>
s.replace(' name: Temporal Conformance (live PG + MySQL)\n', ' name: Temporal Conformance\n'),
);
assert(
renamedTemporal.problems.some(
(p) => p.includes("job 'temporal-conformance'") && p.includes("'Temporal Conformance (live PG + MySQL)'"),
),
'dropping the "(live PG + MySQL)" suffix from the temporal-conformance job name ⇒ red, naming the job and the required context',
);

// ── (2) the job disappearing entirely ─────────────────────────────────────
// Re-pointed from `console-pin` to `temporal-conformance` when #9533 dropped
Expand Down Expand Up @@ -2834,12 +2851,11 @@ async function selfTest() {
assert(snapshot.strict === false, 'strict_required_status_checks_policy is read, not assumed');
assert(snapshot.enforcing.length === 1 && !snapshot.noEnforcingRuleset, 'one active ruleset covers the default branch');
// Direction B against the checked-in registry, derived for the same reason
// as direction A below: the 2026-08-18 reading still carries
// `Temporal Conformance (live PG + MySQL)`, which #22998 dropped from the
// registry, so the snapshot reports it as required-and-unpinned — exactly
// the reading the maintainer's settings half of that two-step clears.
// (`Dogfood Regression Gate`, dropped with it, is pinned again since
// #30461 and so no longer reads as unpinned here.)
// as direction A below: the 2026-08-18 reading carries the two contexts
// #22998 later dropped from the registry, and both are pinned again
// (`Dogfood Regression Gate` since #30461, `Temporal Conformance (live PG +
// MySQL)` since #38087), so the snapshot reads as unpinned nothing the
// registry knows.
const pinned = new Set(REQUIRED_CONTEXTS.map((e) => e.context));
const unpinnedNames = snapshot.unpinned.map((e) => e.context ?? e).sort();
assert(
Expand Down
Loading