Repository navigation
docs(database): PostgreSQL operator guide - #174642
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
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. |
|
Codex review: needs maintainer review before merge. What this changesAdds a PostgreSQL operator guide, navigation and glossary entries, and corrects outdated agent-port documentation. Example: An operator plans recovery of a PostgreSQL installation using
Review scores
ProductKind: Docs · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR provides useful PostgreSQL operating guidance that is absent from current main, with no actionable findings in the introduced changes. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe documentation connects operators to existing database configuration, offline port, backup, restore, update, and diagnostic owners; those owners manage PostgreSQL rows together with local SQLite identity anchors. flowchart TD
A[Operator guide] --> B[Configuration and SecretRef]
B --> C[Gateway database owners]
C --> D[PostgreSQL namespaces]
C --> E[Local SQLite anchors]
A --> F[Offline lifecycle CLI]
F --> D
F --> E
Technical reviewBest possible solution: Merge the source-aligned operator guide while keeping the disclosed runtime limitations in their implementation owners. Do we have a high-confidence way to reproduce the issue? This is documentation-only; commands and important limitations were checked against their production owners without running target code. Is this the best way to solve the issue? A dedicated operator guide is appropriate: it links the existing support matrix and clearly distinguishes supported procedures from incomplete recovery capabilities. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e4f73867c4eb. Provenance checked
SecurityNone. EvidenceWhat I checked:
PR surfaceDocs +526. Total +526 across 4 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 16, 2026, 4:53 PM ET / 20:53 UTC. |
|
Merged via squash.
|
What Problem This Solves
Operators need one source-backed guide for provisioning, migrating, and recovering a PostgreSQL-backed OpenClaw installation.
User Impact
Adds a PostgreSQL operator guide covering requirements and least-privilege grants, SecretRef/TLS setup, first boot, independent Gateway topology, mixed-engine limits, forward and reverse ports, interrupted-port recovery, backups, updates, search, and diagnostics. PostgreSQL remains experimental, with pending native credential/approval and mixed-engine work called out explicitly.
Why This Change Was Made
The guide reflects current main and links the existing support matrix. It adds navigation and a title glossary entry, and corrects stale reference text that said agent port providers were unavailable even though they are registered.
The recovery instructions distinguish archive extraction from actual PostgreSQL restoration. Explicit Git global/agent scopes provide the currently exposed fresh-namespace restore path; plugin and complete archive rehydration remain limitations.
Source-audited gaps for follow-up
These findings are documented, with implementation left unchanged in this docs PR:
src/commands/backup-restore.ts,src/cli/program/register.backup.ts.--allassigns additional discovered PostgreSQL stores the same genericworkboardidentity, allowing destination collisions:src/snapshot/git-backup.ts.--exclude-secretshandling:src/snapshot/git-backup-codec.ts,src/snapshot/database-backup.ts. The guide treats those backups as credential-bearing.src/snapshot/git-backup.ts. The guide explains its offline/destination requirements and server-side effect.Evidence
Source audit against main
d5f787453cb4b65907a3f6554f131d50e50e0e53, including engine admission/config, PostgreSQL driver TLS parsing, port providers, backup/restore/update owners, Doctor/status, search, and the prepared local credential owner.Passed: docs index discovery, Markdown lint, MDX validation, config examples, page-link audit, title glossary coverage, docs formatting (including an explicit check of the new page), and
git diff --check. Independent review found no actionable P0–P2 findings.The optional anchor audit reports six pre-existing broken fragments, with no new guide-link failures:
cli/index.md→database-engines#port-existing-workboard-storesgateway/config-tools.md→provider-examples#cerebras-glm-4-7-gpt-ossgateway/protocol/rpc-talk-config-and-agents.mdandreleases/2026.9.2.md→cli/claws#remove-an-installed-clawproviders/ollama.md→ollama/troubleshooting#model-outputs-tool-json-as-textreleases/2026.10.1.md→openai/runtimes#agents-api-mvpClawHub routes were accepted from navigation; ClawHub fragments were not checked because its source checkout was not supplied.
The diff is four documentation files (+534/−8 lines), including the 518-line guide; production/test delta is zero. The guide links the existing support matrix rather than duplicating it. PostgreSQL conformance is not required for this docs-only diff; the coordinator confirmed the docs-only exception for landing.
CI on
bf70774c8f7a654071f2505e0154dd88ca416c5fcheck-docssecurity-fastactionlintExact-head CI run. PostgreSQL conformance was correctly skipped by docs-only selection and has not been run locally. The exact-head CI watcher reports GREEN; older superseded runs are not active failures.