Skip to content

docs: list database CLI in command index - #135279

Merged
steipete merged 1 commit into
openclaw:mainfrom
qingminglong:codex/docs-cli-database-index
Sep 1, 2026
Merged

steipete merged 1 commit into
openclaw:mainfrom
qingminglong:codex/docs-cli-database-index

Conversation

@qingminglong

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users looking up the CLI command index could not find the active openclaw database command, even though the command and its preflight and ownership subcommands are available.

Why This Change Was Made

Adds database to the CLI command index and full command tree, linking it to the existing database schema reference. The implementation and command contract are unchanged.

User Impact

Users can discover the shared-state database inspection and ownership commands from the main CLI reference and follow the linked schema documentation.

Evidence

  • Final command contract: pnpm openclaw database --help reports ownership and preflight and links to the database schema reference.
  • Documentation checks: pnpm docs:list; pnpm docs:check-mdx (751 files); pnpm docs:check-links (7,174 internal links, 0 broken); target-file oxfmt --check; target-file markdownlint; and git diff --check.
  • Autoreview: scoped-clean with no accepted/actionable findings.
  • Proof boundary: this is a documentation discoverability fix; the CLI implementation is unchanged.
  • Exact head: 75add615f42e6d7a9fb74267a8de2e0d30dc5a04

@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS triage: docs-discoverability Candidate: docs discoverability/listing change may belong elsewhere. triage: low-signal-docs Candidate: docs-only change looks low signal; maintainer review needed. labels Sep 1, 2026
@qingminglong
qingminglong marked this pull request as ready for review September 1, 2026 14:59
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 11:07 AM ET / 15:07 UTC.

ClawSweeper review

What this changes

The PR adds the active database command and its preflight and ownership subcommands to the CLI reference index, linking the command to the database schema guide.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open. This is an accurate, focused documentation discoverability fix: current main registers the database command but its CLI index still omits it, and the proposed link matches the command’s canonical documentation URL.

Priority: P3
Reviewed head: 75add615f42e6d7a9fb74267a8de2e0d30dc5a04

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, accurate documentation correction with no actionable patch defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Evidence reviewed 4 items Implemented command contract: The core command registry loads the database command, whose registration exposes database, preflight, ownership status, and ownership claim operations.
Canonical documentation destination: The database command’s help text uses the public database-schema URL, and the referenced guide documents the database preflight command.
Current-main gap: At fetched main, the command index’s reset/backup/migration row has backup and migrate but no database entry; the PR’s verified test merge adds only this documentation file.
Findings None None.
Security None None.

How this fits together

The CLI index is the operator-facing map from OpenClaw commands to their reference documentation. The database command inspects schema compatibility and shared-state write ownership, and directs users to the database schema guide.

flowchart LR
  A[Operator] --> B[CLI command index]
  B --> C[Database command]
  C --> D[Schema compatibility check]
  C --> E[Write ownership inspection]
  C --> F[Database schema guide]
Loading

Before merge

  • Complete next step (P2) - No repair lane is needed; this is a normal, ready documentation PR.
Agent review details

Security

None.

PR surface

Docs +5. Total +5 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 6 1 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 6 1 +5

Review metrics

None.

Technical review

Best possible solution:

Merge the focused index update so operators can discover the existing database command through the same canonical schema documentation it advertises in help output.

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

Not applicable: the reported problem is a documentation omission, verified by comparing the current-main index with the registered command contract.

Is this the best way to solve the issue?

Yes. Adding the existing command to the shared CLI index and linking its canonical database guide is the smallest maintainable correction; no new command behavior or parallel documentation page is needed.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against dc797d6a1f44.

Labels

Label changes:

  • add P3: This is a small documentation discoverability correction with no runtime or compatibility change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.

Label justifications:

  • P3: This is a small documentation discoverability correction with no runtime or compatibility change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit f31d9d8 adds src/cli/program/register.database.ts:70 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f31d9d8fa929; files: src/cli/program/register.database.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 59bcbd1 into openclaw:main Sep 1, 2026
110 checks passed
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Merged via squash.

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

Labels

docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. triage: docs-discoverability Candidate: docs discoverability/listing change may belong elsewhere. triage: low-signal-docs Candidate: docs-only change looks low signal; maintainer review needed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants