Skip to content

Commit 4eceaab

Browse files
committed
ci(required-contexts): register Temporal Conformance (live PG + MySQL) as a required context again
The REQUIRED_CONTEXTS row for ci.yml:temporal-conformance, under ruling 7238262118 on #38087; its #22998 tombstone becomes a Returned line. AGENTS.md, the seat's readings-ci list and multi-agent-discipline.md name the context in the required set (count words deleted per the volatile-counts rule), and the ci.yml comments stop calling the queue leg advisory. The ruleset entry is the maintainer's, the day this merges. Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude <noreply@anthropic.com>
1 parent c091d28 commit 4eceaab

5 files changed

Lines changed: 71 additions & 49 deletions

File tree

‎.claude/skills/pm-dispatch/references/readings-ci.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@
2222
- 并发输出的相邻不等于因果:先查 `turbo.json` 依赖边,⛔ 不只看 tail。
2323
- turbo 一败多包同印 `ELIFECYCLE Command failed`:权威读数是 `Failed:` 行与该包自己的 `##[error]`。
2424
- 公开发出的诊断被推翻时,更正发在同样公开的位置,据它开的 PR 撤回 draft、解绑 `Fixes`。
25-
- required checks 的名单是每仓事实,objectstack 十一个:
25+
- required checks 的名单是每仓事实,objectstack:
2626
`TypeScript Type Check` · `Lint & Repo Gates` · `Test Core` · `Build Core` · `Lint UI` · `Test UI` ·
27-
`Governed Surface Queue Guard` · `Type Check UI` · `Build & E2E UI` · `Live E2E UI` · `Dogfood Regression Gate`。
27+
`Governed Surface Queue Guard` · `Type Check UI` · `Build & E2E UI` · `Live E2E UI` · `Dogfood Regression Gate` ·
28+
`Temporal Conformance (live PG + MySQL)`。
2829
- ⭐ 本表的 `mustName` 声明 `statesTheSet` ⇒ 必须逐字等于注册表,加注册行不跟改本表即红。
29-
- ⇒ 门绿即名单逐字齐全的读数;⛔ 但数量词未钉:实测 七→六 照绿,只能手跟改。
30+
- ⇒ 门绿即名单逐字齐全;⛔ 不写数量词:门不钉它。
3031
- ⛔ 聚合命令同样不作判定:`check:type-check-debt` 可在包级 typecheck 绿时红。
3132
- `check:i18n` 以 PREREQUISITE NOT MET(workspace CLI 未 build)退 3,不是漂移。
3233
- 退出码是字段字面值:判据取门禁印的判定行,⛔ 不取码 —— 同一脚本里一个码可两义。

‎.github/workflows/ci.yml‎

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ concurrency:
136136
# in their `if:` — `dogfood-verify` and `ui-published-artifacts` — and
137137
# `temporal-conformance`, which since ruling record 7146156389 (#37095)
138138
# also runs on a `merge_group` entry whose diff hits the filter's
139-
# `temporal_live` paths (never on `pull_request`). It is NOT in the required
140-
# set, so that queue run is advisory: a red does not eject the entry, it
141-
# lands and shows on `main`. Nothing is deleted: the jobs moved off the per-PR
139+
# `temporal_live` paths (never on `pull_request`). It is in the required set
140+
# again (ruling record 7238262118), so a red on that queue run ejects the
141+
# entry instead of landing on `main`. Nothing is deleted: the jobs moved off the per-PR
142142
# path, `ui-published-artifacts` never had one (#26717). A red in one of them is a main-red
143143
# for the owning lane, and the publish lane reads the full battery before its
144144
# approval (release.yml's `full-battery` job,
@@ -147,7 +147,9 @@ concurrency:
147147
# `core` output, which is 'true' on `merge_group` (letter C was not ruled).
148148
# The queue enforces only the ruleset's required set. `Dogfood Regression
149149
# Gate` left it by #22998 and rejoined it by the #30461 follow-up ruling
150-
# (ruling record 6669982756); check:required-contexts pins its row.
150+
# (ruling record 6669982756); `Temporal Conformance (live PG + MySQL)` left it
151+
# by #22998 and rejoined it by ruling record 7238262118 (#38087).
152+
# check:required-contexts pins both rows.
151153
#
152154
# Spelled as a DENY-list of the per-PR events on purpose — the filter
153155
# contract's half 1 below, applied to events: a trigger added to `on:` later
@@ -2505,16 +2507,19 @@ jobs:
25052507
# driver-memory, driver-mongodb, service-analytics) — the other backends the
25062508
# temporal conformance matrix holds to one standard. Its NAME still says
25072509
# "live PG + MySQL" on purpose: it was a required check until #22998 moved
2508-
# the job to the full battery, and its readers (the scheduled run's red card,
2509-
# merge-queue triage history, every instruction that names it) find it by
2510-
# that literal — renaming it is a contract change, not a tidy-up.
2510+
# the job to the full battery, and is one again since ruling record
2511+
# 7238262118 (#38087), pinned by `check:required-contexts`; its readers (the
2512+
# ruleset, the scheduled run's red card, merge-queue triage history, every
2513+
# instruction that names it) find it by that literal — renaming it is a
2514+
# contract change, not a tidy-up.
25112515
temporal-conformance:
25122516
name: Temporal Conformance (live PG + MySQL)
25132517
needs: filter
25142518
# See THE FILTER CONTRACT on the filter job's outputs (#4928). Full battery
25152519
# (see THE TWO SPEEDS above `jobs:`, #22998), plus the merge queue when the
25162520
# entry's diff hits the `temporal_live` paths ([#37095], ruling record
2517-
# 7146156389). Never on pull_request.
2521+
# 7146156389). Never on pull_request. A skip publishes the required
2522+
# context as `skipped`, which the ruleset counts as passing.
25182523
if: ${{ !cancelled() && needs.filter.outputs.core != 'false' && github.event_name != 'pull_request' && (github.event_name != 'merge_group' || needs.filter.outputs.temporal_live != 'false') }}
25192524
runs-on: ubuntu-latest
25202525
timeout-minutes: 30

‎AGENTS.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -507,12 +507,12 @@ Even inside your own worktree, operate defensively:
507507

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

‎docs/agents/multi-agent-discipline.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Arming a red PR does not queue it, it hides it:
125125

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

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

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

145145
**A push run borrows what the queue ran** (#31519). Every commit the queue lands was tested there on the same

‎scripts/check-required-contexts.mjs‎

Lines changed: 46 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -371,25 +371,15 @@ const UNATTRIBUTED_BATTERY = '(no battery open)';
371371
* is a property of the workflow, so the workflow is where it is read from: the
372372
* job's own step list, one grep away and never stale (#9103).
373373
*
374-
* ⛔ TOMBSTONE — `Temporal Conformance (live PG + MySQL)`
375-
* (ci.yml:temporal-conformance), dropped by the
376-
* #22998 ruling (two-speed CI; ruling record 6120820653 on #22991): its leg
377-
* moved to the FULL BATTERY — `main`'s push, scheduled and dispatch runs — off
378-
* the PR and queue builds' fast set, and the context left the
379-
* required set. Since ruling record 7146156389 (#37095) the leg also runs on a
380-
* `merge_group` entry whose diff hits ci.yml's `temporal_live` filter paths
381-
* (never on `pull_request`); it is still no required context, so that queue run
382-
* is advisory and its red lands on `main` — whether it rejoins the set is the
383-
* maintainer's call, made in the ruleset. The order is the #9325 two-step: the registry and the
384-
* instruction surfaces drop the row in the PR, and the maintainer removes the
385-
* context from the ruleset in the same sitting as the merge; until then
386-
* `--verify-required-set` reports it in direction B (required, pinned by no
387-
* row), report-only, which is the sitting's own reminder. Prose and not a
388-
* RETIRED_CONTEXT_NAMES row, for the reason the `Build Docs` / `Console Pin
389-
* Gate` tombstone above gives: the name is not dead — the job still publishes
390-
* this check-run on every full-battery run and on such a queue entry, and the instruction files name
391-
* where it runs.
392-
* 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).
374+
* The #22998 ruling (two-speed CI; ruling record 6120820653 on #22991) dropped
375+
* two contexts whose legs it moved to the FULL BATTERY — `main`'s push,
376+
* scheduled and dispatch runs — off the PR and queue builds' fast set, in the
377+
* #9325 two-step (the registry and the instruction surfaces dropped the rows;
378+
* the ruleset edit was the maintainer's). Both are back, each
379+
* once its leg ran on `merge_group` again, the row landing first and the
380+
* ruleset edit after it:
381+
* 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).
382+
* 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).
393383
*/
394384
export const REQUIRED_CONTEXTS = [
395385
{
@@ -507,6 +497,18 @@ export const REQUIRED_CONTEXTS = [
507497
'the sharded dogfood matrix, `Dogfood Regression Gate (k/3)`, read through the aggregate by check:shard-attestation, ' +
508498
'and the `Dogfood Verify CLI` leg, which its `if:` skips on merge_group and pull_request',
509499
},
500+
{
501+
workflow: 'ci.yml',
502+
job: 'temporal-conformance',
503+
context: 'Temporal Conformance (live PG + MySQL)',
504+
authorized:
505+
'#38087 ruling 7238262118, maintainer 「设为必过」 2026-11-28T10:59Z — after the queue reading 7237905765 ' +
506+
'(38 runs over 23 entries, zero flakes) met the step-3 condition of ruling 7135915693 (#36614); this row is the ' +
507+
'repo half and merges first, the ruleset entry is the maintainer\'s, the same day (#9325)',
508+
carries:
509+
'the driver-sql suite against live PostgreSQL and MySQL servers plus the non-SQL temporal backends; its `if:` ' +
510+
'skips it on pull_request and runs it on a merge_group entry only when the diff hits the `temporal_live` paths',
511+
},
510512
];
511513

512514
/**
@@ -623,10 +625,12 @@ export const INSTRUCTION_SURFACES = [
623625
// contexts moved to the full battery). Then 5→7 by #25853 (the `ui/`
624626
// import's `Lint UI` and `Build & E2E UI`), 7→8 with `Type Check UI`
625627
// once bill item 49 closed (#25856), 8→9 with the `Test UI` aggregate
626-
// (#26460), 9→10 with `Live E2E UI` (#27154), and 10→11 with `Dogfood
627-
// Regression Gate` back (#30461). The full set is pinned here so the
628-
// corrected sentence cannot rot back — a rename in ANY of the eleven
629-
// reddens this gate instead.
628+
// (#26460), 9→10 with `Live E2E UI` (#27154), 10→11 with `Dogfood
629+
// Regression Gate` back (#30461), and 11→12 with `Temporal Conformance
630+
// (live PG + MySQL)` back (#38087), when the sentence also dropped its
631+
// count word (AGENTS.md's volatile-counts rule). The full set is pinned
632+
// here so the corrected sentence cannot rot back — a rename in ANY of the
633+
// twelve reddens this gate instead.
630634
file: 'AGENTS.md',
631635
statesTheSet: true,
632636
mustName: [
@@ -641,6 +645,7 @@ export const INSTRUCTION_SURFACES = [
641645
'Test UI',
642646
'Live E2E UI',
643647
'Dogfood Regression Gate',
648+
'Temporal Conformance (live PG + MySQL)',
644649
],
645650
},
646651
{
@@ -675,6 +680,7 @@ export const INSTRUCTION_SURFACES = [
675680
'Test UI',
676681
'Live E2E UI',
677682
'Dogfood Regression Gate',
683+
'Temporal Conformance (live PG + MySQL)',
678684
],
679685
},
680686
{
@@ -696,7 +702,7 @@ export const INSTRUCTION_SURFACES = [
696702
* of the six surfaces have one; `AGENTS.md` does not, because a repo-root FILE
697703
* has no separator to be found by — so an AGENTS.md card derived this gate not
698704
* at all, while that surface is the one carrying `mustName` for every
699-
* 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
705+
* 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
700706
* paragraph there is precisely how this gate goes red, and it was reachable
701707
* only by judgment.
702708
*
@@ -2026,6 +2032,17 @@ async function selfTest() {
20262032
renamedDogfood.problems.some((p) => p.includes("job 'dogfood-gate'") && p.includes("'Dogfood Regression Gate'")),
20272033
'growing a suffix on the bare `Dogfood Regression Gate` name ⇒ red, naming the aggregate job and the required context',
20282034
);
2035+
// The fixture this battery first carried, back with its row (#38087): the
2036+
// job's name dropping its "(live PG + MySQL)" suffix is a rename too.
2037+
const renamedTemporal = fixture('rename Temporal Conformance', 'ci.yml', (s) =>
2038+
s.replace(' name: Temporal Conformance (live PG + MySQL)\n', ' name: Temporal Conformance\n'),
2039+
);
2040+
assert(
2041+
renamedTemporal.problems.some(
2042+
(p) => p.includes("job 'temporal-conformance'") && p.includes("'Temporal Conformance (live PG + MySQL)'"),
2043+
),
2044+
'dropping the "(live PG + MySQL)" suffix from the temporal-conformance job name ⇒ red, naming the job and the required context',
2045+
);
20292046

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

0 commit comments

Comments
 (0)