Repository navigation
ci(required-contexts): register Temporal Conformance (live PG + MySQL) as a required context again - #38331
Conversation
…) 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>
Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · e4f2798 · 2026-11-28T13:52Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: PR #38331 (card #38087, item 3, the repo half), net diff of the head against merge base ① Derived judgments
② Semver levelClause-②: no. The diff publishes nothing: no file under ③ Boundary flags
④ Design judgmentRule change. The PR body declares
Merge-day order, tried for a break. Between the merge and the maintainer's ruleset click the docs say "required" while the ruleset does not yet enforce it. In that window a red on the leg rides through exactly as it does today, so nothing regresses; the only misreading available is a seat treating an advisory red as blocking, which errs toward holding. The pin stays green (it is network-free and reads only the tree). No must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT at head Review summary
Notes, not blocking.
Next: GOVERNED Tier H. This goes to seat 1 for the human merge or an authorized approval. After the merge, the maintainer adds the ruleset entry. |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-28T14:14Z · PR #38331 (Part of #38087) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Approval request · governed @os-zhuang: the repo half of the maintainer's 「设为必过」 ruling (#38087 c7238262118).
Every check is green or expected-skip. An APPROVED review on this head lets seat repo:objectstack#1 ready and land it; nothing else is asked. |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat note · 2026-11-28T16:54Z · @os-zhuang: this PR left the merge queue by hand at 2026-11-28T14:16Z, about 40 s after it was enqueued, and no comment or review gives a reason. The head is unchanged ( |
…cheduling, and admit every out-of-tree markdown read (objectstack-ai#38286) <!-- claude-projects-attribution: {"github_login":"os-elon-musk"} --> _Requested by **Elon** · [project thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DDypKu7B9nwbu5WuV7AEio8)_ Fixes objectstack-ai#38132 Fixes objectstack-ai#38133 Fixes objectstack-ai#38134 Clause-②: no Metadata-protocol: none repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW ## 维护者速读 - 用户能看到什么变化:用户无感;开发者这边,只改 ui 测试会读的那些 ui 目录外文件的 PR,现在也会跑 ui 测试;CI 配置里任何让 ui 测试少跑或多跑的改动,都要同时更新一份调度基线,否则检查会拦下。 - 为什么做:CI 与合并队列的 ui 调度;替维护者堵住“ui 测试在 PR 上被静默跳过、合进主干才暴露”的漏洞。 - 出错会怎样:最坏是某个只改这几个文件的 PR 多跑一轮 ui 测试,或改 CI 配置的人需要顺手更新调度基线;可直接撤回本 PR。 - 要你做的:本 PR 改了 CI 工作流,按规定需你审批合并。 ## What changes - **objectstack-ai#38133: the fifth subject of `check:ci-filter-parity` covers every file outside `ui/` that a ui test reads**, not only the root `docs/adr`. - The population is still derived by the shared walker (`scanPathExpressions`). Imports resolve through `check-cross-package-test-inputs`'s own `resolveImportTarget`, which is exported with a `root` parameter and has no behaviour change. - Rework M1: a one-piece relative literal that climbs out of `ui/` and names a file is a read. This covers the `await import(new URL('../…', import.meta.url).href)` spelling the walker does not read. That is how `metadata-form-option-names.test.ts` loads `packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts`, which now has a `ui:` row. - Rework S4: a module a test loads runs its own first-party imports, so each is a read of that test. The gate uses `firstPartyModuleClosure`, attributed as `TEST (via MODULE)`. This brings in `scripts/invoked-as.mjs`, which `scripts/ci-shard-matrix.mjs` imports, and it gets a row. - The header states the bound: file reads and computed `import()`s inside a loaded module are not followed. - The walker module that the ui selector loads by a computed `import()`, `scripts/check-cross-package-test-inputs.mjs`, is a row above the heading, held by the pin. - Round 3, S5: the module closure reads TypeScript modules the way TypeScript resolves them. A `.js` specifier names its `.ts` source, an extensionless one gains the TS extensions or `/index.ts`, and a type-only `import type` / `export type` is not followed. Only a module the test loads is walked; a file a test reads as text (`readFileSync`) is a read, and what it imports is not. The third subject's `firstPartyModuleClosure`, which stages runnable copies, is unchanged. - Round 3: a module reached only through a declared trade-off inherits it, and `--list` reports it as a trade-off. `packages/mcp/src/skill-md.ts` loads `./ask-skill.generated.js`, which is a `.ts` on disk, and the `mcp-http-tools.ts` closure. Those 9 modules are now listed under the mcp trade-off, and the ci.yml trade-off comment names them. A module that a test also loads directly still needs its own row. - Measured on this head: 25 reads outside `ui/`. 15 are covered by `ui` or `ui_consumers`. The other 10 are `packages/mcp/src/skill-md.ts`, the declared trade-off, and the 9 modules that inherit it. - The rows sit in a reads group at the end of the `ui:` list, under a `UI TEST READS OUTSIDE ui/` heading. The gate holds that group to the reads in both directions. - Rework N3: a trade-off's reason now runs over its continuation comment lines. - **The ui selector** (`ui/scripts/select-affected-tests.mjs`) treats a `new URL(literal, import.meta.url)` that leaves the tree as a disk read. The test goes to the always-on lane, as M1 asked to verify. - Measured with `--explain` on a probe diff that touches only the platform pack: the always-on count goes from 525 to 526, and the one addition is `metadata-form-option-names.test.ts`. - **objectstack-ai#38132: a new sixth subject pins how ci.yml schedules the ui jobs** against `scripts/ci-filter-parity.ui-pin.json`. Every part is held EXACTLY, as a ratchet (rework S2): - the paths-filter step's `with:` keys; - the `filter` outputs the ui jobs read; - the rows of `ui` (above the reads group) and of `ui_consumers`. A row gone reds as missing, and a row added reds as unpinned until the pin names it, so its later removal is caught; - the `if:` of every job that reads a ui output, 9 jobs, compared in CNF: - A clause added, a disjunct dropped or an atom rewritten reds as narrowed. - A clause dropped or a disjunct added reds as wider than the pin. - Rework S1: a condition with no status function carries GitHub's implicit `success()` clause. Dropping `!cancelled()` or `always()` is therefore a narrowing. - A ui job with no pin is red, and so is a pinned job that is gone. No job's `if:` is changed. - Rework N2: the header bounds now name the workflow's own `on:` `paths`, `paths-ignore` and `branches` filters as not judged. - **objectstack-ai#38134: `deriveCandidates()` in `ui/scripts/markdown-test-inputs.mjs` admits markdown read outside `ui/`**, not only `content/docs`. - Rework S3, narrowed: an out-of-tree document is a candidate only when the root `ci.yml` `ui:` filter covers it, so any change to it starts the job that runs this ledger's test. A root `README.md` or `CHANGELOG.md` that a test only names can no longer red the next ui PR. - The root-noise `notRead` entries from round 1 (58 of them, plus two entries that existed only for them) are gone. - A new test pins every `../` entry in the ledger to a `ui:` row. - The reads that objectstack-ai#38134 surfaced stay adjudicated: the ADR-0084 read, the `CONTRIBUTING.md` read and the `../skills/objectui/**` reads. - Rework N1: the redundant `monorepoRoot` default is now `path.dirname(root)`. - Round 3, N5: the admission reads both lists that the ui test job ORs, `ui:` and `ui_consumers:`, so a markdown read under a `ui_consumers` subtree reaches the ledger. - The monorepo root is now a fallback base. A fragment that one of the test's own directories already resolves inside `ui/` means that document, not a same-named one at the root. - One fixture literal in `check-doc-links.test.ts` is recorded as `notRead`. - Round 3, N6: the self-test reads the reads group from the `filters:` string, as the gate does. ## Tests - `node scripts/check-ci-filter-parity.mjs --self-test`: 232 assertions. Battery (12) has 48 cases and (13) has 43, at those floors. - Round 3, in (12): - a `.ts` module's `./dep.js` import walked to its `.ts` source, with the type-only import skipped; - a module read as text not walked; - a traded-off module's import inheriting the trade-off, but not when a test loads it directly; - the real `ask-skill.generated.ts` inheriting the mcp trade-off; - the dropped mcp trade-off reporting skill-md and all 9 modules it loads. - Round 3 ablations, each mutated on disk and then restored with `cmp`. Every one turns the self-test red: - the closure walked back to `.js`/`.mjs` only: 3 assertions; - type-only imports followed: 2; - text reads walked: 11; - trade-off inheritance removed: 12. - New in (12): - a scratch `new URL` import read with its module's import attributed through it; - a directory literal read as nothing; - an unresolvable module import refused; - a synthetic literal ignored; - the platform pack and `invoked-as.mjs` read on the real tree; - both new rows rolled back off the real ci.yml, each reported by path; - the multi-line trade-off reason. - New in (13): - a row added reds as unpinned, goes green once pinned, and reds as missing when removed after that; - the walker-module row pinned; - the reads-group rows kept out of the pin; - a dropped conjunct reds as wider; - the implicit `success()` clause, with `!cancelled()` and `always()` dropped, an absent `if:`, and `always()` rewritten to `!cancelled()`; - `!cancelled()` dropped from the real `test-ui-plan` job reds it. - Gate-code ablations, each mutated on disk, run, then restored and checked with `cmp`. Every one turns the self-test red: - escaping literals removed: 8 assertions red; - module closure removed: 8; - implicit `success()` limited to an absent `if:`: 4; - unpinned-row detection removed: 1; - wider-condition detection removed: 2; - trade-off continuation removed: 1. - `ui` vitest, `markdown-test-inputs.test.ts`, `select-affected-tests.test.ts` and `check-pending-changeset-literals.test.ts`: 3 files, 110 of 110 pass. - Round 3 ablation: reading `ui:` alone and dropping the fallback base reds 2 tests. The S3/N5 scratch case reds on its `ui_consumers` document, and the ledger audit reds on the root `packages/core/README.md` noise. - The S3 ablation, the out-of-tree filter removed, reds the ledger test and the S3 scratch case. - The selector ablation, the `new URL` rule removed, reds `makes the closure unbounded`. ## Acceptance notes - Rework N4, the pin file on the governed register, is **not in this push**. Adding the row to `GOVERNED_SURFACES` reds `check:pm-governed-merges` and `check:pm-governed-prose`. Those gates require the governed-surface lists in `AGENTS.md` and `.claude/skills/pm-dispatch/SKILL.md` to name it, which makes this a fleet-rule change (`Rule-change: yes`). It is left for the seat to route. - `ui/scripts/check-pending-changeset-literals.mjs` matches only the `ui/.changeset/` prefix. It goes to the seat as a follow-up card and is not filed here. - The bounds of both subjects are stated in the gate header. ## Verification Run `node scripts/check-ci-filter-parity.mjs --list`. Expect each of the 25 reads outside `ui/` printed `ok` (the mcp ones as `trade-off`), then `ok the paths-filter input, the ui outputs, the pinned rows and every ui job condition hold`. Read first, by risk: 1. `scripts/check-ci-filter-parity.mjs`, `conditionClauses` (the implicit `success()` clause) and `judgeUiScheduling` (the exact ratchet). 2. `scripts/check-ci-filter-parity.mjs`, `uiRootReadsOf` / `moduleReadClosure` / `inheritedTradeOff` (escaping literals, the TypeScript-aware closure and trade-off inheritance). 3. `ui/scripts/markdown-test-inputs.mjs`, the `ui:` / `ui_consumers:` admission and the fallback base in `deriveCandidates()`. <details><summary>Local gates, at head 230afe6</summary> - The gate set comes from `dispatch-gates --commands --repo objectstack-ai/objectstack`, which derived 75 families from the tree at `230afe66db`, after merging origin/main because the first derivation reported a stale tree. The `--ran` reconciliation shows 75 derived, 75 run and 0 unrun. - 70 families exit 0, among them `check:ci-filter-parity` (both legs, 232 assertions; the gate reports 25 reads covered or traded off and the pin held exactly), `check:cross-package-test-inputs`, `check:pm-dispatch-gates`, `check:nul-bytes` and `check:required-contexts`. - NOT MEASURED: `check:dts-closure`, `check:dual-build-cjs-loads`, `check:lean-entry-closure` and `check:sourcemap-no-sources-content`. Reason: each exits 3 with PREREQUISITE NOT MET because this worktree has no built `dist/`. The diff touches no package, and Build Core runs all four in CI. - `ui` `vitest run scripts/` on the shared box: 150 files pass and 22 fail, the same 22 files as last round. All need build output this worktree lacks: `@objectstack/spec` subpaths or built ui packages. - None of the failures is in the three test files this diff changes. - Test UI in CI is the reading of record. - `overlap-check --branch=HEAD --base=origin/main`: VERDICT clean, exit 0. The branch also merges cleanly with objectstack-ai#38331, which shares ci.yml. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW)_ <!-- signed: repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Part of #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 #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 #38087 comment 7238262118: theREQUIRED_CONTEXTSrow merges first, then the maintainer addsTemporal Conformance (live PG + MySQL)to themainruleset the same day. This PR does not edit the ruleset.维护者速读
Temporal Conformance (live PG + MySQL),否则检查会报设置不一致。What changes
scripts/check-required-contexts.mjsREQUIRED_CONTEXTSrow:ci.yml,temporal-conformance,Temporal Conformance (live PG + MySQL). Itsauthorizednames ruling 7238262118 and the queue reading 7237905765. Itscarriesnames the driver-sql suite against both live servers plus the non-SQL temporal backends, and says theif:skips the job onpull_requestand runs it on amerge_groupentry only when the diff hitstemporal_live. Same row shape as theDogfood Regression Gaterow (ci(required-contexts): register Dogfood Regression Gate as a required context again #31133).Returned:lines, Dogfood's and this one (ruling 7146156389 put the leg on the queue; ruling 7238262118 re-enrolled the row).statesTheSetsurfaces'mustNamegainTemporal Conformance (live PG + MySQL). The two history comments read11→12 by #38087.(live PG + MySQL)suffix ⇒ red, namingtemporal-conformanceand the context. The 2026-08-18 ruleset-snapshot comment now says both contexts 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 dropped are pinned again; the assertion stays derived.AGENTS.md(merge-queue rule): the required-set list namesTemporal 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 onmain; it now says it is required again and names both returns. Thetemporal-conformanceheader and itsif:comment say the name is pinned again and that a skip publishesskipped, 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: filteronly).scripts/pm/check-expected-skips.mjs: the frozen fixture tree and the derived roster (see Acceptance notes).docs/audits/gate-census-2026-09.mdandcross-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 lineci.yml:temporal-conformance → 'Temporal Conformance (live PG + MySQL)'.Acceptance notes
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 namingTemporal 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 theLive required-set sweepadds one warning annotation and pages nobody. Nothing here works around it.AGENTS.mdand the docs already describe the state after the edit, the convention of theDogfood Regression Gate,Test UIandLive E2E UIrows.check-expected-skips's derived reason for this job says "answered by the merge-queue build", which is true only on an entry that hitstemporal_live; it hedges with "plus 2 further condition(s) the recogniser does not read". Noted on ci: the live PG + MySQL merge-queue leg (ruling B of #36614): read its observation window, finish the companion edits, then the maintainer decides the required set #38087 in the previous round; not filed (the area is closing).Verification
scripts/check-required-contexts.mjs— the newREQUIRED_CONTEXTSrow and the rewritten tombstone block above it; then theAGENTS.mdmerge-queue paragraph.node scripts/check-required-contexts.mjsshould print12 required context name(s)and end withci.yml:temporal-conformance → 'Temporal Conformance (live PG + MySQL)'.local gates: 82 derived, 77 exit 0, 5 NOT MEASURED (heads 4eceaab and e4f2798)
dispatch-gates --commandsderived 82 families at4eceaabb0c;--ranate4f279813e: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.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'sLint & Repo Gatesruns them. Declared narrowing.origin/mainwith none of them touching what it derives from, somainwas not merged.overlap-check:VERDICT clean exit 0(origin/main4997cae and ci(filter-parity): judge every ui test read outside ui/, pin the ui scheduling, and admit every out-of-tree markdown read #38286, which sharesci.yml, both merge cleanly).e4f279813echanged one line ofreadings-ci.mdafter the first run started, so the 20 families derived for that file alone were run again one4f279813e(all exit 0), andcheck:pm-dispatch-gateswas run again there:✓ dispatch-gates self-test (fast tier): 2385 cases pass, exit 0.Rerun on
e4f279813e(the familiesreadings-ci.mdderives):Generated by Claude Code