Skip to content

feat(database): share experimental database engine adapters - #169933

Merged
steipete merged 3 commits into
mainfrom
pgprep/database-engine-adapters
Oct 12, 2026
Merged

steipete merged 3 commits into
mainfrom
pgprep/database-engine-adapters

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Coordinator review and async-DB file coordination are complete.

Related: #169214, #169254, #169414

What Problem This Solves

PostgreSQL selection, anchor admission, and write settlement were workboard-specific, preventing other stores from adopting one engine contract.

User Impact

SQLite remains the default: existing installations keep their stored data, SQLite schema owner, and statement counts. Opting into experimental database.engine: "postgres" selects PostgreSQL for workboard; unported store families remain on SQLite and Doctor reports the selections with one experimental/mixed-engine warning.

There is no silent SQLite fallback. Existing SQLite workboard data cannot switch engines until a port tool exists. PostgreSQL currently supports fresh bootstrap and matching schemas, not forward migrations.

Why This Change Was Made

src/infra/database-engine/ owns adapters, physical-store admission, bootstrap/version/identity checks, transaction capabilities, host secret preparation, worker settlement, and observation. Workboard registers its generated PostgreSQL DDL and consumes the generic open/operation paths; its private PostgreSQL opener and database-config module are removed.

The existing config fields use experimental labels/help, a SecretRef-capable connection, and the default openclaw schema prefix. Secrets resolve on the host through the secrets owner and travel through the existing worker input transport. Secret configure/audit/preparation includes the connection only when PostgreSQL is selected.

PostgreSQL connections reject main-thread opens except explicit admission/migration. Setup installs adapter-owned connect/lock/statement timeouts once. The connect budget is 60 seconds, leaving 60 seconds below the sync bridge's 120-second request deadline. Every confirmed PostgreSQL commit (including raw and read-only COMMIT) and uncertain commit outcome advances the anchor token; rollback retains it. Shared SQLite transaction/Kysely code dispatches through the leaf connection contract. The compile-only query compiler moves to a shared SQL leaf, keeping PostgreSQL implementation modules out of SQLite-only static closures.

The database engines guide documents configuration, supported stores, isolation/durability, matched PostgreSQL/anchor backups, limitations, and diagnostics. Statement events describe connection execution calls, with compound SQL retained as one normalized event; subscriptions are isolate-local and never include bindings.

Update behavior: omitted config continues to select SQLite. Existing PostgreSQL pilot anchors retain their UUID/schema and require matching metadata; this extraction adds no PostgreSQL migration or data conversion.

Evidence

The r2 repair preserves the original connection-setup error through the sync bridge and rethrows it with cause, a redacted code/reason, and the existing next-step hint. Unit regressions cover authentication failure, exhausted connections, and connection timeout without exposing the DSN or password.

R2 targeted proof at d9dfb6fc12699 (same source throughout those runs):

Scope Result Wall seconds
All src/infra/database-engine/*.test.ts plus src/infra/postgres-sync/connection.test.ts 32 passed 437.54
PostgreSQL command.test.ts 13 passed 1103.47
SQLite command.test.ts 13 passed 559.88
SQLite lifecycle-sync.cleanup-recovery.test.ts 4 passed 272.10
PostgreSQL cleanup-recovery, first r2 attempt 2 passed / 2 failed 1120.86
PostgreSQL cleanup-recovery, one replay 4 passed 689.54

The first r2 PostgreSQL cleanup run passed the originally failing initial-sweep case. It instead missed the existing wait window for a retained-worktree callback and observed the blocked-worktree callback before the subsequent metadata write. The cleanup owner awaits removal and then awaits the store update; no test timeout or lifecycle implementation was changed. The single unchanged PostgreSQL replay passed all four cases as host load fell from roughly 155 at the first file start to 72 at replay completion. This supports the load-related timing diagnosis; it is not a new lifecycle-code repair. No connection-open failure occurred in the r2 command proof, so the old swallowed error's original cause cannot be recovered.

SQLite's initial pnpm test command attempt reached the harness's 900-second no-output watchdog without assertions (1234.33 seconds total); a direct-wrapper attempt exposed its shorter 120-second default (263.10 seconds). The final direct-wrapper runs explicitly use the same 900-second harness budget as pnpm test, with all test timeouts unchanged. The above passing results came from that supported wrapper; both preparation failures remain reported here.

R2 changed-file oxfmt/oxlint, whitespace checks, and madge pass (0 cycles; 178.22 seconds). The isolated r2 delta review is scoped-clean through P2. Earlier broad conformance and other unchanged-scope proof below remain valid evidence; no fresh full-suite run is claimed.

After GitHub reported a merge conflict, this branch integrated main at e98a15b7d695. The only manual conflict was the generated configuration checksum, regenerated and checked through its owner. The runtime overlap is upstream's explicit empty transfer list in PostgresSyncConnection; the focused connection file passes again (11 tests, 318.68 seconds), with changed-file formatting/lint/whitespace, config-doc checks, and the post-merge cycle check passing. No additional adapter logic or test timeout changed.

Original full run: the PostgreSQL conformance run had three failures. Two command.test.ts cases failed to open a connection after approximately 17.8 seconds; lifecycle-sync.cleanup-recovery.test.ts missed the initial cleanup callback inside its existing vi.waitFor. At that point the connection timeout was 15 seconds; the test files were unchanged. PostgreSQL remained available and subsequent cases passed. This is not a green conformance result; a bounded diagnostic reproduction of both files was stopped after 608.21 s of preparation without completing an assertion (692.60 s CLI wall including cancellation cleanup). It adds no passing proof and does not establish the cause of the original failures.

  • PostgreSQL via config: 361 passed / 47 skipped / 3 failed, CLI wall 5707.15 s. Default SQLite: 400 passed / 11 skipped / 0 failed, CLI wall 2257.13 s. Both use pnpm test extensions/workboard src/infra/database-engine/config.test.ts --maxWorkers=1; PostgreSQL uses a throwaway Homebrew PostgreSQL 17 cluster over a Unix socket and a conformance preload that supplies config through worker environment data.
  • The merged feat: experimental PostgreSQL engine for the workboard store #169214 baseline contains 411 cases, rather than the earlier 412: before merge, a two-case sessions-board in-flight-read test was consolidated into one source-invalidation case. This extraction removes no case; the four relocated host-config tests remain included. The merged reference is 364/47/0 for PostgreSQL and 400/11/0 for SQLite.
  • A real SQLite workboard.boards.register executes 4 statements before and 4 after. Direct negative/positive proof also confirms grouped SQLite writes roll back after a later failure; the existing grouped-write/claim regressions cover both engines.
  • Import closures contain no postgres-sync modules. Runtime-only counts: SQLite transactions 130 modules, Kysely 11, host workboard facade 855. Including type imports: 352 / 11 / 4,969, also clean. Madge reports 0 cycles.
  • Changed-file oxfmt/oxlint (complete 55-file live path set; formatter matched 50), git diff --check, pnpm config:docs:check, and pnpm plugin-sdk:check-exports pass. The three original Codex reviews and the additional r2 delta-only review are scoped-clean through P2.
Earlier focused test results and cost

All commands use pnpm test <file> --maxWorkers=1. Wall time includes worker/module preparation on the loaded local host; PR CI seconds are pending.

File / scope Passed CLI wall seconds
src/infra/database-engine/registry.test.ts 2 28.86
src/config/zod-schema.database.test.ts 8 106.34
src/infra/database-engine/open.test.ts 2 506.01
src/infra/database-engine/observation.test.ts 10 37.86
src/infra/postgres-sync/connection.test.ts 11 549.20
src/commands/doctor-database-engine.test.ts 2 99.43
src/secrets/target-registry.test.ts 6 577.65
Workboard sqlite-store-batch-read, sqlite-store.lifecycle, and sqlite-store-policy test files 45 1307.91

The four host config/SecretRef tests are included in the conformance totals. The two extended grouped-rollback cases took about 80 ms each on warm SQLite and 4.7–7.0 s on PostgreSQL, including their existing fixture and claim checks. No timers, sleeps, worker pins, or serial test configuration were added.

Earlier changed-file formatting/lint/whitespace: 138.41 s. Config documentation: 54.98 s. SDK export check: 5.11 s. Madge: 1005.31 s. Type-inclusive import closure: 52.03 s.

A supplemental runtime-inactive-core-surfaces.test.ts attempt was stopped after 490.47 s without assertions while module/filesystem work held source preparation. Its new prepared-secret-owner cases remain a local proof gap for CI. The broader type-aware lint wrapper timed out during declaration preparation; direct changed-file oxlint passed. Broad builds, types, and suites remain PR CI's responsibility. Early test preparations invalidated by source edits were discarded; final proof uses frozen sources.

Production diff: +646 net lines. No Testbox/Crabbox leases were used. All task-owned throwaway Homebrew PostgreSQL 17 clusters were stopped, verified stopped, and their data directories removed. Server logs are retained outside the repository.

Async-owned touch points:

  • src/infra/kysely-sync.ts: import-only relocation of the compile-only SQL compiler; native function bodies unchanged.
  • extensions/workboard/src/sqlite-store-kernel.ts: adapter-owned snapshot selection; the original native write-transaction API is preserved.
  • extensions/workboard/src/sqlite-store.worker.ts: generic engine input and adapter-owned outer write envelope.
  • src/infra/postgres-sync/bridge.worker.ts: install adapter-owned connect/lock/statement timeouts once and preserve connection-setup socket codes.

No src/state/** or src/infra/sqlite-* production edits. Coordinator and async-DB file coordination are complete.

Landing CI follow-up

CI run 38261570475 tested 65d68564e14a82685b5adfe11f28602b04b2d066. It failed; no green run is claimed.

The single CI repair commit aligns the moved SQL compiler with the native wrapper inventory, preserves mock exports, removes a test-only core import, binds the workboard transaction callback, records engine schema/bootstrap raw-SQL ownership in the guard, and updates the approved shared-adapter SDK surface budgets. No CHANGELOG edit.

Classification Jobs / evidence
Targeted by the single fix push; residual inventory issue documented below check-additional-boundaries, check-guards-architecture, checks-fast-baseline-ratchets, check-lint-extensions-3, checks-node-compact-small-3, checks-node-compact-small-5, checks-node-compact-small-6, checks-node-changed-compact-large-10
Inherited checks-node-changed-4: the same SDK entrypoint-guide declaration case fails on main run 38258960208 and run 38253366956.
Infrastructure checks-node-changed-compact-small-14-2: HTTP 504 during runner setup, before test execution.
Unverified against main checks-node-changed-19, checks-node-changed-20, checks-node-changed-21, checks-node-changed-extensions-bundle-13, checks-node-changed-extensions-bundle-22-2, checks-node-changed-extensions-bundle-33, checks-node-changed-extensions-bundle-8. The sampled scheduled-main runs do not contain matching cases; these have not been labeled inherited or passing.

Fix validation: independent Codex review scoped-clean through P2; adapter diagnostics 3 passed (302.72 s Vitest), Doctor 2 passed (15.19 s Vitest), PostgreSQL conformance file 11 skipped without a live PostgreSQL lane (78.45 s Vitest). Formatting and whitespace checks passed. Local type-aware lint did not reach lint assertions: its declaration-preparation child hit the 300-second managed-command timeout. Required CI remains the broad proof.

Final CI classification after the single fix push

Head 177d21a9a078fc32c0dbc4428d5b20ebd691cc6b was tested by CI run 38266187191. The boundary, architecture, baseline-ratchet, extension lint, and security-fast checks passed. Eight non-aggregate jobs still failed; no second fix push was made.

Remaining class Evidence
Small PR-caused wrapper-inventory failure Job 114869437472: scripts/pr-lib/wrapper-components.txt still lacks src/infra/database-engine/observation.ts and src/infra/database-engine/policy.ts. The two static closure cases pass on main job 114844765748. This remains disclosed under the one-fix-push limit; it is not product-behavior proof.
Unverified against matching main cases checks-node-changed-19, checks-node-changed-20, checks-node-changed-21, checks-node-changed-extensions-bundle-8, checks-node-changed-extensions-bundle-11, checks-node-changed-extensions-bundle-24, checks-node-changed-extensions-bundle-33. These have not been relabeled inherited or passing.

Native exact-head review validation and prepare-run completed. Native merge-run --auto-merge refused the failed aggregate gate before submitting a merge request; no merge outcome receipt was created. The operator's explicit relaxed landing rules allow only one small-failure fix push, stop only for a proven product regression, and authorize head-pinned REST squash after a native-merge stall exceeding ten minutes. No product-behavior regression has been proven by the available comparisons.

Landed by the operator-authorized, head-pinned REST squash fallback at 2026-10-12 15:22:55 UTC, commit 9dc64662f16ef6af61aed51c6ba16445b8d607d8, after the native merge remained blocked for more than ten minutes. The commit is on origin/main; all 59 merge-commit file paths match the PR file list. The CI exceptions above remain recorded, not relabeled green.

Keep SQLite as the default and move PostgreSQL admission, setup policy, and worker settlement behind the database engine owner. Preserve redacted connection failure diagnostics and allow a 60-second connect budget below the 120-second bridge deadline.
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts commands Command implementations plugin: file-transfer plugin: workboard size: XL labels Oct 12, 2026
Regenerate the configuration checksum to resolve the draft PR conflict. Preserve the reviewed adapter changes and the upstream explicit worker-message transfer list; verify the connection contract, configuration docs, and import cycles after integration.
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR shares experimental database adapters across stores and adds engine diagnostics while preserving SQLite as the default.

Example: Run Doctor with database.engine set to postgres.

  • Before: Database selection is workboard-specific, without a consolidated engine report.
  • After: Doctor reports Workboard: postgres and Shared state: sqlite, with an experimental mixed-engine warning.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Production-path conformance supports the extraction, but a confirmed runtime packaging defect prevents readiness.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied evidence covers real PostgreSQL 17 conformance and direct SQLite board registration.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Experimental PostgreSQL support is tied to workboard, and operators lack consolidated reporting of which stores use each engine.
Reason: Maintainer-authored direction shares the existing pilot rather than creating a competing store owner, while retaining current defaults and documented limitations.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: the maintainer-directed extraction is useful, but the earlier wrapper inventory finding remains partially unresolved and blocks merge.

Priority: P2
Reviewed head: 177d21a9a078fc32c0dbc4428d5b20ebd691cc6b

Before merge

  • Include the new bridge dependencies in the wrapper inventory (P2) - The earlier inventory finding is only partially fixed. Replacing the compiler path leaves src/infra/database-engine/observation.ts and policy.ts absent, although the inventoried PostgresSyncConnection now imports both. The trusted wrapper extraction copies only its inventory, so dependency resolution fails with unresolved ../database-engine/observation.js. Exact-head CI confirms both omissions and the extracted-fixture failure. Add both paths and verify the complete runtime closure.

Findings

  • [P2] Include the new bridge dependencies in the wrapper inventory — scripts/pr-lib/wrapper-components.txt:352-356

Tests

  • Missing end-to-end proof: Supplied evidence does not exercise engine reporting through the shipped openclaw doctor command.
Agent review details

How this fits together

Host configuration resolves database credentials, shared infrastructure admits physical stores and manages worker operations, and store kernels return results through the existing broker.

flowchart TD
  Config[Database configuration] --> Secrets[Host secret resolution]
  Secrets --> Broker[Worker broker]
  Broker --> Engine[Shared engine owner]
  Engine --> SQLite[SQLite store or anchor]
  Engine --> Postgres[PostgreSQL bridge]
  SQLite --> Kernel[Workboard kernel]
  Postgres --> Kernel
Loading

Technical review

Best possible solution:

Complete the shared engine cutover while preserving existing SQLite behavior and PostgreSQL identity, admission, and settlement contracts.

Do we have a high-confidence way to reproduce the issue?

Source inspection and exact-head CI establish the missing wrapper dependencies; no local target code was executed.

Is this the best way to solve the issue?

Moving the pilot into a shared host/worker owner is a coherent solution, but its runtime dependencies must accompany the extracted wrapper.

Full review comments:

  • [P2] Include the new bridge dependencies in the wrapper inventory — scripts/pr-lib/wrapper-components.txt:352-356
    The earlier inventory finding is only partially fixed. Replacing the compiler path leaves src/infra/database-engine/observation.ts and policy.ts absent, although the inventoried PostgresSyncConnection now imports both. The trusted wrapper extraction copies only its inventory, so dependency resolution fails with unresolved ../database-engine/observation.js. Exact-head CI confirms both omissions and the extracted-fixture failure. Add both paths and verify the complete runtime closure.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 64400ffa0503.

Provenance checked

  • Workboard PostgreSQL admission changes intended behavior with a stated reason (5e78ec6: The experimental pilot protects existing SQLite data and requires matching anchor identity and schema metadata.)
  • Commit receipt publication keeps the original intent (5e78ec6: Confirmed writes and uncertain outcomes invalidate caches through the SQLite anchor; the extraction moves confirmed publication to the connection to cover raw COMMIT.)
  • PostgreSQL SDK constructor changes intended behavior with a stated reason (5e78ec6: The pilot exposed its concrete connection to workboard; the documented replacement routes physical opens through the shared engine owner.)
  • Compile-only SQL dialect keeps the original intent (5e78ec6: Kysely needs PostgreSQL compilation without loading the concrete bridge; relocation preserves the compiler implementation.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test test/scripts/eager-import-closure.test.ts --maxWorkers=1 -t "PR wrapper inventory|extracted dependency context"
  • git diff --check

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 23719dd adds src/secrets/runtime-config-collectors-core.ts:5 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 23719dd51378; files: src/secrets/runtime-config-collectors-core.ts)

PR surface

Source +648, Tests +515, Docs +176, Config +8, Generated 0, Other +10. Total +1357 across 59 files. Added test files: 5.

View PR surface stats
Area Files Added Removed Net
Source 28 893 245 +648
Tests 15 565 50 +515
Docs 9 204 28 +176
Config 1 8 0 +8
Generated 1 2 2 0
Other 5 14 4 +10
Total 59 1686 329 +1357

Review metrics

Metric Value Why it matters
SDK capability surface 2 new entrypoints; 5 exported operations The host/worker separation replaces the workboard-specific implementation and removes the unshipped concrete PostgreSQL constructor export.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Useful experimental storage infrastructure has a focused, confirmed wrapper extraction defect.
  • merge-risk: 🚨 automation: The incomplete inventory breaks extracted PR wrapper dependency resolution, as confirmed by exact-head CI.
  • merge-risk: 🚨 compatibility: The PR adds SDK entrypoints and replaces a PostgreSQL constructor export; maintainer direction and its absence from the latest stable release support this cutover.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-12T14:11:30.567Z sha 65d6856 :: blocked before merge. :: none
  • reviewed 2026-10-12T14:23:00.388Z sha 65d6856 :: needs changes before merge. :: [P2] Update the wrapper inventory for the relocated SQL compiler | [P3] Remove the workboard test’s direct core implementation import

Reviewed October 12, 2026, 11:10 AM ET / 15:10 UTC (Revision 3).

@steipete
steipete marked this pull request as ready for review October 12, 2026 14:15
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 177d21a9a078fc32c0dbc4428d5b20ebd691cc6b
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/secrets/runtime-config-collectors-core.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/secrets/target-registry-data.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 12, 2026
@steipete
steipete merged commit 9dc6466 into main Oct 12, 2026
245 of 258 checks passed
@steipete
steipete deleted the pgprep/database-engine-adapters branch October 12, 2026 15:22
steipete added a commit that referenced this pull request Oct 12, 2026
postgres-sync/connection.ts imports database-engine/observation and policy since #169933; the eager-import-closure wrapper inventory test failed on main without them.
steipete added a commit that referenced this pull request Oct 12, 2026
Replace transcript-specific engine helpers with generic JSON primitives.
Keep field keys in the transcript owner, use real connection types, and
document PostgreSQL JSONB normalization after verifying parsed consumption.

Preserve compiled SQLite statements and bindings.

Refs #169254, #169933.
steipete added a commit that referenced this pull request Oct 12, 2026
…170059)

Preserve shared-state PostgreSQL CHECKs, indexes, and foreign keys; declare feature fragments through the existing schema owner; and validate catalog equivalence in CI. SQLite first-use statements and schema version remain unchanged.

PostgreSQL conformance passed. Inherited and unrelated Node test failures are retained under the documented maintainer exception.

Refs #169254, #169933, #169952.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…#169933)

Share database-engine contracts, physical-store admission and bootstrap, transaction capabilities, and observation. Workboard consumes the shared adapters while SQLite remains the default and PostgreSQL remains experimental.

Includes one bounded CI-contract repair. Remaining wrapper-inventory and unmatched test failures are recorded in the PR; no passing CI result is claimed. Landed under the maintainer-authorized campaign exception with the reviewed head pinned.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
postgres-sync/connection.ts imports database-engine/observation and policy since openclaw#169933; the eager-import-closure wrapper inventory test failed on main without them.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…penclaw#170059)

Preserve shared-state PostgreSQL CHECKs, indexes, and foreign keys; declare feature fragments through the existing schema owner; and validate catalog equivalence in CI. SQLite first-use statements and schema version remain unchanged.

PostgreSQL conformance passed. Inherited and unrelated Node test failures are retained under the documented maintainer exception.

Refs openclaw#169254, openclaw#169933, openclaw#169952.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: file-transfer plugin: workboard rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts security-sensitive-changed size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant