Repository navigation
fix(postgres): qualify support claims by proven surface - #177922
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 23eaa10688
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| databaseEngines: { | ||
| experimental: databaseFamilies.some((family) => family.effective === "postgres"), | ||
| // All selectable engine/search features are supported; deployment qualification is separate. | ||
| experimental: false, |
There was a problem hiding this comment.
Derive the experimental flag from selected search features
When memory.search.sources includes "sessions" and memory.search.experimental.sessionMemory is enabled, an experimental search feature is selected, but this hard-coded value still reports false. That contradicts the newly documented meaning of databaseEngines.experimental and can cause status consumers to treat such configurations as fully non-experimental; either account for the selectable experimental search setting or narrow the field's documented contract.
Useful? React with 👍 / 👎.
|
Merged via squash.
|
What Problem This Solves
PostgreSQL setup, Doctor, status and configuration help still call proven storage paths experimental and contain stale restore/native-cutover claims.
Related: #174642, #174462, #174912, #174599, #177795.
User Impact
PostgreSQL 17 is documented as a supported alternative for all five configurable families, mixed engines, Gateway/CLI flows and memory/search. Local anchors, credentials, pins and safety journals remain local by design. The matrix keeps missing platform, TLS, exec-provider, server-major and published-stable-upgrade qualification explicit; no new options or storage behavior are introduced.
status --jsonretainsdatabaseEngines.experimental. It now represents selected experimental engine/search features, so it is false for the currently supported selections, including PostgreSQL and mixed mode. This flag does not certify deployment qualification or physical-store health. Doctor retains its specific mismatch, missing-capability, unknown-state and recovery findings instead of warning merely because PostgreSQL is selected.Ready for coordinator claims review; do not merge as part of this lane. The macOS app row stays pending signed-app proof. The coordinator owns that proof, any claim update, and landing. iOS/iPad is not claimed without real-device evidence.
Why This Change Was Made
The ledger was written first from the roadmap, current source/test owners and landed PR evidence, then independently audited. R19 did land; its memory transcript ACL candidate window is shared with SQLite and is not a PostgreSQL-specific gap. Search remains engine-local in ranking/tokenization. All four R21 backup gaps landed in #174698 and #174744; archive restore now imports producer-owned capsules and preserves copied user exports.
The smallest implementation removes the obsolete warning branches and changes labels/help. No extra health probes, SecretRef resolution, registry, config switch, schema or compatibility layer was added.
pr-simplifyretained the existing owners and regression coverage. Production +18/−33 (net −15); tests +33/−18 (net +15); docs/generated +184/−81 against the starting main revision.Evidence
--maxWorkers=1; total runner wall 61.10 s. The changed expectations were first run on the old production code and failed for the intended warning/flag/label/error text differences. Per-suite Vitest wall: protocol 0.12 s; config 30.29 s (mostly compilation); status overview 4.02 s; Doctor/status JSON 18.72 s combined. PR CI timings are pending.pnpm docs:list, MDX, glossary, ordinary link audit, config examples, Markdown lint, changed-file format andgit diff --check: passed.config:docs:gen;config:docs:checkandconfig:schema:check: passed. The base schema is runtime-computed; its generator has no committed file.gateway/config-tools.md,gateway/protocol/rpc-talk-config-and-agents.md,providers/ollama.md,releases/2026.10.1.md,releases/2026.9.2.md); the linked targets are also unchanged. ClawHub fragments were not checked because its separate docs checkout is absent. Ordinary link audit has zero broken links.pnpm tsgo:corethrough the pinned repository typechecker: passed.Evidence ledger — 25 Supported / 6 Experimental / 2 Not supported
The qualification baseline is PostgreSQL 17 with UTF8,
unaccent,pg_trgm, and pgvector. The CI owner is.github/workflows/ci.yml→PostgreSQL conformance (1/3, 2/3, 3/3)→scripts/test-database-conformance.mjs. There are exactly five configurable families; safety stores have no engine override. A supported row means the named flow has real PostgreSQL proof; it does not promise identical ranking, performance, or every platform/server combination. PR links below are landed prerequisites, not claims that their historic aggregate CI was all green. Their bodies record inherited failures where applicable; the roadmap records subsequent repair and main conformance runs.state(including Matrix retained account/token roots)state-port.postgres.test.ts,matrix-roots.postgres.test.ts, shared-feature conformance.agentagent-port.postgres.test.ts, session-actor and mixed-agent conformance.workboardextensions/workboard/src/postgres-store.test.tsandport-command.postgres.test.ts; included in five-family mixed/restore proof.logbooklogbook-port.postgres.test.ts; frame files remain local.team-reportsteam-reports-port.postgres.test.ts; collected scratch is session-local.cli-oneshot.postgres.test.ts,offline-auth.postgres.test.ts.interactive-setup.integration.test.ts. PGonboard --resetdeliberately refuses.doctor-database-engine.test.ts, diagnostics/inspection tests anddoctor-migration.postgres.test.ts. Unknown evidence is not OK; selected vs observed remain separate.archive-restore.postgres.test.ts,git-backup-secrets.postgres.test.ts,git-backup.postgres.test.ts. Released 2026.10.4 SQLite archive → current restore also passed. All four R21 backup gaps landed. Not cluster PITR orchestration.mixed-mode.conformance.test.ts, mixed-agent suites.multi-namespace.postgres.test.tsseparate-database concurrency/identity/lock proof; R20 live two-installation proof.memory-public.postgres.test.ts,session-search-product.postgres.test.ts,extensions/memory-core/src/tools.postgres.test.ts,standing-intents.postgres.test.ts. Real indexing/rebuild/forget/reset, pre-limit vector filters, bounds, missing capabilities. Text scores/tokenization are engine-local, not SQLite FTS5 ranking parity. The memory transcript 200-candidate ACL postfilter also exists on SQLite; R19b was dropped for that reason.state; separately registered families follow their selection. Arbitrary private plugin databases andmemory-lancedbdo not inherit PG support.f5de32afc6a5: traced 16.67 requests / 68.67 trips / 82.67 SQL; C=64 320/320, 5.04 turns/s, p95 16.86 s. Wave-28d5aeceb2b89e: traced 72.33 SQL / 59.33 trips vs SQLite 52 SQL (20.33 SQL gap), no causal operation increase. C=64 apparent 4× slowdown reproduced on unchanged control under host load; residual ~5% confounded by optional cost-summary work. No equal latency claim.schema-admission.postgres.test.ts.config.test.tstests host resolution, missing/store-backed refusal; CLI/setup conformance uses env SecretRef; no DSN disclosure in reports.bridge.worker.tspasses the DSN topg.Client; operator guide describes driver TLS options. CI uses plaintext loopback. Next: prove CA/hostname verification and invalid-certificate/hostname refusal through the PG bridge. Do not treat parameter forwarding as a TLS acceptance run.unaccent,pg_trgm,vectorrequirementsmemory-public.postgres.test.tsuses separate databases missing each extension and checks actionable refusal/explicit keyword-only mode. Installed by administrator, never auto-installed.No configured family or memory/search mode remains experimental on the qualified runtime. The retained
status --jsonkeydatabaseEngines.experimentaldescribes selected engine/search features and is therefore false for current supported selections. It is not a certificate for server-major, TLS, SecretRef-provider, native-device, performance, or published-upgrade qualification. Doctor continues to report real per-store mismatches, missing capabilities, and unknown/unreachable state instead of warning solely because PostgreSQL is selected.