Repository navigation
ci: temporal_live covers every source the live tests load, held by a closure gate - #38560
Conversation
…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
…mporal-live-filter
…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
…mporal-live-filter
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn Final green head · 2026-11-29T09:57Z · area o5-fleet
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb 席位核对 — L1 ACCEPT · head ac3dc22 · 2026-11-29T10:02ZI read the diff at ac3dc22 (2 files, +1157/−34: Fixes #38528 holds. The card's acceptance asks for two things. First, a dry run showing that a change to
Measured by me, in a worktree at this head:
Body and carriers.
Two notes, neither a hold:
ACCEPT. The PR is governed, so the seat lands it after the contract review. |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn Contract reviewServed-tier: Read for this record: the PR body and its 2-file diff against merge-base ① Derived judgments
② Semver levelNone. A workflow file and a repo script; no file under a published package changes, nothing publishes, and the PR carries ③ Boundary flags
④ Design judgmentNo must-fix. No should-fix. Nits. None moves the head; N1 and N3 deserve a carrier.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr 维护者速读
席位意见:同意合并。漏跑比多跑更危险,且不增加排队时长。 席位核对 — ACCEPT · repo:objectstack#5 · Head-sha
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr Approval requested (governed:
|
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 --listat the PR head. The population is read out of thetemporal-conformancejob: every step that hands a test runOS_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 itsvitest.config.*),dist/imports followed to thesrc/the job's build steps compile, relative imports, the config itself and itssetupFiles/globalSetup. "Example test" names one live test that loads a file under the row, and the file it loads.packages/plugins/knowledge-pgvector/**plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts(plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts)packages/drivers/driver-sql/**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*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/**plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts(services/service-knowledge/src/index.ts)packages/metadata-protocol/src/**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.jsonplugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts(metadata-protocol/package.json)packages/services/service-analytics/src/**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/**plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts(core/src/index.ts)packages/objectql/src/**plugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts(objectql/src/index.ts)packages/types/src/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(types/src/index.ts)packages/formula/src/**plugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts(formula/src/index.ts)packages/metadata/src/**metadata-protocol/src/migrations/identity-index.live-postgres.test.ts(metadata/src/errors.ts)packages/metadata-core/src/**metadata-protocol/src/migrations/identity-index.live-postgres.test.ts(metadata-core/src/index.ts)packages/metadata-fs/src/**plugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts(metadata-fs/src/index.ts)packages/lint/src/**plugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts(lint/src/runtime.ts)packages/sdui-parser/src/**plugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts(sdui-parser/src/index.ts)packages/observability/src/**plugins/knowledge-pgvector/src/__tests__/reconcile-purge.live-postgres.test.ts(observability/src/index.ts)packages/services/service-settings/src/**plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts(services/service-settings/src/index.ts)packages/plugins/embedder-openai/src/**plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts(plugins/embedder-openai/src/index.ts)packages/platform-objects/src/system/**plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts(platform-objects/src/system/index.ts)packages/drivers/driver-sqlite-wasm/src/**services/service-analytics/src/__tests__/objectql-echo-bucket-enumeration.test.ts(drivers/driver-sqlite-wasm/src/index.ts)packages/spec/src/*.tsmetadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/stack.zod.ts)packages/spec/src/ai/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/ai/object-query-source.zod.ts)packages/spec/src/api/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/api/index.ts)packages/spec/src/automation/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/automation/node-executor.zod.ts)packages/spec/src/contracts/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/contracts/rls-membership-resolver.ts)packages/spec/src/conversions/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/conversions/walk.ts)packages/spec/src/data/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/data/index.ts)packages/spec/src/identity/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/identity/identity-assignment-body-writes.ts)packages/spec/src/integration/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/integration/connector.zod.ts)packages/spec/src/kernel/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/kernel/metadata-protection.zod.ts)packages/spec/src/marketplace/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/marketplace/marketplace.zod.ts)packages/spec/src/meta-spelling/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/meta-spelling/metadata-url-spelling.ts)packages/spec/src/qa/**plugins/knowledge-pgvector/src/__tests__/acceptance.live-postgres.test.ts(spec/src/qa/index.ts)packages/spec/src/security/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/security/index.ts)packages/spec/src/shared/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/shared/refusal-head.ts)packages/spec/src/system/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/system/index.ts)packages/spec/src/ui/**metadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(spec/src/ui/view.zod.ts)packages/spec/package.jsonmetadata-protocol/src/migrations/identity-index.live-postgres.test.ts(spec/package.json)packages/metadata-protocol/vitest.config.tsmetadata-protocol/src/migrations/connector-connection-packageless-index.live-mysql.test.ts(metadata-protocol/vitest.config.ts)packages/runtime/vitest.config.tsruntime/src/cascade-delete-multivalue-lookup-real-driver.integration.test.ts(runtime/vitest.config.ts)packages/services/service-analytics/vitest.config.tsservices/service-analytics/src/__tests__/analytics-faces-one-lowering.test.ts(services/service-analytics/vitest.config.ts)packages/qa/vitest-filter-preflight/src/**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.tsruntime/src/cascade-delete-multivalue-lookup-real-driver.integration.test.ts(runtime/src/expected-read-refusal-noise.ts)scripts/vitest-memory-tmp.mjsdrivers/driver-sql/src/live-dialect-matrix.budget.test.ts(scripts/vitest-memory-tmp.mjs)scripts/js-comment-mask.mjsdrivers/driver-sql/src/live-dialect-matrix.isolation.test.ts(scripts/js-comment-mask.mjs)scripts/invoked-as.mjsdrivers/driver-sql/src/live-dialect-matrix.isolation.test.ts(scripts/invoked-as.mjs)scripts/check-temporal-live-filter.mjs.github/workflows/ci.ymlTotals: 164 live tests, 1858 closure files, 49 rows; removed rows: 25
Why each grain:
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 thanpackages/PKG/**: manifests, configs, scripts and docs outsidesrc/do not trigger the job.packages/spec/src/per namespace, notsrc/**.src/migrations/(1,270 of 1,947 non-test modules, the conversion kits) andsrc/studio/are in no closure. The 16 namespace directories the barrel reaches are listed, plussrc/*.tsfor the barrel and its root modules.platform-objects/src/system/**, the 20 objectsKnowledgeServicePluginregisters.src/**row,spec/package.jsonandmetadata-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.service-knowledge/src/testing.ts(byservice-knowledge/src/**), the twometadata-protocol/src/**/*live-*globs (bymetadata-protocol/src/**), and the 22 per-file service-analytics rows (byservice-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.ymlschedules a live-server job. Theuigroup's reads below its "UI TEST READS OUTSIDE ui/" heading are already held both ways bycheck:ci-filter-parity. The guard coverstemporal_liveonly.Dry run (dorny/paths-filter semantics)
picomatch 4.0.7 (from the workspace store) with
{ dot: true }, the optionsdorny/paths-filter@v4uses. A file matches when any row matches. The rows were parsed out ofci.ymlat each ref.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 --.What changes
.github/workflows/ci.yml, in three places:temporal_livefilter 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.node scripts/check-temporal-live-filter.mjs --self-test && node scripts/check-temporal-live-filter.mjs.corerow for the gate starts Build Core on a change to the gate itself, which is whatcheck:ci-filter-parityrequires 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 notemporal_liverow matches, and names the import chain.--listprints each closure and the row that covers each file.--match PATH...answers whether a path schedules the job.--self-testruns 7 named batteries with pinned floors and the verdict handshake (AGENTS.md "Writing a--self-test"); battery 7 pins the Build Core step and thecorerow. 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 toci.ymland the guard. The house pattern (a rootcheck:*alias plus alint.ymlstep, likecheck: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 onpull_request. On amerge_groupentry it runs only when the diff matchestemporal_live. The list named the live test files but not the sources they load from other packages. An entry that changed onlypackages/core/src/capability-composition.tsskipped the job in the queue, landed, and turnedmainred.Tests
All readings at head
ac3dc229a4unless 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), readingci.yml(rows, live steps, 10 refusals), edges (parser rather than regex:import typeerased, strings and comments ignored, dynamic import andrequire), resolution (alias first-match, prefix and RegExp,dist/tosrc/, 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)).temporal_liverows of0af813f301, 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.tsis among them, by the chainknowledge-pgvector/src/__tests__/capability-mount.live-postgres.test.ts -> core/src/index.ts -> core/src/capability-composition.ts. That is the main-red skip.packages/core/src/**reds the gate on 137 files includingcapability-composition.ts. Deletingpackages/services/service-knowledge/src/**reds it on 20 files includingknowledge-service-plugin.tsandtesting.ts. Restored: green.fc5b37fd97: withpackages/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.Acceptance notes
mainending at0af813f301(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 inscripts/ci/queue-budget.jsonis p50 21.7 min. The queue's before/after median is NOT MEASURED: it needs a week of queue runs after the merge, whichqueue-duration-budget.ymlreads weekly.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 298merge_groupruns. 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%).dist/.check:*alias plus a step in aLint · *lane oflint.yml, ascheck:ci-filter-parityis wired. Both files are outside this PR's file surface. Without CI wiring,check:self-test-wired(part ofLint & 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, whichci.ymlowns. Moving it to a lint lane is a two-file follow-up (package.jsonalias,lint.ymlstep), with battery 7 re-pointed in the same edit.src/**row also matches that package's own test files, so a test-only edit incore/srcnow starts the live job in the queue. Thespecnamespace rows keepsrc/migrations/andsrc/studio/out. If a live test starts importing either, the gate goes red and names the file.readFileSyncis not counted (that axis ischeck:cross-package-test-inputs'). A non-literalimport()is not followed. Third-party code is not followed. It never reports a row as too wide.packages/metadata-protocol/src/migrations/activation-ledger-packageless-index.live-dialects.test.tsreads both live URLs, but its name carries neitherlive-mysqlnorlive-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 selectorlive-mysql live-postgres#38561 (filed by the area at the seat's request, onpm:queue, not claimed).pm:queue, not claimed.mainand is merged into this branch. This PR does not touch it.Verification
Read first, by risk:
.github/workflows/ci.yml, thetemporal_liveblock: the hunk that changes what the merge queue runs.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.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.tsprintsMATCH, names the rowpackages/core/src/**, and exits 0. Then delete that row and runnode scripts/check-temporal-live-filter.mjs: it exits 1 and namescapability-composition.tswith its import chain.Gates, local subset at head
ac3dc229a4:node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 66 families from this tree.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.2092fb3793went red on three families:check:parse-guard(a rawts.createSourceFile),check:pnpm-filter-targets(fixture--filternames that are not workspace packages) andbare-root-worklist --self-test(an undeclared bare population root). All three were fixed ine0de164758and are green above.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
Human Minimum
packages/specholds no runtime logic. (No spec change.)pnpm lintpasses. (CI-owned run.)main, one pull request.skip-changeset.)packages/spectouched: its generated artifacts are regenerated and committed. (Not touched.)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code