Skip to content

ci: temporal_live covers every source the live tests load, held by a closure gate - #38560

Merged
os-zhuang merged 6 commits into
mainfrom
claude/issue-38528-temporal-live-filter
Nov 29, 2026
Merged

os-zhuang merged 6 commits into
mainfrom
claude/issue-38528-temporal-live-filter

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #38528

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用户无感;合并队列里,凡是改到实时数据库测试实际依赖的源码的条目,都会先跑实时数据库一致性检查,再进主干。
  • 为什么做:修掉主干变红的根因(实时数据库测试的触发名单只列了测试本身,没列它们加载的源码,一次改动因此绕过检查合入,主干随即变红)。
  • 出错会怎样:最坏是队列多跑一个约十分钟、与其它检查并行的作业(近三百个条目里约三成会触发,原来约百分之六);新守卫若误报只会让检查线变红,整个改动可直接撤回。
  • 要你做的:审批(本改动触及受治理的流水线文件,须你批准后由席位落地)。

The measured closure, row by row

node scripts/check-temporal-live-filter.mjs --list at the PR head. The population is read out of the temporal-conformance job: every step that hands a test run OS_TEST_POSTGRES_URL / OS_TEST_MYSQL_URL (positional-selected files are live; in a whole-suite step a test is live when its own closure reads one of those URLs), plus every *live-postgres* / *live-mysql* test. 164 live tests: 125 driver-sql matrix files, 22 service-analytics files, 9 metadata-protocol files, 7 knowledge-pgvector files, 1 runtime file. The derivation reproduces the 22 service-analytics files the list used to name by hand, exactly.

The closure is every file vitest loads for those tests: the test package's real resolve.alias (loaded from its vitest.config.*), dist/ imports followed to the src/ the job's build steps compile, relative imports, the config itself and its setupFiles / globalSetup. "Example test" names one live test that loads a file under the row, and the file it loads.

Row New? Closure files Live tests loading it Example test (file it loads)
packages/plugins/knowledge-pgvector/** kept 13 7 plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts (plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts)
packages/drivers/driver-sql/** kept 188 150 plugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts (drivers/driver-sql/src/index.ts)
packages/runtime/src/**/cascade-delete-multivalue-lookup-real-driver* kept 1 1 runtime/src/cascade-delete-multivalue-lookup-real-driver.integration.test.ts (runtime/src/cascade-delete-multivalue-lookup-real-driver.integration.test.ts)
packages/services/service-knowledge/src/** new 20 7 plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts (services/service-knowledge/src/index.ts)
packages/metadata-protocol/src/** new 165 34 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts)
packages/metadata-protocol/package.json new 1 25 plugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts (metadata-protocol/package.json)
packages/services/service-analytics/src/** new 74 22 services/service-analytics/src/__tests__/analytics-faces-one-lowering.test.ts (services/service-analytics/src/__tests__/analytics-faces-one-lowering.test.ts)
packages/core/src/** new 137 154 plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts (core/src/index.ts)
packages/objectql/src/** new 188 25 plugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts (objectql/src/index.ts)
packages/types/src/** new 37 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (types/src/index.ts)
packages/formula/src/** new 26 26 plugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts (formula/src/index.ts)
packages/metadata/src/** new 35 26 metadata-protocol/src/migrations/identity-index.live-postgres.test.ts (metadata/src/errors.ts)
packages/metadata-core/src/** new 41 155 metadata-protocol/src/migrations/identity-index.live-postgres.test.ts (metadata-core/src/index.ts)
packages/metadata-fs/src/** new 6 25 plugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts (metadata-fs/src/index.ts)
packages/lint/src/** new 170 25 plugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts (lint/src/runtime.ts)
packages/sdui-parser/src/** new 10 25 plugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts (sdui-parser/src/index.ts)
packages/observability/src/** new 8 149 plugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts (observability/src/index.ts)
packages/services/service-settings/src/** new 47 6 plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts (services/service-settings/src/index.ts)
packages/plugins/embedder-openai/src/** new 1 6 plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts (plugins/embedder-openai/src/index.ts)
packages/platform-objects/src/system/** new 20 6 plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts (platform-objects/src/system/index.ts)
packages/drivers/driver-sqlite-wasm/src/** new 5 1 services/service-analytics/src/__tests__/objectql-echo-bucket-enumeration.test.ts (drivers/driver-sqlite-wasm/src/index.ts)
packages/spec/src/*.ts new 3 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/stack.zod.ts)
packages/spec/src/ai/** new 25 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/ai/object-query-source.zod.ts)
packages/spec/src/api/** new 39 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/api/index.ts)
packages/spec/src/automation/** new 34 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/automation/node-executor.zod.ts)
packages/spec/src/contracts/** new 57 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/contracts/rls-membership-resolver.ts)
packages/spec/src/conversions/** new 132 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/conversions/walk.ts)
packages/spec/src/data/** new 126 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/data/index.ts)
packages/spec/src/identity/** new 13 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/identity/identity-assignment-body-writes.ts)
packages/spec/src/integration/** new 3 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/integration/connector.zod.ts)
packages/spec/src/kernel/** new 49 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/kernel/metadata-protection.zod.ts)
packages/spec/src/marketplace/** new 3 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/marketplace/marketplace.zod.ts)
packages/spec/src/meta-spelling/** new 4 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/meta-spelling/metadata-url-spelling.ts)
packages/spec/src/qa/** new 2 154 plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts (spec/src/qa/index.ts)
packages/spec/src/security/** new 13 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/security/index.ts)
packages/spec/src/shared/** new 42 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/shared/refusal-head.ts)
packages/spec/src/system/** new 57 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/system/index.ts)
packages/spec/src/ui/** new 53 162 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (spec/src/ui/view.zod.ts)
packages/spec/package.json new 1 155 metadata-protocol/src/migrations/identity-index.live-postgres.test.ts (spec/package.json)
packages/metadata-protocol/vitest.config.ts new 1 9 metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts (metadata-protocol/vitest.config.ts)
packages/runtime/vitest.config.ts new 1 1 runtime/src/cascade-delete-multivalue-lookup-real-driver.integration.test.ts (runtime/vitest.config.ts)
packages/services/service-analytics/vitest.config.ts new 1 22 services/service-analytics/src/__tests__/analytics-faces-one-lowering.test.ts (services/service-analytics/vitest.config.ts)
packages/qa/vitest-filter-preflight/src/** new 2 1 runtime/src/cascade-delete-multivalue-lookup-real-driver.integration.test.ts (qa/vitest-filter-preflight/src/index.ts)
packages/runtime/src/expected-read-refusal-noise.ts new 1 1 runtime/src/cascade-delete-multivalue-lookup-real-driver.integration.test.ts (runtime/src/expected-read-refusal-noise.ts)
scripts/vitest-memory-tmp.mjs new 1 126 drivers/driver-sql/src/live-dialect-matrix.budget.test.ts (scripts/vitest-memory-tmp.mjs)
scripts/js-comment-mask.mjs new 1 1 drivers/driver-sql/src/live-dialect-matrix.isolation.test.ts (scripts/js-comment-mask.mjs)
scripts/invoked-as.mjs new 1 1 drivers/driver-sql/src/live-dialect-matrix.isolation.test.ts (scripts/invoked-as.mjs)
scripts/check-temporal-live-filter.mjs new 0 0 not a closure file (the list's own trigger)
.github/workflows/ci.yml kept 0 0 not a closure file (the list's own trigger)

Totals: 164 live tests, 1858 closure files, 49 rows; removed rows: 25

Why each grain:

  • A package's src/** where the closure enters through the package barrel. The barrel re-exports nearly every module (core 137 of 143 non-test modules, objectql 188 of 194, lint 170 of 171, metadata-protocol 155 of 163), so a file-by-file list would go red on the next re-export. These rows are narrower than packages/PKG/**: manifests, configs, scripts and docs outside src/ do not trigger the job.
  • packages/spec/src/ per namespace, not src/**. src/migrations/ (1,270 of 1,947 non-test modules, the conversion kits) and src/studio/ are in no closure. The 16 namespace directories the barrel reaches are listed, plus src/*.ts for the barrel and its root modules.
  • A narrower directory where a test reaches one corner of a package: platform-objects/src/system/**, the 20 objects KnowledgeServicePlugin registers.
  • A literal path for a single file: the three vitest configs outside a src/** row, spec/package.json and metadata-protocol/package.json (imported as JSON), runtime/src/expected-read-refusal-noise.ts, and the three root scripts the configs and driver-sql's isolation test import.
  • Removed rows (25), each now covered by a wider row: service-knowledge/src/testing.ts (by service-knowledge/src/**), the two metadata-protocol/src/**/*live-* globs (by metadata-protocol/src/**), and the 22 per-file service-analytics rows (by service-analytics/src/**). That also retires the "a NEW such file must be added here by hand" step those rows carried.

Other live-tier filters: no other filter in ci.yml schedules a live-server job. The ui group's reads below its "UI TEST READS OUTSIDE ui/" heading are already held both ways by check:ci-filter-parity. The guard covers temporal_live only.

Dry run (dorny/paths-filter semantics)

picomatch 4.0.7 (from the workspace store) with { dot: true }, the options dorny/paths-filter@v4 uses. A file matches when any row matches. The rows were parsed out of ci.yml at each ref.

0af813f301   NO MATCH packages/core/src/capability-composition.ts
0af813f301   NO MATCH packages/services/service-knowledge/src/knowledge-service-plugin.ts
0af813f301   NO MATCH packages/metadata-protocol/src/migrations/seed-tenancy-backfill.ts
0af813f301   NO MATCH packages/spec/src/data/field.zod.ts
0af813f301   NO MATCH packages/runtime/src/route-ledger.ts
0af813f301   NO MATCH packages/spec/src/migrations/registry.ts
0af813f301   NO MATCH README.md
ac3dc229a4   MATCH    packages/core/src/capability-composition.ts
ac3dc229a4   MATCH    packages/services/service-knowledge/src/knowledge-service-plugin.ts
ac3dc229a4   MATCH    packages/metadata-protocol/src/migrations/seed-tenancy-backfill.ts
ac3dc229a4   MATCH    packages/spec/src/data/field.zod.ts
ac3dc229a4   NO MATCH packages/runtime/src/route-ledger.ts
ac3dc229a4   NO MATCH packages/spec/src/migrations/registry.ts
ac3dc229a4   NO MATCH README.md

Cross-check of the gate's own matcher against picomatch, over every tracked file: all 28,936 tracked files at the head; picomatch matches 5,072 of them; the gate's literal / * / ** matcher agrees on 28,936 of 28,936, 0 disagreements. Any row syntax outside that subset is refused by the gate, never guessed.

Ablation

The fix was committed first. One new row was deleted on disk at a time, the gate was run, and the file was restored with git checkout HEAD --.

$ (head ac3dc229a4, row 'packages/core/src/**' deleted on disk: 0+/1-) node scripts/check-temporal-live-filter.mjs
✗ check-temporal-live-filter: 137 workspace file(s) a live test loads are on no `temporal_live` row (164 live test(s), 1858 closure file(s)):
  packages/core/src/capability-composition.ts
      loaded by 154 test(s), e.g. packages/drivers/driver-sql/src/live-dialect-matrix.budget.test.ts -> packages/drivers/driver-sql/src/index.ts -> packages/drivers/driver-sql/src/sql-driver.ts -> packages/core/src/index.ts -> packages/core/src/capability-composition.ts
exit 1

$ (head ac3dc229a4, row 'packages/services/service-knowledge/src/**' deleted on disk: 0+/1-) node scripts/check-temporal-live-filter.mjs
✗ check-temporal-live-filter: 20 workspace file(s) a live test loads are on no `temporal_live` row (164 live test(s), 1858 closure file(s)):
  packages/services/service-knowledge/src/knowledge-service-plugin.ts
      loaded by 6 test(s), e.g. packages/plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts -> packages/services/service-knowledge/src/index.ts -> packages/services/service-knowledge/src/knowledge-service-plugin.ts
--
  packages/services/service-knowledge/src/testing.ts
      loaded by 1 test(s), e.g. packages/plugins/knowledge-pgvector/src/__tests__/contract.live-postgres.test.ts -> packages/services/service-knowledge/src/testing.ts
exit 1

$ (restored with git checkout HEAD --) node scripts/check-temporal-live-filter.mjs
✓ check-temporal-live-filter: every workspace file the 164 live test(s) load (1858 file(s)) is on a `temporal_live` row of .github/workflows/ci.yml (49 row(s)).
exit 0

What changes

  • .github/workflows/ci.yml, in three places:
    • The temporal_live filter gains the rows above, the subsumed rows go, and the comment above the list says what the list must cover and which gate holds it.
    • Build Core gains one step before the build: node scripts/check-temporal-live-filter.mjs --self-test && node scripts/check-temporal-live-filter.mjs.
    • A core row for the gate starts Build Core on a change to the gate itself, which is what check:ci-filter-parity requires of a script Build Core runs.
      No other job, step or if: changes.
  • scripts/check-temporal-live-filter.mjs (new): the guard. It walks each live test's run-time import closure the way vitest resolves it. It goes red on any closure file that no temporal_live row matches, and names the import chain. --list prints each closure and the row that covers each file. --match PATH... answers whether a path schedules the job. --self-test runs 7 named batteries with pinned floors and the verdict handshake (AGENTS.md "Writing a --self-test"); battery 7 pins the Build Core step and the core row. The gate refuses, never passes clean, when its subject was not read. Its header has the full list of refusals and the bounds.

Why Build Core and not a Lint · * lane: the claim's file surface was narrowed to ci.yml and the guard. The house pattern (a root check:* alias plus a lint.yml step, like check:ci-filter-parity) needs two files outside that surface, so it is not used here. Build Core is in the required set. It starts on every diff that can move a closure or the list (packages/**, ci.yml, the gate itself). It installs the workspace the gate needs to load vitest configs. Moving the step to a lint lane later is a two-file follow-up; Acceptance notes has the details.

Why

Temporal Conformance (live PG + MySQL) never runs on pull_request. On a merge_group entry it runs only when the diff matches temporal_live. The list named the live test files but not the sources they load from other packages. An entry that changed only packages/core/src/capability-composition.ts skipped the job in the queue, landed, and turned main red.

Tests

All readings at head ac3dc229a4 unless stated otherwise.

  • node scripts/check-temporal-live-filter.mjs --self-test: exit 0, ✓ check-temporal-live-filter self-test: 59 case(s) across 7 batteries hold. The batteries cover the matcher (including refused syntax), reading ci.yml (rows, live steps, 10 refusals), edges (parser rather than regex: import type erased, strings and comments ignored, dynamic import and require), resolution (alias first-match, prefix and RegExp, dist/ to src/, refusal on an unresolved target), the verdict over a fixture tree, the real tree, and the wiring.
  • node scripts/check-temporal-live-filter.mjs: exit 0, ✓ ... every workspace file the 164 live test(s) load (1858 file(s)) is on a temporal_live row ... (49 row(s)).
  • The same judge run against the base list (the 29 temporal_live rows of 0af813f301, read in memory over this tree): 1,623 of 1,858 closure files are on no row, over the same 164 live tests. packages/core/src/capability-composition.ts is among them, by the chain knowledge-pgvector/src/__tests__/capability-mount.live-postgres.test.ts -> core/src/index.ts -> core/src/capability-composition.ts. That is the main-red skip.
  • Ablation (above): deleting packages/core/src/** reds the gate on 137 files including capability-composition.ts. Deleting packages/services/service-knowledge/src/** reds it on 20 files including knowledge-service-plugin.ts and testing.ts. Restored: green.
  • Self-test ablation, at fc5b37fd97: with packages/core/src/** deleted, the self-test also goes red on ✗ a change to packages/core/src/capability-composition.ts alone matches a temporal_live row.
  • Matcher cross-check against picomatch 4.0.7: 0 disagreements over 28,936 tracked files (above).

Acceptance notes

  • Queue cost (advisory, not a gate). Over the last 300 first-parent commits of main ending at 0af813f301 (2026-11-27 to 2026-11-29), picomatch 4.0.7: the old list matched 18 (6.0%), the new list matches 109 (36.3%). The job's duration does not change: one sample is 467 s on queue run 46233875645 and another is 684 s on main push run 46233316717. The job runs in parallel with the rest of the queue build. The queue baseline in scripts/ci/queue-budget.json is p50 21.7 min. The queue's before/after median is NOT MEASURED: it needs a week of queue runs after the merge, which queue-duration-budget.yml reads weekly.
  • Ruling it widens. Ruling record 7146156389 accepted the queue leg on path hits for the knowledge-pgvector package, packages/drivers/driver-sql, the job's own test files and the workflow, and 7238262118 read that other PRs skip it. This head adds source rows for 16 more packages, so the maintainer's word on the reach is asked at hand-off. Contract review 7254558729 ③ 3 measured 298 merge_group runs. Temporal Conformance is required and was never the last-finishing required check. In the 16 runs where it ran, it finished 389–1,336 s before the slowest other required job. Of the 116 entries the new list matches (38.9%), the 99 with a successful run had their slowest other required job finish at 1,086 s or later, against its observed maximum of 826 s. The cost is runner time (about 100 more runs of about 10 min per 298 entries) and exposure (a red in this job now ejects about 39% of entries, not 5%).
  • Build Core cost (advisory). One step is added: the self-test, then the gate. It took 58 s wall locally on a shared 4-vCPU box at load average about 2; the closure walk runs twice, once in the self-test's real-tree battery and once in the gate. It needs no dist/.
  • Wiring placement, and the follow-up. The house pattern for a repository gate is a root check:* alias plus a step in a Lint · * lane of lint.yml, as check:ci-filter-parity is wired. Both files are outside this PR's file surface. Without CI wiring, check:self-test-wired (part of Lint & Repo Gates) goes red on this script ([self-test-not-run] scripts/check-temporal-live-filter.mjs, measured on this branch). The step therefore lives in Build Core, which ci.yml owns. Moving it to a lint lane is a two-file follow-up (package.json alias, lint.yml step), with battery 7 re-pointed in the same edit.
  • Over-scheduling, the accepted direction. A src/** row also matches that package's own test files, so a test-only edit in core/src now starts the live job in the queue. The spec namespace rows keep src/migrations/ and src/studio/ out. If a live test starts importing either, the gate goes red and names the file.
  • Guard bounds (header of the script): it reads module loads only, so a file a test reads with readFileSync is not counted (that axis is check:cross-package-test-inputs'). A non-literal import() is not followed. Third-party code is not followed. It never reports a row as too wide.
  • Not in this PR. packages/metadata-protocol/src/migrations/activation-ledger-packageless-index.live-dialects.test.ts reads both live URLs, but its name carries neither live-mysql nor live-postgres. So the metadata-protocol live step (vitest run live-mysql live-postgres) never selects it, and its live cells are named skips everywhere in CI. Not changed here. Carrier: metadata-protocol activation-ledger live-dialects test is never handed a live server: its path matches neither CI selector live-mysql live-postgres #38561 (filed by the area at the seat's request, on pm:queue, not claimed).
  • Carried, contract review nits N1 and N3 (build inputs of closure packages on no row; a live step that selects no test is dropped silently): check-temporal-live-filter: build inputs of closure packages (package.json, tsup config) are on no temporal_live row, and a live step that resolves to no test is dropped silently #38570, on pm:queue, not claimed.
  • The Main red: Temporal Conformance (live PG + MySQL) fails capability-mount.live-postgres.test.ts since #38470 #38514 pin (PR test(knowledge-pgvector): the live PostgreSQL pin reads the runtime-composed mark beside the deployment store #38523) has landed on main and is merged into this branch. This PR does not touch it.

Verification

Read first, by risk:

  1. .github/workflows/ci.yml, the temporal_live block: the hunk that changes what the merge queue runs.
  2. scripts/check-temporal-live-filter.mjs, liveStepsOf / candidatesOf: the population is derived from the job's steps. A misread there narrows what the guard judges.
  3. scripts/check-temporal-live-filter.mjs, closureOf / workspaceSource: the resolution rules.

Two-minute check: node scripts/check-temporal-live-filter.mjs --match packages/core/src/capability-composition.ts prints MATCH, names the row packages/core/src/**, and exits 0. Then delete that row and run node scripts/check-temporal-live-filter.mjs: it exits 1 and names capability-composition.ts with its import chain.

Gates, local subset at head ac3dc229a4:

  • node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 66 families from this tree.
  • All 66 ran in one hold of the verify lock: VERDICT command-exit 0 · held the lock 1801s. Each exit code was captured before any pipe.
  • --ran: Run reconciliation — 66 derived, 66 run, 0 NOT-MEASURED, 0 UNRUN.
  • check:nul-bytes: OK.
  • An earlier round on 2092fb3793 went red on three families: check:parse-guard (a raw ts.createSourceFile), check:pnpm-filter-targets (fixture --filter names that are not workspace packages) and bare-root-worklist --self-test (an undeclared bare population root). All three were fixed in e0de164758 and are green above.
  • The repo-wide pnpm lint, Test Core and the rest of the CI battery belong to CI; their check-runs were not available when this body was written (NOT MEASURED).
The 66 commands and their exit codes
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-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-temporal-live-filter.mjs :: exit 0
node scripts/check-temporal-live-filter.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
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:driver-memory-census :: exit 0
pnpm check:dts-closure :: exit 0
pnpm check:dual-build-cjs-loads :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:fetch-history :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:lean-entry-closure :: exit 0
pnpm check:node-version :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: 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-issue-transfer :: exit 0
pnpm check:pm-post-stamped :: exit 0
pnpm check:pm-record-recognisers :: 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:sourcemap-no-sources-content :: exit 0
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

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No spec change.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (CI-owned run.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (Publishes nothing: skip-changeset.)
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (Not touched.)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

Generated by Claude Code

…al_live list (wip)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn
…eck:temporal-live-filter

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn
…nt lane

The gate and its self-test run as one Build Core step, and a core row starts
Build Core on a change to the gate. The root package.json alias and the lint.yml
step are withdrawn.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn
…lation, and names real packages in its fixtures

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Final green head · 2026-11-29T09:57Z · area o5-fleet

  • Head-sha: ac3dc229a47b269b44ad6877aeb15069dcd9aa89
  • Fixes #38528, route 1. temporal_live in ci.yml is rewritten to 49 rows that cover the measured run-time import closure of the 164 live tests the temporal-conformance job runs: 1,858 files, of which 1,623 matched no row at 0af813f301, capability-composition.ts among them. 25 subsumed rows are removed. The new scripts/check-temporal-live-filter.mjs derives the population from the job's live steps and fails on any closure file that no row matches. It runs as one Build Core step, plus a core filter row. os-dev report 7253935760 on ci: the temporal_live path filter misses the sources the live knowledge pins import, so a change to them skips the live job in the queue and turns main red #38528.
  • Ablations: deleting the packages/core/src/** row reds the guard with 137 files; deleting the service-knowledge row reds it with 20 files. The self-test has 59 cases in 7 batteries. The gate matcher and picomatch agree on all 28,936 tracked files.
  • 2 files, +1157 / −34. Checks at that head: 37 success · 17 expected skip · 0 failed · 0 pending. mergeable_state clean.
  • Gates: 66 derived, 66 run, 0 NOT MEASURED.
  • Landing tier: check-governed-merges --pr 38560 reads GOVERNED, Tier S by content (.github/workflows/** split, ruling record 6722205630, letter C). It lands through the seat once a contract-tier review PASS is on this head.
  • Open for the seat's hand-off: the live job now starts on about 36% of queue entries instead of 6% (the true closure: spec, core and objectql sit in almost every live test's closure).
  • Carrier: metadata-protocol activation-ledger live-dialects test is never handed a live server: its path matches neither CI selector live-mysql live-postgres #38561 (out-of-scope finding, class a).
  • Owed: a contract-tier review and L1.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb

席位核对 — L1 ACCEPT · head ac3dc22 · 2026-11-29T10:02Z

I read the diff at ac3dc22 (2 files, +1157/−34: ci.yml and the new scripts/check-temporal-live-filter.mjs) against the L1 checklist. Checks on this head: 37 success, 17 skipped, 0 failed. Build Core, which now runs the gate, and Lint & Repo Gates are green. Temporal Conformance is skipped here, as on every pull_request. The job's governed face and its wiring placement belong to the contract review.

Fixes #38528 holds. The card's acceptance asks for two things. First, a dry run showing that a change to packages/core/src/capability-composition.ts alone matches temporal_live. Second, a guard pinned by a test. Both are delivered:

  • The body's dry run gives NO MATCH at 0af813f and MATCH at this head.
  • The guard's --self-test battery 6 asserts the same match.

Measured by me, in a worktree at this head:

  • node scripts/check-temporal-live-filter.mjs is green: 164 live tests, 1858 closure files, 49 rows, about 28 s.
  • --self-test is green: 59 cases across 7 batteries.
  • --match packages/core/src/capability-composition.ts gives MATCH from packages/core/src/**.
  • packages/spec/src/migrations/registry.ts and packages/spec/src/studio/x.ts give NO MATCH, as the body says.
  • Two ablations of my own, each restored with git checkout, git status clean afterwards:
    • With packages/objectql/src/** deleted, the gate reds on 188 files and names the chain reconcile-purge.live-postgres → objectql/src/index.ts → action-activation.ts.
    • With packages/metadata-protocol/package.json deleted, the gate reds on 1 file and names the 7-hop chain down to discovery-version.ts → package.json.

Body and carriers.

  • The row table, the grain reasons and the 25 removed rows add up. Each removed row is subsumed by a wider src/** row, which also retires the old "add a NEW such file by hand" step.
  • The queue cost (6.0 % → 36.3 % of the last 300 main commits) is given as advisory with its method. The seat has already ruled on it: keep the breadth, and the maintainer sees it at hand-off.
  • The Build Core placement is reasoned, and the move to a lint lane is named as a two-file follow-up. The seat ruled: keep it in Build Core.
  • The misnamed activation-ledger-packageless-index.live-dialects.test.ts is carried on metadata-protocol activation-ledger live-dialects test is never handed a live server: its path matches neither CI selector live-mysql live-postgres #38561 (open; its title states the selector miss).
  • The 維護者速讀 is in plain words and asks for approval because the file is governed.

Two notes, neither a hold:

  • N1. The src/** grain leaves a package's manifest and build config out (the body says "manifests, configs … outside src/ do not trigger the job"). The guard follows module loads only, so it cannot see that axis. For example, my --match packages/objectql/package.json gives NO MATCH, but an exports or tsup change there alters the dist/ the live job builds and loads. That is the same skip-then-red shape as the card, on a much rarer path. I'm naming it so the contract review weighs it. Only spec/package.json and metadata-protocol/package.json are rows, because they are imported as JSON.
  • N2. The guard's population is the job's selector plus the *live-postgres* / *live-mysql* names. A future live test outside both is invisible to it, which is the metadata-protocol activation-ledger live-dialects test is never handed a live server: its path matches neither CI selector live-mysql live-postgres #38561 class. The body states this as a bound and gives the carrier.

ACCEPT. The PR is governed, so the seat lands it after the contract review.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ac3dc229a47b269b44ad6877aeb15069dcd9aa89
Local-runs: probe — one scratch git archive export of the head, nothing run in the shared tree: the guard, its self-test, its list and match modes; a build of the live tests' package closures and four live test files run under vitest 4.1.12 with load tracing (no server, live cells skipped); one in-memory probe set and one on-disk row ablation, restored byte-identical; eight repo gates. The brief asks for the guard run, a spot-check against vitest's real resolution and the script-rule gates, and none of the three can be read off the diff
Scope: .github/workflows/ci.yml + scripts/check-temporal-live-filter.mjs
Security-touching: no
Rule-change-verified: none

Read for this record: the PR body and its 2-file diff against merge-base d1a06a3d83 (ci.yml +113/−34, the guard +1044; ci.yml is unchanged on main between that base and main's tip ade59c025a); card #38528; the claim 7253110162; the os-dev report 7253935760; the green-head comment 7254123880; the L1 comment 7254172901; the root cause #38514; ruling records 7146156389 (the queue leg), 7238262118 (the required set) and 6722205630 (the workflows split), plus the split's rule text and reader in scripts/pm/check-governed-merges.mjs:632-664 and :2198-2251; the live ruleset of main (rules/branches/main); the 54 check-runs on this head and the steps of its Build Core job 141301165996; the 300 newest merge_group runs of ci.yml (298 completed, 2026-11-28T07:06Z to 2026-11-29T09:36Z, runs 46119654998 to 46248253669), each with its job list and its changed-file list (compare of the queue base against the group head).

① Derived judgments

  1. The 49 rows cover the closure the guard derives. In the export the guard exits 0: 164 live tests, 1,858 closure files, 49 rows. Its self-test exits 0: 59 cases in 7 batteries. Both match the body. The population by step is 125 driver-sql (whole suite, live by a URL read in the closure), 22 service-analytics (same), 9 metadata-protocol, 7 knowledge-pgvector and 1 runtime (selected by the step's positionals). The 22 analytics files equal the 22 rows the base list named by hand, exactly.
  2. The removed rows remove subsumed coverage only. With picomatch 4.0.7 (dot: true) over the 28,936 tracked files of the head: the base list (29 rows) matches 416 files, the head list 5,072, and no file the base list matches is unmatched at the head. Each of the 25 removed rows is also contained in a head row by construction: service-knowledge/src/testing.ts in service-knowledge/src/**, the two metadata-protocol/src/**/*live-* globs in metadata-protocol/src/**, the 22 analytics files in service-analytics/src/**. A hypothetical new file each old glob would have matched (metadata-protocol/src/new/dir/x.live-mysql.test.ts) still matches.
  3. The excluded spec directories stay out. No head row matches any of the 1,277 tracked files under packages/spec/src/migrations/, the 8 under src/studio/ or the 1 under src/api-assembled/ (the body names the first two only). No guard closure holds one. The independent check agrees: the source maps of every dist/ bundle the four traced tests loaded list no source under those three directories, and no traced test loaded one as source.
  4. The closure derivation matches vitest's real resolution on four tests. After turbo run build of the three package closures (22 tasks), I ran capability-mount.live-postgres and contract.live-postgres (knowledge-pgvector; the second is the one that loads service-knowledge/src/testing.ts, the first loads KnowledgeServicePlugin from service-knowledge/src/index.ts), objectql-echo-bucket-enumeration (service-analytics) and connector-connection-packageless-index.live-mysql (metadata-protocol) under vitest with a transform-hook trace and a node load-hook trace. Workspace source files vitest loaded that the guard's closure lacks: 0 of 815, 0 of 809, 0 of 241, 0 of 7. Every workspace dist/ file was inlined by Vite (none loaded natively by node), and the alias table did apply inside inlined dist/ code (in the knowledge-pgvector runs types/dist imports spec and no spec dist/ file was loaded), which is the header's claim. Sources bundled into the loaded dist/ files, read from their source maps (141, 75, 1,256 and 582 once the build's node-side: namespace prefix is resolved): all in that test's guard closure but one. packages/spec/src/data/driver/pg-url-grammar.browser.ts is bundled into the spec dist/ the analytics test loads and is in no guard closure, because spec's build swaps it in for the .server twin the source imports. The row packages/spec/src/data/** matches it, so nothing is unscheduled; nit N1 carries the cause. Otherwise the guard's closures are supersets (965, 891, 1,587 and 603 files), the safe direction.
  5. The guard derives its population from the job, not from a hand list. liveStepsOf reads the five steps of temporal-conformance that carry a live URL in env:, with their --filter packages and positionals; nothing in the script names a test file. It refuses, exit 1, on a step it cannot parse (probes: a step moved to npx, a --filter=NAME spelling), on the job no longer reading the filter output, on an unreadable row and on an empty total population.
  6. The self-test pins the card's defect. With the packages/core/src/** row deleted on disk in the export: the self-test exits 1 on "a change to packages/core/src/capability-composition.ts alone matches a temporal_live row", the gate exits 1 on 137 files, and --match of that path prints NO MATCH. Restored, cmp against the head blob is identical. In memory, deleting packages/spec/src/data/** gives 126 uncovered files.
  7. Script rules. In the export: check-parse-guard 0, check-self-test-wired 0, check-entry-guard 0, check-watch-hint-literal 0, check-self-test-workflow-commands 0, check-step-collectors 0. check-ci-filter-parity printed OK for the Build Core section ("all 15 script(s) the build-core job's own steps run ... are covered by core") and could not judge its ui/ section, which needs a git checkout; check-workflow-step-name-quoting needs one too. Both are green in CI on this head (Lint · CI, release & engine gates, Lint & Repo Gates). The guard parses through scripts/ts-parse.mjs (no raw createSourceFile), enters through invoked-as.mjs, declares its batteries with floors and the verdict handshake.
  8. CI wiring. The step (ci.yml:3489-3499) carries no if: and sits in Build Core, whose if: (ci.yml:3440) reads core: it runs on every merge_group, schedule and dispatch run, and on a PR or a push whose diff hits a core row. The core row at ci.yml:618 matches the guard's path, so a change to the guard alone starts Build Core. On this head the step ran 48 s inside a 7 min 20 s Build Core. The repo's own reader (classifyWorkflowChange, run in memory over the base and head texts) finds 21 jobs on both sides with equal names, equal needs:, equal if: (86 and 86), equal triggers, permissions, uses: and credential lines, no gate invocation dropped and two added. The set and the names of the required checks do not change. What changes is how often one of them, Temporal Conformance, runs and does not skip on a queue entry: the purpose of the PR.
  9. Restatement. No doc, ADR or comment restates the old list or an "only these files" premise. Every mention outside the hunk describes the mechanism ("a queue entry whose diff hits the temporal_live paths") and still reads true: ci.yml:137-140, ci.yml:355-361, ci.yml:2618-2622, docs/agents/multi-agent-discipline.md:140-142, scripts/check-required-contexts.mjs:382 and :510, scripts/pm/dispatch-gates.mjs:1218-1226. The three live assertions in scripts/pm/dispatch-gates.self-test.mjs:13871-13903 still hold on the new list (route-ledger.ts unmatched, packages/runtime reached into but not matched, driver-sql/** the first matching row), and that family is green in CI.

② Semver level

None. A workflow file and a repo script; no file under a published package changes, nothing publishes, and the PR carries skip-changeset.

③ Boundary flags

  1. Tier under the workflows split: S, no trigger. I ran the split's reader over the base and head ci.yml and it returns Tier S with no reason, the same as the seat's check-governed-merges --pr 38560 reading. ci.yml is not on the by-path list. Against the rule text (check-governed-merges.mjs:638-656): no permissions:, secret or token line is added, changed or moved; no new uses:; no deleted job, changed check-run name, needs:, if: or trigger; no continue-on-error; no added || true, set +e, exit 0 or OS_SKIP_-class token; no gate dropped. One reading to state: the text says "a changed job, step or workflow that holds a secret", and Build Core has one step that reads repository secrets. The reader binds a credential to the owner that spells it, which is that step, and that step is unchanged; the added step declares no env:. I read it the way the reader does.
  2. The breadth goes past what ruling record 7146156389 enumerated. That record lists the paths as "the knowledge-pgvector package, packages/drivers/driver-sql, the job's own test files and the workflow itself" and accepts "the extra merge-queue minutes on path hits". The option ruled in 7238262118 reads that PRs touching driver and knowledge files are held and "other PRs skip it". This head adds source rows for 16 more packages (core, objectql, types, formula, metadata, metadata-core, metadata-fs, lint, sdui-parser, observability, service-settings, embedder-openai, platform-objects, driver-sqlite-wasm, spec, vitest-filter-preflight) and widens three it already named (service-knowledge, metadata-protocol, service-analytics) from named files to src/**. That is not a Tier H trigger under the split, and it is the true closure (item ① 4), but it changes the reach those two rulings described. The contract review does not decide it. The seat owes the maintainer the measurement in item 3 before it lands this, and the PR body should cite 7146156389 as the record it widens.
  3. The breadth, measured. Quotable: Temporal Conformance is a required check (one of the 12 required contexts in main's live ruleset; a skip counts as passing). Can it be the last-finishing required check of a queue entry? No, in every run measured.
    • Read: the 298 completed merge_group runs of ci.yml from 2026-11-28T07:06Z to 2026-11-29T09:36Z.
    • It ran in 16 of them (5.4%); the base list predicts exactly those 16 from the entries' diffs (298 of 298 agree). The head list matches 116 of the 298 (38.9%). The dev's figures, 6.0% and 36.3% over 300 first-parent commits, agree with this.
    • Its own chain is filter only, then its own builds. It started 40 to 109 s after the run was created, ran 467 to 780 s (p50 585 s) and finished 509 to 826 s after creation (p50 631 s).
    • In those 16 runs the slowest other required ci.yml job (Test Core 11 times, Test UI 3, Dogfood Regression Gate 2) finished 1,086 to 1,852 s after creation. Temporal Conformance finished earlier in all 16, by 389 to 1,336 s.
    • Projected onto the head list: of the 116 entries it matches, 99 had a successful run. The slowest other required job in those finished at 1,086 s at the earliest (p10 1,390 s, p50 1,659 s). None finished before 826 s, the slowest Temporal Conformance observed. To be last on the fastest of them it would have to take 1.31 times its observed maximum.
    • Across all 275 successful runs, one (46238192881, a one-file entry the head list does not match) had its slowest other required job finish at 823 s, 3 s before that maximum. So the only pairing in the data where it could be last is a very light entry that also matches the list, and no entry is both.
    • Not measured: the three required checks outside ci.yml (TypeScript Type Check, Lint & Repo Gates, Governed Surface Queue Guard), which can only move "the slowest other" later; and the job's duration on entries that change spec, core or objectql source, which are most of the new 100. One of the 16 samples was such an entry (46149841225, 3 such files): its five build steps took 22 s in total against the remote cache and the job 629 s. The job's time is its two test legs (158 to 264 s and 212 to 364 s in the three jobs read), which do not depend on the diff.
    • What the breadth does cost: runner time, about 100 more jobs of about 10 minutes per 298 entries, and exposure, since a red or a stall in this job now ejects about 39% of entries, not 5%. In the 16 runs it was red once, the real regression of Main red: Temporal Conformance (live PG + MySQL) fails capability-mount.live-postgres.test.ts since #38470 #38514, and never flaked.
  4. Build Core gains 48 s on every run that starts it. Build Core is required and runs on every queue entry. Over the 275 successful queue runs it finished at p50 601 s, max 993 s, never within 497 s of the slowest required job, so the step is not on the queue's critical path.
  5. The PR is a draft at the time of this record (draft: true, 37 checks green, 17 skipped, none red).

④ Design judgment

No must-fix. No should-fix.

Nits. None moves the head; N1 and N3 deserve a carrier.

  • N1 (nit) — L1's note N1 is right: build inputs outside src/ are on no row and the guard cannot see them. ci.yml:890-900 and :912-930 (the src/** grain; only spec/package.json and metadata-protocol/package.json are rows, as JSON imports); scripts/check-temporal-live-filter.mjs:98-112 (the bounds list does not state it) and :462-482 (dist/x.js is mapped to src/x.ts, the build is assumed). --match packages/objectql/package.json prints NO MATCH; so do packages/core/tsup.config.ts, the root tsup.config.ts and pnpm-lock.yaml (the last is a stated bound). It is real: the traced tests load the dist/ of 15 packages, spec among them, and packages/spec/tsup.config.ts:437 with :495-542 swaps one import target at build time, a resolution no source walk shows (item ① 4: one loaded file the guard does not derive, matched today only because its row is a directory). It is the card's skip-then-main-red shape on a rarer path. Graded a nit here for three reasons: it is outside the card's acceptance ("any source a live test imports") and is no regression; in the 298 entries read, none changed a manifest, tsup config or tsconfig of the 22 closure packages without also matching the head list (4 changed the lockfile only); and the same entry's Test Core builds and loads the same dist/ in the queue, so only a break confined to a live cell gets through. The remedy widens the list again, so it belongs with the breadth answer of ③ 2: a follow-up card for rows on those packages' package.json and tsup.config.ts plus the root tsup.config.ts, derivable in the guard from the packages it reaches through dist/, and the bound added to the header.
  • N2 (nit) — L1's note N2: a live test outside the job's selectors and outside the two name substrings is invisible to the guard. scripts/check-temporal-live-filter.mjs:36-49 and :358-380. Stated as a bound in the header and the body, and carried on metadata-protocol activation-ledger live-dialects test is never handed a live server: its path matches neither CI selector live-mysql live-postgres #38561. Such a test is not run live by this job at all, so no row can be missing for it; the guard judges what the job runs. Nothing to change in this PR.
  • N3 (nit) — one live step that resolves to no test is dropped without a word. scripts/check-temporal-live-filter.mjs:363 (if (!pkg) continue;) and :366. Probed in memory: with the driver-sql step's package spelled @objectstack/driver-sql... (a valid pnpm selector) or as an unknown name, the guard stays green on 39 tests where it had 164; with the runtime step's positional misspelled it stays green on 163. The header promises a refusal where the subject was not read, and it delivers one for an unparseable step and for an empty total population, not for an empty step. Reaching it takes an edit to the job's steps, which is governed and reviewed, and check:pnpm-filter-targets already holds unknown names, so it is a nit: refuse when a live step names no package under packages/ or selects zero tests.
  • N4 (nit) — a bare workspace specifier outside packages/ ends the walk as third-party. scripts/check-temporal-live-filter.mjs:135 and :636. The workspace also has members under apps/, examples/ and ui/ (49 names). No closure file imports one today (measured: 0), and the bounds list does not state it.
  • N5 (nit) — "Build Core starts on every diff that can move a closure or the list" is one file short. ci.yml:3493-3495. scripts/vitest-memory-tmp.mjs is a closure file and a temporal_live row (ci.yml:940) and is on no core row, so a PR that changes only it does not run the guard at PR time. The queue run does (core is true there), so a red would still stop the entry before main.
  • N6 (nit) — loading a vitest config runs it. scripts/check-temporal-live-filter.mjs:557-586. packages/runtime/vitest.config.ts calls its filter preflight on load, which reads the calling process's process.argv; my wrapper passed path arguments and got its "FILTER SELECTED NOTHING" banner in the output. The guard's own modes that load configs pass no path, so nothing shows in CI.
  • N7 (nit) — the if: check is a substring. scripts/check-temporal-live-filter.mjs:223. ... != 'false' || false and any other expression that still spells the output name reads as wired. The workflows split reads a changed if: as Tier H, which is the control.

Implemented-by: claude/issue-38528-temporal-live-filter
Reviewed-by: session_01FEkQ5oPfjnm2yWHEwkiYrn

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

维护者速读

  • 用户无感:只改 CI。合并队列里的「时态一致性」实库测试(Temporal Conformance)原来按一张手写的文件清单决定跑不跑,清单漏了 1,623 个它实际用到的文件(比如 capability-composition.ts),改了这些文件它也不跑。现在清单按 164 个实库测试真实引用到的文件重写成 49 行,并加一个守卫:以后有文件没被清单覆盖就报红。
  • 代价(请您定的就是这一条):它会跑得更频繁。按最近 298 次合并队列实测,从 5.4% 的条目升到 38.9%,大约每 298 条多跑 100 次、每次约 10 分钟。它从来不是最后完成的必需检查(比最慢的其它必需检查早 389–1,336 秒完成),所以不会拉长排队时间;但它一旦红,会把约 39% 的条目踢出队列(样本里从未抖动过)。
  • 为什么要您批准:这扩大了您此前两条裁决(record 7146156389、7238262118)里这条检查的覆盖面(多出 16 个包)。契约档复审 PASS,但明确说这一点要您点头。
  • 要你做什么:批准合并 PR ci: temporal_live covers every source the live tests load, held by a closure gate #38560,即接受上面的频率代价。不同意的话说一句,席位改成更窄的清单(但即使只留 live-postgres/mysql,也仍需 1,557 个文件)。

席位意见:同意合并。漏跑比多跑更危险,且不增加排队时长。

席位核对 — ACCEPT · repo:objectstack#5 · Head-sha ac3dc229a47b269b44ad6877aeb15069dcd9aa89 · 2026-11-29T10:39Z

  1. 形态:open draft → main,2 files(.github/workflows/ci.yml、新 scripts/check-temporal-live-filter.mjs),Fixes #38528,受治理路径(ci.yml)。
  2. 前提实测:契约记录 7254558729 VERDICT PASS(无须修/应修,7 条 nit),head 即本 head;复审另提一点交维护者:覆盖面扩大超出 7146156389 / 7238262118 的原描述,PASS 不代表这一点。数字来自 298 次 merge_group 运行的实测,PR 正文已引两条记录和数字。
  3. 门禁 check-runs:本 head 37 success、0 失败(区的绿灯评论 7254123880)。
  4. 接受的偏差:守卫看不到构建输入(N1:闭包包的 package.json 与 tsup 配置不在任何行;298 次中 0 次触及),也会默默丢掉解析不到测试的 live 步骤(N3);两条合并为一张队列卡跟进,不挡本 PR。
  5. 范围外去向:activation-ledger 的 live-dialects 测试从未被选中 → metadata-protocol activation-ledger live-dialects test is never handed a live server: its path matches neither CI selector live-mysql live-postgres #38561;N1+N3 → 区另立一张队列卡(编号补在 PR 正文)。
  6. 落地条款:受治理(ci.yml),维护者批准后由席位落地(ready + auto-merge);L1-a ACCEPT 7254172901 与契约档 PASS 7254558729 同在本 head。⛔ 未批不入队。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

Approval requested (governed: .github/workflows/ci.yml) · 2026-11-29T10:39Z

  • Head-sha: ac3dc229a47b269b44ad6877aeb15069dcd9aa89
  • 维护者速读 and the seat's ACCEPT: the seat record above. Contract-tier PASS on this head: 7254558729. L1-a ACCEPT: 7254172901.
  • The decision asked of you: accept the wider reach of Temporal Conformance (5.4% → 38.9% of queue entries, never the last-finishing required check over 298 runs), which goes past the reach described in ruling records 7146156389 and 7238262118.
  • After your approval the seat lands it (ready + auto-merge); it stays draft until then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/xl skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

3 participants