Repository navigation
ci(temporal-conformance): PostgreSQL service on pgvector's PG 16 image; merge-queue run on live paths - #37155
Conversation
… 16 image The live PostgreSQL service in the Temporal Conformance job moves from mirror.gcr.io/library/postgres:16 to mirror.gcr.io/pgvector/pgvector:0.8.7-pg16: the same major and image layout, with the `vector` extension built in, still pulled through Google's Docker Hub cache. driver-sql gains a PG-only live test that installs the extension and orders rows by L2 distance, so an image without it turns that job red. Claude-Session: https://claude.ai/code/session_01QSeKYpRrYuqSLCvbSk9zrL Co-authored-by: Claude <noreply@anthropic.com>
…e paths change Per the maintainer's ruling on #37095 (record 7146156389), the merge queue now runs temporal-conformance when the entry's diff touches knowledge-pgvector, driver-sql, the live-server test files the job selects, or ci.yml. A new `temporal_live` paths-filter output carries that, read on merge_group only and fail-open like the ui outputs. pull_request stays excluded; push, schedule and dispatch are unchanged. Claude-Session: https://claude.ai/code/session_01QSeKYpRrYuqSLCvbSk9zrL Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
repo:objectstack#4 · os-justin · session_01QSeKYpRrYuqSLCvbSk9zrL Final head for L1 (2026-11-24T23:42Z):
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: Inputs read: card #37095 (body and all five comments, rulings 7146141300 and 7146156389 included), PR #37155 (body, both comments, two-file net diff against main), the 58 check-runs on the head (44 success, 14 skipped, 0 failure, 0 pending), and the cited code on the branch tree. One registry read: ① Derived judgmentsWhich events run
S1 (should-fix) — The PR body's 维护者速读 (「只会让这项检查变红、挡住相关合并」) and the dev's final-head comment 7147713376 ("a red there ejects the PR") state a consequence the diff does not have. The context is outside the required set, so a red queue run of this job ejects nothing: the entry merges and the red arrives on S1 (should-fix) — Rule text for #22998 is left stating the pre-ruling rule in the file the PR edits. S1 (should-fix) — The Note for #37100, no finding here: ② Semver level
③ Boundary flags
S1 (should-fix) — Run the job once on the PR branch before the hand-merge: one operator
④ Design judgment
Minutes estimate. The PR body's 156 hits of 5275 first-parent commits in 30 days (3.0%) at a 541 s median gives about 1,400 runner-minutes (about 23 h). The local clone is shallow (history from 2026-11-14), so only a 10.3-day window could be counted: 43 hits of 1689 commits (2.5%), which scales to about 125 hits and about 1,130 minutes per 30 days. Same order; the estimate is plausible as a lower bound (re-queued entries rerun it). Not reproduced: the body's 49 Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — REWORK · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpRrYuqSLCvbSk9zrL Correction to my comment 7147713376 (2026-11-24T23:49Z), on the contract review 7147819716: "a red there ejects the PR" is wrong. |
…oral_live, pin the image digest Review follow-ups on #37095. The in-file rule text (THE TWO SPEEDS, the filter outputs and step comments) and docs/agents/multi-agent-discipline.md now name the one exception ruling record 7146156389 made: temporal-conformance also runs on a queue entry that hits temporal_live, and since it is not a required context that run is advisory. temporal_live gains the metadata-protocol files the step's live-mysql/live-postgres substrings select and the 22 service-analytics files whose live-PostgreSQL cells key on OS_TEST_POSTGRES_URL. The service image carries its index digest after the tag. Claude-Session: https://claude.ai/code/session_01QSeKYpRrYuqSLCvbSk9zrL Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYpRrYuqSLCvbSk9zrL Final head for delta review (2026-11-25T00:57Z):
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: DELTA review from Inputs read: Merge commits: the branch holds none ( ① Derived judgmentsS1: closed
S2: closed
S3: closed
N1 (nit) — nothing pins the 22-file list to the grep that produced it, so a new service-analytics file with a live-PostgreSQL cell is missed in silence. The miss costs only the advisory queue run for that merge (the push run that follows still runs the job: every such file is a
② Semver levelUnchanged from record 7147819716: ③ Boundary flagsS4: closed
④ Design judgment
Minutes. The body's ≈1,550 runner-minutes per 30 days is 172 hits × 541 s ÷ 60 = 1,551: the arithmetic holds. The 30-day count (172 of 5,275 first-parent commits, 49 of them No new problem found in the delta. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 维护者速读
Hand-off · 2026-11-25T01:04Z · @os-zhuang — PR #37155 (card #37095) is ready for your approval. CI workflow and one driver test; Tier H (governed |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Queue ejection, not this PR · 2026-11-25T02:06Z The queue ejected this PR on Blocked-by: #37174 |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 45528039199 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#4 · os-justin · session_01QSeKYpRrYuqSLCvbSk9zrL S4 measured: closed · read from the first merge-queue build of this PR (queue commit
That build was ejected for timeouts in two other jobs, and neither touches this PR's diff: |
…surface (objectstack-ai#38267) <!-- claude-projects-attribution: {"github_login":"os-elon-musk"} --> _Requested by **Elon** · [project thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DDypKu7B9nwbu5WuV7AEio8)_ Part of objectstack-ai#38087 (items 1–2; item 3 is the maintainer's) Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感。开发 agent 动 SQL 驱动时,派发工具现在会提前告诉它“真库测试会在合并队列里跑”。以前工具对这一项一字不提。 - 为什么做:配合“改 SQL 驱动的 PR 在合并队列里跑真库测试”这项裁决(先观察,再定是否必过)。观察读数已贴在卡上:三天多里有 23 个改驱动的 PR 跑了这一项,只红过一次。那次是 PR 自己新加的测试在 MySQL 上失败,因为这一项不是必过,PR 照样合进主干,主干红了约 6 小时。没有偶发失败,也没有拖慢队列。 - 出错会怎样:只影响开发 agent 读到的提示文字和一段代码注释,不影响 CI 本身,可直接撤回。 - 要你做什么:无。是否把这一项设为必过,由席位另行带读数问你。 ## What changes - **`scripts/pm/dispatch-gates.mjs`** fixes item 2's first bullet, which did not match main. - The `temporal-conformance` job's `if:` (ruling record 7146156389) ends in a clause that `jobIfReading` refused whole: `github.event_name != 'pull_request' && (github.event_name != 'merge_group' || needs.filter.outputs.temporal_live != 'false')`. So a driver-sql card derived no row for the live PG + MySQL leg at all. - The reader now recognises that exact spelling as a third WHEN and returns `queueGate`. `jobFilterPopulation` resolves the output's globs. - `jobFilteredSteps` then decides per card, on a glob that matches the path itself (`triggerListMatches`, which has no directory reach), and names that glob on the row: - a matching path gets "first run is the merge-queue build"; - a path that matches none and reaches into none gets the full-battery sentence; - a directory surface that only reaches into the globs (for example `packages/runtime`, through the one-file cascade-delete glob) gets a hedged third sentence: "the merge-queue build runs it only if a changed file is in `filter.temporal_live` … otherwise its first run is `main`'s push battery". The same hedge applies when the queue list is uncertain: a dropped positive extglob, or a plain negation, which paths-filter and GitHub's `paths:` read differently. A negated extglob still refuses the job. - An unparenthesised `A || B` ahead of any stripped event clause is now refused. GitHub binds `&&` tighter than `||`, so the clause binds to `B` alone. `(A || B)` reads as before, and no live `if:` is spelled the bare way. - The population is still the filter outputs ahead of the clause. The queue output's globs never join it. - **`scripts/check-required-contexts.mjs`**: the tombstone prose said the leg runs "in the FULL BATTERY only". It now says the leg also runs on a queue entry that hits `temporal_live`, that it is still not a required context, and that the call is the maintainer's. Prose only: `REQUIRED_CONTEXTS` and every pinned name are untouched. - **Re-read and already right on main, so left untouched:** - The THE TWO SPEEDS comment in `ci.yml`: already names the exception and says it is advisory. No `ci.yml` edit, so this PR does not overlap objectstack-ai#36646 or objectstack-ai#38132. - The required-set paragraph in `AGENTS.md`: the eleven contexts are exact, and "a check outside those eleven is advisory" covers the leg. Net 0 bytes. - `docs/agents/multi-agent-discipline.md` › Two speeds: already carries the exception sentence. - `scripts/pm/check-expected-skips.mjs:1318`: this is the self-test's FIXTURE_TREE, frozen on purpose to judge the measured historical heads, not the live tree. The live roster is derived and already handles the new `if:` (`--roster`: "gate: job-gate filter core + pr-event pull_request; derived"). ## Observation reading (item 1) Posted on the card: objectstack-ai#38087 comment 7237905765. - Window: 863 `merge_group` runs since PR objectstack-ai#37155. The leg ran in 38 of them, which are 23 distinct entries. - Reds: 1, an own regression. PR objectstack-ai#37279's new live-MySQL test failed. It landed anyway, because the leg is advisory, and objectstack-ai#37331 fixed it about 6 h later. Flakes 0, inherited 0. Entries that hit a live glob and skipped the leg: 0. - Leg minutes: median 11.1, p90 13.6. - Queue wall time where the leg ran: median 28.4. Where it skipped: median 24.6. The leg is never on the critical path: it finishes 7 to 26 minutes before the run does. ## Tests <details><summary>self-test, ablation, derived output (head 0e1b472)</summary> - `os-verify-lock.sh -c 'pnpm check:pm-dispatch-gates'`: `✓ dispatch-gates self-test (fast tier): 2385 cases pass`, `VERDICT command-exit 0`. New cases: - the queue-path reading, three near-miss refusals and `queueGate` null elsewhere; - LIVE: a route-ledger path gets the full-battery sentence; - LIVE: a driver-sql path gets the queue-build sentence; - an in-place ablation of `queueOutput` on the row; - added in the rework: - `triggerListMatches` against `triggerListCovers` on a directory; - LIVE: the directory surface `packages/runtime` gets the hedged sentence, never the queue-build-first one; - its ablation: with `queueHedged` stripped, the queue-build-first sentence comes back; - the driver-sql row names its matching glob; - `queueUncertain` for a dropped extglob and for a plain negation; - the bare `A || B` refusals beside the parenthesised read. - On-disk mutation: with the clause match replaced by `null`, `jobIfReading(<live temporal if>)` returns `null`. Restored with `git checkout HEAD --`, it returns `{refs:[filter.core], notOnPullRequest:true, queueGate:filter.temporal_live}`. - `node scripts/pm/dispatch-gates.mjs packages/drivers/driver-sql/src/sql-driver.ts` now prints `[ci.yml · Temporal Conformance (live PG + MySQL)] … ⛔ does NOT run on this PR: … your paths hit filter.temporal_live, so its first run on this change is the merge-queue build`. Before, it printed no row. - `node scripts/check-required-contexts.mjs --self-test`: 190 assertions pass. </details> ## Acceptance notes - `check-expected-skips`'s derived reason for this job still reads "answered by the merge-queue build" and adds "(plus 2 further condition(s) the recogniser does not read)". That is true only when the entry hits `temporal_live`. The hedge is honest, and the recogniser deliberately evaluates no paths, so this is noted here and not filed. ## Verification - Read first: `scripts/pm/dispatch-gates.mjs` `jobIfReading` (the recursion on the text before the clause, which refuses a doubled event clause), then `jobFilteredSteps` (the per-card `queueHit`). - Two-minute check: `node scripts/pm/dispatch-gates.mjs packages/drivers/driver-sql/src/sql-driver.ts 2>&1 | grep Temporal` should print one row ending "first run on this change is the merge-queue build". <details><summary>local gates (head 0e1b472)</summary> - `dispatch-gates --ran`: 70 of 70 derived families accounted for. - `pnpm check:i18n-coverage`: NOT MEASURED, exit 3 `PREREQUISITE NOT MET — the workspace CLI is not built`. The gate needs the CLI and every example config built, and this diff touches neither. CI's `Lint & Repo Gates` runs it. The first round's report wrongly counted this gate as exit 0. - Every other derived command exited 0, `node scripts/check-self-test-workflow-commands.mjs` included. It timed out in the first round and is green now. </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>
Fixes #37095
Clause-②: no
Metadata-protocol: none
维护者速读
e6cb50b2549117a8a9cfd7e4c44fc3b6759235df。可选:合并前在分支claude/issue-37095-ci-pgvector上手动触发一次ci.yml,看Temporal Conformance (live PG + MySQL)成功、driver-sql 步骤含sql-driver-37095-pgvector-extension.test.ts (2 tests);不跑的话,席位在合并后读主干这一跑,变红即回滚。What changes
temporal-conformance's postgres service):mirror.gcr.io/library/postgres:16becomesmirror.gcr.io/pgvector/pgvector:0.8.7-pg16@sha256:484e838076e04939d27d3e176e91c86eea96236126023be8d3059761122e579f.FROM postgres:16-bookworm, so the PostgreSQL major, the entrypoint,pg_isreadyandpsqlare unchanged. Thevectorextension is built in.mirror.gcr.io, the repo's convention for every service image (Google's Docker Hub cache, which avoids Docker Hub's anonymous per-IP quota, ci: the required Temporal Conformance job pullspostgres:16andmysql:8.0from Docker Hub unauthenticated, and Docker Hub's pull rate limit now fails it before any test runs, so the merge queue ejects every pull request #22541). On 2026-11-24mirror.gcr.ioanswered 200 for the tag0.8.7-pg16and for the digest itself.tag@sha256). Docker pulls by the digest, so a re-pushed tag cannot change the server. The digest is the same on mirror.gcr.io and Docker Hub. No other workflow here pins a digest; the review's nit asked for it, andservices.*.imageaccepts the form. No actionlint runs in this repo to object.temporal-conformanceran on push to main, schedule and workflow_dispatch only, never onpull_requestormerge_group(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, THE TWO SPEEDS).merge_groupwhen the entry's diff touches the newtemporal_liveoutput of the existingdorny/paths-filterstep in thefilterjob (the mechanism the ui jobs already use on the queue).if::… && github.event_name != 'pull_request' && (github.event_name != 'merge_group' || needs.filter.outputs.temporal_live != 'false').'', which becomes'true', so the job runs.pull_requeststays excluded. Push, schedule and dispatch are unchanged, and the job still reads no queue verdict (MAIN_ONLY_JOBS), so a queue hit also runs again on the push that follows.Temporal Conformance (live PG + MySQL)is NOT a required context (scripts/check-required-contexts.mjsholds it as a 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 tombstone). A red queue run therefore does not eject the entry: the entry lands and the red shows onmain(push, the 4-hourly run, the release lane's full-battery read).REQUIRED_CONTEXTSrow. Enrolment would be its own maintainer ruling, as [Decision] Merge queue: should the three Dogfood Regression Gate shards run on merge_group, so a dogfood red stops a PR before main instead of after? #30461 was for dogfood.temporal_livepaths:packages/plugins/knowledge-pgvector/**: the store's package. It does not exist yet; knowledge-pgvector: an open vector store on PostgreSQL — tables, exact search, listing, chunks #37100 adds it, and the step that runs its tests is a separate governed edit.packages/drivers/driver-sql/**: the job runs this whole suite against the live servers.packages/metadata-protocol/src/**/*live-mysql*and…/*live-postgres*: the same set the step'slive-mysql live-postgressubstrings select, includinglive-mysql-database.isolation.test.tsand the testkit.packages/runtime/src/**/cascade-delete-multivalue-lookup-real-driver*: the file the runtime step selects.packages/services/service-analytics/src/__tests__files whose live-PostgreSQL cells key onOS_TEST_POSTGRES_URL(ci: Temporal Conformance runs service-analytics with no OS_TEST_POSTGRES_URL, so the package's live-PostgreSQL temporal cells are named skips in CI and read as covered #21564). No glob selects exactly these, so they are listed, and a new such file must be added by hand: analytics-faces-one-lowering, cube-measure-field-type-door, cube-measure-relationship-path-type, dataset-duration-measure, dataset-tools, home-amount-consolidated-measure, json-stored-door-live-drivers, json-stored-door-undeclared-join, list-at-scalar-operator-both-faces, native-sql-aggregate-policies, native-sql-base-column-qualify, native-sql-boolean-comparand-door, native-sql-empty-sum-order-window, native-sql-measure-number-presentation, native-sql-number-comparand-door, native-sql-offset-only-window, objectql-echo-bucket-enumeration, objectql-echo-date-bucket, objectql-echo-offset-only-window, objectql-face-order-limit, order-key-selected, read-scope-temporal-coercion..github/workflows/ci.yml.ci.yml's THE TWO SPEEDS header, thefilter.outputscomments and the paths-filter step comment, plusdocs/agents/multi-agent-discipline.md(Two speeds paragraph), which cites ruling record 7146156389.scripts/check-required-contexts.mjs. It is about the required set, which this PR does not change.packages/drivers/driver-sql/src/sql-driver-37095-pgvector-extension.test.ts, PG-only, declared throughdeclareDialectCell(PG_CELL)like every live driver-sql file:OS_EXPECT_LIVE_DIALECT_MATRIX=1without a URL: red.CREATE EXTENSION IF NOT EXISTS vector; reads the extension's schema frompg_extensionand qualifies the type and operator with it; orders three rows by the pgvector L2 distance operator and checks the distances (0, 1, sqrt 26).skip-changeset: a*.test.tsundersrc/, and driver-sql'sfiles[]isdist,README.md,CHANGELOG.md.Monthly minutes
Temporal Conformance (live PG + MySQL)success durations over the 15 most recentscheduleruns: median ~541 s (max 708 s, n about 16; one API row errored).origin/mainthat touch thetemporal_livepaths (git log --first-parent --since --until -- PATHS), multiplied by the 541 s median. With the revised path list:ci.yml. That is ~1,550 runner-minutes (~26 h) per 30 days.ci.yml; theci.ymlchurn was heavier earlier in the month). Scaled to 30 days that is about 153 hits, ~1,380 minutes.Tests
Live run, PostgreSQL 16.15 + apt pgvector 0.6.0 (local; the CI image's 0.8.7 is not yet exercised)
OS_EXPECT_LIVE_DIALECT_MATRIX=1:✓ src/sql-driver-37095-pgvector-extension.test.ts (2 tests)✓ src/live-dialect-matrix.isolation.test.ts (20 tests | 1 skipped)extension "vector" is not available. A plainpostgres:16image would give this red.pnpm --filter @objectstack/driver-sql typecheck: exit 0. The new file is in--listFiles.ci.ymland docs.Gates (head e6cb50b)
dispatch-gates --commands: 87 families derived;--ran:87 derived, 84 run, 3 NOT-MEASURED, 0 UNRUN.dist/):check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure. CI owns them.check:doc-formula-expressionsfirst exited 3 and was 0 after building formula and lint.check:required-contexts,check:pm-expected-skips,check:stall-guard-budget,check:stall-guard-headroom,check:shard-attestation,scheduled-full-run.mjs --self-test,check:nul-bytes.check-governed-merges.mjs --branch: GOVERNED, landing tier H(人合). readWorkflowDiff, verbatim:Tier H by content — .github/workflows/ci.yml: a uses: / image not used anywhere on the base tree: mirror.gcr.io/pgvector/pgvector:0.8.7-pg16; an existing job no longer holds uses: mirror.gcr.io/library/postgres:16: temporal-conformance; an if: added or changed in a job that already ran: job:temporal-conformance; a uses: / image dropped from the file: mirror.gcr.io/library/postgres:16.overlap-check:VERDICT clean exit 0against origin/main 49c8e0f.Acceptance notes
docs/qa/platform-checklist/areas/integration-system.jsonanddocs/adr/0104-field-runtime-value-shape-contract.mdstill describe this job's service aspostgres:16.ci.ymlon this branch (with the maintainer; not triggered here) or this PR's own queue run, becauseci.ymlis on the path list.Read first
if:and thetemporal_livefilter: the governed behaviour change.image:line and its comment.Two-minute check: open the first run of
Temporal Conformance (live PG + MySQL)on this change. It should run (not skip), and its driver-sql step should list✓ src/sql-driver-37095-pgvector-extension.test.ts (2 tests).Generated by Claude Code