Repository navigation
feat(database): family-scoped port, backup and update for mixed engines - #174387
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: 9b969d25c3
ℹ️ 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".
| const plan = | ||
| preparedPlan ?? (await resolveBackupPlanFromDisk({ includeWorkspace, onlyConfig, nowMs })); | ||
| const selection = plan.databaseSelection; | ||
| if (!preparedPlan && !opts.dryRun && selection?.postgres && plan.databaseConfig) { |
There was a problem hiding this comment.
Require offline custody only for physical PostgreSQL stores
When a family is configured for PostgreSQL but has no store yet, resolveDatabaseEngineSelection() still populates selection.postgres, so this condition sends an otherwise SQLite-only archive through runOfflineDatabaseBackup() and refuses whenever the Gateway is running. This contradicts the documented physical-store behavior and unnecessarily prevents normal online backups for installations that preconfigure a future PostgreSQL family; base the custody decision on the discovered stores' physical engines instead.
AGENTS.md reference: AGENTS.md:L84-L84
Useful? React with 👍 / 👎.
| } catch { | ||
| result.stateInspectionFailed = true; |
There was a problem hiding this comment.
Preserve the actual family when engine discovery fails
If selection or provider discovery fails for a non-state family—for example, a PostgreSQL Workboard selection has an unavailable connection while shared state remains readable SQLite—this catch labels the failure as stateInspectionFailed and aborts all remaining family inspection. Doctor consequently reports “Shared state roots could not be inspected” instead of identifying the family whose discovery failed, while also losing other physical-engine diagnostics; record the failing family or use a separate general discovery failure rather than attributing every exception to shared state.
AGENTS.md reference: AGENTS.md:L81-L81
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7d4f42bfb4
ℹ️ 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".
| ); | ||
| // Preserve the SQLite path: a PostgreSQL-capable target needs no source copies. | ||
| if (supportsPostgres && required.size === 0) { | ||
| if (supportsPostgres && required.size === 0 && !context.config.database?.families) { |
There was a problem hiding this comment.
Carry the context selection into family inspection
When an inspected managed-service context resolves database.postgres.connection from an environment that differs from the updater process, allowing its database.families map past this condition eventually calls readPostgresBackupFamily(pathname, context.config) without context.env or a prepared engine selection. That helper therefore resolves the connection from process.env, causing a valid PostgreSQL store to be reported as uncapturable and blocking an otherwise compatible update. Preserve each context's resolved selection through the physical-family inspection.
AGENTS.md reference: AGENTS.md:L74-L74
Useful? React with 👍 / 👎.
PR #174399 intentionally requires pending SQLite migrations to finish before port, including retained roots belonging to disabled plugins. Its stated contract is: "The port preflight also inspects retained migrations belonging to disabled plugins and names the plugin if repair requires enabling it." The Matrix fixture created three retained account/token roots without the one-time inbound-dedupe scan receipt. Verify the real port refusal, enable Matrix for the registered Doctor migration, confirm completion and unchanged retained payloads, then restore the disabled configuration before the existing port, backup, resume and rollback assertions. Update/migration behavior is unchanged: operators complete Doctor repair while the stores use SQLite, enabling a named disabled plugin for repair, then port. No production guard, timeout or assertion is relaxed. Validation: reproduced all three cases on main 7d636d9. Final native PostgreSQL conformance run passed 27 tests across the Matrix port, port-preflight, Matrix Doctor and account-state suites, maxWorkers=1 (309.84s; Matrix file 248.40s). Uses CI's pinned PostgreSQL 17.11/pgvector image. Infra-test types, targeted lint, full architecture checks and independent P2 review passed. No CI dispatch or rerun. Related: #174387 includes the same prerequisite in its broader 65-file mixed-engine feature; this narrow correction independently repairs main.
The transcript-worker import reduction in #174414 intentionally changed session path lookup to consume the published runtime snapshot. The standalone shutdown fixture mocked the legacy IO getter but seeded sessions before preparing the real snapshot. Await the same async snapshot owner as Gateway startup before persistence; keep all physical/logical cleanup and cancellation assertions unchanged. Production already publishes before listeners and retires config after drains. Proof: current main reproduced all three shutdown cases. The repaired four-file focused run passed 75 cases, including those three. Targeted typecheck, lint, format, and P2 review passed. Other cluster fixes are covered by #174387, #174462, and landed f527f20; no competing edits are included.
Prepare the canonical runtime-config snapshot inside the tools-invoke state fixture before seeding sessions. Keep all HTTP, WebSocket, revocation and result-publication assertions unchanged while preserving the narrow snapshot reader introduced by #174414. Extract the fixture-only repair from still-open #174387 after the CI repair checkpoint. The shared fixture keeps the existing HTTP test from growing past its line cap; both of its importers are covered by the focused proof. Native focused proof (--maxWorkers=1): tools-invoke-http 40/40, 203.92s wall; tools-invoke-authorization 23/23, 258.42s wall. Before: 4 and 5 failures. P2 autoreview: no actionable findings. Targeted test types passed. Typed lint and focused boundary guards passed for all three changed files. Additional broad guards reported existing UI max-lines suppressions and legacy delivery API references outside this repair's scope.
41db6f6 to
6a9720b
Compare
6a9720b to
d9e1fd5
Compare
There was a problem hiding this comment.
💡 Codex Review
openclaw/src/commands/doctor-database-port.ts
Line 626 in d9e1fd5
When a scoped family has no current physical store, such as Workboard before first use, !facts.stores.length returns a successful complete result before captureOriginals() and switchConfig() run. The family override therefore remains on facts.from, so its next store is still created with the old engine even though the command reports to: facts.to; either update the selection for this zero-store case or refuse instead of reporting success.
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c10467f748
ℹ️ 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".
| message: `${family.label}: configured ${family.effective}, observed ${observed[family.id]!.join(" and ")}. Changing configuration does not migrate existing data.`, | ||
| fixHint: family.fixedLocal | ||
| ? "Restore the local SQLite safety store from its verified backup." | ||
| : `Keep the Gateway stopped and use openclaw database port --family ${family.id} to migrate this family, or restore its matching engine selection.`, |
There was a problem hiding this comment.
Include the destination in Doctor's port command
When Doctor detects a configured-versus-physical mismatch for a non-state family, this fix hint emits openclaw database port --family <family> without a destination. The command's preAction in src/cli/program/register.database.ts rejects invocations lacking --to, --resume, or --rollback, so following the suggested repair always fails; append --to ${family.effective}.
AGENTS.md reference: AGENTS.md:L81-L81
Useful? React with 👍 / 👎.
c10467f to
2d2985e
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2d2985e832
ℹ️ 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".
| @@ -52,7 +36,7 @@ export async function assertUpdateDatabaseEngineContexts( | |||
| .map((store) => store.id), | |||
| ); | |||
| // Preserve the SQLite path: a PostgreSQL-capable target needs no source copies. | |||
| if (supportsPostgres && required.size === 0) { | |||
| if (supportsPostgres && required.size === 0 && !context.config.database?.families) { | |||
There was a problem hiding this comment.
Inspect retained stores before admitting family-map updates
When an installation has an explicit family map, a discoverable PostgreSQL plugin anchor, and a retained PostgreSQL agent known only through the shared-state registry, this newly enabled path misses the agent: agentRegistry: [] excludes it from the initial discovery, while the existing plugin anchor makes postgres.length !== 0 and suppresses readUpdateStateDatabaseInventory(). A candidate declaring support for only the plugin family can therefore pass admission and strand the retained agent after the update; merge the raw registry inventory whenever shared state exists, rather than only when the first scan finds no PostgreSQL files.
AGENTS.md reference: AGENTS.md:L82-L82
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fe52878bbb
ℹ️ 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".
| selections require a family. A scoped agent port cannot put agents on a different | ||
| engine from shared state until PR3 mixed-pair conformance. `--dry-run` checks |
There was a problem hiding this comment.
Remove the obsolete agent-port restriction
This warns operators that a scoped agent port cannot use a different engine from shared state, but the same change explicitly documents SQLite state with PostgreSQL agents as supporting scoped ports in docs/reference/database-engines.md:276, and port-command.mixed.integration.test.ts:140-177 exercises that exact round trip. An operator following this CLI reference may therefore avoid a supported migration or wait for nonexistent follow-up work; document the mixed-agent flow consistently.
Useful? React with 👍 / 👎.
fe52878 to
00a7e04
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 00a7e04806
ℹ️ 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".
| if (supportsPostgres && required.size === 0 && !context.config.database?.families) { | ||
| continue; |
There was a problem hiding this comment.
Inspect retained stores before taking the SQLite fast path
When the config has no database.families map and selects only SQLite, this returns before inspecting physical stores whenever the candidate advertises generic PostgreSQL support. A disabled plugin can still have a retained PostgreSQL anchor, and a candidate whose postgresFamilies omits that anchor's family will therefore be admitted even though the new family-capability check would reject it after discovery, potentially leaving the retained store unreadable after activation. Run physical discovery before this fast path, or restrict the shortcut to installations proven not to contain PostgreSQL anchors.
AGENTS.md reference: AGENTS.md:L81-L82
Useful? React with 👍 / 👎.
Keep root help consistent with the registered database command, place physical observation types with their inspection owner, and preserve the concrete database fixture type for strict test checks.
00a7e04 to
8b0b371
Compare
|
Merged via squash.
|
PR openclaw#174399 intentionally requires pending SQLite migrations to finish before port, including retained roots belonging to disabled plugins. Its stated contract is: "The port preflight also inspects retained migrations belonging to disabled plugins and names the plugin if repair requires enabling it." The Matrix fixture created three retained account/token roots without the one-time inbound-dedupe scan receipt. Verify the real port refusal, enable Matrix for the registered Doctor migration, confirm completion and unchanged retained payloads, then restore the disabled configuration before the existing port, backup, resume and rollback assertions. Update/migration behavior is unchanged: operators complete Doctor repair while the stores use SQLite, enabling a named disabled plugin for repair, then port. No production guard, timeout or assertion is relaxed. Validation: reproduced all three cases on main b0c8a0b. Final native PostgreSQL conformance run passed 27 tests across the Matrix port, port-preflight, Matrix Doctor and account-state suites, maxWorkers=1 (309.84s; Matrix file 248.40s). Uses CI's pinned PostgreSQL 17.11/pgvector image. Infra-test types, targeted lint, full architecture checks and independent P2 review passed. No CI dispatch or rerun. Related: openclaw#174387 includes the same prerequisite in its broader 65-file mixed-engine feature; this narrow correction independently repairs main.
The transcript-worker import reduction in openclaw#174414 intentionally changed session path lookup to consume the published runtime snapshot. The standalone shutdown fixture mocked the legacy IO getter but seeded sessions before preparing the real snapshot. Await the same async snapshot owner as Gateway startup before persistence; keep all physical/logical cleanup and cancellation assertions unchanged. Production already publishes before listeners and retires config after drains. Proof: current main reproduced all three shutdown cases. The repaired four-file focused run passed 75 cases, including those three. Targeted typecheck, lint, format, and P2 review passed. Other cluster fixes are covered by openclaw#174387, openclaw#174462, and landed a223499; no competing edits are included.
Prepare the canonical runtime-config snapshot inside the tools-invoke state fixture before seeding sessions. Keep all HTTP, WebSocket, revocation and result-publication assertions unchanged while preserving the narrow snapshot reader introduced by openclaw#174414. Extract the fixture-only repair from still-open openclaw#174387 after the CI repair checkpoint. The shared fixture keeps the existing HTTP test from growing past its line cap; both of its importers are covered by the focused proof. Native focused proof (--maxWorkers=1): tools-invoke-http 40/40, 203.92s wall; tools-invoke-authorization 23/23, 258.42s wall. Before: 4 and 5 failures. P2 autoreview: no actionable findings. Targeted test types passed. Typed lint and focused boundary guards passed for all three changed files. Additional broad guards reported existing UI max-lines suppressions and legacy delivery API references outside this repair's scope.
…es (openclaw#174387) * feat(database): support family-scoped mixed-engine operations * fix(database): align mixed-engine CLI metadata and test contracts Keep root help consistent with the registered database command, place physical observation types with their inspection owner, and preserve the concrete database fixture type for strict test checks. * test(database): migrate Matrix fixtures before porting * fix(database): reconcile mixed-engine operations with current admission * fix(database): prepare cold PostgreSQL metadata before scoped port * fix(database): preserve online snapshots and remove doctor import cycle * fix(database): compose scoped lifecycle with mixed-agent admission * test(database): arrange mixed port fixtures in suite hooks
Current landing head
Head:
8b0b3719edaacbc831ff539f79e3cd90df9b0b4d. Mechanically rebased ontodfd396a9c23cc72d2fa43cd1606de7a003c05962after main changed during merge admission. The only conflict was the generated database worker inventory; it was regenerated, not hand-merged. The final regeneration is clean (615 files / 2,311 calls). No source fix was added.Current-head CI run 38983835171 passed: 103 successful jobs, 22 intentional skips. PostgreSQL conformance actually executed and passed 385 tests across 68 files; its test step completed at 2026-10-17 00:17:08 UTC. Required CI checks passed. The older runs below remain prior-head evidence.
What Problem This Solves
Implements the mixed-engine operations approved by Peter on 2026-10-16. A scoped port moves every physical store of one family, changes only that family's override, and removes a redundant override. Ambiguous unscoped ports require
--family. PR3 (#174623) has now landed; scoped agent ports support both state/agent engine pairs without restoring the retired runtime refusal.Backups use actual store engines and retain format-2 PostgreSQL envelopes beside SQLite images. Installations containing PostgreSQL remain offline for whole-installation backup. Restore verifies fresh namespaces and publishes the matching family selection before admission. Updates compose the existing protocol-1 family capability check with R14b public engine-aware admission; a global PostgreSQL declaration alone is insufficient. Recovery manifests remain version 1 with the legacy reader. No protocol/capability bump.
Semantic rebase
Head:
00a7e04806cbe653b2eed1e6117b863c2f079fe4. Rebased ontoff786f230f916cb4ebb143d6c1eacc9b947f0120and reconciled the landed changes:Fresh Matrix roots without legacy dedupe rows need no migration receipt. The second rebase preserves main’s real legacy-dedupe refusal and Doctor repair; its shared gateway fixture preparation replaces this branch’s now-redundant helper. Version-only update inspection reads actual PostgreSQL metadata without requiring a version-specific backup descriptor; capture still requires its exact descriptor. Physical anchor and PostgreSQL metadata readers are separate so port registration stays independent of worker preparation and the SQLite reader does not import backup CLI orchestration. Port preflight prepares cold PostgreSQL plugin metadata through the existing read-only worker before migration checks and resource discovery in either direction; lifecycle cache invalidation cannot trigger a main-thread PostgreSQL read.
A final rebase also updates the PostgreSQL operator guide for scoped lifecycle operations and preserves PR3 runtime conformance; the scoped-agent regression now covers interrupted publication, resume, backup, and reverse port with SQLite state.
The follow-up CI repairs remove Doctor’s type-only import cycle and preserve coherent online WAL snapshots: versioned SQLite bypasses full-copy anchor inspection, while zero-version PostgreSQL anchors still receive physical classification. The existing concurrent-writer proof passes with one coherent native backup per store.
Evidence
Local PostgreSQL 17 uses a disposable UTF8 database with pgvector 0.8.7, pg_trgm, and unaccent. No local Docker.
Inherited static-analysis findings (untouched files)
extensions/codex/src/app-server/context-engine-history.ts:buildCodexSelectedHistoryItemsextensions/telegram/src/bot/helpers.ts:TelegramMediaKindextensions/anthropic-vertex/provider-discovery.ts,extensions/browser/src/browser/cdp-reachability-policy.ts,extensions/codex/src/app-server/inference-upload.ts,extensions/discord/src/monitor/thread-bindings.persona.ts,extensions/elevenlabs/doctor-contract.ts,extensions/kimi-coding/onboard.ts,extensions/ollama/provider-discovery.ts,extensions/qwen/models.ts,extensions/qwen/provider-catalog.ts,extensions/signal/src/identity.ts,extensions/slack-huddles/cli-metadata.ts,extensions/teams-meetings/cli-metadata.ts,extensions/zoom-meetings/cli-metadata.ts,packages/gateway-client/src/timeouts.ts,packages/gateway-protocol/src/client-info.ts,packages/gateway-protocol/src/schema/devices.ts,packages/gateway-protocol/src/schema/progress-card.ts,packages/gateway-protocol/src/schema/projects.ts,packages/gateway-protocol/src/schema/session-discussion.ts,packages/gateway-protocol/src/schema/sessions-catalog.ts,packages/gateway-protocol/src/schema/sessions-sharing.ts,packages/gateway-protocol/src/schema/users.ts,packages/gateway-protocol/src/schema/worker-protocol-primitives.ts,packages/gateway-protocol/src/schema/worker-session-tools.ts,packages/llm-core/src/model-contracts/anthropic.ts,src/agents/agent-scope.ts,src/agents/auth-profiles/paths.ts,src/agents/mcp-lifecycle-lease.ts,src/agents/openai-routing.ts,src/auto-reply/reply/history.ts,src/channels/ids.ts,src/config/sessions/session-actor-durable.ts,src/infra/node-claude-skill-protocol.ts,src/interactive/payload.ts,src/logging/diagnostic-stability-query.ts,src/media/fetch.ts,src/routing/session-key.ts,src/security/channel-metadata.ts,src/skills/runtime/refresh.ts,src/state/openclaw-agent-schema-history.ts,src/utils.ts,src/wizard/i18n/index.ts.ui/src/pages/chat/components/chat-message.test.tsx,ui/src/pages/config/config-page-state.ts,ui/src/pages/sessions/sessions-page-state.ts.The coordinator reproduced each prior CI red 1/1 on main: history-reader import boundary and Doctor sandbox-warning timeout. An earlier run additionally exposed Doctor’s type-only import cycle and the online-WAL capture regression; both are fixed. The last rebase onto
ff786f2had only the generated worker-inventory conflict, resolved by regeneration rather than hand-merging. Pre-landing-rebase CI run 38980056703 completed successfully. The PR remains open and READY with auto-merge disabled. GitHub reported it mergeable immediately after the final push; its latest mergeability field isunknown. No merge was performed. The final format/config-doc checks passed, and the worker inventory regenerated cleanly at 615 files / 2,313 calls. The disposable local PostgreSQL server was stopped and its owned disk image removed; proof logs remain available.2d2985e83268, CI run 3897325547100a7e04806cb, CI run 38980056703Size and follow-up
Production TypeScript: +724 net lines (1176 added, 452 removed), excluding tests, docs, generated output, and test routing. No memory-core source edits. PR3’s agent/state pair conformance has landed; this rebase removes the obsolete scoped agent divergence restriction. No new owner or protocol is introduced. This PR is approved for landing once the current-head required gates and executed PostgreSQL conformance pass.
Final file set (71 files)
docs/.generated/config-baseline.sha256docs/cli/backup.mddocs/cli/index.mddocs/cli/update.mddocs/gateway/postgresql.mddocs/reference/database-engines.mddocs/reference/database-schemas/worker-access-inventory.mdscripts/pr-lib/wrapper-components.txtscripts/test-database-conformance.mjssrc/cli/program/core-command-descriptors.tssrc/cli/program/register.database.tssrc/cli/update-cli/schema-preflight.tssrc/cli/update-cli/update-command-admit.test.tssrc/cli/update-cli/update-command-admit.tssrc/cli/update-cli/update-command-candidate-validation.tssrc/cli/update-cli/update-command-execution.tssrc/cli/update-cli/update-command-family-admission.test.tssrc/commands/backup-git.test.tssrc/commands/backup-git.tssrc/commands/backup-mixed-engines.test.tssrc/commands/backup-restore.test.tssrc/commands/backup-restore.tssrc/commands/backup-shared.tssrc/commands/backup-sqlite.test.tssrc/commands/backup-sqlite.tssrc/commands/doctor-database-engine-inspection.test.tssrc/commands/doctor-database-engine-inspection.tssrc/commands/doctor-database-engine.test.tssrc/commands/doctor-database-engine.tssrc/commands/doctor-database-port-context.tssrc/commands/doctor-database-port-migrations.test.tssrc/commands/doctor-database-port-migrations.tssrc/commands/doctor-database-port-state.tssrc/commands/doctor-database-port.test.tssrc/commands/doctor-database-port.tssrc/commands/status-all/format.tssrc/commands/status-json-payload.test.tssrc/commands/status-json-payload.tssrc/commands/status-overview-rows.test.tssrc/commands/status-overview-rows.tssrc/config/zod-schema.database.tssrc/flows/doctor-health-contributions-initial.tssrc/infra/backup-config-capture.tssrc/infra/backup-create.tssrc/infra/backup-database-discovery.tssrc/infra/database-engine/backup.test.tssrc/infra/database-engine/context.tssrc/infra/database-engine/matrix-roots.postgres.test.tssrc/infra/database-engine/physical-store.tssrc/infra/database-engine/port-command.mixed.integration.test.tssrc/infra/database-engine/port-command.worker.tssrc/infra/database-engine/port-descriptor.tssrc/infra/database-engine/port-provider.tssrc/infra/database-engine/postgres-store-metadata.tssrc/infra/database-engine/registry.test.tssrc/infra/database-engine/registry.tssrc/infra/database-engine/report.tssrc/infra/update-candidate-rehearsal.tssrc/infra/update-candidate-state.postgres.test.tssrc/infra/update-candidate-state.postgres.tssrc/infra/update-candidate-state.shared.tssrc/infra/update-candidate-state.tssrc/infra/update-database-backup.tssrc/infra/update-database-engine-admission.test.tssrc/infra/update-database-engine-admission.tssrc/infra/update-database-family-admission.test.tssrc/infra/update-recovery-baseline-capture.tssrc/snapshot/database-backup.tssrc/state/openclaw-agent-schema-inspection-worker.tssrc/state/openclaw-database-preflight-contexts.tstest/vitest/vitest.database-worker-core-paths.mjs