Skip to content

ci(temporal-conformance): PostgreSQL service on pgvector's PG 16 image; merge-queue run on live paths - #37155

Merged
os-zhuang merged 3 commits into
mainfrom
claude/issue-37095-ci-pgvector
Nov 25, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/issue-37095-ci-pgvector

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Fixes #37095
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用户无感。CI 里带数据库的测试任务改用带 pgvector 的 PostgreSQL 镜像(按指纹锁定),新增一条验证向量扩展的测试;按你的裁决 B(记录 7146156389),改到相关文件时合并队列也跑这个任务,PR 阶段仍不跑。
  • 为什么做:知识检索的 pgvector 存储需要真实数据库验证;你已定这个任务不设为必过(「ci(temporal-conformance): PostgreSQL service on pgvector's PG 16 image; merge-queue run on live paths #37155 不需要」),所以队列里的这次运行只作提示,变红不挡合并。
  • 出错会怎样:坏镜像不会被拦下,会进 main 并让之后的主干运行变红;改回原镜像一行即可撤回。每 30 天约多花 1,550 分钟机器时间(下限)。
  • 要你做什么:批准并手工合并。契约审核复审 PASS:记录 7149149161,Head-sha 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

  1. Image (temporal-conformance's postgres service): mirror.gcr.io/library/postgres:16 becomes mirror.gcr.io/pgvector/pgvector:0.8.7-pg16@sha256:484e838076e04939d27d3e176e91c86eea96236126023be8d3059761122e579f.
  2. Merge-queue run on path hits. The maintainer ruled card What 2 = B (ruling record 7146156389), verbatim: 「B:改成「改到相关文件时,合并队列里也跑这个任务」。这会推翻 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 的裁决,每次相关合并都多花分钟数。」
  3. temporal_live paths:
    • 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's live-mysql live-postgres substrings select, including live-mysql-database.isolation.test.ts and the testkit.
    • packages/runtime/src/**/cascade-delete-multivalue-lookup-real-driver*: the file the runtime step selects.
    • The 22 packages/services/service-analytics/src/__tests__ files whose live-PostgreSQL cells key on OS_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.
    • Left out on purpose: the rest of core, formula, driver-memory, driver-mongodb and service-analytics (the non-SQL leg's server-less tests). Most merges touch them, so including them would run the job on nearly every queue entry. The review accepted this.
  4. Rule text revised to name the one exception: ci.yml's THE TWO SPEEDS header, the filter.outputs comments and the paths-filter step comment, plus docs/agents/multi-agent-discipline.md (Two speeds paragraph), which cites ruling record 7146156389.
    • Still stating the old rule, untouched on purpose: the tombstone prose in scripts/check-required-contexts.mjs. It is about the required set, which this PR does not change.
  5. Test: packages/drivers/driver-sql/src/sql-driver-37095-pgvector-extension.test.ts, PG-only, declared through declareDialectCell(PG_CELL) like every live driver-sql file:
    • no URL: a named skip;
    • OS_EXPECT_LIVE_DIALECT_MATRIX=1 without a URL: red.
    • What it does: CREATE EXTENSION IF NOT EXISTS vector; reads the extension's schema from pg_extension and qualifies the type and operator with it; orders three rows by the pgvector L2 distance operator and checks the distances (0, 1, sqrt 26).
    • The job's driver-sql step runs this package's whole suite with the URL and the flag.
    • No adapter code (knowledge-pgvector: an open vector store on PostgreSQL — tables, exact search, listing, chunks #37100).
    • skip-changeset: a *.test.ts under src/, and driver-sql's files[] is dist, README.md, CHANGELOG.md.

Monthly minutes

  • Before (advisory, not a gate): Temporal Conformance (live PG + MySQL) success durations over the 15 most recent schedule runs: median ~541 s (max 708 s, n about 16; one API row errored).
  • After: NOT MEASURED. The new image's median and the per-hit cost need the first runs. The expected difference per run is the image pull alone.
  • Added queue minutes. Method: count first-parent commits on origin/main that touch the temporal_live paths (git log --first-parent --since --until -- PATHS), multiplied by the 541 s median. With the revised path list:
    • 30-day window 2026-10-25 to 2026-11-24 (checkout deepened to 2026-10-24): 172 of 5275 commits hit, 49 of them ci.yml. That is ~1,550 runner-minutes (~26 h) per 30 days.
    • 10-day window 2026-11-14 to 2026-11-24: 51 of 1605 commits hit (only 3 of them ci.yml; the ci.yml churn was heavier earlier in the month). Scaled to 30 days that is about 153 hits, ~1,380 minutes.
    • The review's ~1,130 minutes was this same 10-day scaling on the earlier, shorter path list (43 hits).
    • All of these are lower bounds: re-queued or ejected entries run the job again. Push and schedule minutes are unchanged.

Tests

Live run, PostgreSQL 16.15 + apt pgvector 0.6.0 (local; the CI image's 0.8.7 is not yet exercised)
  • URL + 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)
    • VERDICT command-exit 0
  • No URL: named skip, exit 0.
  • No URL, with the flag: exit 1 with the named provisioning failure.
  • Negative leg: a server without the extension: exit 1, extension "vector" is not available. A plain postgres:16 image would give this red.
  • pnpm --filter @objectstack/driver-sql typecheck: exit 0. The new file is in --listFiles.
  • Not re-run on e6cb50b: that commit changes only ci.yml and docs.
Gates (head e6cb50b)
  • dispatch-gates --commands: 87 families derived; --ran: 87 derived, 84 run, 3 NOT-MEASURED, 0 UNRUN.
    • The 3 exit 3 PREREQUISITE NOT MET (they need the whole workspace's dist/): check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure. CI owns them.
    • check:doc-formula-expressions first exited 3 and was 0 after building formula and lint.
  • Exit 0 among them: 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 0 against origin/main 49c8e0f.

Acceptance notes

  • Docs drift, not changed here: docs/qa/platform-checklist/areas/integration-system.json and docs/adr/0104-field-runtime-value-shape-contract.md still describe this job's service as postgres:16.
  • Card acceptance "the test passes in that job" is not yet read: on this PR's runs the job is skipped by design.
    • The first live reading comes from either an operator dispatch of ci.yml on this branch (with the maintainer; not triggered here) or this PR's own queue run, because ci.yml is on the path list.
    • That queue run is advisory, so read it before the entry lands; a red there is a revert.

Read first

  1. The temporal-conformance if: and the temporal_live filter: the governed behaviour change.
  2. The postgres image: line and its comment.
  3. The new test file.

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

… 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>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

Nothing 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): node scripts/docs-audit/affected-docs.mjs --json 49c8e0f069ac5e21b11ba40d8bbbbfd8cd2eced2 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpRrYuqSLCvbSk9zrL

Final head for L1 (2026-11-24T23:42Z): da2e1e22528bc1acd85309b8c0637ef815d9f87c — check-runs on it: 44 success, 14 skipped, 0 failure, 0 pending; mergeable state clean; draft, no auto-merge. Area: a4-K.

  • Governed (.github/workflows/**), Tier H: the zone never readies, queues or arms it; L1 and the hand-off go through the seat session. readWorkflowDiff: Tier H by content (new image, changed if: on temporal-conformance).
  • Rulings carried: re-commit allowed (「放行」, CI: the PostgreSQL job runs on an image with the pgvector extension #37095 comment 7146141300); What 2 = option B (CI: the PostgreSQL job runs on an image with the pgvector extension #37095 comment 7146156389) — temporal-conformance also runs in merge_group when the entry hits temporal_live paths; pull_request stays excluded.
  • Acceptance reading: on this PR run Temporal Conformance (live PG + MySQL) is skipped (pull_request is excluded by design), so the pgvector test and the new image are not yet exercised in CI. Because this PR changes ci.yml, its own merge-queue entry hits temporal_live and runs the job on the new image — that run is the acceptance reading, and a red there ejects the PR. Local: PG 16 + pgvector 0.6.0 green; negative leg (no extension) red.
  • Measurements: job median before ≈ 541 s; per-hit cost and median after are NOT MEASURED until that first run; estimated queue cost ≈ 1,400 runner-minutes / 30 days (156 path hits over the last 30 days of main), a lower bound.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: da2e1e22528bc1acd85309b8c0637ef815d9f87c
Local-runs: none
Scope: .github/workflows/ci.yml + packages/drivers/driver-sql/src/sql-driver-37095-pgvector-extension.test.ts

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: GET mirror.gcr.io/v2/pgvector/pgvector/manifests/0.8.7-pg16 answered 200 with index digest sha256:484e838076e04939d27d3e176e91c86eea96236126023be8d3059761122e579f, the digest the ci.yml comment records.

① Derived judgments

Which events run temporal-conformance (new if:: !cancelled() && core != 'false' && event != 'pull_request' && (event != 'merge_group' || temporal_live != 'false')):

event before after
push to main runs when core hit unchanged (temporal_live is not read)
schedule / workflow_dispatch runs (core falls to 'true') unchanged
merge_group, diff hits temporal_live skipped runs
merge_group, diff misses skipped skipped (publishes a skipped check-run)
merge_group, filter step or job failed skipped runs (output '' reads 'true'; a dead filter job reads '' which is not 'false')
pull_request skipped skipped; observed on this head (Temporal Conformance (live PG + MySQL): skipped)
  • This is ruling B as worded: queue run on path hits, pull_request still excluded, 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 revised for this one job. dogfood-verify and ui-published-artifacts keep the two-term deny-list.
  • Fail-open is the right default. It is THE FILTER CONTRACT's half 1 and the same spelling the ui outputs use on the queue. The failure direction is one extra ~9-minute run on an entry, never a hit that silently skipped.
  • core != 'false' on merge_group is still in the expression and is inert there (core is forced 'true'), so temporal_live alone decides on the queue. Every temporal_live path is also a core path (packages/**, ci.yml), so the push run that follows a queue hit also runs the job. A hit therefore runs twice (queue, then push): MAIN_ONLY_JOBS in scripts/ci/scheduled-full-run.mjs forbids this job from borrowing the queue verdict. The added minutes are purely additive, as the PR body says.
  • Image. pgvector/pgvector:0.8.7-pg16 is built on the official PG 16 Debian image: same major, same entrypoint and POSTGRES_PASSWORD contract, pg_isready and psql present, so the health command, the ALTER SYSTEM SET timezone step and the four legs that take OS_TEST_POSTGRES_URL (driver-sql, the non-SQL leg's service-analytics cells, metadata-protocol live files, runtime cascade-delete) see the same server surface. The PG minor is whatever the pgvector build carried; nothing in the job pins a minor. None of this has run in CI: on this head the job is skipped.
  • Pin convention. The only other service image in .github/workflows/ is mirror.gcr.io/library/mysql:8.0, a moving tag; no workflow pins an image digest. An exact tag is stricter than the neighbour and within convention. The digest in the comment is a record, not an enforcement (nit: tag@sha256:… is accepted by services.*.image and would enforce it; this is a third-party image, not Docker library/).
  • Required set: unchanged, and that is the finding. Temporal Conformance (live PG + MySQL) is NOT a required context: scripts/check-required-contexts.mjs holds it as a tombstone (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) and AGENTS.md lists eleven blocking contexts without it. The merge queue enforces only the required set, so a red temporal-conformance on a queue build is advisory and the entry lands. This PR adds no REQUIRED_CONTEXTS row (correctly: ruling B did not rule enrolment; the dogfood precedent needed its own letter, record 6669982756).

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 main (push and 4-hourly runs, and the release lane's full-battery read). Correct both texts to "advisory on the queue", and put the enrolment question (re-add the context to the ruleset plus a REQUIRED_CONTEXTS row, as #30461 did for dogfood) to the maintainer as its own ruling. Do not decide it in this PR.

S1 (should-fix) — Rule text for #22998 is left stating the pre-ruling rule in the file the PR edits. ci.yml THE TWO SPEEDS header (lines 130-137) still says temporal-conformance spells both != 'pull_request' && != 'merge_group'; the filter.outputs comment (lines 332-345) still says only the three ui outputs read the step on merge_group and that core is read "on push / schedule" by this job; the step comment (line 454) still says merge_group joined the allow-list "for the ui outputs alone". Outside the diff, read not reviewed: docs/agents/multi-agent-discipline.md:138 ("Temporal Conformance ... stay full-battery only") and the tombstone prose in scripts/check-required-contexts.mjs say the same. Revise the in-file text in this PR and name the two outside surfaces in the hand-off.

S1 (should-fix) — The temporal_live list misses files the job itself selects, against ruling B's "the job's own test files". (a) packages/metadata-protocol/src/migrations/live-mysql-database.isolation.test.ts: the step's live-mysql substring selects it (the ci.yml comment counts three live-mysql* files), and the glob *.live-mysql.test.ts does not match it. (b) The 22 packages/services/service-analytics test files that key live cells on OS_TEST_POSTGRES_URL (#21564): this job's non-SQL leg is the only place they run against a server, and it is the new image they run against. Measured on the local history (2026-11-14 to 2026-11-24, 1689 first-parent commits): the PR's list hits 43 commits; adding those 22 files makes 51 (+19%); adding the whole package makes 74. Add (a) and the 22 files (or a glob for them), or record in the PR body why they stay out. The rest of the list is minimal and matches the ruling; leaving out core, formula, driver-memory and driver-mongodb is reasoned and accepted.

Note for #37100, no finding here: packages/plugins/knowledge-pgvector/** starts the job, but no step runs that package's tests until #37100 adds one (a governed ci.yml edit of its own).

② Semver level

Clause-②: no holds. The diff is a workflow file and one *.test.ts under packages/drivers/driver-sql/src/; that package publishes dist, README.md, CHANGELOG.md only, so nothing published changes. skip-changeset is correct and Check Changeset is success on the head. No spec, schema or runtime surface is touched.

③ Boundary flags

  • Dev ordering deviation (second push before the overlap-check and the derived gates; both rerun afterwards, clean): accepted. The rerun is on the reviewed head, mergeable_state is clean, and the head's check-runs show no failure. No finding.
  • open_questions: none in the dev report. Out-of-scope doc drift (integration-system.json, ADR-0104 still say postgres:16) is named in the PR body; accepted as noted, not filed.
  • First live run happens only in the queue.

S1 (should-fix) — Run the job once on the PR branch before the hand-merge: one operator workflow_dispatch of ci.yml on claude/issue-37095-ci-pgvector, read Temporal Conformance (live PG + MySQL) green with sql-driver-37095-pgvector-extension.test.ts (2 tests) in the driver-sql step. Reason: per ①, the queue run is advisory, so there is no ejection backstop. A defective image, a failed pull through the mirror, or a 0.8.7 behaviour the local 0.6.0 run did not show would land and turn every later push and scheduled run of main red, which blocks the release lane's full-battery read. The maintainer rejected option A as the standing path; a one-off pre-check of a governed image swap is a different thing and costs one full-battery run. If the maintainer declines it, the two-minute check in the PR body must be read on the queue run before the entry lands, and a red there is a revert.

  • SQL push-down check: not applicable. The diff adds no id materialisation and no in-app join; the test's ordering is done by the server (ORDER BY on the L2 operator, LIMIT 2).

④ Design judgment

.github/workflows/ci.yml against ruling 7146156389 and the code it cites: the if: and the filter output agree with the ruling and with THE FILTER CONTRACT (both halves: || 'true' on the output, != 'false' at the reader). The filter rides the existing dorny/paths-filter step, which already runs on merge_group with continue-on-error, so no new step, permission or action is introduced. The path globs were checked against the tree: the metadata-protocol and runtime globs match the 9 live files and the one cascade-delete file they are meant to (the gaps are in ① above). check-expected-skips reads the new if: as the queue-and-full shape (one top-level != 'pull_request' term), so the skip on this PR head is an expected skip. Findings: the three in ①.

sql-driver-37095-pgvector-extension.test.ts against the card's acceptance and the testkit it uses:

  • Gating is the package's own: declareDialectCell(PG_CELL, …), the seam 94 files in driver-sql/src go through. Off PG it is a named skip; with OS_EXPECT_LIVE_DIALECT_MATRIX=1 and no URL it is a named red. The job's driver-sql step sets both the URL and the flag and runs the whole package suite, so the file runs there and cannot skip silently. Test Core on the head is green with the file present (named skip).
  • It proves what the card asks: create extension if not exists vector executes against the server (an image without the extension fails in beforeAll), pg_extension is read back for exactly one row, a vector(3) column is created, and three rows are ordered by L2 distance with ids [1, 3] and distances 0, 1 and sqrt(26) asserted. The expected values are exact in float8.
  • Isolation is sound: the table lives in the file's own schema (currentLiveSchema()), the extension's schema is read back and used to qualify the type and operator instead of assumed, the extension is never dropped by the file, and the globalSetup teardown's drop schema … cascade removes it with the schema. No residue reaches the later legs that share the database.
  • Limits, stated not graded: it pins presence of the extension, not the 0.8.7 version; and the only run so far is local on pgvector 0.6.0.

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 ci.yml commits in 30 days; the local window shows 4 in 10 days. The per-run median on the new image is NOT MEASURED until the first run.

Implemented-by: claude/issue-37095-ci-pgvector
Reviewed-by: fresh subagent of session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — REWORK · L1 · head da2e1e22528bc1acd85309b8c0637ef815d9f87c · 2026-11-24T23:48Z

Requested by zone a4-K (7147713376) for card #37095. Beside the contract review at this head (CONTRACT_REVIEW_TIER): PASS with four should-fix — this round's REWORK, except S1's policy half, which goes to the maintainer.

Holds: ruling B (7146156389) as worded — temporal-conformance runs on merge_group when the diff hits temporal_live (fail-open on a failed filter, matching the filter contract), skips on a miss and on pull_request, and is unchanged on push, schedule and dispatch; the exact image tag mirror.gcr.io/pgvector/pgvector:0.8.7-pg16 exists with the recorded digest (same PG major, entrypoint, pg_isready); the new test is gated by declareDialectCell(PG_CELL) and proves CREATE EXTENSION and distance ordering. skip-changeset, Clause-②: no. Check-runs: 44 success, 14 expected skip, 0 failed. The dev's push-before-gates ordering is accepted (gates rerun clean).

S1 (should-fix) — Temporal Conformance (live PG + MySQL) is not a required context (tombstoned in scripts/check-required-contexts.mjs, absent from AGENTS.md's list), so a red run in the queue ejects nothing: the PR body's 「挡住相关合并」 and comment 7147713376's "a red there ejects the PR" are wrong. Correct both to what is true: the queue run reports, it does not block. Whether to make the context required is a separate maintainer question — the seat has put it to the maintainer; this PR does not change the required set.
S2 (should-fix) — the #22998 "two speeds" text is now stale in three places: the ci.yml TWO SPEEDS header (~130-137), the filter comments (~332-345, ~454), and docs/agents/multi-agent-discipline.md ~138 (governed; same Tier H PR). Amend each to name the one exception and cite 7146156389.
S3 (should-fix) — the temporal_live path list misses files this job selects: packages/metadata-protocol/src/migrations/live-mysql-database.isolation.test.ts (the step's live-mysql substring picks it) and the service-analytics tests that key live cells on OS_TEST_POSTGRES_URL, which only this job runs against a server. Add them; restate the hit-rate and minutes (about +19% hits).
S4 (should-fix) — the image and the new test have never run in CI (the job skips on the PR; the local run used pgvector 0.6.0). Before the hand-off, an operator workflow_dispatch of ci.yml on the PR branch, its result linked in the body — a one-off pre-check, not the standing path ruling B rejected as A.

Minutes: the ~1,400/30 days estimate is plausible but only partly reproduced (a shallow local window scales to ~1,130); state the method and the window.

Delta contract review and delta L1 on the new head, then the hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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. Temporal Conformance (live PG + MySQL) is not in the required set, so a red run of it in the merge queue is advisory — the entry would still land and the red would show on main. The body is being corrected in the same patch round. Area: a4-K.

…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>
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 25, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpRrYuqSLCvbSk9zrL

Final head for delta review (2026-11-25T00:57Z): e6cb50b2549117a8a9cfd7e4c44fc3b6759235df — check-runs on it: 45 success, 13 skipped, 0 failure, 0 pending; draft, no auto-merge, no workflow triggered. Area: a4-K.

  • Rework of contract review 7147819716 and L1 7147827756: body corrected (the queue run is advisory, not required; enrolment is a separate ruling); the "two speeds" rule text amended in ci.yml (three places) and docs/agents/multi-agent-discipline.md, citing 7146156389; temporal_live gains the *live-mysql* / *live-postgres* metadata-protocol set and the 22 service-analytics PG files; image pinned …:0.8.7-pg16@sha256:484e8380…; minutes restated with method and windows (≈1,550 / 30 days; ≈1,380 scaled from 10 days; both lower bounds).
  • Still with the maintainer: one operator workflow_dispatch of ci.yml on claude/issue-37095-ci-pgvector (the relay can only dispatch on main). What to read on that run: Temporal Conformance (live PG + MySQL) = success, and the driver-sql step listing sql-driver-37095-pgvector-extension.test.ts (2 tests).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e6cb50b2549117a8a9cfd7e4c44fc3b6759235df
Local-runs: none
Scope: .github/workflows/ci.yml + docs/agents/multi-agent-discipline.md, packages/drivers/driver-sql/src/sql-driver-37095-pgvector-extension.test.ts

DELTA review from da2e1e22528bc1acd85309b8c0637ef815d9f87c (record 7147819716, PASS with four findings that all carried the id S1) to this head. They are numbered here as the seat's L1 7147827756 numbered them: S1 = the PR body said a red queue run ejects the entry; S2 = stale #22998 "two speeds" text; S3 = gaps in the temporal_live path list; S4 = no run of the job before the hand-merge.

Inputs read: git diff da2e1e22528b e6cb50b25491 (one commit, one parent; 2 files, +55/-19: ci.yml and docs/agents/multi-agent-discipline.md; the test file is unchanged), the PR body and its six comments (7147827756 and 7149072772 included), the 58 check-runs on the head (45 success, 13 skipped, 0 failure, 0 pending; Temporal Conformance (live PG + MySQL) skipped, as expected on pull_request), mergeable_state clean, draft. One registry read on 2026-11-25: GET mirror.gcr.io/v2/pgvector/pgvector/manifests/0.8.7-pg16 answered 200 with sha256:484e838076e04939d27d3e176e91c86eea96236126023be8d3059761122e579f.

Merge commits: the branch holds none (git rev-list --merges origin/main..HEAD is empty; three single-parent commits on merge-base 9c5fb3efdf33), so there is no merge tree to compare against git merge-tree --write-tree.

① Derived judgments

S1: closed

S2: closed

  • ci.yml, three places, each read on the new head: THE TWO SPEEDS header names dogfood-verify and ui-published-artifacts as the two-term jobs and temporal-conformance as the exception, cites ruling record 7146156389, and states the run is advisory; the filter.outputs comment adds temporal_live to the outputs that read the step on merge_group and says the job reads temporal_live there instead of core; the paths-filter step comment drops "for the ui outputs alone" and cites 7146156389.
  • docs/agents/multi-agent-discipline.md (Two speeds paragraph): Dogfood Verify CLI and UI Published Artifacts stay full-battery only; one exception for Temporal Conformance on a temporal_live hit, citing 7146156389, "not a required context, so that run is advisory and a red lands on main".
  • Does the doc edit move a rule beyond the ruling? No. The first half is ruling B as worded. The second half restates a fact that predates this PR (the context is 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 in scripts/check-required-contexts.mjs); it grants no agent a new permission, changes no order of work and takes nothing away from the maintainer. The eleven-context list above it is untouched. The template for these paths carries no Rule-change-verified: line (no .claude/** path in the diff), so none is written here.
  • Still stating the old rule, named in the PR body and left on purpose: the tombstone prose in scripts/check-required-contexts.mjs. Accepted: it is about the required set, which this PR does not change.

S3: closed

  • metadata-protocol: packages/metadata-protocol/src/**/*live-mysql* and …/*live-postgres* replace the three narrower globs. Against the head's tree they select the 10 files that carry either substring (9 test files, live-mysql-database.isolation.test.ts among them, plus the testkit), which is the set the step's vitest run live-mysql live-postgres substrings select, plus the testkit those files import.
  • service-analytics: 22 files listed by hand. Re-derived with git grep -l OS_TEST_POSTGRES_URL -- packages/services/service-analytics on the head and on origin/main: 22 files both times, and the sorted set is byte-identical to the 22 paths in the filter. No other file in the package names the variable, OS_TEST_MYSQL_URL, or a live-dialect helper; the one helper all 22 import (default-organization.testkit) is imported by 48 files and holds no PostgreSQL code. The list is complete today.
  • Hand-list or glob. The only glob available is the whole __tests__ directory (223 files); the prior round measured the whole package at 74 hits against 51 for the 22 files in the same window, about 45% more runs for files with no live cell. The hand-list is the choice that matches ruling B's "related files" and is accepted. Its cost is drift, which the ci.yml comment and the PR body both state.

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 core path). A filename convention such as metadata-protocol's *.live-postgres.test.ts, or a small gate comparing the list to the grep, would remove it. Follow-up card; not a reason to move this head.

  • Filter syntax. The workflow parses as YAML on the new head; the filters block parses to 28 single-quoted entries under temporal_live, same indentation and quoting as its neighbours; *live-mysql* is ordinary picomatch (a leading * matches the empty prefix, so live-mysql-database.* is selected). The output line (steps.changes.outputs.temporal_live || 'true') and the job's if: are unchanged from the reviewed head. The filter job and every lint gate are green on this head.
  • Image pin. image: mirror.gcr.io/pgvector/pgvector:0.8.7-pg16@sha256:484e838076e04939d27d3e176e91c86eea96236126023be8d3059761122e579f. The digest is character-for-character the one record 7147819716 read from the registry, and the tag still resolves to it today. This takes up the prior record's nit; services.*.image accepts tag@digest and Docker then pulls by digest. readWorkflowDiff already reads this PR as Tier H by content, so the pin changes no tier.

② Semver level

Unchanged from record 7147819716: Clause-②: no holds. The delta touches a workflow file and an agent doc; nothing published moves. skip-changeset stands (Check Changeset reads skipped on this head under the label).

③ Boundary flags

S4: closed

  • Closed as a review finding only: no diff can satisfy it, and the dev routed it where the finding sent it (PR body Acceptance notes; comment 7149072772: the relay can dispatch only on main). The run itself has NOT happened and is the open landing condition, with the maintainer:
    • one operator workflow_dispatch of ci.yml on claude/issue-37095-ci-pgvector (the workflow declares workflow_dispatch; on that event the job's if: is true);
    • read two lines: Temporal Conformance (live PG + MySQL) = success, and its driver-sql step lists sql-driver-37095-pgvector-extension.test.ts (2 tests);
    • if the maintainer declines it, the same two lines are read on this PR's own queue run before the entry lands (the PR hits ci.yml, so the job runs there), and a red is a revert, because that run is advisory.
  • Until one of those is read, the image, the digest pull through the mirror and the new test have never run in CI; the only live run is local on pgvector 0.6.0. The card's acceptance "the test passes in that job" is unread, and the PR body says so.
  • open_questions: none new. Whether to enrol the context in the required set is with the maintainer as its own ruling, outside this PR.
  • SQL push-down check: not applicable; the delta holds no code.

④ Design judgment

.github/workflows/ci.yml against ruling 7146156389: the delta changes comments, the path list and the image reference; the if: and the fail-open output are as reviewed. The widened list is what the ruling's "related files" covers for the legs this job runs against a server (driver-sql whole suite, the 22 service-analytics files, the metadata-protocol live set, the runtime cascade-delete file, the store's package, this file). No path was added that the job does not exercise, except packages/plugins/knowledge-pgvector/**, noted in the prior record for #37100.

docs/agents/multi-agent-discipline.md against the same ruling and the required-set code it describes: agrees with both (① above).

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 ci.yml) is not reproducible here: the local history starts 2026-11-14. In the window that can be counted (2026-11-14 to 2026-11-24) the new path list hits 49 of 1,550 first-parent commits, 4 of them ci.yml (body: 51 of 1,605, 3 ci.yml; the difference is the window edge). That is 3.2% against the body's 3.3%, and scales to about 143 hits, ≈1,290 minutes per 30 days (body's own 10-day scaling: ≈1,380). Same order on both windows; plausible, and a lower bound as the body says (re-queued entries rerun the job; the push run after each hit is already paid today). The per-run time on the new image is NOT MEASURED until the first run.

No new problem found in the delta.

No must-fix, no should-fix.

Implemented-by: claude/issue-37095-ci-pgvector
Reviewed-by: fresh subagent of session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head e6cb50b2549117a8a9cfd7e4c44fc3b6759235df · 2026-11-25T01:04Z

Delta L1 for card #37095 over the REWORK at da2e1e2252 (7147827756), beside the delta contract review at this head (7149149161, CONTRACT_REVIEW_TIER): PASS, S1–S4 closed, no must-fix, no should-fix, nit N1.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

维护者速读

  • 用户能看到什么变化:用户无感。CI 里带数据库的测试任务改用带 pgvector 的 PostgreSQL 镜像(按指纹锁定),新增一条验证向量扩展的测试;按你的裁决 B(记录 7146156389),改到相关文件时合并队列也跑这个任务,PR 阶段仍不跑。
  • 为什么做:知识检索的 pgvector 存储需要真实数据库验证;你已定这个任务不设为必过(「ci(temporal-conformance): PostgreSQL service on pgvector's PG 16 image; merge-queue run on live paths #37155 不需要」),所以队列里的这次运行只作提示,变红不挡合并。
  • 出错会怎样:坏镜像不会被拦下,会进 main 并让之后的主干运行变红;改回原镜像一行即可撤回。每 30 天约多花 1,550 分钟机器时间(下限)。
  • 要你做什么:批准并手工合并。契约审核复审 PASS:记录 7149149161,Head-sha e6cb50b2549117a8a9cfd7e4c44fc3b6759235df。可选:合并前在分支 claude/issue-37095-ci-pgvector 上手动触发一次 ci.yml,看 Temporal Conformance (live PG + MySQL) 成功、driver-sql 步骤含 sql-driver-37095-pgvector-extension.test.ts (2 tests);不跑的话,席位在合并后读主干这一跑,变红即回滚。

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 .github/workflows/**). Seat ACCEPT above at this head; contract review PASS 7149149161, Head-sha e6cb50b2549117a8a9cfd7e4c44fc3b6759235df; 0 failed check-runs. After your approval the seat lands it.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 25, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 25, 2026 01:44
@os-zhuang
os-zhuang enabled auto-merge November 25, 2026 01:44
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 25, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Queue ejection, not this PR · 2026-11-25T02:06Z

The queue ejected this PR on Test UI (1/16): studioAddress.guard.test.ts timed out at 15 s. This PR touches no ui file. That timeout is a known flake, filed as #37174, with the fix in flight at the seat. The seat re-lands this PR once #37174 merges. A merge-only head move keeps the maintainer's approval and the ACCEPT. No rerun before then.

Blocked-by: #37174

@os-zhuang
os-zhuang added this pull request to the merge queue Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 45528039199 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (5/10) — 失败步骤: Run this shard's tests

    @objectstack/cli:test:  FAIL   integration  src/commands/migrate/data-commands.absent-database.integration.test.ts > [#21552] the rest of the family: a project with no database yet is empty work, exit
      ↳ 失败原因: @objectstack/cli:test: Error: Hook timed out in 480000ms.
    
  • Test UI (1/16) — 失败步骤: Run the ui tests (shard 1/16)

    × no ui source outside the builder spells one 16669ms
    FAIL   unit  packages/app-shell/src/views/studio-design/studioAddress.guard.test.ts > no Studio address is built by hand under ui/ (objectstack#36895) > no ui source outside the builder spells one
      ↳ 失败原因: Error: Test timed out in 15000ms.
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 4 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpRrYuqSLCvbSk9zrL

S4 measured: closed · read from the first merge-queue build of this PR (queue commit a261b475eb, run 45528039199)

  • Temporal Conformance (live PG + MySQL): success, job 138916382931.
  • Image pulled by digest through the mirror: mirror.gcr.io/pgvector/pgvector:0.8.7-pg16@sha256:484e838076e04939d27d3e176e91c86eea96236126023be8d3059761122e579f
  • driver-sql step: ✓ src/sql-driver-37095-pgvector-extension.test.ts (2 tests) 114ms

That build was ejected for timeouts in two other jobs, and neither touches this PR's diff: Test UI (1/16), which is #37174 / #37181, and Test Core (5/10), a cli hook timeout filed separately.

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: the PostgreSQL job runs on an image with the pgvector extension

3 participants