Skip to content

docs: default agent installation to embedded seekdb - #3049

Open
frf12 wants to merge 2 commits into
oceanbase:masterfrom
frf12:codex/agent-install-seekdb
Open

frf12 wants to merge 2 commits into
oceanbase:masterfrom
frf12:codex/agent-install-seekdb

Conversation

@frf12

@frf12 frf12 commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Which issue or RFC does this PR close?

Refs #2985 and #3012.

Rationale for this change

The Agent installation guides currently choose SQLite even on platforms that support embedded seekdb. Make seekdb the default for new local installations in both languages, with SQLite for platforms without a compatible wheel. PowerContext 1.6.1's published extra can resolve to the incompatible 1.4.1.post2 binding, so its installation instructions explicitly constrain the binding to 1.4.0.post2.

What changes are included in this PR?

  • Apply the storage choice to the plugin, Gateway, and single-host team paths, including platform detection and explicit Server configuration.
  • Share the dependency installation step across all three paths. For PowerContext 1.6.1, use --with "pylibseekdb==1.4.0.post2" before opening the wizard, so it reuses the installed binding. For other releases, require a verified compatible binding instead of treating a broad extra range as proof of compatibility. Preserve the selected PowerContext version and distinguish dependency installation failures from unsupported platforms.
  • Preserve existing storage backends, paths, database names, and binding compatibility; do not downgrade the binding against an existing 1.4.1 data directory. Keep OceanBase for deployments with multiple replicas or separate API/background processes.

Are there any user-facing changes?

Agents will guide new installations toward embedded seekdb on supported platforms. Native Windows and other unsupported environments use SQLite. The change only updates the English and Chinese guides; it does not change the CLI wizard's default or migrate existing data.

How was this change tested?

  • uv lock --locked
  • uv run --locked --python 3.12 prek run -a
  • make docs-test
  • git diff --check
  • Compared the storage and dependency code examples across both languages.

Native validation used the published PowerContext 1.6.1 package on macOS 26.2 ARM64 with CPython 3.12.7, isolated tool directories, and a fresh seekdb data directory:

  • The documented uv tool install --force --with "pylibseekdb==1.4.0.post2" "powercontext[cli,server,seekdb]==1.6.1" command installed exactly those versions.
  • Direct invocation of the released wizard's dependency detector returned ready, version 1.4.0.post2, and no installation plan. This checks dependency reuse, not the interactive wizard UI.
  • The released Server initialized the new database and returned /health/ready with status=ready, database=ready, and runtime=ready. The Server and embedded engine were stopped afterward.

Other platforms, existing-database upgrades, and model-backed memory workflows were not exercised in this native check.

AI usage statement

OpenAI Codex (GPT-6) assisted with documentation updates, review, validation, and PR preparation.

@hidb4ai hidb4ai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One installation-path issue remains: the published release selected by the guide does not contain the SeekDB compatibility fix or exact binding pin. See the inline comment.

For seekdb, also install the optional dependencies. Replace `<version>` with the exact version reported by the newly installed `powercontext --version`, keeping it aligned with the Gateway:

```bash
uv tool install --force "powercontext[cli,server,seekdb]==<version>"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Avoid selecting the known failing published release/binding pair

The new default currently selects the known failing release/binding combination on macOS ARM64. The installer still selects the latest published PowerContext 1.6.1; its published extra requires pylibseekdb>=1.4.0.post2,<2. Resolving this exact command for macOS 15 ARM64 / CPython 3.12 selects 1.4.1.post2, and the verified 1.6.1 wheel still dispatches the frozen zstd_1.3.8 DDL unchanged. This is the combination reported in #2985; the fixes and exact binding pin on master are not in that release. Please constrain the supported binding for the published release, or gate this default on a release containing the fix, in both languages and the wizard path. I reproduced dependency selection and checked the released SQL dispatch; I did not rerun the native macOS crash.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hidb4ai Addressed in 7f83ef8. For PowerContext 1.6.1, both guides now explicitly pin pylibseekdb==1.4.0.post2 with --with before opening the wizard. The Gateway, plugin, and single-host team paths share this step. Other releases require a confirmed compatible binding; a broad extra range is not treated as compatibility evidence.

I verified the published 1.6.1 package in isolated tool/data directories on macOS 26.2 ARM64 with CPython 3.12.7. The documented command installed exactly 1.6.1 / 1.4.0.post2, the released wizard's dependency detector returned ready with no installation plan, and a fresh Server returned /health/ready with both database and runtime ready. Local make docs-test and all pre-commit checks passed.

The detector was invoked directly; the interactive wizard, other platforms, existing-database upgrades, and model-backed memory workflows were not exercised. Current-head CI has passed docs-tests and Windows link validation, but is not yet complete: check-website is still running, and backend/native installation jobs are skipped.

Could you recheck the installation instructions when convenient?

@hireview001 hireview001 added the module:other Other: changes without an applicable Knowledge base, Gateway, Core, Desktop or pc-mate label label Dec 4, 2026
@hireview001

Copy link
Copy Markdown
Collaborator

The affected modules are Other. @hidb4ai, please coordinate follow-up. Other: @hidb4ai @PsiACE. Please coordinate the review of the affected changes.

This branch has not been deployed

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

Labels

module:other Other: changes without an applicable Knowledge base, Gateway, Core, Desktop or pc-mate label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants