From 29fe2e4cde30ada0bbcd2588508c54c2b98f5a0c Mon Sep 17 00:00:00 2001 From: hidb4ai Date: Mon, 30 Nov 2026 14:36:50 +0800 Subject: [PATCH 1/3] chore(release): prepare PowerContext 1.6.1 --- README.md | 7 ++-- README_CN.md | 7 ++-- README_JP.md | 7 ++-- .../src-tauri/src/transport/operations.json | 2 +- desktop/ui/src/generated/operations.ts | 2 +- docs/en/development/dashboard.md | 2 +- docs/en/docs/get-started/install-and-run.md | 24 +++++++------- docs/en/docs/get-started/manual-start.md | 6 ++-- .../docs/operate/atomic-memory-migration.md | 2 +- docs/en/docs/operate/database-migrations.md | 18 +++++----- docs/en/docs/operate/install-gateway.md | 4 +-- docs/zh/development/dashboard.md | 2 +- docs/zh/docs/get-started/install-and-run.md | 24 +++++++------- docs/zh/docs/get-started/manual-start.md | 6 ++-- .../docs/operate/atomic-memory-migration.md | 2 +- docs/zh/docs/operate/database-migrations.md | 16 ++++----- docs/zh/docs/operate/install-gateway.md | 4 +-- .../plugin/powercontext_dify/contract.json | 2 +- .../dsh/plugins/powercontext/README.md | 4 +-- openapi/powercontext.yaml | 2 +- release/notes/powercontext-v1.6.1.md | 33 +++++++++++++++++++ release/upgrade-support.json | 6 ++-- .../migrations/server_resources/manifest.json | 12 +++---- .../mysql/versions/{000.py => v1_6_1.py} | 2 +- .../{mysql-000.json => mysql-v1_6_1.json} | 2 +- .../{sqlite-000.json => sqlite-v1_6_1.json} | 0 .../versions/{000.py => v1_6_1.py} | 4 +-- .../server_sources/1.4.0/manifest.json | 12 +++---- .../http/_generated/operations.py | 2 +- src/powercontext/http/_generated/schema.py | 2 +- .../test_atomic_description_vector_layout.py | 8 ++--- .../test_atomic_evidence_upgrade_history.py | 6 ++-- .../test_diagnostic_query_migration.py | 4 +-- .../test_full_server_migrations.py | 4 +-- .../test_mysql_initialization_preflight.py | 2 +- .../test_mysql_migration_runner.py | 18 +++++----- .../test_plugin_storage_migration.py | 6 ++-- .../test_portable_storage_migration.py | 10 +++--- .../test_release140_server_migrations.py | 4 +-- .../test_atomic_memory_description_upgrade.py | 4 +-- tests/e2e/test_source_citation_locators.py | 2 +- .../native/test_oceanbase_engine_recovery.py | 2 +- tests/release_upgrades/README.md | 4 +-- tests/test_atomic_memory_alias_upgrade.py | 2 +- tests/test_managed_atomic_maintenance.py | 4 +-- tests/test_managed_processing_maintenance.py | 2 +- tests/test_migration_revision_names.py | 8 ++--- .../test_registered_source_maintenance_cli.py | 2 +- website/src/lib/releases.ts | 32 ++++++++++++++++++ 49 files changed, 205 insertions(+), 137 deletions(-) create mode 100644 release/notes/powercontext-v1.6.1.md rename src/powercontext/builtin/persistence/migrations/server_resources/mysql/versions/{000.py => v1_6_1.py} (97%) rename src/powercontext/builtin/persistence/migrations/server_resources/schemas/{mysql-000.json => mysql-v1_6_1.json} (99%) rename src/powercontext/builtin/persistence/migrations/server_resources/schemas/{sqlite-000.json => sqlite-v1_6_1.json} (100%) rename src/powercontext/builtin/persistence/migrations/server_resources/versions/{000.py => v1_6_1.py} (90%) diff --git a/README.md b/README.md index bcd1268651..2db0a7e053 100644 --- a/README.md +++ b/README.md @@ -133,12 +133,12 @@ Install PowerContext on this machine by following https://powercontext.oceanbase
Install it yourself -You need Python 3.11+, Git, and [uv](https://docs.astral.sh/uv/getting-started/installation/), plus the CLI of any Agent you want to connect. This setup pins **PowerContext 1.6.0** for macOS and Linux; Windows support is experimental. The [installation script](https://powercontext.oceanbase.io/en/docs/get-started/install-and-run/#install-with-the-recommended-script) can also provision Python and uv. +You need Python 3.11+, Git, and [uv](https://docs.astral.sh/uv/getting-started/installation/), plus the CLI of any Agent you want to connect. This setup pins **PowerContext 1.6.1** for macOS and Linux; Windows support is experimental. The [installation script](https://powercontext.oceanbase.io/en/docs/get-started/install-and-run/#install-with-the-recommended-script) can also provision Python and uv. Choose **Basic memory** in the wizard to try explicit saves and recall without a separate Server model API. Automatic extraction requires **Full memory** with Generation and Embedding credentials. SQLite is a simple first storage choice. ```bash -uv tool install --force "powercontext[cli,server]==1.6.0" +uv tool install --force "powercontext[cli,server]==1.6.1" mkdir -p powercontext-config && cd powercontext-config powercontext config init --language en --output .env powercontext config validate --env-file .env @@ -163,7 +163,7 @@ Follow **`.env.next-steps.md`** to create and bind your Scope, using the real `s For Codex, install the matching integration: ```bash -powercontext setup codex --env-file .env --ref powercontext-v1.6.0 +powercontext setup codex --env-file .env --ref powercontext-v1.6.1 powercontext doctor codex ``` @@ -224,6 +224,7 @@ Codex is officially maintained; other Agent and Python framework integrations ar ## News +- **2026-11-30 · [v1.6.1](https://powercontext.oceanbase.io/en/changelog/v1.6.1/)** — Historical memory recall, more reliable Gateway conversations and integrations, and clearer processing status. - **2026-11-23 · [v1.6.0](https://powercontext.oceanbase.io/en/changelog/v1.6.0/)** — Knowledge bases debut: import Markdown and images, search with hybrid retrieval, and manage revisioned chunks in the Dashboard. The Gateway reaches its stable release with prebuilt binaries, and memory extraction can reuse the prompt cache of the Agent's conversation. - **2026-11-16 · [v1.5.2](https://powercontext.oceanbase.io/en/changelog/v1.5.2/)** — Batched writes and query optimizations: maintainer measurements report about 190% higher write throughput and 171% higher query throughput than v1.5.1. The Dashboard now shows processing progress, failure diagnostics, and token usage. - **2026-11-09 · [v1.5.1](https://powercontext.oceanbase.io/en/changelog/v1.5.1/)** — Trace memories to precise source locations, plus an optional monitoring stack for metrics, logs, and traces. diff --git a/README_CN.md b/README_CN.md index 3cc2546f3d..3184cc769e 100644 --- a/README_CN.md +++ b/README_CN.md @@ -133,12 +133,12 @@ Agent 通过 Hooks、MCP 或 SDK 接入 Server;也可以让模型请求经过
自己动手安装 -需要 Python 3.11+、Git 和 [uv](https://docs.astral.sh/uv/getting-started/installation/);接入 Agent 时还需安装对应的 CLI。以下命令安装 **PowerContext 1.6.0**,适用于 macOS 和 Linux;Windows 为实验性支持。需要自动准备 Python 和 uv 时,可使用[安装脚本](https://powercontext.oceanbase.io/zh/docs/get-started/install-and-run/#使用推荐安装脚本)。 +需要 Python 3.11+、Git 和 [uv](https://docs.astral.sh/uv/getting-started/installation/);接入 Agent 时还需安装对应的 CLI。以下命令安装 **PowerContext 1.6.1**,适用于 macOS 和 Linux;Windows 为实验性支持。需要自动准备 Python 和 uv 时,可使用[安装脚本](https://powercontext.oceanbase.io/zh/docs/get-started/install-and-run/#使用推荐安装脚本)。 首次体验可在向导中选择**基础记忆**,显式保存与召回不需要为 Server 配置模型 API;自动提取需要选择**完整记忆能力**并配置生成模型和 Embedding 凭据。存储可先选 SQLite。 ```bash -uv tool install --force "powercontext[cli,server]==1.6.0" +uv tool install --force "powercontext[cli,server]==1.6.1" mkdir -p powercontext-config && cd powercontext-config powercontext config init --language zh --output .env powercontext config validate --env-file .env @@ -163,7 +163,7 @@ powercontext capabilities 接入 Codex 时,安装对应版本的集成: ```bash -powercontext setup codex --env-file .env --ref powercontext-v1.6.0 +powercontext setup codex --env-file .env --ref powercontext-v1.6.1 powercontext doctor codex ``` @@ -224,6 +224,7 @@ Codex 为官方维护;其余 Agent 和 Python 框架集成为社区维护;Bu ## 最新动态 +- **2026-11-30 · [v1.6.1](https://powercontext.oceanbase.io/zh/changelog/v1.6.1/)** — 历史记忆别名召回、更可靠的 Gateway 对话与集成,以及更清晰的处理状态。 - **2026-11-23 · [v1.6.0](https://powercontext.oceanbase.io/zh/changelog/v1.6.0/)** — 知识库首次发布:导入 Markdown 和图片,混合检索并在 Dashboard 中管理版本化分块。Gateway 推出正式版并提供预编译二进制,记忆提取可复用 Agent 对话的提示词缓存。 - **2026-11-16 · [v1.5.2](https://powercontext.oceanbase.io/zh/changelog/v1.5.2/)** — 批量写入和查询优化:维护者实测写入吞吐提升约 190%、查询吞吐提升约 171%(对比 v1.5.1);Dashboard 原生展示处理进度、失败诊断和 Token 用量。 - **2026-11-09 · [v1.5.1](https://powercontext.oceanbase.io/zh/changelog/v1.5.1/)** — 记忆可追溯到来源中的精确位置;新增可选的监控栈,覆盖指标、日志和链路追踪。 diff --git a/README_JP.md b/README_JP.md index 32e270f8e8..b75e280c20 100644 --- a/README_JP.md +++ b/README_JP.md @@ -133,12 +133,12 @@ https://powercontext.oceanbase.io/en/llms.mdx/docs/get-started/agent-install/con
自分でインストールする -Python 3.11+、Git、[uv](https://docs.astral.sh/uv/getting-started/installation/) と、接続する Agent の CLI が必要です。以下は macOS と Linux 向けに**PowerContext 1.6.0** をインストールする手順です。Windows のサポートは実験段階です。[インストールスクリプト](https://powercontext.oceanbase.io/en/docs/get-started/install-and-run/#install-with-the-recommended-script)を使えば、Python と uv も用意できます。 +Python 3.11+、Git、[uv](https://docs.astral.sh/uv/getting-started/installation/) と、接続する Agent の CLI が必要です。以下は macOS と Linux 向けに**PowerContext 1.6.1** をインストールする手順です。Windows のサポートは実験段階です。[インストールスクリプト](https://powercontext.oceanbase.io/en/docs/get-started/install-and-run/#install-with-the-recommended-script)を使えば、Python と uv も用意できます。 ウィザードは英語で表示されます。Server 用の追加のモデル API なしで明示的な保存と想起を試すには、**Basic memory** を選んでください。自動抽出には、Generation と Embedding の認証情報を設定した **Full memory** が必要です。最初のストレージには SQLite が手軽です。 ```bash -uv tool install --force "powercontext[cli,server]==1.6.0" +uv tool install --force "powercontext[cli,server]==1.6.1" mkdir -p powercontext-config && cd powercontext-config powercontext config init --language en --output .env powercontext config validate --env-file .env @@ -163,7 +163,7 @@ powercontext capabilities Codex には対応するバージョンの連携をインストールします。 ```bash -powercontext setup codex --env-file .env --ref powercontext-v1.6.0 +powercontext setup codex --env-file .env --ref powercontext-v1.6.1 powercontext doctor codex ``` @@ -224,6 +224,7 @@ Codex 連携は公式メンテナンス、その他の Agent と Python フレ ## 最新情報 +- **2026-11-30 · [v1.6.1](https://powercontext.oceanbase.io/en/changelog/v1.6.1/)** — 履歴エイリアスによる記憶検索、Gateway と連携の信頼性向上、処理状況の可視化を改善。 - **2026-11-23 · [v1.6.0](https://powercontext.oceanbase.io/en/changelog/v1.6.0/)** — ナレッジベースを初公開。Markdown と画像を取り込み、ハイブリッド検索で探し、Dashboard でバージョン管理されたチャンクを管理できます。Gateway は安定版になりビルド済みバイナリを提供し、記憶の抽出で Agent の会話のプロンプトキャッシュを再利用できます。 - **2026-11-16 · [v1.5.2](https://powercontext.oceanbase.io/en/changelog/v1.5.2/)** — 書き込みのバッチ化とクエリの最適化。メンテナーの計測では、v1.5.1 と比べて書き込みスループットが約 190%、クエリスループットが約 171% 向上しました。Dashboard で処理の進捗、失敗の診断、トークン使用量を確認できます。 - **2026-11-09 · [v1.5.1](https://powercontext.oceanbase.io/en/changelog/v1.5.1/)** — 記憶を Source 内の正確な位置までたどれるようになり、メトリクス、ログ、トレースを扱う監視スタックを任意で追加できます。 diff --git a/desktop/src-tauri/src/transport/operations.json b/desktop/src-tauri/src/transport/operations.json index 0497c81684..7386672c9d 100644 --- a/desktop/src-tauri/src/transport/operations.json +++ b/desktop/src-tauri/src/transport/operations.json @@ -1,5 +1,5 @@ { - "contractSha256": "29f33308b74ff51bdd3d9825f85d7dd5a2308c80a476c6b1badf32a850e662f5", + "contractSha256": "27980da7939bb931c7598bf8310e3369bd589e3be242b7e73a74f0f58325d8f4", "operations": { "get_liveness": { "method": "GET", diff --git a/desktop/ui/src/generated/operations.ts b/desktop/ui/src/generated/operations.ts index e091107944..6a08b0d119 100644 --- a/desktop/ui/src/generated/operations.ts +++ b/desktop/ui/src/generated/operations.ts @@ -15,7 +15,7 @@ */ // Generated from openapi/powercontext.yaml. Do not edit. -export const contractSha256 = "29f33308b74ff51bdd3d9825f85d7dd5a2308c80a476c6b1badf32a850e662f5"; +export const contractSha256 = "27980da7939bb931c7598bf8310e3369bd589e3be242b7e73a74f0f58325d8f4"; export const operations = { "get_liveness": { "method": "GET", diff --git a/docs/en/development/dashboard.md b/docs/en/development/dashboard.md index b91f883e43..4cbf4e32a5 100644 --- a/docs/en/development/dashboard.md +++ b/docs/en/development/dashboard.md @@ -208,7 +208,7 @@ deadline; unavailable links are not rendered. Pages escape stored text and send does not prepare again, invoke models or write business data. Prepared text does not prove host delivery, model use or task benefit. -Migration `000` adds the independent table and indexes, including nullable UTF-8 `query_text`, without rewriting +Migration `v1_6_0` adds the independent table and indexes, including nullable UTF-8 `query_text`, without rewriting existing domain records or backfilling past calls. Existing managed databases require explicit migration before startup. The table adds no Scope deletion cascade or new permission path to deleted-Scope content. Recovery follows the verified-backup workflow; capture provides no table-drop or history-cleanup operation. diff --git a/docs/en/docs/get-started/install-and-run.md b/docs/en/docs/get-started/install-and-run.md index 65954e54ba..6b005b2389 100644 --- a/docs/en/docs/get-started/install-and-run.md +++ b/docs/en/docs/get-started/install-and-run.md @@ -90,15 +90,15 @@ To install an integration with the package, pass `--host codex` to the installer ## Installer version selection -Without `--version`, the default installs or upgrades to the newest compatible stable release on the selected index, equivalent to `--version latest`. Specify a version only when you need a pinned release, for example PowerContext 1.6.0: +Without `--version`, the default installs or upgrades to the newest compatible stable release on the selected index, equivalent to `--version latest`. Specify a version only when you need a pinned release, for example PowerContext 1.6.1: ```bash tab="macOS / Linux" -curl -fsSL https://powercontext.oceanbase.io/install.sh | bash -s -- --version 1.6.0 +curl -fsSL https://powercontext.oceanbase.io/install.sh | bash -s -- --version 1.6.1 ``` ```powershell tab="Windows" irm https://powercontext.oceanbase.io/install.ps1 -OutFile install.ps1 -powershell -ExecutionPolicy Bypass -File .\install.ps1 --version 1.6.0 +powershell -ExecutionPolicy Bypass -File .\install.ps1 --version 1.6.1 ``` You can also request an explicit prerelease, such as `1.3.0rc1`. If the selected index lacks that version, installation fails and preserves the installed tool. `latest` excludes prereleases. A mirror may lag PyPI, so its latest available release may differ. @@ -159,11 +159,11 @@ powercontext setup codex --ref "powercontext-v$(powercontext --version)" ### Choose a version -To pin a release, for example PowerContext 1.6.0, keep the package and Agent integration on the same version: package `1.6.0` and Git tag `powercontext-v1.6.0`. +To pin a release, for example PowerContext 1.6.1, keep the package and Agent integration on the same version: package `1.6.1` and Git tag `powercontext-v1.6.1`. ```bash -uv tool install --force "powercontext[cli,server]==1.6.0" -powercontext setup codex --ref powercontext-v1.6.0 +uv tool install --force "powercontext[cli,server]==1.6.1" +powercontext setup codex --ref powercontext-v1.6.1 ``` Check the [capability matrix](../integrations/capabilities.md) for host support and maintenance status. Capabilities marked `experimental` remain experimental in this release. @@ -176,10 +176,10 @@ You need Python 3.11 or newer, Git, and [`uv`](https://docs.astral.sh/uv/) on ma uv tool install --upgrade --force "powercontext[cli,server]" ``` -For a source installation of a pinned release, for example PowerContext 1.6.0: +For a source installation of a pinned release, for example PowerContext 1.6.1: ```bash -uv tool install --force "powercontext[cli,server] @ git+https://github.com/oceanbase/powercontext.git@powercontext-v1.6.0" +uv tool install --force "powercontext[cli,server] @ git+https://github.com/oceanbase/powercontext.git@powercontext-v1.6.1" ``` For a machine that only connects to a remote Server, the `cli` extra includes `setup`, `doctor`, and remote content commands. Add `server` to run a local Server or use the `service` commands. If a command provider has a missing dependency, the CLI reports the provider and missing module so the installation can be repaired. @@ -237,7 +237,7 @@ This minimal launch does not enable model-backed extraction or vector search. To Embedded seekDB is available on Linux and macOS when a compatible `pylibseekdb` wheel is available. Windows does not support this embedded backend. Install or replace the tool with the optional seekDB extra: ```bash -uv tool install --force "powercontext[cli,server,seekdb]==1.6.0" +uv tool install --force "powercontext[cli,server,seekdb]==1.6.1" ``` When switching from SQLite, remove `POWERCONTEXT_SERVER_DATABASE_URL` from the Server process environment. An explicit SQLAlchemy database URL is not valid for seekDB. Then select the backend and start the Server: @@ -347,11 +347,11 @@ release or Git ref before resuming capability reads. This endpoint does not nego disabling protection does not restore compatibility. This client requirement is additional to the database upgrade gates above. -To install 1.6.0 in a separate environment for a fresh deployment: +To install 1.6.1 in a separate environment for a fresh deployment: ```bash uv venv /path/to/powercontext-preview -uv pip install --python /path/to/powercontext-preview/bin/python "powercontext[cli,server]==1.6.0" +uv pip install --python /path/to/powercontext-preview/bin/python "powercontext[cli,server]==1.6.1" ``` To install another Git ref in the separate environment: @@ -367,7 +367,7 @@ Use the matching ref for clients and Agent integrations connected to the fresh d An application that imports the async Client SDK should add it to that application's environment: ```bash -uv add "powercontext[client]==1.6.0" +uv add "powercontext[client]==1.6.1" ``` Use `builtin` for in-process Python composition, `server` for the service, `client` for the Python SDK, or `cli` for the Server-backed command line. An extra that is only present in the isolated `uv tool` environment is not importable by an unrelated Python project. diff --git a/docs/en/docs/get-started/manual-start.md b/docs/en/docs/get-started/manual-start.md index abd76e0dc2..7a3d223d50 100644 --- a/docs/en/docs/get-started/manual-start.md +++ b/docs/en/docs/get-started/manual-start.md @@ -49,7 +49,7 @@ source "$HOME/.local/bin/env" Install the PowerContext CLI and local Server: ```bash -uv tool install --force "powercontext[cli,server]==1.6.0" +uv tool install --force "powercontext[cli,server]==1.6.1" powercontext --version powercontext --help ``` @@ -179,7 +179,7 @@ Use the Python Client to call the Server and create a Scope manually. Keep the S ```bash cd ~/powercontext-manual POWERCONTEXT_CLIENT_SERVER_URL=http://127.0.0.1:18080 \ -uv run --with "powercontext[client]==1.6.0" python - <<'PY' +uv run --with "powercontext[client]==1.6.1" python - <<'PY' import asyncio import os from powercontext.client import PowerContextClient @@ -214,7 +214,7 @@ Install the Codex plugin matching the Server version and point it to the manuall ```bash powercontext setup codex \ - --ref powercontext-v1.6.0 \ + --ref powercontext-v1.6.1 \ --server-url http://127.0.0.1:18080 powercontext doctor codex ``` diff --git a/docs/en/docs/operate/atomic-memory-migration.md b/docs/en/docs/operate/atomic-memory-migration.md index 1e7809b0d3..b54185f8b3 100644 --- a/docs/en/docs/operate/atomic-memory-migration.md +++ b/docs/en/docs/operate/atomic-memory-migration.md @@ -354,7 +354,7 @@ snapshot closes, and page-local bodies are released after comparison. The candid coordination state can still grow across pages. For unmanaged databases, supported index initialization creates this derived table. Managed Server databases -require the explicit schema upgrade to `000` through `db-migrate --bundle server`; ordinary startup remains +require the explicit schema upgrade to `v1_6_1` through `db-migrate --bundle server`; ordinary startup remains read-only and reports `migration_required` until that upgrade completes. The schema upgrade installs an empty alias table. Installation does not backfill earlier merges: explicitly rebuild the projection while writers are stopped using the maintenance flow above. Rebuild reads each merged identity's latest authoritative content revision, diff --git a/docs/en/docs/operate/database-migrations.md b/docs/en/docs/operate/database-migrations.md index 1d941bcdc5..539a28e1d0 100644 --- a/docs/en/docs/operate/database-migrations.md +++ b/docs/en/docs/operate/database-migrations.md @@ -15,10 +15,10 @@ The design follows [RFC #1771](https://github.com/oceanbase/powercontext/pull/17 `powercontext server db-migrate status/plan/apply/verify` default to `--bundle server` and use the configured persistent SQLite, embedded seekDB, or OceanBase MySQL database. Explicit environment files are authoritative; arbitrary bundle paths are not accepted. The full Server framework uses two normalization checkpoints before its shared migration chain for the PowerContext -1.6.0 target (stored compatibility IDs shown below): +1.6.1 target (stored compatibility IDs shown below): -- **1.3.0:** `s1300 → s1400 → s1401 → s1402 → v1_4_1_004 → v1_4_1_005 → v1_4_1_006 → v1_5_0_001 → v1_5_0_002 → v1_5_0_003 → v1_5_0_004 → v1_5_0_005 → v1_5_0_006 → v1_6_0 → 000`. -- **1.4.0:** `r1400 → s1400 → s1401 → s1402 → v1_4_1_004 → v1_4_1_005 → v1_4_1_006 → v1_5_0_001 → v1_5_0_002 → v1_5_0_003 → v1_5_0_004 → v1_5_0_005 → v1_5_0_006 → v1_6_0 → 000` through a separate frozen source bridge. +- **1.3.0:** `s1300 → s1400 → s1401 → s1402 → v1_4_1_004 → v1_4_1_005 → v1_4_1_006 → v1_5_0_001 → v1_5_0_002 → v1_5_0_003 → v1_5_0_004 → v1_5_0_005 → v1_5_0_006 → v1_6_0 → v1_6_1`. +- **1.4.0:** `r1400 → s1400 → s1401 → s1402 → v1_4_1_004 → v1_4_1_005 → v1_4_1_006 → v1_5_0_001 → v1_5_0_002 → v1_5_0_003 → v1_5_0_004 → v1_5_0_005 → v1_5_0_006 → v1_6_0 → v1_6_1` through a separate frozen source bridge. Application release numbers and schema revisions are distinct. The 1.4.0 release is not the `s1400` checkpoint: its existing Candidate schema is current, but its Topic attempt storage still needs the registered bridge. @@ -149,7 +149,7 @@ read-only no-op. See [Migrate to Atomic Memory](atomic-memory-migration.md). ## Migration names and software versions -The target release is **PowerContext 1.6.0**. Schema changes for the next release accumulate +The target release is **PowerContext 1.6.1**. Schema changes for the next release accumulate in the shared unpublished revision `000`. A release PR freezes that draft as `v__`; there is no PR number or step suffix. Execution follows `down_revision`, not name sorting. Without a schema change, a release keeps the previous database head and adds no revision. @@ -175,13 +175,13 @@ literal mutable draft ID `000`. The registered revisions are: | `v1_5_0_005` | 1.5.0 | 5 | `v1_5_0_005` | Remove previous plugin-framework storage and add nullable Artifact metadata | | `v1_5_0_006` | 1.5.0 | 6 | `v1_5_0_006` | Source collection runner and target tables; remove the write plugin registry | | `v1_6_0` | 1.6.0 | — | `v1_6_0` | Independent prepare diagnostics | -| `000` | — | — | `000` | Disposable historical Atomic Memory alias projection | +| `v1_6_1` | 1.6.1 | — | `v1_6_1` | Disposable historical Atomic Memory alias projection | -Both registered source paths reach `000` after `v1_6_0`; only 1.3.0 is selected for CI upgrade acceptance: +Both registered source paths reach `v1_6_1` after `v1_6_0`; only 1.3.0 is selected for CI upgrade acceptance: ```text -1.3.0: v1_3_0_000 -> v1_4_1_001 -> v1_4_1_002 -> v1_4_1_003 -> v1_4_1_004 -> v1_4_1_005 -> v1_4_1_006 -> v1_5_0_001 -> v1_5_0_002 -> v1_5_0_003 -> v1_5_0_004 -> v1_5_0_005 -> v1_5_0_006 -> v1_6_0 -> 000 -1.4.0: v1_4_0_000 -> v1_4_1_001 -> v1_4_1_002 -> v1_4_1_003 -> v1_4_1_004 -> v1_4_1_005 -> v1_4_1_006 -> v1_5_0_001 -> v1_5_0_002 -> v1_5_0_003 -> v1_5_0_004 -> v1_5_0_005 -> v1_5_0_006 -> v1_6_0 -> 000 +1.3.0: v1_3_0_000 -> v1_4_1_001 -> v1_4_1_002 -> v1_4_1_003 -> v1_4_1_004 -> v1_4_1_005 -> v1_4_1_006 -> v1_5_0_001 -> v1_5_0_002 -> v1_5_0_003 -> v1_5_0_004 -> v1_5_0_005 -> v1_5_0_006 -> v1_6_0 -> v1_6_1 +1.4.0: v1_4_0_000 -> v1_4_1_001 -> v1_4_1_002 -> v1_4_1_003 -> v1_4_1_004 -> v1_4_1_005 -> v1_4_1_006 -> v1_5_0_001 -> v1_5_0_002 -> v1_5_0_003 -> v1_5_0_004 -> v1_5_0_005 -> v1_5_0_006 -> v1_6_0 -> v1_6_1 ``` `status` and `plan` show `source_migration`, `target_migration` and `pending_migrations` @@ -296,7 +296,7 @@ then remain immutable; failures are fixed in the next cumulative migration. Published revision identities, resources and checksums remain unchanged. The released 1.5.2 database head is `v1_5_0_005`; Source collection follows it as `v1_5_0_006`. Development databases and recovery -plans using the former PR-based Source collection identity must be rebuilt; there is no runtime alias. The 1.6.0 release freezes the following cumulative migration as `v1_6_0`; new drafts depend on that head. No production +plans using the former PR-based Source collection identity must be rebuilt; there is no runtime alias. The 1.6.0 release froze the prepare-diagnostics migration as `v1_6_0`. Release 1.6.1 freezes the historical-alias projection as `v1_6_1`; new drafts depend on that head. No production draft is introduced without a real storage change. ## Initialization and maintenance ownership diff --git a/docs/en/docs/operate/install-gateway.md b/docs/en/docs/operate/install-gateway.md index 918d474293..4df51e4279 100644 --- a/docs/en/docs/operate/install-gateway.md +++ b/docs/en/docs/operate/install-gateway.md @@ -49,12 +49,12 @@ curl -fsSL https://powercontext.oceanbase.io/install.sh | bash -s -- --gateway ## Download and verify -The example selects 1.6.0. Use the same release version as Core. No Rust compiler or repository checkout is needed. +The example selects 1.6.1. Use the same release version as Core. No Rust compiler or repository checkout is needed. Download the archive and its checksum from the selected release, then verify before extracting or installing: ```bash set -eu -version=1.6.0 +version=1.6.1 case "$(uname -s)/$(uname -m)" in Linux/x86_64) target=x86_64-unknown-linux-gnu ;; Linux/aarch64|Linux/arm64) target=aarch64-unknown-linux-gnu ;; diff --git a/docs/zh/development/dashboard.md b/docs/zh/development/dashboard.md index 3c3bc2b186..40a4063743 100644 --- a/docs/zh/development/dashboard.md +++ b/docs/zh/development/dashboard.md @@ -194,7 +194,7 @@ UTF-8 字节预算不是字符数。 页面转义已存文本,并返回 `Cache-Control: no-store`。检查不重新 prepare、不调用模型,也不修改业务数据。 准备好的正文不证明宿主投递、模型使用或任务收益。 -迁移 `000` 增加独立表及索引,包含可空 UTF-8 `query_text`,不改写现有业务记录,也不回填过去调用。 +迁移 `v1_6_0` 增加独立表及索引,包含可空 UTF-8 `query_text`,不改写现有业务记录,也不回填过去调用。 现有受管数据库必须在启动前显式迁移。该表不增加 Scope 删除级联,也不为已删除 Scope 的正文增加权限通道。 恢复沿用已验证备份流程;采集不提供删表或清理历史操作。 diff --git a/docs/zh/docs/get-started/install-and-run.md b/docs/zh/docs/get-started/install-and-run.md index 36b4ecc371..b6c242cc9b 100644 --- a/docs/zh/docs/get-started/install-and-run.md +++ b/docs/zh/docs/get-started/install-and-run.md @@ -90,15 +90,15 @@ powercontext setup codex --ref "powercontext-v$(powercontext --version)" ## 选择脚本安装版本 -不传 `--version` 时,默认安装或升级到所选索引中兼容的最新稳定版,等同于 `--version latest`。只有需要固定版本时才指定版本号,例如安装 PowerContext 1.6.0: +不传 `--version` 时,默认安装或升级到所选索引中兼容的最新稳定版,等同于 `--version latest`。只有需要固定版本时才指定版本号,例如安装 PowerContext 1.6.1: ```bash tab="macOS / Linux" -curl -fsSL https://powercontext.oceanbase.io/install.sh | bash -s -- --version 1.6.0 +curl -fsSL https://powercontext.oceanbase.io/install.sh | bash -s -- --version 1.6.1 ``` ```powershell tab="Windows" irm https://powercontext.oceanbase.io/install.ps1 -OutFile install.ps1 -powershell -ExecutionPolicy Bypass -File .\install.ps1 --version 1.6.0 +powershell -ExecutionPolicy Bypass -File .\install.ps1 --version 1.6.1 ``` 也可以指定预发布版,例如 `1.3.0rc1`。所选索引缺少该版本时,安装失败并保留原工具;`latest` 则排除预发布版。镜像同步可能滞后,其最新版本可能与 PyPI 不同。 @@ -159,11 +159,11 @@ powercontext setup codex --ref "powercontext-v$(powercontext --version)" ### 选择版本 -如需固定版本,以 PowerContext 1.6.0 为例,包与 Agent 集成保持版本一致:Python 包版本为 `1.6.0`,对应 Git tag 为 `powercontext-v1.6.0`。 +如需固定版本,以 PowerContext 1.6.1 为例,包与 Agent 集成保持版本一致:Python 包版本为 `1.6.1`,对应 Git tag 为 `powercontext-v1.6.1`。 ```bash -uv tool install --force "powercontext[cli,server]==1.6.0" -powercontext setup codex --ref powercontext-v1.6.0 +uv tool install --force "powercontext[cli,server]==1.6.1" +powercontext setup codex --ref powercontext-v1.6.1 ``` 宿主支持范围和维护状态见[能力矩阵](../integrations/capabilities.md)。标为 `experimental` 的能力在此版本中仍属于试验性能力。 @@ -176,10 +176,10 @@ powercontext setup codex --ref powercontext-v1.6.0 uv tool install --upgrade --force "powercontext[cli,server]" ``` -如需从源码安装固定版本,以 PowerContext 1.6.0 为例: +如需从源码安装固定版本,以 PowerContext 1.6.1 为例: ```bash -uv tool install --force "powercontext[cli,server] @ git+https://github.com/oceanbase/powercontext.git@powercontext-v1.6.0" +uv tool install --force "powercontext[cli,server] @ git+https://github.com/oceanbase/powercontext.git@powercontext-v1.6.1" ``` 只连接远程 Server 的机器安装 `cli` extra 即可使用 `setup`、`doctor` 和远程内容命令。运行本地 Server 或使用 `service` 命令时,还需安装 `server`。如果命令 provider 缺少依赖,CLI 会报告 provider 和缺失模块,便于修复安装。 @@ -237,7 +237,7 @@ powercontext server run --env-file /path/to/powercontext.env 在有兼容 `pylibseekdb` wheel 的 Linux 和 macOS 系统上可以使用嵌入式 seekDB;Windows 不支持该嵌入式后端。安装或替换工具时加入可选的 seekDB extra: ```bash -uv tool install --force "powercontext[cli,server,seekdb]==1.6.0" +uv tool install --force "powercontext[cli,server,seekdb]==1.6.1" ``` 从 SQLite 切换时,需要从 Server 进程环境中删除 `POWERCONTEXT_SERVER_DATABASE_URL`;seekDB 不接受显式的 SQLAlchemy 数据库 URL。然后选择 seekDB 后端并启动 Server: @@ -340,11 +340,11 @@ powercontext capabilities Python SDK 环境和 CLI 安装,使用匹配的发布版本或 Git ref,再恢复能力查询。此端点不会协商旧版响应格式; 关闭保护不能恢复兼容性。客户端升级要求不能替代上述数据库升级门禁。 -安装 1.6.0 到独立环境以试用新建部署: +安装 1.6.1 到独立环境以试用新建部署: ```bash uv venv /path/to/powercontext-preview -uv pip install --python /path/to/powercontext-preview/bin/python "powercontext[cli,server]==1.6.0" +uv pip install --python /path/to/powercontext-preview/bin/python "powercontext[cli,server]==1.6.1" ``` 在独立环境安装其他 Git ref: @@ -360,7 +360,7 @@ uv pip install --python /path/to/powercontext-preview/bin/python "powercontext[c 如果应用需要导入异步 Client SDK,应把它加入该应用自己的环境: ```bash -uv add "powercontext[client]==1.6.0" +uv add "powercontext[client]==1.6.1" ``` 进程内 Python 组合使用 `builtin`,服务使用 `server`,Python SDK 使用 `client`,基于 Server 的命令行使用 `cli`。只安装在 `uv tool` 隔离环境中的 extra 不能被另一个 Python 项目直接导入。 diff --git a/docs/zh/docs/get-started/manual-start.md b/docs/zh/docs/get-started/manual-start.md index c9ed130340..b68050c281 100644 --- a/docs/zh/docs/get-started/manual-start.md +++ b/docs/zh/docs/get-started/manual-start.md @@ -49,7 +49,7 @@ source "$HOME/.local/bin/env" 安装 PowerContext CLI 和本地 Server: ```bash -uv tool install --force "powercontext[cli,server]==1.6.0" +uv tool install --force "powercontext[cli,server]==1.6.1" powercontext --version powercontext --help ``` @@ -179,7 +179,7 @@ Scope 是项目上下文数据的隔离空间,用于隔离 Source、Memory、T ```bash cd ~/powercontext-manual POWERCONTEXT_CLIENT_SERVER_URL=http://127.0.0.1:18080 \ -uv run --with "powercontext[client]==1.6.0" python - <<'PY' +uv run --with "powercontext[client]==1.6.1" python - <<'PY' import asyncio import os from powercontext.client import PowerContextClient @@ -214,7 +214,7 @@ export POWERCONTEXT_CODEX_SCOPE_ID=替换为Server返回的真实scope_id ```bash powercontext setup codex \ - --ref powercontext-v1.6.0 \ + --ref powercontext-v1.6.1 \ --server-url http://127.0.0.1:18080 powercontext doctor codex ``` diff --git a/docs/zh/docs/operate/atomic-memory-migration.md b/docs/zh/docs/operate/atomic-memory-migration.md index 6c6d343f55..d2b97ad5ee 100644 --- a/docs/zh/docs/operate/atomic-memory-migration.md +++ b/docs/zh/docs/operate/atomic-memory-migration.md @@ -307,7 +307,7 @@ flush token 或链路解析工作量。 候选元数据以及协调过程中需要保留的状态仍可能随页数增长。 未受管数据库通过受支持的索引初始化创建此派生表。受管 Server 数据库需要通过 `db-migrate --bundle server` -显式升级到 `000`;普通启动保持只读,在升级完成前报告 `migration_required`。schema 升级创建空别名表。 +显式升级到 `v1_6_1`;普通启动保持只读,在升级完成前报告 `migration_required`。schema 升级创建空别名表。 安装不会回填早先的合并记录:保持停写, 按上面的维护流程显式重建投影。重建读取每个 merged 身份最新的权威正文 revision,发布前复核 revision/状态以及 配置的 embedding profile,修复过期别名元数据、清理过期别名并验证结果集合。空投影和 profile 变化时使用配置模型 diff --git a/docs/zh/docs/operate/database-migrations.md b/docs/zh/docs/operate/database-migrations.md index 78dc08bd37..3b9ea992ba 100644 --- a/docs/zh/docs/operate/database-migrations.md +++ b/docs/zh/docs/operate/database-migrations.md @@ -14,8 +14,8 @@ description: 了解数据库迁移命令、备份策略、服务启停及当前 完整 Server 框架使用两个归一化检查点接入共享迁移链: -- **1.3.0:**`s1300 → s1400 → s1401 → s1402 → v1_4_1_004 → v1_4_1_005 → v1_4_1_006 → v1_5_0_001 → v1_5_0_002 → v1_5_0_003 → v1_5_0_004 → v1_5_0_005 → v1_5_0_006 → v1_6_0 → 000`。 -- **1.4.0:**通过独立冻结的来源桥接,执行 `r1400 → s1400 → s1401 → s1402 → v1_4_1_004 → v1_4_1_005 → v1_4_1_006 → v1_5_0_001 → v1_5_0_002 → v1_5_0_003 → v1_5_0_004 → v1_5_0_005 → v1_5_0_006 → v1_6_0 → 000`。 +- **1.3.0:**`s1300 → s1400 → s1401 → s1402 → v1_4_1_004 → v1_4_1_005 → v1_4_1_006 → v1_5_0_001 → v1_5_0_002 → v1_5_0_003 → v1_5_0_004 → v1_5_0_005 → v1_5_0_006 → v1_6_0 → v1_6_1`。 +- **1.4.0:**通过独立冻结的来源桥接,执行 `r1400 → s1400 → s1401 → s1402 → v1_4_1_004 → v1_4_1_005 → v1_4_1_006 → v1_5_0_001 → v1_5_0_002 → v1_5_0_003 → v1_5_0_004 → v1_5_0_005 → v1_5_0_006 → v1_6_0 → v1_6_1`。 应用发布版本与 schema revision 分别编号。1.4.0 发行包不等于 `s1400` 检查点:其 Candidate 结构已经是当前格式, 但 Topic 尝试状态仍需登记的桥接。两条路径保留既有引用和历史,到达相同的受管目标结构;原有资源摘要分别保留, @@ -121,7 +121,7 @@ MySQL 兼容后端的结构反射支持 CHECK 表达式中的二元 `+`、`-`、 ## 迁移编号与软件版本 -目标发布版本为 **PowerContext 1.6.0**。下一个版本的结构变更累积在公共未发布 revision `000` 中。 +目标发布版本为 **PowerContext 1.6.1**。下一个版本的结构变更累积在公共未发布 revision `000` 中。 发版 PR 将其冻结为 `v<主版本>_<次版本>_<补丁版本>`,不带 PR 号或步骤后缀。 执行顺序由 `down_revision` 决定,不按名称排序。没有结构变化的发布沿用原数据库 head,不新增 revision。 @@ -145,13 +145,13 @@ MySQL 兼容后端的结构反射支持 CHECK 表达式中的二元 `+`、`-`、 | `v1_5_0_005` | 1.5.0 | 第五步 | `v1_5_0_005` | 移除旧插件框架存储并新增可空的 Artifact 元数据 | | `v1_5_0_006` | 1.5.0 | 第六步 | `v1_5_0_006` | Source 采集的 runner 与目标表,移除 write 插件登记表 | | `v1_6_0` | 1.6.0 | — | `v1_6_0` | 独立上下文准备诊断 | -| `000` | — | — | `000` | 可重建的 Atomic Memory 历史别名投影 | +| `v1_6_1` | 1.6.1 | — | `v1_6_1` | 可重建的 Atomic Memory 历史别名投影 | -两条已登记来源路径都在 `v1_6_0` 之后到达 `000`;CI 升级验收只选择 1.3.0: +两条已登记来源路径都在 `v1_6_0` 之后到达 `v1_6_1`;CI 升级验收只选择 1.3.0: ```text -1.3.0: v1_3_0_000 -> v1_4_1_001 -> v1_4_1_002 -> v1_4_1_003 -> v1_4_1_004 -> v1_4_1_005 -> v1_4_1_006 -> v1_5_0_001 -> v1_5_0_002 -> v1_5_0_003 -> v1_5_0_004 -> v1_5_0_005 -> v1_5_0_006 -> v1_6_0 -> 000 -1.4.0: v1_4_0_000 -> v1_4_1_001 -> v1_4_1_002 -> v1_4_1_003 -> v1_4_1_004 -> v1_4_1_005 -> v1_4_1_006 -> v1_5_0_001 -> v1_5_0_002 -> v1_5_0_003 -> v1_5_0_004 -> v1_5_0_005 -> v1_5_0_006 -> v1_6_0 -> 000 +1.3.0: v1_3_0_000 -> v1_4_1_001 -> v1_4_1_002 -> v1_4_1_003 -> v1_4_1_004 -> v1_4_1_005 -> v1_4_1_006 -> v1_5_0_001 -> v1_5_0_002 -> v1_5_0_003 -> v1_5_0_004 -> v1_5_0_005 -> v1_5_0_006 -> v1_6_0 -> v1_6_1 +1.4.0: v1_4_0_000 -> v1_4_1_001 -> v1_4_1_002 -> v1_4_1_003 -> v1_4_1_004 -> v1_4_1_005 -> v1_4_1_006 -> v1_5_0_001 -> v1_5_0_002 -> v1_5_0_003 -> v1_5_0_004 -> v1_5_0_005 -> v1_5_0_006 -> v1_6_0 -> v1_6_1 ``` `status` 和 `plan` 在原有机器字段之前显示 `source_migration`、`target_migration`、 @@ -245,7 +245,7 @@ make release-check 已发布 revision 的标识、资源和校验和保持不变。1.5.2 的数据库 head 为 `v1_5_0_005`; Source 采集迁移以 `v1_5_0_006` 接在其后。使用原 PR 编号命名的 Source 采集迁移的开发数据库及恢复计划需要重建;不提供运行时别名。 -1.6.0 将其后的累计迁移冻结为 `v1_6_0`;新的开发迁移依赖该 head。没有实际存储变化时不引入生产开发迁移。 +1.6.0 将上下文准备诊断迁移冻结为 `v1_6_0`。1.6.1 将历史别名投影冻结为 `v1_6_1`;新的开发迁移依赖该 head。没有实际存储变化时不引入生产开发迁移。 ## 初始化与维护职责 diff --git a/docs/zh/docs/operate/install-gateway.md b/docs/zh/docs/operate/install-gateway.md index 1a3bfceb1a..a8bd6b5283 100644 --- a/docs/zh/docs/operate/install-gateway.md +++ b/docs/zh/docs/operate/install-gateway.md @@ -47,12 +47,12 @@ curl -fsSL https://powercontext.oceanbase.io/install.sh | bash -s -- --gateway ## 下载与校验 -以下以 1.6.0 为例,请选择与 Core 相同的发布版本。无需 Rust 编译器或仓库源码。 +以下以 1.6.1 为例,请选择与 Core 相同的发布版本。无需 Rust 编译器或仓库源码。 从选定的 Release 下载压缩包及校验文件,在解压或安装之前完成校验: ```bash set -eu -version=1.6.0 +version=1.6.1 case "$(uname -s)/$(uname -m)" in Linux/x86_64) target=x86_64-unknown-linux-gnu ;; Linux/aarch64|Linux/arm64) target=aarch64-unknown-linux-gnu ;; diff --git a/integrations/dify/plugin/powercontext_dify/contract.json b/integrations/dify/plugin/powercontext_dify/contract.json index 554a48d9d4..3c77ff7974 100644 --- a/integrations/dify/plugin/powercontext_dify/contract.json +++ b/integrations/dify/plugin/powercontext_dify/contract.json @@ -1,5 +1,5 @@ { - "api_version": "1.6.0", + "api_version": "1.6.1", "operations": { "list_atomic_memories": { "method": "POST", diff --git a/integrations/dsh/plugins/powercontext/README.md b/integrations/dsh/plugins/powercontext/README.md index 9bf7b1bb39..5167fa6d33 100644 --- a/integrations/dsh/plugins/powercontext/README.md +++ b/integrations/dsh/plugins/powercontext/README.md @@ -46,8 +46,8 @@ and [npm release instructions](https://github.com/oceanbase/powercontext/blob/ma Install the released Server and plugin together: ```bash -uv tool install --force "powercontext[cli,server]==1.6.0" -powercontext setup dsh --source oceanbase/powercontext --ref powercontext-v1.6.0 +uv tool install --force "powercontext[cli,server]==1.6.1" +powercontext setup dsh --source oceanbase/powercontext --ref powercontext-v1.6.1 ``` `setup dsh` calls `dsh plugin --profile web add`. The model-facing PowerContext surface is registered through DSH's native `@deepseek-ai/dsh-mcp-client`. diff --git a/openapi/powercontext.yaml b/openapi/powercontext.yaml index 2610c10f48..59492dfdc4 100644 --- a/openapi/powercontext.yaml +++ b/openapi/powercontext.yaml @@ -16,7 +16,7 @@ openapi: 3.0.3 info: title: PowerContext API description: Remote PowerContext transport. Runtime behavior is reported by /v1/capabilities. - version: 1.6.0 + version: 1.6.1 x-powercontext-feature-contracts: connection.identity: {major: 1, minor: 0} access.principal: {major: 1, minor: 0} diff --git a/release/notes/powercontext-v1.6.1.md b/release/notes/powercontext-v1.6.1.md new file mode 100644 index 0000000000..8de42c9504 --- /dev/null +++ b/release/notes/powercontext-v1.6.1.md @@ -0,0 +1,33 @@ +# PowerContext v1.6.1 + +## English + +PowerContext v1.6.1 improves memory recall after merges, Gateway conversation handling, installation and integration reliability, and processing visibility. + +- Recall merged Atomic Memories through historical aliases, and improve one_pass completeness, candidate retention and prefixed keep-check error handling. ([#2674](https://github.com/oceanbase/powercontext/pull/2674), [#2840](https://github.com/oceanbase/powercontext/pull/2840), [#2841](https://github.com/oceanbase/powercontext/pull/2841)) + +- Improve Gateway conversation replay and context deduplication, bind model requests to explicit Scopes and Core-approved upstream targets, and support host-marked internal requests. Extend cost guidance and cached-prefix reuse to Chat Completions; actual savings depend on provider cache behavior. ([#2810](https://github.com/oceanbase/powercontext/pull/2810), [#2630](https://github.com/oceanbase/powercontext/pull/2630), [#2815](https://github.com/oceanbase/powercontext/pull/2815), [#2837](https://github.com/oceanbase/powercontext/pull/2837)) + +- Install the Gateway alongside the CLI with verified native release binaries. Improve Gateway-owned recall across integrations, linked Git worktree bindings, completion-aware outcome guidance and recognized-credential redaction. ([#2811](https://github.com/oceanbase/powercontext/pull/2811), [#2875](https://github.com/oceanbase/powercontext/pull/2875), [#2863](https://github.com/oceanbase/powercontext/pull/2863)) + +- Expose Content Source metadata and configurable size limits, show Source consumption and Topic Memory processing status in the Dashboard, and support viewing and editing Profile generation prompts. ([#2728](https://github.com/oceanbase/powercontext/pull/2728), [#2745](https://github.com/oceanbase/powercontext/pull/2745), [#2727](https://github.com/oceanbase/powercontext/pull/2727), [#2724](https://github.com/oceanbase/powercontext/pull/2724), [#2721](https://github.com/oceanbase/powercontext/pull/2721)) + +- Harden request-body admission and remote Skill enrollment, validate Source scheduling, and clarify offline maintenance when widening Processing capabilities. ([#2824](https://github.com/oceanbase/powercontext/pull/2824), [#2858](https://github.com/oceanbase/powercontext/pull/2858), [#2758](https://github.com/oceanbase/powercontext/pull/2758), [#2826](https://github.com/oceanbase/powercontext/pull/2826)) + +- Upgrade Server, Gateway, SDK, CLI and integrations together. Freeze the cumulative historical-alias projection migration as v1_6_1 after v1_6_0. Existing managed databases require explicit offline maintenance; unpublished 000 databases must be rebuilt. Installed-artifact upgrade acceptance is required for each supported source, backend and configuration; release preparation alone does not establish that acceptance. + +## 中文 + +PowerContext v1.6.1 改进记忆合并后的召回、Gateway 对话处理、安装与集成可靠性,以及处理状态的可见性。 + +- 通过历史别名召回已合并的 Atomic Memory,并改进 one_pass 操作完整性、候选保留和前缀提取路径的 keep-check 错误处理。 ([#2674](https://github.com/oceanbase/powercontext/pull/2674), [#2840](https://github.com/oceanbase/powercontext/pull/2840), [#2841](https://github.com/oceanbase/powercontext/pull/2841)) + +- 完善 Gateway 对话重放与上下文去重,将模型请求绑定到显式 Scope 和 Core 批准的上游目标,并支持 Host 标记内部请求。将成本引导和缓存前缀复用扩展到 Chat Completions;实际节省取决于供应商缓存行为。 ([#2810](https://github.com/oceanbase/powercontext/pull/2810), [#2630](https://github.com/oceanbase/powercontext/pull/2630), [#2815](https://github.com/oceanbase/powercontext/pull/2815), [#2837](https://github.com/oceanbase/powercontext/pull/2837)) + +- 随 CLI 安装经过校验的 Gateway 原生发布二进制。完善各集成中由 Gateway 负责的召回、Git worktree 工作区绑定、任务完成结果引导和已识别凭证的脱敏。 ([#2811](https://github.com/oceanbase/powercontext/pull/2811), [#2875](https://github.com/oceanbase/powercontext/pull/2875), [#2863](https://github.com/oceanbase/powercontext/pull/2863)) + +- 提供 Content Source 元数据和可配置的大小限制,在 Dashboard 中展示 Source 消费进度与 Topic Memory 处理状态,并支持查看和编辑 Profile 生成提示词。 ([#2728](https://github.com/oceanbase/powercontext/pull/2728), [#2745](https://github.com/oceanbase/powercontext/pull/2745), [#2727](https://github.com/oceanbase/powercontext/pull/2727), [#2724](https://github.com/oceanbase/powercontext/pull/2724), [#2721](https://github.com/oceanbase/powercontext/pull/2721)) + +- 加强请求体准入和远程 Skill 登记限制,校验 Source 调度配置,并在扩展 Processing 能力时明确提示所需的离线维护。 ([#2824](https://github.com/oceanbase/powercontext/pull/2824), [#2858](https://github.com/oceanbase/powercontext/pull/2858), [#2758](https://github.com/oceanbase/powercontext/pull/2758), [#2826](https://github.com/oceanbase/powercontext/pull/2826)) + +- Server、Gateway、SDK、CLI 与集成需协调升级。历史别名投影的累计迁移冻结为 v1_6_1,接在 v1_6_0 之后。已有托管数据库需要显式离线维护;未发布的 000 开发数据库必须重建。每个受支持的源版本、后端和配置组合均需通过安装产物升级验收;发布准备本身不代表已经通过该验收。 diff --git a/release/upgrade-support.json b/release/upgrade-support.json index 0fef647271..e59114923b 100644 --- a/release/upgrade-support.json +++ b/release/upgrade-support.json @@ -1,10 +1,10 @@ { "format": 2, - "target_version": "1.6.0", + "target_version": "1.6.1", "mode": "upgrade-required", "schema_review": { - "persistence_sha256": "b6709b95d7a00c9d147d958316f7ec6c4a8815d6bc6c950a19211ae015c863b7", - "rationale": "Revision v1_5_0_006 follows v1_5_0_005 on both registered source chains and all vector/Code profiles. It adds pc_source_runners (name, display name, registering principal type and identifier, nullable registration ID unique per principal, registration time, reported capabilities and digest, nullable last_seen_at) and pc_source_collect_targets (Scope and target identity, runner, capability, target key unique per Scope, runner and capability, parameters, enabled, configuration version, update audit, and runner-written status columns, including whether the last attempt left more to collect), and drops pc_source_write_plugins. The source_collection domain step refuses the upgrade while pc_source_write_plugins lists a plugin, so no loaded write plugin is lost silently; otherwise no existing record is rewritten. Earlier revision resources, frozen checksums and SQLite fingerprints are unchanged; the MySQL layout for the new tables is registered from the same SQLAlchemy DDL. Target checkpoints reuse pc_connector_checkpoints keyed by (scope_id, target_id) with a constant connector version; a commit for a collection target is validated against the target's runner, enabled state and configuration version in the transaction that writes the checkpoint and status. Portable bundles add source_runner (name, display name, registering principal and registration ID) and source_collect_target records; reported capabilities, last-seen time and target status restart empty. Revision v1_5_0_005 follows v1_5_0_004 on both registered source chains and all vector/Code profiles. It removes the storage of the previous Artifact plugin framework (family schemas, declarative search and vector index tables, and the plugin registration columns of pc_artifact_processing_binding_states) and adds the nullable pc_artifacts.metadata column, which records the plugin name and code digest of plugin-written revisions and stays NULL for built-in families. Its domain preflight refuses the upgrade while the previous framework still holds any registration, declaration or index row, and native maintenance refuses registered native vector spaces, so no data is dropped silently. Its readiness accepts directory-loaded 'plugin:' Processing bindings without durable registration and keeps the frozen built-in full-text checks; plugin families write no rows to pc_artifact_fts. Revision reads omit metadata so domain steps at earlier registered revisions still run. Portable Artifact revision records advance to schema version 3 with metadata, and version 2 records restore with metadata NULL. Earlier revision resources, fingerprints and checksums remain unchanged; local SQLite migration tests do not establish native seekDB/OceanBase or installed-release acceptance. Topic Memory processing failures attach bounded, content-free stage, reason and budget diagnostics to in-flight exceptions. Rejected reservations retain their existing durable charges; readback omits token-specific fields unless committed evidence establishes the limiting dimension, and repeated rejected calls cannot reinterpret prior evidence. Source structure and history-count guards do not imply context overflow. Missing FTS capability is configuration, and incomplete vector projections are business validation. No database schema, migration resource, registered table layout, frozen revision checksum, row encoding, persisted journal format or worker retry behavior is changed by these diagnostic annotations. The reusable Server migration framework registers actual PowerContext 1.3.0 through s1300 -> s1400 -> s1401 -> s1402 and actual 1.4.0 through the separate immutable r1400 -> s1400 -> s1401 -> s1402 source bridge. Original 1.3 resources and checksums remain byte-identical. Real 1.4.0 SQLite, embedded seekDB and OceanBase structures were captured from the official wheel in all twelve vector/Code configurations; provenance and exact source layouts are packaged with the bridge. The 1.4 bridge preserves current Candidate, Artifact and task data, adds the missing Topic budget/block structure, revokes old lease fences and joins the existing archive/portable-storage path. Empty retained tables align the final schema without inventing 1.3 Candidate history. Source histories retain their identity through subsequent upgrades and recovery; shared head names never authorize adopting unknown layouts. Vector profiles remain bound to historical model, profile ID, dimension, unit normalization and L2 distance, with no provider calls during maintenance. Complete schema, domain, projection, profile and retained-history checks precede startup and partial maintenance. Local SQLite and embedded seekDB startup reject an observable active maintenance lock through a read-only probe. SQLite runtime admission validates the default adjacent journal, rejecting unfinished full or partial maintenance, changed recorded revision checksums and missing required retained tables. Absent journals do not invent retention obligations; custom evidence directories require explicit operator verification and remote coordinator locks remain subject to deployment orchestration. Native read-only readiness uses a consistent snapshot and does not acquire Atomic Memory head locks; normal business transaction isolation is unchanged. Offline projection repairs retain the original locked state comparison and write-side CAS protection. Target locks, backup choices, original recovery evidence and explicit remote acknowledgments remain enforced. The installed-artifact catalog retains twelve 1.3.0 source/backend/vector/Code combinations. Embedded seekDB uses pylibseekdb 1.4.0.post2 or newer with the recovered-transaction lock fix. Main and publication require all twelve configurations, including embedded seekDB full-server-code and full-server-vector-code. No configuration is waived; incomplete, failed or skipped evidence rejects acceptance. The seekdb-code diagnostic selection cannot authorize publication. The registered 1.4.0 bridge remains implemented but is outside the CI upgrade acceptance matrix; passing this gate does not certify that path. The gate preserves source-specific Processing counters and isolates OceanBase source databases. Any failed, skipped or missing automatic case rejects publication. The policy remains upgrade-required until the exact target artifact passes the required automatic matrix and the reviewed support declaration is updated. Captured source structure, local tests and checkpoint replay are distinct from installed-release acceptance, native interruption/observer recovery and backup restoration. The Candidate generation prototype observes actual SQLite/seekDB/OceanBase migration checkpoints outside the production bundle; it does not replace frozen registrations or weaken recovery checks. Existing target schema and data formats, including batched persistence interfaces, remain governed by the shared registered path. The synchronized master adds blank-text validation at Source creation and managed worker logging. It changes neither registered table layout nor migration data encodings; existing stored Source values are not rewritten. The source bridges and frozen history remain unchanged. Compatibility commands identify Server-owned storage before opening a writable legacy profile and delegate source admission to the shared framework, including actual 1.4.0 and rejection of unknown layouts. Partial Processing and Atomic Memory projection maintenance verify the original recorded revision checksums; native admission also validates typed journal identity and its completed position against the database revision. Persisted vector profiles reject unsupported partial maintenance before plans, backups or operation evidence, including when the supplied configuration omits embeddings. These are admission-only changes; frozen migration resources, registered layouts, historical checksums and data transformations remain unchanged. PowerContext 1.4.1 assigns release-based presentation names v1_4_1_001 through v1_4_1_003 to the existing shared upgrade steps; the 1.3.0 and 1.4.0 source baselines remain independently registered. Existing revision IDs, bundle and revision checksums, accepted plan identities and journal schemas are unchanged. Unpublished Server schema changes accumulate in a shared 000 revision and its registered resources. Release preparation freezes this draft as v__ after declaring the target version. Development databases are disposable; only supported released-version upgrades are promised. Revision descriptors parse this format while preserving historical release sequences, legacy aliases and opaque custom IDs. The sequence field is null for frozen release names and 000; the draft has no software_version. Historical sequence and PR-based names remain readable. Dependency order still follows down_revision. This naming support changes no registered schema, frozen resource, persisted revision, plan identity or checksum. Software releases without storage changes may reuse the same database revision. Naming does not grant acceptance or replace source registration. Full Server status, plan, apply and verify reject unfinished Processing configuration and Atomic Memory projection journals through the same typed admission check used by partial maintenance and SQLite startup. The owning domain runner can still resume its own journal. This only changes admission; frozen revisions, journal formats, database layouts and data transformations remain unchanged. Revision v1_4_1_004 registers the pc_access_owner_recovery outbox on the shared Server chain for both installed-release sources and all registered vector/Code profiles. It creates an empty table through explicit maintenance for existing managed databases and through the registered bootstrap for fresh databases. Earlier revision resources, fingerprints, checksums and existing domain row encodings remain unchanged. External relationship writers use version-1 Artifact and Candidate intents committed with domain data; replay retains the original deployment, principal, resource or target, and idempotency identity. Stable operation and audit event identities prevent lost acknowledgements from duplicating ownership or audit. Conflicting intents are rejected and unknown historical ownership is not inferred. Unregistered outbox layouts are not adopted merely from a table name. This registration does not establish installed-release or external-Provider upgrade acceptance. The policy remains upgrade-required with the full automatic matrix and publication restrictions described above. Database selection now defaults to powercontext for seekDB and for OceanBase URLs without a database, while explicit database names remain authoritative. An implicit seekDB selection is rejected before initialization when the legacy test database contains pc_ tables; operators can explicitly select database=test to retain those records, and no database is moved or deleted automatically. Bootstrap reuses an accessible selected database without CREATE privilege and creates only a confirmed missing database, with idempotent creation and explicit permission errors. Read-only maintenance on an initialized MySQL-compatible engine requires the selected database and never provisions it; an absent or empty seekDB instance remains a no-engine initial plan. MySQL initialization creates only missing requested tables and indexes, and sorts only those requested tables; existing registered tables are preserved. Code graph connections use the selected database, retain historical graph identities for test, and distinguish other database identities. Server identity initialization avoids redundant MySQL DDL on an existing table. Frozen migration resources, revision identifiers and checksums, registered table definitions, journal formats, and existing row encodings are unchanged. These runtime selection and admission changes do not establish an accepted upgrade path; the policy remains upgrade-required and the installed-release acceptance gate still applies. MySQL recovery rejects different registered table sets before normalization. Backend-default normalization copies only the column and index maps it changes and compares each table without cloning whole inventories. Admitted layouts, registered transitions, recovery checks, schema equality and caller-owned inventories remain preserved. SeekDB status and verify distinguish a missing configured database from an uninitialized engine and denied access. Read-only plan can represent a missing selected database as an uninitialized target without creating it; apply provisions that selected database only after the operator accepts its bound plan, then rechecks the target under the maintenance lock. Installed-release seekDB acceptance explicitly retains the historical test database and separately verifies that omitted selection is refused. Registered schema resources, revision checksums, row encodings and write-side provisioning remain unchanged. Server startup can apply an uninitialized plan to provision a missing selected seekDB database; plan, status and verify still never provision it. OceanBase 4.6 SHOW CREATE TABLE can reflect FTS_INDEX_TYPE=MATCH or PHRASE_MATCH on FULLTEXT indexes. Reflection accepts these known types without changing the logical inventory; unknown values remain rejected and indexed columns, parser identity and token-size properties remain significant. PHRASE_MATCH additionally supports phrase matching; the registered layouts require term matching and do not declare a phrase-only contract. Frozen migration resources, checksums, recovery evidence and persisted layouts remain unchanged. Native 4.6.3.1 DDL was captured from a real installed 1.3.0 database; replay of this fixture does not establish complete native upgrade acceptance. The CI database image and master full automatic upgrade matrix remain unchanged. Revision v1_4_1_005 adds nullable Atomic Memory description projection metadata after the registered owner-recovery revision, through explicit SQLite and MySQL schema transitions for both source chains and all vector/Code profiles. Earlier revision resources, fingerprints and checksums remain unchanged. The additive change neither rewrites authoritative Artifact history nor generates summaries or scans stored bodies. Existing managed databases require explicit migration; existing descriptions remain null until a new write or explicit projection repair copies authoritative metadata. Intermediate projection validation uses only columns available at that revision and still rejects inconsistent existing fields. Unmanaged SDK initialization retains its nullable-column compatibility path. The installed-release acceptance matrix and publication restrictions remain required; local regression checks do not establish native upgrade acceptance. Artifact plugin storage extends the shared Server chain from v1_4_1_006 to v1_5_0_001 with registration columns, family declarations, search state and projections, index coverage and changes, and vector-space/index registrations. SQLite also registers portable vectors and FTS auxiliary structures. Native registration columns are added in one ALTER with a matching recovery checkpoint; final column definitions and constraints are unchanged. Native vector tables are created online from registered spaces and are admitted to later maintenance inventories only after exact layout validation. Historical migration resources, retained objects, and existing data are preserved. This review does not expand the supported upgrade matrix or certify installed-release acceptance. Source write plugin registrations use the additive v1_4_1_006 revision after v1_4_1_005 on both source chains. It creates only pc_source_write_plugins; all earlier master revision scripts, schema resources and checksums remain unchanged. Revision v1_5_0_002 follows v1_5_0_001 and adds retained Source evidence bindings, exact Atomic Memory evidence snapshots and their schema marker on all registered backends. A new versioned domain step verifies retained evidence for lexical and vector profiles; earlier released domain resources and recorded revision checksums remain byte-identical. Existing Sources and Memory revisions without accepted declarations stay neutral, with no trust backfill. Current projection maintenance and rebuild explicitly require evidence validation. This additive registration does not establish installed-release acceptance; the upgrade-required gate and publication restrictions are unchanged. Revision v1_5_0_003 adds the disposable exact-revision pc_atomic_memory_evidence projection through the existing index adapters. Transactional body writes publish it from accepted evidence; scoped portable restore and maintenance rebuild derive it from retained history without current-registry trust backfill or model calls. Domain conformance compares historical and derived values, including neutral legacy declarations, on lexical and vector layouts. Earlier revision resources and fingerprints remain unchanged. Local SQLite recovery and real OceanBase 4.4.2.1 evidence conformance were exercised; these do not certify installed-release upgrades or change publication restrictions. Source evidence maintenance now accepts the deployment's own Source definition registry, reports one bounded neutralization reason through operational logs, batches exact-revision reads and caches retained-schema validation per manifest fingerprint. Indexed repair accepts that registry explicitly; the migration bundle still admits evidence against the builtin registry and says so. These changes alter neither registered table layouts nor retained encodings, and the runtime and Server evidence DDL remain byte-identical. The policy remains upgrade-required with the full automatic matrix and publication restrictions described above. Source definition manifests derive every field whose default is null from the validation schema, so an already accepted Definition keeps its fingerprint and re-registers after upgrade; populating such a field requires the nested model to serialize by alias. Registered layouts and retained encodings are unchanged. The runtime MySQL-family table fast path now runs the registered additive evidence migration before creating other tables, so an unmanaged OceanBase or seekDB database cannot retain evidence tables without their p0005 marker.. Code publication recovery adds an optional per-binding publication.json journal that records a generation identifier before its database commit and final directory rename. Caches created before this journal existed remain readable without synthesizing historical publication records; identifiers for already orphaned rows are not inferred. New seekDB generations retain the existing identifier, graph descriptor, manifest and row encodings, while reclamation validates the recorded identifier and scopes deletion to its binding. Live or reader-retained generation directories and the in-flight publication are protected from journal-window reclamation. SQLite graph rows remain owned by their generation directory. This additive local cache journal changes recovery behavior but does not change registered SQL table layouts, migration resources, revision identifiers, historical checksums or the Server migration journal. The policy remains upgrade-required, and the complete installed-release acceptance matrix remains mandatory; this compatibility review is not evidence of completed native upgrade acceptance. Managed Ops admission validates a private main-file and WAL snapshot through the exact target Server bundle, retaining the original database identity and maintenance evidence. Snapshot admission is read-only and cannot initialize, migrate or recover storage. It adds no schema revision, changes no persisted row or journal format, and does not expand supported upgrade declarations or the installed-release acceptance matrix. PreparedContext Receipt records the actual FTS mode on Experience search outcomes. This adds only an in-memory observation field; it does not change stored Experience rows, SQL selection, schema registrations, migration resources, or data encodings. Unmanaged historical Server databases are admitted by required structure and domain state, then normalized before adopting an existing checkpoint. Historical Memory conversion, Scope preservation, SQLite rollback and native DDL recovery use the shared maintenance flow. Independent extension objects and harmless DDL differences do not require clean-install fingerprints. Existing immutable revision resources and the installed-release acceptance matrix remain unchanged. Local historical tests do not certify arbitrary tenant defaults, every vector/Code configuration or future releases. SQLite compatibility validation includes effective primary-key collations and rejects conflicting identity semantics. Historical normalization and the frozen s1400 rebuild preserve generated extension definitions while copying only writable columns. Both virtual and stored generated values remain computed by SQLite; immutable revision resources and the native backend paths are unchanged. SQLite table rebuilds preserve declared collations on ordinary and generated extension columns, including their inherited index comparison semantics. Expression-local COLLATE clauses remain part of their expressions and do not change the column collation. This changes only SQLite compatibility normalization; frozen revisions and native backend execution remain unchanged. Historical Memory admission recognizes lineage ownership columns and default non-merge references while rejecting unmapped payloads. Native compatibility journals record temporary Processing counter ownership before DDL and clear it after cleanup, including completed-phase recovery. SQLite extension preservation also covers the registered r1400 bridge. Frozen migration resources and the installed-release acceptance matrix remain unchanged. Native historical Atomic conversion creates nullable description metadata with the registered UTF-8 binary collation, allowing the later frozen ADD transition to recognize its completed postcondition without duplicate DDL. SQLite historical normalization and registered source bridges preserve dependent views and their triggers during same-name table replacement. Legacy rename behavior is limited to the exact staging-to-final rename statements and the original connection setting is restored; genuine table renames still update dependent references. Frozen migration resources and native backend behavior remain unchanged. SQLite admission validates required extension defaults using SQLite deterministic-expression restrictions and a non-NULL evaluation on an isolated connection. Connection-state, random and clock-dependent expressions are rejected; direct CURRENT_DATE, CURRENT_TIME and CURRENT_TIMESTAMP defaults remain supported alongside usable constant expressions. Regression coverage verifies consecutive Source writes in distinct scopes within the same transaction. Read-only verification and startup admission share this rule; supported defaults remain usable through Source write and readback. Independent extension tables remain preserved through managed upgrades and initialization recovery; missing recovery evidence and missing vector configuration still block maintenance. Registered native column additions and modifications materialize the charset and collation declared by their immutable postcondition when the SQL would otherwise inherit a historical table default. This preserves GBK-origin upgrade recovery without changing frozen resources, existing table defaults, independent extension encodings or readiness requirements. SQLite Candidate extension columns and their values survive both stages of the registered Dream rebuild, including generated columns and dependent views. Frozen source introspection projects the already-validated managed columns without altering stored extension data. Independent indexes use SQLite-rewritten definitions after genuine table renames. Native CHECK removal resolves the actual constraint name from the registered expression and enforcement semantics, including recovery after committed DDL. Frozen resources, registered revision checksums and the installed-release acceptance matrix remain unchanged. SQLite admission rejects additional NOT NULL generated columns because computed values can reject valid Source writes. Nullable virtual and stored extensions remain preserved across historical upgrades and support Source write/readback. Frozen migrations and native backend behavior are unchanged. Ownership recovery preflight derives candidate-family filters from the exact migration identities, including Prompt Candidates that do not have standalone Artifact owners. Static Scope permission previews now use the same complete internal receipt keys as bootstrap for long Scope IDs. These authorization-only changes add no stored fields, row encoding, schema, or migration registration. Static Scope preset keys retain existing short identities and use SHA-256 for oversized relationship keys. Bootstrap and read-only preview recognize both bounded keys and historical receipts, including revoked bindings. No schema or migration registration changes. Managed observability reads existing Context Bootstrap receipt metadata in authorized Scope batches and aggregates it by integration and receipt state. This adds no schema revision, stored row changes, migration resources, or data encoding changes; receipt identities, historical evidence and the declared upgrade acceptance matrix remain unchanged. SQLite connection failures drain the aiosqlite 0.22.1 worker before propagating the error or cancellation, including failures before pool admission. This connection-lifecycle fix changes no registered schema, historical revision checksum, stored value, or upgrade source policy. Prepared-context reuse proofs revalidate cited code files by reading their current worktree digest through the existing no-follow capture reader and exclusion rules. This adds a read-only lookup; it changes no code index cache layout, manifest, graph rows, publication journal, SQL layout, migration resource or checksum. Revision v1_5_0_004 adds the optional pc_artifact_source_locators relation keyed by the existing Artifact Revision and Source-edge ordinal for both registered source releases and vector/Code profiles. Explicit maintenance creates the empty relation without rewriting historical lineage, payloads, Source identities, earlier revision resources or checksums. Missing locators remain omitted in legacy encodings; located citations survive persistence, HTTP/MCP and portable export/restore, and Source sequence mismatches are rejected without redirecting identity. Atomic Memory content and vector bindings are unchanged, so locator metadata does not require re-embedding. Local SQLite migration, restart, citation and portable round-trip tests pass; MySQL layout checks do not constitute native seekDB/OceanBase or installed-release acceptance. The upgrade-required policy, required automatic matrix and publication restrictions remain unchanged. Projection verification and repair read only the exact authoritative head content and state, avoiding target-only Source locator lineage tables at earlier registered migration checkpoints. Frozen resources and revision checksums remain unchanged. Source locator line-count and heading-path limits are centralized without changing their values, accepted payloads or stored encodings. Gateway authorization adds the Scope-level gateway.user role and gateway.invoke action to the existing binding vocabulary. It does not change stored binding structure or migration resources: existing records retain their role and do not implicitly gain gateway.invoke; new grants use the existing binding persistence and resource validation. Existing upgrade support remains upgrade-required and is not certified by this digest refresh. OceanBase Atomic Memory lexical retrieval uses native MATCH with minimum_should_match and SCORE when a controlled capability probe confirms support, and retains the existing MATCH AGAINST plus complete-word coverage path for unsupported backends. Capability decisions are held only in memory per connection pool. Search, complete related enumeration and recovery preserve Analyzer term deduplication, coverage thresholds, scope and content filters, vector completeness checks, same-statement authority heads and the existing oceanbase_match raw-score contract. This query-only change adds no tables, public interfaces, schema revisions, stored fields or row encodings; existing SPACE index definitions, projection formats, historical migration resources and revision checksums remain unchanged. No schema migration or projection rebuild is required for this query implementation. The upgrade-required policy, registered sources and complete installed-release acceptance matrix remain unchanged; this review does not certify installed-release upgrades. Queries above 256 distinct terms retain whole-word coverage unless the engine is identified as OceanBase 4.6 or newer, because earlier native engines can accept MATCH while ignoring that threshold. This compatibility guard changes query selection only. Native capability caching obtains the pool through run_sync, including pinned historical migration connections, without acquiring another connection or releasing maintenance locks. Queries containing SPACE stopwords retain Analyzer-based whole-word admission in all lexical operations. These corrections change neither stored projections nor registered schema resources. SQLite Topic Memory full-text helper version 2 assigns each Scope's helper rows to a hashed 2^32-rowid range above every rowid that version 1 assigned, so Topic replacement and search bound their FTS5 cursors to one Scope's range. Virtual table definitions, registered schema fingerprints, migration resources and authoritative active Topic rows are unchanged. Unmanaged initialization and the existing s1400 domain step rebuild version-1 helper rows from the active tables with exact identities and revisions; a managed database that still holds version-1 helper rows keeps the previous identity filters until the helper is rebuilt. bm25 statistics remain table-wide, so search hits, ordering and scores are unchanged. The standalone seekdb maintenance identity is derived from @@server_uuid and DATABASE() when ob_compatibility_mode is missing, NULL, or empty and VERSION() contains -OceanBase seekdb-. The db-migrate identity probe and the server-run tenant gate share one compatibility classifier; ORACLE and non-seekdb servers remain rejected. This is an admission-only change and does not alter registered table layouts, migration resources, persisted row encodings, or public interfaces. Source writes and text retrieval reuse parameterized SQL structures with fresh Scope, identity, revision, binding and increment values on every execution. Only the fixed built-in Content manifest construction and exact validated payload bytes reuse cached metadata; database registration and indexed-identity checks remain current, and callers receive deep copies. MySQL/OceanBase journal allocation retains SELECT FOR UPDATE; SQLite retains its write reservation. Concurrent Content captures coalesce already queued requests into bounded transactions, isolate individual failures after batch rollback, replay stable identities on cancellation and drain admitted callers during shutdown. No schema, migration, stored encoding, Source identity, journal ordering, processing counter semantics or upgrade support claims change. A Topic Memory window attempt whose publication loses the Topic head CAS to a concurrent replace or Dream records last_error_code head_conflict on its existing pc_topic_memory_work_budgets row, and the attempt ceiling and the next attempt's counter treat that one attempt as not spent. Provider request and token charges stay committed and are never refunded. No table layout, column, constraint, migration resource, revision checksum or row encoding changes; existing rows never carry head_conflict, so their counters and blocks keep their meaning. A binary without this change counts such an attempt as spent, which can only stop that frontier sooner. The Dashboard processing page reads the existing Source journal and Artifact lineage relation and marks only Sources with an exact Artifact citation. It introduces no new table or public JSON interface and does not reconstruct execution history, delivery or adoption. Source journal envelopes record an optional UTC saved_at timestamp for newly inserted records. This adds write metadata inside the existing powercontext-source-v1 payload, without changing registered tables, schema revisions, frozen migration resources or checksums. Historical envelopes and raw legacy payloads remain readable with unknown save time; replay does not invent a timestamp, and handoff receipt upgrades preserve the original timestamp. Source identity, material digests, journal positions and processing intent identities remain unchanged. This compatibility review does not establish installed-release upgrade acceptance; the upgrade-required policy and complete automatic matrix remain unchanged. Relocating access control from the Server package to the built-in runtime, removing the unused Source-cursor discovery query, and moving the code command out of the built-in Code package are code-organization changes. They change neither registered table layout nor migration data encodings: the generated table and index DDL for every persistence and access table is identical on the SQLite and MySQL dialects. Native MySQL schema recognition now requires the absence of core tables and columns removed by registered transitions before accepting a recovery prefix or completed revision. Independent extension tables and columns remain supported. This executes the existing v1_5_0_005 cleanup without changing frozen resources, revision checksums, stored encodings or the required installed-release acceptance matrix. Request-serving plugin hosts reconstruct authorization without requiring a background service identity; scheduled workers retain the explicit identity requirement. This changes only process-local authorization configuration, with no schema, migration, persisted encoding or upgrade support changes. OceanBase vector SQL parameters and literals serialize finite float32 arrays with orjson while retaining pyobvector dimension validation, reference readback and special-value handling. Vector column types and stored float32 values are unchanged. Source evidence bindings are inserted as a batch in the accepting Source transaction with the same exact identities and immutable declarations. Current Atomic Memory verification reads projection pages and vector presence while preserving authoritative content, state, tag, profile, evidence and vector-dimension checks under the existing snapshot contract. These changes introduce no schema revisions, registered migration resource changes, historical rewrites or new installed-release upgrade claims. The OceanBase and seekdb profiles gain a helper that builds engines for another database of the same tenant or instance with the deployment's connection settings; plugin hosts and Workers use it to open each plugin's own database. It reads and writes no core table and changes no schema, migration, persisted encoding or upgrade support. Migration refusal diagnostics now state that retained legacy plugin records have no supported in-place upgrade path; unloading or exporting does not clear them. This wording correction changes no schema, rejection criteria or data transformation. Native managed-schema compatibility compares required columns, indexes and normalized CHECK definitions without deep-copying unrelated extension tables. Validation remains read-only and preserves required-schema admission, caller-owned metadata and all registered schema, data and migration formats. The recurrence ledger exposes read-only queries over existing pc_recurrence_observation rows: observations_for_target returns one bucket, and event_counts_for_target aggregates its three event counts in SQL. Both filter by the indexed revision columns and by the signature hash plus its plaintext. They add no table, column, index, migration, stored encoding or write path, and existing ledger rows, upgrade acceptance cases and policy mode are unchanged. Complete Atomic Memory related enumeration admits a memory when the distinct candidate terms it contains meet the lexical threshold of the candidate's distinct terms, or number at least the minimum match count and cover the coverage fraction of the memory's own indexed words, so a long candidate reaches a short memory of the same fact; window siblings use the same rule. The per-row requirement is computed from the existing searchable text in SQL on SQLite, seekDB and OceanBase, and the native OceanBase path adds one MATCH block that applies whole-word coverage only to memories short enough to qualify below the candidate threshold. This threshold change leaves search, recovery probes, stored projections, registered schema resources and migrations unchanged. Plugin reloading can unregister, in the Server process, the Artifact access profile a plugin family registered when that plugin is removed or renames its family; built-in family profiles are never removed, and no table layout, migration resource, frozen checksum or persisted encoding changes. Atomic Memory evidence capture batches committed revisions in the existing transaction while preserving immutable first-writer histories, per-revision Source ownership and projection encoding. Historical Source reads join material and immutable bindings and batch retained manifests by exact definition version; a damaged ancillary manifest neutralizes only its own identity. Complete related vector recall validates all eligible projections and computes distances in one statement, rejecting invalid projections even outside the distance threshold. SQLite FTS query selection and impossible FTS recovery-probe short-circuiting change read execution only. No table, migration resource, stored encoding, journal order or installed-release upgrade support claim changes. Related hybrid ranks observe lexical results and complete vector validation in one SQL statement; page bodies and current authority remain separately admitted. Each backend prepares and decodes its rank query at one boundary; hybrid ranks retain RRF fusion when no lexical query can be formed. Single and batched active projection publication share current-tag loading under the caller transaction. Historical manifests use the same tolerant batch decoder for one or many identities. These read-execution changes preserve table layouts, stored formats, migrations and upgrade claims. Related hybrid ranks preserve the per-row lexical coverage rule of current related recall, including native full-text query blocks. No migration revision or persisted encoding changes. The 000 draft creates the private prepare diagnostic store with nullable Unicode query text included in the initial table definition. Earlier published resources and existing domain data remain unchanged. The public prepare response, public body-free Receipts, reuse and operational telemetry remain unchanged; diagnostics retain same-execution query and candidate/final text outside Source and Bootstrap storage, and capture adds no expiry or cleanup action. Schema transitions are additive and do not establish native installed-release acceptance. SQLite model-usage accounting classifies expiry during native-connection setup as an unapplied attempt, allowing the recorder to retry within its existing total write budget. No usage statement has executed at that boundary; indeterminate-commit handling and production deadlines remain unchanged. This changes no registered schema, migration resource, revision checksum, persisted row encoding, journal format, or declared upgrade support. Atomic Memory legacy recovery reads express lexical and semantic channel predicates in separate EXISTS query blocks within one scalar SQL statement. Scope and metadata eligibility, per-channel admission thresholds, invalid-vector precedence, bound-vector types and the consistent statement boundary are preserved. This changes read-query planning only: registered table layouts, projection formats, stored row encodings, migration resources, revision checksums and journal formats are unchanged. No migration or projection rebuild is required. The upgrade-required policy, registered source versions and full installed-release acceptance matrix remain unchanged; this review does not certify installed-release upgrades. OceanBase Experience, Atomic Memory and Topic Memory FULLTEXT initialization share the existing Topic Memory policy for transient native error 1205 during index creation. Each recovery attempt rechecks index existence before repeating only the derived-index DDL; subsequent projection refresh and capability validation still execute. Persistent conflicts and other errors remain failures, cancellation propagates, and the helper does not explicitly commit or roll back the caller or replay business writes. Native DDL transaction semantics are unchanged. Index definitions, registered table layouts, projection versions, stored row encodings, frozen migration resources, revision checksums and journal formats are unchanged. No migration or data conversion is required. Vector index initialization, the upgrade-required policy, registered source versions and all installed-release acceptance profiles are unchanged; this compatibility review does not certify installed-release upgrades. SQLite profile-owned cursors close a failed native statement on the existing database worker before propagating the original SQL error. This prevents cyclic exception collection from blocking the event loop while the same connection's worker waits for another writer. Cancellation retains the existing interrupt and transaction-cleanup path; this change adds no statement replay, retry, commit, rollback or lock-wait extension. Registered table layouts, stored row encodings, projection formats, migration resources, revision checksums and journal formats are unchanged. No migration or data conversion is required. The upgrade-required policy, source registrations and full installed-release acceptance matrix remain unchanged; this compatibility review does not certify installed-release upgrades. Release 1.6.0 freezes the cumulative 000 prepare-diagnostics migration as v1_6_0 after v1_5_0_006. Owned resource names, registrations and the persistence digest are synchronized; published revision identities and checksums remain unchanged. No historical query text is backfilled. This freeze preserves the upgrade-required policy and all twelve selected installed-release acceptance profiles; it does not itself certify upgrades. The Source collection revision introduced by PR #2639 after the 1.5.2 release is named v1_5_0_006 before publication. All 47 migration scripts and schema resources shipped in 1.5.2 remain byte-identical. The baseline validator is unchanged and rejects this rename against a base containing the former identity; this known CI failure is retained. Development databases and recovery plans using the former identity must be rebuilt; no runtime alias or installed-release upgrade certification is introduced. The Dashboard Topic Memory processing-status projection reads existing Scope-bound Source cursors, journal heads, targets, work budgets and retained block diagnostics without writing or repairing records or starting processing. It changes no table layout, persisted encoding, migration resource, frozen revision checksum or historical record. The upgrade-required policy and installed-release acceptance matrix remain unchanged; this review does not establish installed-release upgrade acceptance. Revision 000 adds the disposable pc_atomic_memory_alias projection on both registered source chains and backend profiles. The relation binds each merged identity to its exact selected historical revision, immediate merge target and state version, with historical text and profile-bound vector metadata. Managed databases require explicit schema maintenance; ordinary startup remains read-only, and the schema revision creates an empty alias table without backfilling existing merges. Explicit projection repair reconstructs active rows and merged aliases from authority, retains compatible stored historical vectors, prepares missing or incompatible vectors outside write transactions and rechecks authority and embedding configuration before publication. Empty projections and profile changes may regenerate vectors; nondeterministic embeddings cannot reproduce deleted original vector bytes from authority alone. Historical conversion publishes only the tables registered at its checkpoint, so aliases are not accessed before their revision. Frozen historical revision resources, required table sets and checksums remain unchanged. The current projection remains active-only; authoritative Artifact content, lifecycle encodings, identities, evidence and processing progress retain their existing semantics. Alias recall is reconciliation-only and uses the existing Scope, endpoint filtering, authorization, snapshot and version checks. Local SQLite and generated native SQL tests do not establish real seekDB/OceanBase or installed-release acceptance. The upgrade-required policy, required automatic acceptance matrix and publication restrictions remain unchanged. Pristine unmanaged SQLite Atomic maintenance output that includes the alias projection is registered as a separate exact continuation layout. Initialization requires the complete registered schema, including the alias table definition and empty alias rows, before creating Topic recovery objects. Unknown partial layouts, modified alias objects and persisted alias evidence remain rejected before writes. The previously frozen Topic recovery resource and historical migration resources are unchanged, as are authoritative records, task DDL and installed-release acceptance requirements. Topic recovery maintenance checksums bind the relative paths and exact contents of schema.json and atomic_maintenance_sqlite_v2.json, excluding README.md. Reviewed plans detect changes to these resources. Journals using the released schema-only checksum remain resumable only with the exact frozen schema. Recovery preserves original journal and backup checksum identities and continues to validate configuration and backups. Changed frozen schemas and incompatible journals remain rejected before writes. Local SQLite recovery tests do not establish installed-release or native backend acceptance. Atomic Memory alias recall discovers successor identities and versions before loading and authorizing bodies in pages. This changes read scheduling without changing stored layouts, persisted encodings or registered migration resources. Alias lexical recall applies the same per-memory coverage threshold as direct recall to the indexed historical text. No stored layout or migration changes. PR #2728 adds a read-only `metadata` response projection to Content Sources; it changes no table, payload encoding, migration or stored format, so the recorded migration chain and persistence compatibility are unchanged. A manual Topic Memory replace links only the previous exact revision in Artifact lineage instead of copying the current revision's inherited references; existing lineage rows are left as stored, and no table, migration resource, stored encoding or upgrade support claim changes. Built-in Experience FTS search now passes its projection-level lexical admission decision to the decoder after verifying SQLite FTS-to-head projection equality and exact single-term coverage on OceanBase, and RecurrenceRepository adds the read-only verdicts_for_target query over existing pc_recurrence_observation rows using the existing revision index, signature hash and plaintext filters plus event != 'selected'; these read-only query changes alter no table layout, column, index, migration resource, frozen checksum, stored encoding or upgrade support declaration. PR #2745 adds deployment limit constants to `powercontext.limits` and a read-only discovery endpoint; it changes no table, payload encoding, migration or stored format, so the recorded migration chain and persistence compatibility are unchanged. Server startup adds best-effort, read-only guidance for widening an existing SQLite Processing capability declaration without changing its mode or bindings; incompatible configurations remain refused until the explicit offline Processing switch completes. Content Source writes enforce the configured character limit, with a 200,000-character default and a 1,000,000-character setting ceiling within the existing payload storage capacity. Neither change alters table layouts, migration resources, frozen checksums, stored encodings or the installed-release acceptance requirements." + "persistence_sha256": "2e3dee165710351a8c8e526ba8d5be5cc7b222a25d1075a6bb86d74bafa56952", + "rationale": "Revision v1_5_0_006 follows v1_5_0_005 on both registered source chains and all vector/Code profiles. It adds pc_source_runners (name, display name, registering principal type and identifier, nullable registration ID unique per principal, registration time, reported capabilities and digest, nullable last_seen_at) and pc_source_collect_targets (Scope and target identity, runner, capability, target key unique per Scope, runner and capability, parameters, enabled, configuration version, update audit, and runner-written status columns, including whether the last attempt left more to collect), and drops pc_source_write_plugins. The source_collection domain step refuses the upgrade while pc_source_write_plugins lists a plugin, so no loaded write plugin is lost silently; otherwise no existing record is rewritten. Earlier revision resources, frozen checksums and SQLite fingerprints are unchanged; the MySQL layout for the new tables is registered from the same SQLAlchemy DDL. Target checkpoints reuse pc_connector_checkpoints keyed by (scope_id, target_id) with a constant connector version; a commit for a collection target is validated against the target's runner, enabled state and configuration version in the transaction that writes the checkpoint and status. Portable bundles add source_runner (name, display name, registering principal and registration ID) and source_collect_target records; reported capabilities, last-seen time and target status restart empty. Revision v1_5_0_005 follows v1_5_0_004 on both registered source chains and all vector/Code profiles. It removes the storage of the previous Artifact plugin framework (family schemas, declarative search and vector index tables, and the plugin registration columns of pc_artifact_processing_binding_states) and adds the nullable pc_artifacts.metadata column, which records the plugin name and code digest of plugin-written revisions and stays NULL for built-in families. Its domain preflight refuses the upgrade while the previous framework still holds any registration, declaration or index row, and native maintenance refuses registered native vector spaces, so no data is dropped silently. Its readiness accepts directory-loaded 'plugin:' Processing bindings without durable registration and keeps the frozen built-in full-text checks; plugin families write no rows to pc_artifact_fts. Revision reads omit metadata so domain steps at earlier registered revisions still run. Portable Artifact revision records advance to schema version 3 with metadata, and version 2 records restore with metadata NULL. Earlier revision resources, fingerprints and checksums remain unchanged; local SQLite migration tests do not establish native seekDB/OceanBase or installed-release acceptance. Topic Memory processing failures attach bounded, content-free stage, reason and budget diagnostics to in-flight exceptions. Rejected reservations retain their existing durable charges; readback omits token-specific fields unless committed evidence establishes the limiting dimension, and repeated rejected calls cannot reinterpret prior evidence. Source structure and history-count guards do not imply context overflow. Missing FTS capability is configuration, and incomplete vector projections are business validation. No database schema, migration resource, registered table layout, frozen revision checksum, row encoding, persisted journal format or worker retry behavior is changed by these diagnostic annotations. The reusable Server migration framework registers actual PowerContext 1.3.0 through s1300 -> s1400 -> s1401 -> s1402 and actual 1.4.0 through the separate immutable r1400 -> s1400 -> s1401 -> s1402 source bridge. Original 1.3 resources and checksums remain byte-identical. Real 1.4.0 SQLite, embedded seekDB and OceanBase structures were captured from the official wheel in all twelve vector/Code configurations; provenance and exact source layouts are packaged with the bridge. The 1.4 bridge preserves current Candidate, Artifact and task data, adds the missing Topic budget/block structure, revokes old lease fences and joins the existing archive/portable-storage path. Empty retained tables align the final schema without inventing 1.3 Candidate history. Source histories retain their identity through subsequent upgrades and recovery; shared head names never authorize adopting unknown layouts. Vector profiles remain bound to historical model, profile ID, dimension, unit normalization and L2 distance, with no provider calls during maintenance. Complete schema, domain, projection, profile and retained-history checks precede startup and partial maintenance. Local SQLite and embedded seekDB startup reject an observable active maintenance lock through a read-only probe. SQLite runtime admission validates the default adjacent journal, rejecting unfinished full or partial maintenance, changed recorded revision checksums and missing required retained tables. Absent journals do not invent retention obligations; custom evidence directories require explicit operator verification and remote coordinator locks remain subject to deployment orchestration. Native read-only readiness uses a consistent snapshot and does not acquire Atomic Memory head locks; normal business transaction isolation is unchanged. Offline projection repairs retain the original locked state comparison and write-side CAS protection. Target locks, backup choices, original recovery evidence and explicit remote acknowledgments remain enforced. The installed-artifact catalog retains twelve 1.3.0 source/backend/vector/Code combinations. Embedded seekDB uses pylibseekdb 1.4.0.post2 or newer with the recovered-transaction lock fix. Main and publication require all twelve configurations, including embedded seekDB full-server-code and full-server-vector-code. No configuration is waived; incomplete, failed or skipped evidence rejects acceptance. The seekdb-code diagnostic selection cannot authorize publication. The registered 1.4.0 bridge remains implemented but is outside the CI upgrade acceptance matrix; passing this gate does not certify that path. The gate preserves source-specific Processing counters and isolates OceanBase source databases. Any failed, skipped or missing automatic case rejects publication. The policy remains upgrade-required until the exact target artifact passes the required automatic matrix and the reviewed support declaration is updated. Captured source structure, local tests and checkpoint replay are distinct from installed-release acceptance, native interruption/observer recovery and backup restoration. The Candidate generation prototype observes actual SQLite/seekDB/OceanBase migration checkpoints outside the production bundle; it does not replace frozen registrations or weaken recovery checks. Existing target schema and data formats, including batched persistence interfaces, remain governed by the shared registered path. The synchronized master adds blank-text validation at Source creation and managed worker logging. It changes neither registered table layout nor migration data encodings; existing stored Source values are not rewritten. The source bridges and frozen history remain unchanged. Compatibility commands identify Server-owned storage before opening a writable legacy profile and delegate source admission to the shared framework, including actual 1.4.0 and rejection of unknown layouts. Partial Processing and Atomic Memory projection maintenance verify the original recorded revision checksums; native admission also validates typed journal identity and its completed position against the database revision. Persisted vector profiles reject unsupported partial maintenance before plans, backups or operation evidence, including when the supplied configuration omits embeddings. These are admission-only changes; frozen migration resources, registered layouts, historical checksums and data transformations remain unchanged. PowerContext 1.4.1 assigns release-based presentation names v1_4_1_001 through v1_4_1_003 to the existing shared upgrade steps; the 1.3.0 and 1.4.0 source baselines remain independently registered. Existing revision IDs, bundle and revision checksums, accepted plan identities and journal schemas are unchanged. Unpublished Server schema changes accumulate in a shared 000 revision and its registered resources. Release preparation freezes this draft as v__ after declaring the target version. Development databases are disposable; only supported released-version upgrades are promised. Revision descriptors parse this format while preserving historical release sequences, legacy aliases and opaque custom IDs. The sequence field is null for frozen release names and 000; the draft has no software_version. Historical sequence and PR-based names remain readable. Dependency order still follows down_revision. This naming support changes no registered schema, frozen resource, persisted revision, plan identity or checksum. Software releases without storage changes may reuse the same database revision. Naming does not grant acceptance or replace source registration. Full Server status, plan, apply and verify reject unfinished Processing configuration and Atomic Memory projection journals through the same typed admission check used by partial maintenance and SQLite startup. The owning domain runner can still resume its own journal. This only changes admission; frozen revisions, journal formats, database layouts and data transformations remain unchanged. Revision v1_4_1_004 registers the pc_access_owner_recovery outbox on the shared Server chain for both installed-release sources and all registered vector/Code profiles. It creates an empty table through explicit maintenance for existing managed databases and through the registered bootstrap for fresh databases. Earlier revision resources, fingerprints, checksums and existing domain row encodings remain unchanged. External relationship writers use version-1 Artifact and Candidate intents committed with domain data; replay retains the original deployment, principal, resource or target, and idempotency identity. Stable operation and audit event identities prevent lost acknowledgements from duplicating ownership or audit. Conflicting intents are rejected and unknown historical ownership is not inferred. Unregistered outbox layouts are not adopted merely from a table name. This registration does not establish installed-release or external-Provider upgrade acceptance. The policy remains upgrade-required with the full automatic matrix and publication restrictions described above. Database selection now defaults to powercontext for seekDB and for OceanBase URLs without a database, while explicit database names remain authoritative. An implicit seekDB selection is rejected before initialization when the legacy test database contains pc_ tables; operators can explicitly select database=test to retain those records, and no database is moved or deleted automatically. Bootstrap reuses an accessible selected database without CREATE privilege and creates only a confirmed missing database, with idempotent creation and explicit permission errors. Read-only maintenance on an initialized MySQL-compatible engine requires the selected database and never provisions it; an absent or empty seekDB instance remains a no-engine initial plan. MySQL initialization creates only missing requested tables and indexes, and sorts only those requested tables; existing registered tables are preserved. Code graph connections use the selected database, retain historical graph identities for test, and distinguish other database identities. Server identity initialization avoids redundant MySQL DDL on an existing table. Frozen migration resources, revision identifiers and checksums, registered table definitions, journal formats, and existing row encodings are unchanged. These runtime selection and admission changes do not establish an accepted upgrade path; the policy remains upgrade-required and the installed-release acceptance gate still applies. MySQL recovery rejects different registered table sets before normalization. Backend-default normalization copies only the column and index maps it changes and compares each table without cloning whole inventories. Admitted layouts, registered transitions, recovery checks, schema equality and caller-owned inventories remain preserved. SeekDB status and verify distinguish a missing configured database from an uninitialized engine and denied access. Read-only plan can represent a missing selected database as an uninitialized target without creating it; apply provisions that selected database only after the operator accepts its bound plan, then rechecks the target under the maintenance lock. Installed-release seekDB acceptance explicitly retains the historical test database and separately verifies that omitted selection is refused. Registered schema resources, revision checksums, row encodings and write-side provisioning remain unchanged. Server startup can apply an uninitialized plan to provision a missing selected seekDB database; plan, status and verify still never provision it. OceanBase 4.6 SHOW CREATE TABLE can reflect FTS_INDEX_TYPE=MATCH or PHRASE_MATCH on FULLTEXT indexes. Reflection accepts these known types without changing the logical inventory; unknown values remain rejected and indexed columns, parser identity and token-size properties remain significant. PHRASE_MATCH additionally supports phrase matching; the registered layouts require term matching and do not declare a phrase-only contract. Frozen migration resources, checksums, recovery evidence and persisted layouts remain unchanged. Native 4.6.3.1 DDL was captured from a real installed 1.3.0 database; replay of this fixture does not establish complete native upgrade acceptance. The CI database image and master full automatic upgrade matrix remain unchanged. Revision v1_4_1_005 adds nullable Atomic Memory description projection metadata after the registered owner-recovery revision, through explicit SQLite and MySQL schema transitions for both source chains and all vector/Code profiles. Earlier revision resources, fingerprints and checksums remain unchanged. The additive change neither rewrites authoritative Artifact history nor generates summaries or scans stored bodies. Existing managed databases require explicit migration; existing descriptions remain null until a new write or explicit projection repair copies authoritative metadata. Intermediate projection validation uses only columns available at that revision and still rejects inconsistent existing fields. Unmanaged SDK initialization retains its nullable-column compatibility path. The installed-release acceptance matrix and publication restrictions remain required; local regression checks do not establish native upgrade acceptance. Artifact plugin storage extends the shared Server chain from v1_4_1_006 to v1_5_0_001 with registration columns, family declarations, search state and projections, index coverage and changes, and vector-space/index registrations. SQLite also registers portable vectors and FTS auxiliary structures. Native registration columns are added in one ALTER with a matching recovery checkpoint; final column definitions and constraints are unchanged. Native vector tables are created online from registered spaces and are admitted to later maintenance inventories only after exact layout validation. Historical migration resources, retained objects, and existing data are preserved. This review does not expand the supported upgrade matrix or certify installed-release acceptance. Source write plugin registrations use the additive v1_4_1_006 revision after v1_4_1_005 on both source chains. It creates only pc_source_write_plugins; all earlier master revision scripts, schema resources and checksums remain unchanged. Revision v1_5_0_002 follows v1_5_0_001 and adds retained Source evidence bindings, exact Atomic Memory evidence snapshots and their schema marker on all registered backends. A new versioned domain step verifies retained evidence for lexical and vector profiles; earlier released domain resources and recorded revision checksums remain byte-identical. Existing Sources and Memory revisions without accepted declarations stay neutral, with no trust backfill. Current projection maintenance and rebuild explicitly require evidence validation. This additive registration does not establish installed-release acceptance; the upgrade-required gate and publication restrictions are unchanged. Revision v1_5_0_003 adds the disposable exact-revision pc_atomic_memory_evidence projection through the existing index adapters. Transactional body writes publish it from accepted evidence; scoped portable restore and maintenance rebuild derive it from retained history without current-registry trust backfill or model calls. Domain conformance compares historical and derived values, including neutral legacy declarations, on lexical and vector layouts. Earlier revision resources and fingerprints remain unchanged. Local SQLite recovery and real OceanBase 4.4.2.1 evidence conformance were exercised; these do not certify installed-release upgrades or change publication restrictions. Source evidence maintenance now accepts the deployment's own Source definition registry, reports one bounded neutralization reason through operational logs, batches exact-revision reads and caches retained-schema validation per manifest fingerprint. Indexed repair accepts that registry explicitly; the migration bundle still admits evidence against the builtin registry and says so. These changes alter neither registered table layouts nor retained encodings, and the runtime and Server evidence DDL remain byte-identical. The policy remains upgrade-required with the full automatic matrix and publication restrictions described above. Source definition manifests derive every field whose default is null from the validation schema, so an already accepted Definition keeps its fingerprint and re-registers after upgrade; populating such a field requires the nested model to serialize by alias. Registered layouts and retained encodings are unchanged. The runtime MySQL-family table fast path now runs the registered additive evidence migration before creating other tables, so an unmanaged OceanBase or seekDB database cannot retain evidence tables without their p0005 marker.. Code publication recovery adds an optional per-binding publication.json journal that records a generation identifier before its database commit and final directory rename. Caches created before this journal existed remain readable without synthesizing historical publication records; identifiers for already orphaned rows are not inferred. New seekDB generations retain the existing identifier, graph descriptor, manifest and row encodings, while reclamation validates the recorded identifier and scopes deletion to its binding. Live or reader-retained generation directories and the in-flight publication are protected from journal-window reclamation. SQLite graph rows remain owned by their generation directory. This additive local cache journal changes recovery behavior but does not change registered SQL table layouts, migration resources, revision identifiers, historical checksums or the Server migration journal. The policy remains upgrade-required, and the complete installed-release acceptance matrix remains mandatory; this compatibility review is not evidence of completed native upgrade acceptance. Managed Ops admission validates a private main-file and WAL snapshot through the exact target Server bundle, retaining the original database identity and maintenance evidence. Snapshot admission is read-only and cannot initialize, migrate or recover storage. It adds no schema revision, changes no persisted row or journal format, and does not expand supported upgrade declarations or the installed-release acceptance matrix. PreparedContext Receipt records the actual FTS mode on Experience search outcomes. This adds only an in-memory observation field; it does not change stored Experience rows, SQL selection, schema registrations, migration resources, or data encodings. Unmanaged historical Server databases are admitted by required structure and domain state, then normalized before adopting an existing checkpoint. Historical Memory conversion, Scope preservation, SQLite rollback and native DDL recovery use the shared maintenance flow. Independent extension objects and harmless DDL differences do not require clean-install fingerprints. Existing immutable revision resources and the installed-release acceptance matrix remain unchanged. Local historical tests do not certify arbitrary tenant defaults, every vector/Code configuration or future releases. SQLite compatibility validation includes effective primary-key collations and rejects conflicting identity semantics. Historical normalization and the frozen s1400 rebuild preserve generated extension definitions while copying only writable columns. Both virtual and stored generated values remain computed by SQLite; immutable revision resources and the native backend paths are unchanged. SQLite table rebuilds preserve declared collations on ordinary and generated extension columns, including their inherited index comparison semantics. Expression-local COLLATE clauses remain part of their expressions and do not change the column collation. This changes only SQLite compatibility normalization; frozen revisions and native backend execution remain unchanged. Historical Memory admission recognizes lineage ownership columns and default non-merge references while rejecting unmapped payloads. Native compatibility journals record temporary Processing counter ownership before DDL and clear it after cleanup, including completed-phase recovery. SQLite extension preservation also covers the registered r1400 bridge. Frozen migration resources and the installed-release acceptance matrix remain unchanged. Native historical Atomic conversion creates nullable description metadata with the registered UTF-8 binary collation, allowing the later frozen ADD transition to recognize its completed postcondition without duplicate DDL. SQLite historical normalization and registered source bridges preserve dependent views and their triggers during same-name table replacement. Legacy rename behavior is limited to the exact staging-to-final rename statements and the original connection setting is restored; genuine table renames still update dependent references. Frozen migration resources and native backend behavior remain unchanged. SQLite admission validates required extension defaults using SQLite deterministic-expression restrictions and a non-NULL evaluation on an isolated connection. Connection-state, random and clock-dependent expressions are rejected; direct CURRENT_DATE, CURRENT_TIME and CURRENT_TIMESTAMP defaults remain supported alongside usable constant expressions. Regression coverage verifies consecutive Source writes in distinct scopes within the same transaction. Read-only verification and startup admission share this rule; supported defaults remain usable through Source write and readback. Independent extension tables remain preserved through managed upgrades and initialization recovery; missing recovery evidence and missing vector configuration still block maintenance. Registered native column additions and modifications materialize the charset and collation declared by their immutable postcondition when the SQL would otherwise inherit a historical table default. This preserves GBK-origin upgrade recovery without changing frozen resources, existing table defaults, independent extension encodings or readiness requirements. SQLite Candidate extension columns and their values survive both stages of the registered Dream rebuild, including generated columns and dependent views. Frozen source introspection projects the already-validated managed columns without altering stored extension data. Independent indexes use SQLite-rewritten definitions after genuine table renames. Native CHECK removal resolves the actual constraint name from the registered expression and enforcement semantics, including recovery after committed DDL. Frozen resources, registered revision checksums and the installed-release acceptance matrix remain unchanged. SQLite admission rejects additional NOT NULL generated columns because computed values can reject valid Source writes. Nullable virtual and stored extensions remain preserved across historical upgrades and support Source write/readback. Frozen migrations and native backend behavior are unchanged. Ownership recovery preflight derives candidate-family filters from the exact migration identities, including Prompt Candidates that do not have standalone Artifact owners. Static Scope permission previews now use the same complete internal receipt keys as bootstrap for long Scope IDs. These authorization-only changes add no stored fields, row encoding, schema, or migration registration. Static Scope preset keys retain existing short identities and use SHA-256 for oversized relationship keys. Bootstrap and read-only preview recognize both bounded keys and historical receipts, including revoked bindings. No schema or migration registration changes. Managed observability reads existing Context Bootstrap receipt metadata in authorized Scope batches and aggregates it by integration and receipt state. This adds no schema revision, stored row changes, migration resources, or data encoding changes; receipt identities, historical evidence and the declared upgrade acceptance matrix remain unchanged. SQLite connection failures drain the aiosqlite 0.22.1 worker before propagating the error or cancellation, including failures before pool admission. This connection-lifecycle fix changes no registered schema, historical revision checksum, stored value, or upgrade source policy. Prepared-context reuse proofs revalidate cited code files by reading their current worktree digest through the existing no-follow capture reader and exclusion rules. This adds a read-only lookup; it changes no code index cache layout, manifest, graph rows, publication journal, SQL layout, migration resource or checksum. Revision v1_5_0_004 adds the optional pc_artifact_source_locators relation keyed by the existing Artifact Revision and Source-edge ordinal for both registered source releases and vector/Code profiles. Explicit maintenance creates the empty relation without rewriting historical lineage, payloads, Source identities, earlier revision resources or checksums. Missing locators remain omitted in legacy encodings; located citations survive persistence, HTTP/MCP and portable export/restore, and Source sequence mismatches are rejected without redirecting identity. Atomic Memory content and vector bindings are unchanged, so locator metadata does not require re-embedding. Local SQLite migration, restart, citation and portable round-trip tests pass; MySQL layout checks do not constitute native seekDB/OceanBase or installed-release acceptance. The upgrade-required policy, required automatic matrix and publication restrictions remain unchanged. Projection verification and repair read only the exact authoritative head content and state, avoiding target-only Source locator lineage tables at earlier registered migration checkpoints. Frozen resources and revision checksums remain unchanged. Source locator line-count and heading-path limits are centralized without changing their values, accepted payloads or stored encodings. Gateway authorization adds the Scope-level gateway.user role and gateway.invoke action to the existing binding vocabulary. It does not change stored binding structure or migration resources: existing records retain their role and do not implicitly gain gateway.invoke; new grants use the existing binding persistence and resource validation. Existing upgrade support remains upgrade-required and is not certified by this digest refresh. OceanBase Atomic Memory lexical retrieval uses native MATCH with minimum_should_match and SCORE when a controlled capability probe confirms support, and retains the existing MATCH AGAINST plus complete-word coverage path for unsupported backends. Capability decisions are held only in memory per connection pool. Search, complete related enumeration and recovery preserve Analyzer term deduplication, coverage thresholds, scope and content filters, vector completeness checks, same-statement authority heads and the existing oceanbase_match raw-score contract. This query-only change adds no tables, public interfaces, schema revisions, stored fields or row encodings; existing SPACE index definitions, projection formats, historical migration resources and revision checksums remain unchanged. No schema migration or projection rebuild is required for this query implementation. The upgrade-required policy, registered sources and complete installed-release acceptance matrix remain unchanged; this review does not certify installed-release upgrades. Queries above 256 distinct terms retain whole-word coverage unless the engine is identified as OceanBase 4.6 or newer, because earlier native engines can accept MATCH while ignoring that threshold. This compatibility guard changes query selection only. Native capability caching obtains the pool through run_sync, including pinned historical migration connections, without acquiring another connection or releasing maintenance locks. Queries containing SPACE stopwords retain Analyzer-based whole-word admission in all lexical operations. These corrections change neither stored projections nor registered schema resources. SQLite Topic Memory full-text helper version 2 assigns each Scope's helper rows to a hashed 2^32-rowid range above every rowid that version 1 assigned, so Topic replacement and search bound their FTS5 cursors to one Scope's range. Virtual table definitions, registered schema fingerprints, migration resources and authoritative active Topic rows are unchanged. Unmanaged initialization and the existing s1400 domain step rebuild version-1 helper rows from the active tables with exact identities and revisions; a managed database that still holds version-1 helper rows keeps the previous identity filters until the helper is rebuilt. bm25 statistics remain table-wide, so search hits, ordering and scores are unchanged. The standalone seekdb maintenance identity is derived from @@server_uuid and DATABASE() when ob_compatibility_mode is missing, NULL, or empty and VERSION() contains -OceanBase seekdb-. The db-migrate identity probe and the server-run tenant gate share one compatibility classifier; ORACLE and non-seekdb servers remain rejected. This is an admission-only change and does not alter registered table layouts, migration resources, persisted row encodings, or public interfaces. Source writes and text retrieval reuse parameterized SQL structures with fresh Scope, identity, revision, binding and increment values on every execution. Only the fixed built-in Content manifest construction and exact validated payload bytes reuse cached metadata; database registration and indexed-identity checks remain current, and callers receive deep copies. MySQL/OceanBase journal allocation retains SELECT FOR UPDATE; SQLite retains its write reservation. Concurrent Content captures coalesce already queued requests into bounded transactions, isolate individual failures after batch rollback, replay stable identities on cancellation and drain admitted callers during shutdown. No schema, migration, stored encoding, Source identity, journal ordering, processing counter semantics or upgrade support claims change. A Topic Memory window attempt whose publication loses the Topic head CAS to a concurrent replace or Dream records last_error_code head_conflict on its existing pc_topic_memory_work_budgets row, and the attempt ceiling and the next attempt's counter treat that one attempt as not spent. Provider request and token charges stay committed and are never refunded. No table layout, column, constraint, migration resource, revision checksum or row encoding changes; existing rows never carry head_conflict, so their counters and blocks keep their meaning. A binary without this change counts such an attempt as spent, which can only stop that frontier sooner. The Dashboard processing page reads the existing Source journal and Artifact lineage relation and marks only Sources with an exact Artifact citation. It introduces no new table or public JSON interface and does not reconstruct execution history, delivery or adoption. Source journal envelopes record an optional UTC saved_at timestamp for newly inserted records. This adds write metadata inside the existing powercontext-source-v1 payload, without changing registered tables, schema revisions, frozen migration resources or checksums. Historical envelopes and raw legacy payloads remain readable with unknown save time; replay does not invent a timestamp, and handoff receipt upgrades preserve the original timestamp. Source identity, material digests, journal positions and processing intent identities remain unchanged. This compatibility review does not establish installed-release upgrade acceptance; the upgrade-required policy and complete automatic matrix remain unchanged. Relocating access control from the Server package to the built-in runtime, removing the unused Source-cursor discovery query, and moving the code command out of the built-in Code package are code-organization changes. They change neither registered table layout nor migration data encodings: the generated table and index DDL for every persistence and access table is identical on the SQLite and MySQL dialects. Native MySQL schema recognition now requires the absence of core tables and columns removed by registered transitions before accepting a recovery prefix or completed revision. Independent extension tables and columns remain supported. This executes the existing v1_5_0_005 cleanup without changing frozen resources, revision checksums, stored encodings or the required installed-release acceptance matrix. Request-serving plugin hosts reconstruct authorization without requiring a background service identity; scheduled workers retain the explicit identity requirement. This changes only process-local authorization configuration, with no schema, migration, persisted encoding or upgrade support changes. OceanBase vector SQL parameters and literals serialize finite float32 arrays with orjson while retaining pyobvector dimension validation, reference readback and special-value handling. Vector column types and stored float32 values are unchanged. Source evidence bindings are inserted as a batch in the accepting Source transaction with the same exact identities and immutable declarations. Current Atomic Memory verification reads projection pages and vector presence while preserving authoritative content, state, tag, profile, evidence and vector-dimension checks under the existing snapshot contract. These changes introduce no schema revisions, registered migration resource changes, historical rewrites or new installed-release upgrade claims. The OceanBase and seekdb profiles gain a helper that builds engines for another database of the same tenant or instance with the deployment's connection settings; plugin hosts and Workers use it to open each plugin's own database. It reads and writes no core table and changes no schema, migration, persisted encoding or upgrade support. Migration refusal diagnostics now state that retained legacy plugin records have no supported in-place upgrade path; unloading or exporting does not clear them. This wording correction changes no schema, rejection criteria or data transformation. Native managed-schema compatibility compares required columns, indexes and normalized CHECK definitions without deep-copying unrelated extension tables. Validation remains read-only and preserves required-schema admission, caller-owned metadata and all registered schema, data and migration formats. The recurrence ledger exposes read-only queries over existing pc_recurrence_observation rows: observations_for_target returns one bucket, and event_counts_for_target aggregates its three event counts in SQL. Both filter by the indexed revision columns and by the signature hash plus its plaintext. They add no table, column, index, migration, stored encoding or write path, and existing ledger rows, upgrade acceptance cases and policy mode are unchanged. Complete Atomic Memory related enumeration admits a memory when the distinct candidate terms it contains meet the lexical threshold of the candidate's distinct terms, or number at least the minimum match count and cover the coverage fraction of the memory's own indexed words, so a long candidate reaches a short memory of the same fact; window siblings use the same rule. The per-row requirement is computed from the existing searchable text in SQL on SQLite, seekDB and OceanBase, and the native OceanBase path adds one MATCH block that applies whole-word coverage only to memories short enough to qualify below the candidate threshold. This threshold change leaves search, recovery probes, stored projections, registered schema resources and migrations unchanged. Plugin reloading can unregister, in the Server process, the Artifact access profile a plugin family registered when that plugin is removed or renames its family; built-in family profiles are never removed, and no table layout, migration resource, frozen checksum or persisted encoding changes. Atomic Memory evidence capture batches committed revisions in the existing transaction while preserving immutable first-writer histories, per-revision Source ownership and projection encoding. Historical Source reads join material and immutable bindings and batch retained manifests by exact definition version; a damaged ancillary manifest neutralizes only its own identity. Complete related vector recall validates all eligible projections and computes distances in one statement, rejecting invalid projections even outside the distance threshold. SQLite FTS query selection and impossible FTS recovery-probe short-circuiting change read execution only. No table, migration resource, stored encoding, journal order or installed-release upgrade support claim changes. Related hybrid ranks observe lexical results and complete vector validation in one SQL statement; page bodies and current authority remain separately admitted. Each backend prepares and decodes its rank query at one boundary; hybrid ranks retain RRF fusion when no lexical query can be formed. Single and batched active projection publication share current-tag loading under the caller transaction. Historical manifests use the same tolerant batch decoder for one or many identities. These read-execution changes preserve table layouts, stored formats, migrations and upgrade claims. Related hybrid ranks preserve the per-row lexical coverage rule of current related recall, including native full-text query blocks. No migration revision or persisted encoding changes. Revision v1_6_0 creates the private prepare diagnostic store with nullable Unicode query text included in the initial table definition. Earlier published resources and existing domain data remain unchanged. The public prepare response, public body-free Receipts, reuse and operational telemetry remain unchanged; diagnostics retain same-execution query and candidate/final text outside Source and Bootstrap storage, and capture adds no expiry or cleanup action. Schema transitions are additive and do not establish native installed-release acceptance. SQLite model-usage accounting classifies expiry during native-connection setup as an unapplied attempt, allowing the recorder to retry within its existing total write budget. No usage statement has executed at that boundary; indeterminate-commit handling and production deadlines remain unchanged. This changes no registered schema, migration resource, revision checksum, persisted row encoding, journal format, or declared upgrade support. Atomic Memory legacy recovery reads express lexical and semantic channel predicates in separate EXISTS query blocks within one scalar SQL statement. Scope and metadata eligibility, per-channel admission thresholds, invalid-vector precedence, bound-vector types and the consistent statement boundary are preserved. This changes read-query planning only: registered table layouts, projection formats, stored row encodings, migration resources, revision checksums and journal formats are unchanged. No migration or projection rebuild is required. The upgrade-required policy, registered source versions and full installed-release acceptance matrix remain unchanged; this review does not certify installed-release upgrades. OceanBase Experience, Atomic Memory and Topic Memory FULLTEXT initialization share the existing Topic Memory policy for transient native error 1205 during index creation. Each recovery attempt rechecks index existence before repeating only the derived-index DDL; subsequent projection refresh and capability validation still execute. Persistent conflicts and other errors remain failures, cancellation propagates, and the helper does not explicitly commit or roll back the caller or replay business writes. Native DDL transaction semantics are unchanged. Index definitions, registered table layouts, projection versions, stored row encodings, frozen migration resources, revision checksums and journal formats are unchanged. No migration or data conversion is required. Vector index initialization, the upgrade-required policy, registered source versions and all installed-release acceptance profiles are unchanged; this compatibility review does not certify installed-release upgrades. SQLite profile-owned cursors close a failed native statement on the existing database worker before propagating the original SQL error. This prevents cyclic exception collection from blocking the event loop while the same connection's worker waits for another writer. Cancellation retains the existing interrupt and transaction-cleanup path; this change adds no statement replay, retry, commit, rollback or lock-wait extension. Registered table layouts, stored row encodings, projection formats, migration resources, revision checksums and journal formats are unchanged. No migration or data conversion is required. The upgrade-required policy, source registrations and full installed-release acceptance matrix remain unchanged; this compatibility review does not certify installed-release upgrades. Release 1.6.0 freezes the cumulative 000 prepare-diagnostics migration as v1_6_0 after v1_5_0_006. Owned resource names, registrations and the persistence digest are synchronized; published revision identities and checksums remain unchanged. No historical query text is backfilled. This freeze preserves the upgrade-required policy and all twelve selected installed-release acceptance profiles; it does not itself certify upgrades. The Source collection revision introduced by PR #2639 after the 1.5.2 release is named v1_5_0_006 before publication. All 47 migration scripts and schema resources shipped in 1.5.2 remain byte-identical. The baseline validator is unchanged and rejects this rename against a base containing the former identity; this known CI failure is retained. Development databases and recovery plans using the former identity must be rebuilt; no runtime alias or installed-release upgrade certification is introduced. The Dashboard Topic Memory processing-status projection reads existing Scope-bound Source cursors, journal heads, targets, work budgets and retained block diagnostics without writing or repairing records or starting processing. It changes no table layout, persisted encoding, migration resource, frozen revision checksum or historical record. The upgrade-required policy and installed-release acceptance matrix remain unchanged; this review does not establish installed-release upgrade acceptance. Revision v1_6_1 adds the disposable pc_atomic_memory_alias projection on both registered source chains and backend profiles. The relation binds each merged identity to its exact selected historical revision, immediate merge target and state version, with historical text and profile-bound vector metadata. Managed databases require explicit schema maintenance; ordinary startup remains read-only, and the schema revision creates an empty alias table without backfilling existing merges. Explicit projection repair reconstructs active rows and merged aliases from authority, retains compatible stored historical vectors, prepares missing or incompatible vectors outside write transactions and rechecks authority and embedding configuration before publication. Empty projections and profile changes may regenerate vectors; nondeterministic embeddings cannot reproduce deleted original vector bytes from authority alone. Historical conversion publishes only the tables registered at its checkpoint, so aliases are not accessed before their revision. Frozen historical revision resources, required table sets and checksums remain unchanged. The current projection remains active-only; authoritative Artifact content, lifecycle encodings, identities, evidence and processing progress retain their existing semantics. Alias recall is reconciliation-only and uses the existing Scope, endpoint filtering, authorization, snapshot and version checks. Local SQLite and generated native SQL tests do not establish real seekDB/OceanBase or installed-release acceptance. The upgrade-required policy, required automatic acceptance matrix and publication restrictions remain unchanged. Pristine unmanaged SQLite Atomic maintenance output that includes the alias projection is registered as a separate exact continuation layout. Initialization requires the complete registered schema, including the alias table definition and empty alias rows, before creating Topic recovery objects. Unknown partial layouts, modified alias objects and persisted alias evidence remain rejected before writes. The previously frozen Topic recovery resource and historical migration resources are unchanged, as are authoritative records, task DDL and installed-release acceptance requirements. Topic recovery maintenance checksums bind the relative paths and exact contents of schema.json and atomic_maintenance_sqlite_v2.json, excluding README.md. Reviewed plans detect changes to these resources. Journals using the released schema-only checksum remain resumable only with the exact frozen schema. Recovery preserves original journal and backup checksum identities and continues to validate configuration and backups. Changed frozen schemas and incompatible journals remain rejected before writes. Local SQLite recovery tests do not establish installed-release or native backend acceptance. Atomic Memory alias recall discovers successor identities and versions before loading and authorizing bodies in pages. This changes read scheduling without changing stored layouts, persisted encodings or registered migration resources. Alias lexical recall applies the same per-memory coverage threshold as direct recall to the indexed historical text. No stored layout or migration changes. PR #2728 adds a read-only `metadata` response projection to Content Sources; it changes no table, payload encoding, migration or stored format, so the recorded migration chain and persistence compatibility are unchanged. A manual Topic Memory replace links only the previous exact revision in Artifact lineage instead of copying the current revision's inherited references; existing lineage rows are left as stored, and no table, migration resource, stored encoding or upgrade support claim changes. Built-in Experience FTS search now passes its projection-level lexical admission decision to the decoder after verifying SQLite FTS-to-head projection equality and exact single-term coverage on OceanBase, and RecurrenceRepository adds the read-only verdicts_for_target query over existing pc_recurrence_observation rows using the existing revision index, signature hash and plaintext filters plus event != 'selected'; these read-only query changes alter no table layout, column, index, migration resource, frozen checksum, stored encoding or upgrade support declaration. PR #2745 adds deployment limit constants to `powercontext.limits` and a read-only discovery endpoint; it changes no table, payload encoding, migration or stored format, so the recorded migration chain and persistence compatibility are unchanged. Server startup adds best-effort, read-only guidance for widening an existing SQLite Processing capability declaration without changing its mode or bindings; incompatible configurations remain refused until the explicit offline Processing switch completes. Content Source writes enforce the configured character limit, with a 200,000-character default and a 1,000,000-character setting ceiling within the existing payload storage capacity. Neither change alters table layouts, migration resources, frozen checksums, stored encodings or the installed-release acceptance requirements. Release 1.6.1 freezes the historical-alias projection as v1_6_1 after v1_6_0 without changing its SQL or earlier frozen resources. All selected installed-release acceptance profiles remain required." }, "cases": [], "automatic_sources": { diff --git a/src/powercontext/builtin/persistence/migrations/server_resources/manifest.json b/src/powercontext/builtin/persistence/migrations/server_resources/manifest.json index f2a3814f48..65a7ac1c1b 100644 --- a/src/powercontext/builtin/persistence/migrations/server_resources/manifest.json +++ b/src/powercontext/builtin/persistence/migrations/server_resources/manifest.json @@ -61,9 +61,9 @@ "schemas/sqlite-v1_6_0.json", "schemas/mysql-v1_6_0.json" ], - "000": [ - "schemas/sqlite-000.json", - "schemas/mysql-000.json" + "v1_6_1": [ + "schemas/sqlite-v1_6_1.json", + "schemas/mysql-v1_6_1.json" ] }, "sqlite_baselines": { @@ -112,7 +112,7 @@ "v1_6_0": [ "ecebbef5e9c33c1445a3686a1e6753b7e513c13db70ab8fe79483eceba1930c7" ], - "000": [ + "v1_6_1": [ "7a748a60138e2c22057ed757927573a77790efa55956119138f07fed7e79b9ad" ] }, @@ -427,7 +427,7 @@ "portable_storage", "atomic_memory_evidence_projection" ], - "000": [ + "v1_6_1": [ "source_collection", "portable_storage", "atomic_memory_evidence_projection" @@ -456,7 +456,7 @@ "schemas/mysql-v1_5_0_005.json", "schemas/mysql-v1_6_0.json", "schemas/mysql-v1_5_0_006.json", - "schemas/mysql-000.json" + "schemas/mysql-v1_6_1.json" ], "mysql_history": "mysql", "mysql_schema_extensions": { diff --git a/src/powercontext/builtin/persistence/migrations/server_resources/mysql/versions/000.py b/src/powercontext/builtin/persistence/migrations/server_resources/mysql/versions/v1_6_1.py similarity index 97% rename from src/powercontext/builtin/persistence/migrations/server_resources/mysql/versions/000.py rename to src/powercontext/builtin/persistence/migrations/server_resources/mysql/versions/v1_6_1.py index de0d3fd7fd..8b6ed4d7d5 100644 --- a/src/powercontext/builtin/persistence/migrations/server_resources/mysql/versions/000.py +++ b/src/powercontext/builtin/persistence/migrations/server_resources/mysql/versions/v1_6_1.py @@ -16,7 +16,7 @@ from alembic import context -revision = "000" +revision = 'v1_6_1' down_revision = "v1_6_0" diff --git a/src/powercontext/builtin/persistence/migrations/server_resources/schemas/mysql-000.json b/src/powercontext/builtin/persistence/migrations/server_resources/schemas/mysql-v1_6_1.json similarity index 99% rename from src/powercontext/builtin/persistence/migrations/server_resources/schemas/mysql-000.json rename to src/powercontext/builtin/persistence/migrations/server_resources/schemas/mysql-v1_6_1.json index b9f57da19a..9d17a12a64 100644 --- a/src/powercontext/builtin/persistence/migrations/server_resources/schemas/mysql-000.json +++ b/src/powercontext/builtin/persistence/migrations/server_resources/schemas/mysql-v1_6_1.json @@ -1,7 +1,7 @@ { "format": "powercontext.mysql-state-layouts.v1", "revisions": { - "000": { + "v1_6_1": { "statements": [ "CREATE TABLE pc_atomic_memory_alias (\n\tscope_id VARCHAR(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, \n\talias_artifact_id VARCHAR(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, \n\ttarget_artifact_id VARCHAR(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, \n\talias_revision BIGINT NOT NULL, \n\tmerged_state_version BIGINT NOT NULL, \n\tprojection_format VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, \n\tkind MEDIUMTEXT NOT NULL, \n\ttext MEDIUMTEXT NOT NULL, \n\tsearchable_text MEDIUMTEXT NOT NULL, \n\tembedding BLOB, \n\tprofile_fingerprint VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin, \n\tembedding_input_hash VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin, \n\tPRIMARY KEY (scope_id, alias_artifact_id), \n\tCONSTRAINT ck_pc_atomic_memory_alias_revision CHECK (alias_revision > 0), \n\tCONSTRAINT ck_pc_atomic_memory_alias_state_version CHECK (merged_state_version >= 0), \n\tCONSTRAINT ck_pc_atomic_memory_alias_embedding_metadata CHECK ((embedding IS NULL AND profile_fingerprint IS NULL AND embedding_input_hash IS NULL) OR (embedding IS NOT NULL AND profile_fingerprint IS NOT NULL AND embedding_input_hash IS NOT NULL))\n)" ], diff --git a/src/powercontext/builtin/persistence/migrations/server_resources/schemas/sqlite-000.json b/src/powercontext/builtin/persistence/migrations/server_resources/schemas/sqlite-v1_6_1.json similarity index 100% rename from src/powercontext/builtin/persistence/migrations/server_resources/schemas/sqlite-000.json rename to src/powercontext/builtin/persistence/migrations/server_resources/schemas/sqlite-v1_6_1.json diff --git a/src/powercontext/builtin/persistence/migrations/server_resources/versions/000.py b/src/powercontext/builtin/persistence/migrations/server_resources/versions/v1_6_1.py similarity index 90% rename from src/powercontext/builtin/persistence/migrations/server_resources/versions/000.py rename to src/powercontext/builtin/persistence/migrations/server_resources/versions/v1_6_1.py index 648a1fb034..bdd6dfde9b 100644 --- a/src/powercontext/builtin/persistence/migrations/server_resources/versions/000.py +++ b/src/powercontext/builtin/persistence/migrations/server_resources/versions/v1_6_1.py @@ -19,11 +19,11 @@ from alembic import op -revision = "000" +revision = 'v1_6_1' down_revision = "v1_6_0" def upgrade(): - resource = Path(__file__).parents[1] / "schemas/sqlite-000.json" + resource = Path(__file__).parents[1] / 'schemas/sqlite-v1_6_1.json' for statement in json.loads(resource.read_text(encoding="utf-8"))["statements"]: op.get_bind().exec_driver_sql(statement) diff --git a/src/powercontext/builtin/persistence/migrations/server_sources/1.4.0/manifest.json b/src/powercontext/builtin/persistence/migrations/server_sources/1.4.0/manifest.json index e8b7d6ee8e..052b0bb684 100644 --- a/src/powercontext/builtin/persistence/migrations/server_sources/1.4.0/manifest.json +++ b/src/powercontext/builtin/persistence/migrations/server_sources/1.4.0/manifest.json @@ -60,9 +60,9 @@ "schemas/sqlite-v1_6_0.json", "schemas/mysql-v1_6_0.json" ], - "000": [ - "schemas/sqlite-000.json", - "schemas/mysql-000.json" + "v1_6_1": [ + "schemas/sqlite-v1_6_1.json", + "schemas/mysql-v1_6_1.json" ] }, "sqlite_baselines": { @@ -111,7 +111,7 @@ "v1_6_0": [ "ecebbef5e9c33c1445a3686a1e6753b7e513c13db70ab8fe79483eceba1930c7" ], - "000": [ + "v1_6_1": [ "7a748a60138e2c22057ed757927573a77790efa55956119138f07fed7e79b9ad" ] }, @@ -431,7 +431,7 @@ "portable_storage", "atomic_memory_evidence_projection" ], - "000": [ + "v1_6_1": [ "source_collection", "portable_storage", "atomic_memory_evidence_projection" @@ -460,7 +460,7 @@ "schemas/mysql-v1_5_0_005.json", "schemas/mysql-v1_6_0.json", "schemas/mysql-v1_5_0_006.json", - "schemas/mysql-000.json" + "schemas/mysql-v1_6_1.json" ], "mysql_history": "mysql", "mysql_schema_extensions": { diff --git a/src/powercontext/http/_generated/operations.py b/src/powercontext/http/_generated/operations.py index dda0ec68a9..be9beabaf1 100644 --- a/src/powercontext/http/_generated/operations.py +++ b/src/powercontext/http/_generated/operations.py @@ -246,7 +246,7 @@ OPENAPI_VERSION = "3.0.3" API_TITLE = "PowerContext API" API_DESCRIPTION = "Remote PowerContext transport. Runtime behavior is reported by /v1/capabilities." -API_VERSION = "1.6.0" +API_VERSION = "1.6.1" FEATURE_CONTRACTS: dict[str, dict[str, JsonValue]] = { "connection.identity": {"version": {"major": 1, "minor": 0}, "operations": ["get_connection_identity"]}, "access.principal": {"version": {"major": 1, "minor": 0}, "operations": ["get_access_principal"]}, diff --git a/src/powercontext/http/_generated/schema.py b/src/powercontext/http/_generated/schema.py index e2e7fd8f0c..4cabc41601 100644 --- a/src/powercontext/http/_generated/schema.py +++ b/src/powercontext/http/_generated/schema.py @@ -7,7 +7,7 @@ "info": { "title": "PowerContext API", "description": "Remote PowerContext transport. Runtime behavior is reported by /v1/capabilities.", - "version": "1.6.0", + "version": "1.6.1", }, "paths": { "/v1/recall/manifest": { diff --git a/tests/builtin/persistence/test_atomic_description_vector_layout.py b/tests/builtin/persistence/test_atomic_description_vector_layout.py index 7fa08c1097..3b527fdbcb 100644 --- a/tests/builtin/persistence/test_atomic_description_vector_layout.py +++ b/tests/builtin/persistence/test_atomic_description_vector_layout.py @@ -43,7 +43,7 @@ def test_managed_sqlite_vector_schema_includes_registered_nullable_description(t database = tmp_path / "vector.db" runner = SQLiteMigrationRunner(database, bundle, configuration=configuration) result = runner.apply(plan_id=runner.plan().plan_id, accepted=True, maintenance_confirmed=True) - assert result.revision == "000" + assert result.revision == "v1_6_1" with closing(sqlite3.connect(database)) as connection: columns = {row[1]: row for row in connection.execute("PRAGMA table_info(pc_atomic_memory_current)")} assert columns["description"][2:4] == ("VARCHAR(200)", 0) @@ -156,7 +156,7 @@ def test_description_upgrade_preserves_registered_owner_recovery_and_evidence(tm upgraded = SQLiteMigrationRunner(database, current, configuration=configuration) plan = upgraded.plan() assert plan.source_revision == "v1_4_1_004" - assert plan.target_revision == "000" + assert plan.target_revision == "v1_6_1" assert plan.revisions == ( "v1_4_1_005", "v1_4_1_006", @@ -167,7 +167,7 @@ def test_description_upgrade_preserves_registered_owner_recovery_and_evidence(tm "v1_5_0_005", "v1_5_0_006", "v1_6_0", - "000", + "v1_6_1", ) assert plan.domain_steps == ( "artifact_storage", @@ -177,7 +177,7 @@ def test_description_upgrade_preserves_registered_owner_recovery_and_evidence(tm "source_collection", ) assert upgraded.evidence_path.read_bytes() == original_evidence_bytes - assert upgraded.apply(plan_id=plan.plan_id, accepted=True, maintenance_confirmed=True).revision == "000" + assert upgraded.apply(plan_id=plan.plan_id, accepted=True, maintenance_confirmed=True).revision == "v1_6_1" assert upgraded.verify().state == "ready" evidence = json.loads(upgraded.evidence_path.read_text(encoding="utf-8")) for revision, checksum in original_evidence["release_checksums"].items(): diff --git a/tests/builtin/persistence/test_atomic_evidence_upgrade_history.py b/tests/builtin/persistence/test_atomic_evidence_upgrade_history.py index e605f7fd3a..802555d5eb 100644 --- a/tests/builtin/persistence/test_atomic_evidence_upgrade_history.py +++ b/tests/builtin/persistence/test_atomic_evidence_upgrade_history.py @@ -170,7 +170,7 @@ def test_evidence_upgrade_accepts_upstream_history_and_preserves_data(tmp_path, "v1_5_0_005", "v1_5_0_006", "v1_6_0", - "000", + "v1_6_1", ) assert plan.domain_steps == ( "artifact_storage", @@ -203,7 +203,7 @@ def test_evidence_upgrade_accepts_upstream_history_and_preserves_data(tmp_path, "v1_5_0_005", "v1_5_0_006", "v1_6_0", - "000", + "v1_6_1", } ready = reopened.plan() assert ready.state == "ready" @@ -257,7 +257,7 @@ def test_evidence_projection_upgrade_preserves_registered_evidence_revision(tmp_ before = old.evidence_path.read_bytes() upgraded = SQLiteMigrationRunner(database, current, configuration=config) plan = upgraded.plan() - assert plan.revisions == (PROJECTION_REVISION, "v1_5_0_004", "v1_5_0_005", "v1_5_0_006", "v1_6_0", "000") + assert plan.revisions == (PROJECTION_REVISION, "v1_5_0_004", "v1_5_0_005", "v1_5_0_006", "v1_6_0", "v1_6_1") assert plan.domain_steps == ("atomic_memory_evidence_projection", "plugin_artifacts", "source_collection") assert old.evidence_path.read_bytes() == before assert upgraded.apply(plan_id=plan.plan_id, accepted=True, maintenance_confirmed=True).revision == current.head diff --git a/tests/builtin/persistence/test_diagnostic_query_migration.py b/tests/builtin/persistence/test_diagnostic_query_migration.py index af0c19756b..2597e15e8a 100644 --- a/tests/builtin/persistence/test_diagnostic_query_migration.py +++ b/tests/builtin/persistence/test_diagnostic_query_migration.py @@ -39,8 +39,8 @@ def test_diagnostic_upgrade_creates_query_column_and_preserves_published_data(tm current = server_bundle() assert all(current.checksums[key] == value for key, value in previous.checksums.items()) upgraded = SQLiteMigrationRunner(database, current, configuration=config) - assert upgraded.plan().revisions == ("v1_5_0_006", "v1_6_0", "000") - assert apply(upgraded).revision == "000" + assert upgraded.plan().revisions == ("v1_5_0_006", "v1_6_0", "v1_6_1") + assert apply(upgraded).revision == "v1_6_1" assert upgraded.verify().state == "ready" and not apply(upgraded).changed query = "查询原文保留 😀\n" with closing(sqlite3.connect(database)) as connection, connection: diff --git a/tests/builtin/persistence/test_full_server_migrations.py b/tests/builtin/persistence/test_full_server_migrations.py index 0161efb2a5..18f27d5cd8 100644 --- a/tests/builtin/persistence/test_full_server_migrations.py +++ b/tests/builtin/persistence/test_full_server_migrations.py @@ -73,7 +73,7 @@ def dump(path): def test_complete_upgrade_preserves_history_backup_and_repeated_apply(source): before = dump(source.database) plan = source.plan() - assert plan.source_revision == "s1300" and plan.target_revision == "000" + assert plan.source_revision == "s1300" and plan.target_revision == "v1_6_1" assert plan.revisions == ( "s1400", "s1401", @@ -88,7 +88,7 @@ def test_complete_upgrade_preserves_history_backup_and_repeated_apply(source): "v1_5_0_005", "v1_5_0_006", "v1_6_0", - "000", + "v1_6_1", ) assert dump(source.database) == before result = apply(source) diff --git a/tests/builtin/persistence/test_mysql_initialization_preflight.py b/tests/builtin/persistence/test_mysql_initialization_preflight.py index c9c6870ff0..d4255ffa6c 100644 --- a/tests/builtin/persistence/test_mysql_initialization_preflight.py +++ b/tests/builtin/persistence/test_mysql_initialization_preflight.py @@ -260,7 +260,7 @@ def test_evidence_recovery_resumes_before_final_schema_marker(tmp_path, monkeypa "v1_5_0_005", "v1_5_0_006", "v1_6_0", - "000", + "v1_6_1", ) assert (database.read_bytes(), journal.path.read_bytes()) == before assert connection.exec_driver_sql("SELECT schema_version FROM pc_atomic_memory_evidence_schema").all() == [] diff --git a/tests/builtin/persistence/test_mysql_migration_runner.py b/tests/builtin/persistence/test_mysql_migration_runner.py index 0c6613634a..dcf646c103 100644 --- a/tests/builtin/persistence/test_mysql_migration_runner.py +++ b/tests/builtin/persistence/test_mysql_migration_runner.py @@ -476,7 +476,7 @@ def seed(connection, _identity, _guard): assert recovery.state == "recovery_required" and recovery.source_revision == PREVIOUS token = (recovery.coordination or {}).get("pending_run_id") resumed = _full_server_runner(backend, acknowledge_previous_run=token) - assert _apply(resumed, policy="skip").revision == "000" + assert _apply(resumed, policy="skip").revision == "v1_6_1" assert resumed.verify().state == "ready" def inspect(connection, _identity, _guard): @@ -769,7 +769,7 @@ def test_oceanbase_server_upgrade_with_separate_code_cache_preserves_history( ) assert runner.plan(backup_policy="manual").source_revision == "s1300" result = _apply(runner, policy="manual") - assert result.readiness_scope == "server" and result.revision == "000" + assert result.readiness_scope == "server" and result.revision == "v1_6_1" assert runner.verify().state == "ready" prepare_server_storage(settings) assert not _apply(runner, policy="manual").changed @@ -900,7 +900,7 @@ def inspect_history(connection, identity, guard): ).scalar_one(), ) - assert backend.connections().run(inspect_history) == ("000", "dedicated", b'{"history":"unchanged"}') + assert backend.connections().run(inspect_history) == ("v1_6_1", "dedicated", b'{"history":"unchanged"}') (main_path,) = backend.evidence_directory.glob("*/maintenance.json") evidence = json.loads(main_path.read_text()) @@ -910,7 +910,7 @@ def inspect_history(connection, identity, guard): for inspect in (runner.plan, runner.verify, runner.apply): with pytest.raises(MigrationError, match="checksum_conflict"): inspect() - assert backend.connections().run(inspect_history) == ("000", "dedicated", b'{"history":"unchanged"}') + assert backend.connections().run(inspect_history) == ("v1_6_1", "dedicated", b'{"history":"unchanged"}') assert { path: path.read_bytes() for path in backend.evidence_directory.rglob("maintenance.json") } == original_evidence @@ -977,7 +977,7 @@ def inspect_history(connection, identity, guard): ).scalar_one(), ) - assert backend.connections().run(inspect_history) == ("000", b'{"history":"unchanged"}') + assert backend.connections().run(inspect_history) == ("v1_6_1", b'{"history":"unchanged"}') def test_mysql_registered_projection_repair_preserves_authority_and_revision(backend: _BackendTarget) -> None: @@ -1046,7 +1046,7 @@ def inspect_content(connection, identity, guard): ) assert backend.connections().run(inspect_content) == ( - "000", + "v1_6_1", content, "Preserve immutable nebula evidence.", ) @@ -1213,7 +1213,7 @@ def test_mysql_full_server_interruption_preserves_history_and_original_maintenan _load_full_server_baseline(backend) runner = _full_server_runner(backend) original = runner.plan(backup_policy="manual") - assert original.source_revision == "s1300" and original.target_revision == "000" + assert original.source_revision == "s1300" and original.target_revision == "v1_6_1" _interrupt_after_ddl(runner, interruption) journals = list(backend.evidence_directory.rglob("maintenance.json")) assert len(journals) == 1 @@ -1235,7 +1235,7 @@ def test_mysql_full_server_interruption_preserves_history_and_original_maintenan result = _apply(resumed, policy="manual") - assert result.readiness_scope == "server" and result.revision == "000" + assert result.readiness_scope == "server" and result.revision == "v1_6_1" assert result.backup_state == "user_confirmed" assert result.backup_ref == interrupted["manual_ref"] assert resumed.verify().state == "ready" @@ -1315,7 +1315,7 @@ def client_active(connection: Connection | None, _identity: BackendIdentity, _gu # interruption. An arbitrary remote failure cannot be acknowledged blindly. resumed = _full_server_runner(backend, acknowledge_previous_run=token) result = _apply(resumed, policy="manual") - assert result.state == "ready" and result.readiness_scope == "server" and result.revision == "000" + assert result.state == "ready" and result.readiness_scope == "server" and result.revision == "v1_6_1" assert result.backup_state == "user_confirmed" and result.backup_ref == interrupted["manual_ref"] assert resumed.verify().state == "ready" completed = json.loads(journals[0].read_text(encoding="utf-8")) diff --git a/tests/builtin/persistence/test_plugin_storage_migration.py b/tests/builtin/persistence/test_plugin_storage_migration.py index b9174ee7f0..9a1f56d2d3 100644 --- a/tests/builtin/persistence/test_plugin_storage_migration.py +++ b/tests/builtin/persistence/test_plugin_storage_migration.py @@ -159,9 +159,9 @@ def test_upgrade_refuses_retained_plugin_data_and_drops_only_empty_storage(tmp_p with closing(sqlite3.connect(database)) as connection, connection: connection.execute("DELETE FROM pc_artifact_family_schemas") plan = upgraded.plan() - assert plan.revisions == ("v1_5_0_005", "v1_5_0_006", "v1_6_0", "000") + assert plan.revisions == ("v1_5_0_005", "v1_5_0_006", "v1_6_0", "v1_6_1") assert plan.domain_steps == ("plugin_artifacts", "source_collection") - assert apply(upgraded).revision == "000" + assert apply(upgraded).revision == "v1_6_1" assert upgraded.verify().state == "ready" with closing(sqlite3.connect(database)) as connection: tables = {row[0] for row in connection.execute("SELECT name FROM sqlite_schema WHERE type='table'")} @@ -187,7 +187,7 @@ def test_upgrade_refuses_loaded_source_write_plugins_and_adds_collection_tables( with closing(sqlite3.connect(database)) as connection, connection: connection.execute("DELETE FROM pc_source_write_plugins") - assert apply(upgraded).revision == "000" + assert apply(upgraded).revision == "v1_6_1" with closing(sqlite3.connect(database)) as connection: tables = {row[0] for row in connection.execute("SELECT name FROM sqlite_schema WHERE type='table'")} assert "pc_source_write_plugins" not in tables diff --git a/tests/builtin/persistence/test_portable_storage_migration.py b/tests/builtin/persistence/test_portable_storage_migration.py index 2f4694a5f1..4b13ad7c11 100644 --- a/tests/builtin/persistence/test_portable_storage_migration.py +++ b/tests/builtin/persistence/test_portable_storage_migration.py @@ -134,9 +134,9 @@ def test_registered_s1401_upgrade_preserves_completed_evidence_and_matches_fresh "v1_5_0_005", "v1_5_0_006", "v1_6_0", - "000", + "v1_6_1", ) - assert apply(upgraded).revision == "000" + assert apply(upgraded).revision == "v1_6_1" assert upgraded.verify().state == "ready" assert not apply(upgraded).changed fresh = SQLiteMigrationRunner(tmp_path / "fresh.db", bundle, configuration=config) @@ -205,7 +205,7 @@ def test_release_upgrade_preserves_data_and_adds_collection_runners(tmp_path, ve "v1_5_0_005", "v1_5_0_006", "v1_6_0", - "000", + "v1_6_1", ) if include_owner else ( @@ -219,10 +219,10 @@ def test_release_upgrade_preserves_data_and_adds_collection_runners(tmp_path, ve "v1_5_0_005", "v1_5_0_006", "v1_6_0", - "000", + "v1_6_1", ) ) - assert apply(upgraded).revision == "000" + assert apply(upgraded).revision == "v1_6_1" capabilities = b'[{"error":null,"name":"tickets","version":"1.0.0"}]' with closing(sqlite3.connect(database)) as connection, connection: assert connection.execute("SELECT title FROM pc_scopes").fetchall() == [("preserved",)] diff --git a/tests/builtin/persistence/test_release140_server_migrations.py b/tests/builtin/persistence/test_release140_server_migrations.py index b787643133..0858c92e7c 100644 --- a/tests/builtin/persistence/test_release140_server_migrations.py +++ b/tests/builtin/persistence/test_release140_server_migrations.py @@ -160,7 +160,7 @@ def test_registered_sources_choose_distinct_lineages(tmp_path, release, expected "v1_5_0_005", "v1_5_0_006", "v1_6_0", - "000", + "v1_6_1", ) @@ -374,7 +374,7 @@ def connect(): finally: engine.dispose() - assert _apply(runner).revision == "000" + assert _apply(runner).revision == "v1_6_1" assert runner.verify().state == "ready" assert not _apply(runner).changed app = create_server_app( diff --git a/tests/e2e/test_atomic_memory_description_upgrade.py b/tests/e2e/test_atomic_memory_description_upgrade.py index 00712493ed..f39c6362ea 100644 --- a/tests/e2e/test_atomic_memory_description_upgrade.py +++ b/tests/e2e/test_atomic_memory_description_upgrade.py @@ -85,9 +85,9 @@ def test_nonempty_released_memory_upgrades_without_rewriting_history(tmp_path, r ) result = _apply(runner) - assert result.state == "ready" and result.readiness_scope == "server" and result.revision == "000" + assert result.state == "ready" and result.readiness_scope == "server" and result.revision == "v1_6_1" verified = runner.verify() - assert verified.state == "ready" and verified.readiness_scope == "server" and verified.revision == "000" + assert verified.state == "ready" and verified.readiness_scope == "server" and verified.revision == "v1_6_1" assert not _apply(runner).changed with closing(sqlite3.connect(runner.database)) as connection: assert ( diff --git a/tests/e2e/test_source_citation_locators.py b/tests/e2e/test_source_citation_locators.py index dcde077abe..82d6bc8630 100644 --- a/tests/e2e/test_source_citation_locators.py +++ b/tests/e2e/test_source_citation_locators.py @@ -87,7 +87,7 @@ def test_locators_survive_upgrade_reopen_http_and_mcp(tmp_path): runner = deployment_runner(_settings(database)) plan = runner.plan() - assert plan.revisions == ("v1_5_0_004", "v1_5_0_005", "v1_5_0_006", "v1_6_0", "000") + assert plan.revisions == ("v1_5_0_004", "v1_5_0_005", "v1_5_0_006", "v1_6_0", "v1_6_1") runner.apply(plan_id=plan.plan_id, accepted=True, maintenance_confirmed=True) locators = [ diff --git a/tests/native/test_oceanbase_engine_recovery.py b/tests/native/test_oceanbase_engine_recovery.py index 68b1249651..e5c28842be 100644 --- a/tests/native/test_oceanbase_engine_recovery.py +++ b/tests/native/test_oceanbase_engine_recovery.py @@ -175,7 +175,7 @@ def ping(connection, _identity, _guard): _apply(_full_server_runner(backend), policy="manual") resumed = _full_server_runner(backend, acknowledge_previous_run=token) result = _apply(resumed, policy="manual") - assert result.state == "ready" and result.revision == "000" and result.readiness_scope == "server" + assert result.state == "ready" and result.revision == "v1_6_1" and result.readiness_scope == "server" assert result.backup_state == "user_confirmed" and result.backup_ref == interrupted["manual_ref"] assert resumed.verify().state == "ready" completed = json.loads(journal.read_text()) diff --git a/tests/release_upgrades/README.md b/tests/release_upgrades/README.md index fb6ef8d7fd..de4feca90b 100644 --- a/tests/release_upgrades/README.md +++ b/tests/release_upgrades/README.md @@ -6,9 +6,9 @@ embedded seekDB Code configurations. Missing full migration integration (#2154) ## Reviewed sources and current target -The declared target release is **1.6.0**. Public migration output maps the two source baselines to +The declared target release is **1.6.1**. Public migration output maps the two source baselines to `v1_3_0_000` / `v1_4_0_000` and the shared steps to `v1_4_1_001`–`v1_4_1_006`, followed by -`v1_5_0_001`–`000`. The suite checks the first three `v1_4_1_*` display names while retaining +`v1_5_0_001`–`v1_6_1`. The suite checks the first three `v1_4_1_*` display names while retaining the original revision IDs in execution and recovery evidence. The `automatic_sources` policy uses `strategy: "fixed-version"` and `source_version: "1.3.0"`. diff --git a/tests/test_atomic_memory_alias_upgrade.py b/tests/test_atomic_memory_alias_upgrade.py index 2b4ea07b3b..6290bb946c 100644 --- a/tests/test_atomic_memory_alias_upgrade.py +++ b/tests/test_atomic_memory_alias_upgrade.py @@ -52,7 +52,7 @@ def test_registered_mysql_alias_layout_uses_configured_vector_type(dimension): ) bundle = server_bundle(embedding_profile=profile) schema = MySQLSchema(bundle) - (statement,) = schema.statements("000") + (statement,) = schema.statements("v1_6_1") name, table = _parse_table(statement) assert name == "pc_atomic_memory_alias" assert table == schema.required(bundle.head)["tables"][name] diff --git a/tests/test_managed_atomic_maintenance.py b/tests/test_managed_atomic_maintenance.py index 9257751143..943bef2889 100644 --- a/tests/test_managed_atomic_maintenance.py +++ b/tests/test_managed_atomic_maintenance.py @@ -76,7 +76,7 @@ def test_atomic_alias_upgrades_complete_historical_server_with_shared_plan_and_b assert inspected.exit_code == 0, inspected.output plan = json.loads(inspected.output) assert plan["source_revision"] == "s1300" - assert plan["target_revision"] == "000" + assert plan["target_revision"] == "v1_6_1" assert plan["readiness_scope"] == "server" assert historical.read_bytes() == original @@ -103,7 +103,7 @@ def test_atomic_alias_upgrades_complete_historical_server_with_shared_plan_and_b with closing(sqlite3.connect(result["backup_ref"])) as connection: assert tuple(connection.iterdump()) == original_dump with closing(sqlite3.connect(historical)) as connection: - assert connection.execute("SELECT version_num FROM pc_schema_revision").fetchall() == [("000",)] + assert connection.execute("SELECT version_num FROM pc_schema_revision").fetchall() == [("v1_6_1",)] assert connection.execute("SELECT content FROM pc_artifacts").fetchall() == [(b'{"history":"unchanged"}',)] verified = CliRunner().invoke(cli, [*arguments, "--action", "verify"]) assert verified.exit_code == 0, verified.output diff --git a/tests/test_managed_processing_maintenance.py b/tests/test_managed_processing_maintenance.py index 477757fb3f..8df0db3a30 100644 --- a/tests/test_managed_processing_maintenance.py +++ b/tests/test_managed_processing_maintenance.py @@ -75,7 +75,7 @@ def test_registered_mode_switch_backs_up_preserves_revision_and_fences_old_worke assert result.backup_state == "completed" assert result.backup_ref and Path(result.backup_ref).is_file() with closing(sqlite3.connect(path)) as connection: - assert connection.execute("SELECT version_num FROM pc_schema_revision").fetchall() == [("000",)] + assert connection.execute("SELECT version_num FROM pc_schema_revision").fetchall() == [("v1_6_1",)] assert ( json.loads(connection.execute("SELECT config_manifest FROM pc_artifact_processing_schema").fetchone()[0])[ "mode" diff --git a/tests/test_migration_revision_names.py b/tests/test_migration_revision_names.py index 9472e39110..d12834d73a 100644 --- a/tests/test_migration_revision_names.py +++ b/tests/test_migration_revision_names.py @@ -71,10 +71,10 @@ def invoke(action, *options): "v1_5_0_005", "v1_5_0_006", "v1_6_0", - "000", + "v1_6_1", ] assert [item["revision"] for item in plan["pending_migrations"]] == list(reviewed.revisions) - target = {"revision": "000", "name": "000", "software_version": None, "sequence": None} + target = {"revision": "v1_6_1", "name": "v1_6_1", "software_version": "1.6.1", "sequence": None} assert plan["target_migration"] == target applied = invoke( @@ -89,7 +89,7 @@ def invoke(action, *options): ) assert applied["migration"] == target and applied["server_ready"] with closing(sqlite3.connect(runner.database)) as connection: - assert connection.execute("SELECT version_num FROM pc_schema_revision").fetchall() == [("000",)] + assert connection.execute("SELECT version_num FROM pc_schema_revision").fetchall() == [("v1_6_1",)] evidence = runner.evidence_path.read_bytes() recorded = json.loads(evidence) assert recorded["source_revision"] == expected_source["revision"] @@ -108,7 +108,7 @@ def invoke(action, *options): "v1_5_0_005", "v1_5_0_006", "v1_6_0", - "000", + "v1_6_1", } assert runner.verify().state == "ready" assert invoke("verify")["migration"] == target diff --git a/tests/test_registered_source_maintenance_cli.py b/tests/test_registered_source_maintenance_cli.py index af48777ff0..daf60d752a 100644 --- a/tests/test_registered_source_maintenance_cli.py +++ b/tests/test_registered_source_maintenance_cli.py @@ -66,7 +66,7 @@ def test_release140_compatibility_commands_preserve_source_and_share_full_upgrad planned = CliRunner().invoke(cli, [*arguments, "plan", "--backup", "skip"]) assert planned.exit_code == 0, planned.output plan = json.loads(planned.output) - assert plan["source_revision"] == "r1400" and plan["target_revision"] == "000" + assert plan["source_revision"] == "r1400" and plan["target_revision"] == "v1_6_1" assert plan["readiness_scope"] == "server" assert plan["compatibility_steps"] == [] full = CliRunner().invoke(cli, ["server", "db-migrate", "plan", "--backup", "skip"]) diff --git a/website/src/lib/releases.ts b/website/src/lib/releases.ts index 9d6ec56451..7895abf487 100644 --- a/website/src/lib/releases.ts +++ b/website/src/lib/releases.ts @@ -28,6 +28,38 @@ export interface Release { // Only stable releases belong here; publish pre-release notes on GitHub Releases. export const releases: Release[] = [ + { + "version": "v1.6.1", + "date": "2026-11-30", + "title": { + "en": "Historical memory recall · Gateway and integration reliability", + "zh": "历史记忆召回 · Gateway 与集成可靠性" + }, + "summary": { + "en": "PowerContext v1.6.1 improves memory recall after merges, Gateway conversation handling, installation and integration reliability, and processing visibility.", + "zh": "PowerContext v1.6.1 改进记忆合并后的召回、Gateway 对话处理、安装与集成可靠性,以及处理状态的可见性。" + }, + "changes": { + "en": [ + "Recall merged Atomic Memories through historical aliases, and improve one_pass completeness, candidate retention and prefixed keep-check error handling.", + "Improve Gateway conversation replay and context deduplication, bind model requests to explicit Scopes and Core-approved upstream targets, and support host-marked internal requests. Extend cost guidance and cached-prefix reuse to Chat Completions; actual savings depend on provider cache behavior.", + "Install the Gateway alongside the CLI with verified native release binaries. Improve Gateway-owned recall across integrations, linked Git worktree bindings, completion-aware outcome guidance and recognized-credential redaction.", + "Expose Content Source metadata and configurable size limits, show Source consumption and Topic Memory processing status in the Dashboard, and support viewing and editing Profile generation prompts.", + "Harden request-body admission and remote Skill enrollment, validate Source scheduling, and clarify offline maintenance when widening Processing capabilities.", + "Upgrade Server, Gateway, SDK, CLI and integrations together. Freeze the cumulative historical-alias projection migration as v1_6_1 after v1_6_0. Existing managed databases require explicit offline maintenance; unpublished 000 databases must be rebuilt. Installed-artifact upgrade acceptance is required for each supported source, backend and configuration; release preparation alone does not establish that acceptance." + ], + "zh": [ + "通过历史别名召回已合并的 Atomic Memory,并改进 one_pass 操作完整性、候选保留和前缀提取路径的 keep-check 错误处理。", + "完善 Gateway 对话重放与上下文去重,将模型请求绑定到显式 Scope 和 Core 批准的上游目标,并支持 Host 标记内部请求。将成本引导和缓存前缀复用扩展到 Chat Completions;实际节省取决于供应商缓存行为。", + "随 CLI 安装经过校验的 Gateway 原生发布二进制。完善各集成中由 Gateway 负责的召回、Git worktree 工作区绑定、任务完成结果引导和已识别凭证的脱敏。", + "提供 Content Source 元数据和可配置的大小限制,在 Dashboard 中展示 Source 消费进度与 Topic Memory 处理状态,并支持查看和编辑 Profile 生成提示词。", + "加强请求体准入和远程 Skill 登记限制,校验 Source 调度配置,并在扩展 Processing 能力时明确提示所需的离线维护。", + "Server、Gateway、SDK、CLI 与集成需协调升级。历史别名投影的累计迁移冻结为 v1_6_1,接在 v1_6_0 之后。已有托管数据库需要显式离线维护;未发布的 000 开发数据库必须重建。每个受支持的源版本、后端和配置组合均需通过安装产物升级验收;发布准备本身不代表已经通过该验收。" + ] + }, + "installCommand": "uv tool install --force \"powercontext[cli,server]==1.6.1\"", + "githubUrl": "https://github.com/oceanbase/powercontext/releases/tag/powercontext-v1.6.1" + }, { "version": "v1.6.0", "date": "2026-11-23", From 50e4c2f432d47e7816c963735af1478b89384ada Mon Sep 17 00:00:00 2001 From: hidb4ai Date: Mon, 30 Nov 2026 20:42:53 +0800 Subject: [PATCH 2/3] fix(release): complete 1.6.1 publication and Desktop qualification --- desktop/VALIDATION.md | 38 +++++++++++++++++++ .../src/connections/compatibility.json | 22 +++++++++++ docs/en/development/releasing.md | 2 +- docs/zh/development/releasing.md | 2 +- scripts/release_version.py | 2 + tests/test_release_version.py | 23 ++++++++++- 6 files changed, 85 insertions(+), 4 deletions(-) diff --git a/desktop/VALIDATION.md b/desktop/VALIDATION.md index b4c7031e14..87eebafcf1 100644 --- a/desktop/VALIDATION.md +++ b/desktop/VALIDATION.md @@ -4025,3 +4025,41 @@ POWERCONTEXT_SERVER_ACCESS_MODE=enforced POWERCONTEXT_SERVER_AUTH_TOKEN=qualific POWERCONTEXT_SERVER_RUNTIME_TAG_MAX_PER_ARTIFACT=64 POWERCONTEXT_SERVER_RUNTIME_TAG_MAX_QUERY_LABELS=20 \ ~/pc-venv-tags/bin/powercontext server run --host 127.0.0.1 --port 8250 --no-env-file ``` + +## PowerContext 1.6.1 release protocol qualification + +`sqlite-release-1-6-1-959aa29a-v1` qualifies all thirteen generated Desktop protocol operations against +Server source `959aa29a8418a4c6cdc7a66c6db781bdb4662e59` and its packaged SQLite Server. + +- Normalized OpenAPI SHA-256: `b2cd6734a32ba320e25d379b646be6fb07f39412cfbeb3af0168d51fbf2a3026`. +- Wheel: `powercontext-1.6.1-py3-none-any.whl`. +- Wheel SHA-256: `cf0e0964cacfe87a0949b5e17d450e177f834e2c375b182af4e710ea5c67c733`. +- All 843 packaged runtime source files, excluding generated version metadata, match the recorded source. + +On 2026-11-30, Linux x86_64 with Python 3.12.13 passed anonymous loopback, static Bearer, +HTTPS with explicit CA/base path, and enforced Provider modes through the native `server_probe` +and ordinary product `ConnectionManager`. The harness checked the exact wheel hash and selected the bundled +profile before starting isolated real Server processes. Checks cover saving, searching and exact revision reads, +identity, readiness, Scope selection and statistics. Committed-write response loss remains unknown without replay; +Provider mode additionally verifies identity-change invalidation, same-identity revocation, 51-Scope pagination, +and scoped native authorization when Server observation is denied. All four Server processes exited cleanly. + +The host lacks GTK development libraries, so the probe was compiled in a separate protocol-only Cargo project: +21 protocol source/resource files and the probe were copied unchanged; only the library module declarations and +build manifest excluded the Tauri GUI. All 307 retained dependency versions and checksums match the Desktop lock +file. A locked offline build passed. This qualifies the native protocol, not the complete Tauri application, +installed WebView, system credential storage, Windows/macOS packages, external model providers or release acceptance. +Statistics usage and authentication Provider inputs are controlled fixtures. An initial attempt timed out waiting +for the Bearer Server to become ready; the complete repeat passed with unchanged configuration and timeouts. + +With the Desktop native build prerequisites installed, reproduce using the recorded wheel: + +```sh +cargo build --locked --manifest-path desktop/src-tauri/Cargo.toml --example server_probe +python desktop/tests/real_server.py \ + --product-qualification sqlite-release-1-6-1-959aa29a-v1 \ + --wheel /path/to/powercontext-1.6.1-py3-none-any.whl +``` + +The wheel identity is specific to this source build; a separately built publication artifact requires its own +hash verification and acceptance. Existing historical qualification records retain their original identities. diff --git a/desktop/src-tauri/src/connections/compatibility.json b/desktop/src-tauri/src/connections/compatibility.json index d1701c3e00..2b9f4846fa 100644 --- a/desktop/src-tauri/src/connections/compatibility.json +++ b/desktop/src-tauri/src/connections/compatibility.json @@ -2124,5 +2124,27 @@ "search_memory" ], "evidence": "desktop/VALIDATION.md#server-b7399de-tag-limits-protocol-qualification" + }, + { + "id": "sqlite-release-1-6-1-959aa29a-v1", + "serverCommit": "959aa29a8418a4c6cdc7a66c6db781bdb4662e59", + "contractSha256": "b2cd6734a32ba320e25d379b646be6fb07f39412cfbeb3af0168d51fbf2a3026", + "artifactSha256": "cf0e0964cacfe87a0949b5e17d450e177f834e2c375b182af4e710ea5c67c733", + "operations": [ + "get_access_principal", + "get_artifact_revision", + "get_capabilities", + "get_connection_identity", + "get_default_scope", + "get_liveness", + "get_readiness", + "get_scope", + "get_server_info", + "get_stats", + "list_scopes", + "remember_memory", + "search_memory" + ], + "evidence": "desktop/VALIDATION.md#powercontext-161-release-protocol-qualification" } ] diff --git a/docs/en/development/releasing.md b/docs/en/development/releasing.md index 9c47e4c80d..a111d181fe 100644 --- a/docs/en/development/releasing.md +++ b/docs/en/development/releasing.md @@ -260,7 +260,7 @@ the GitHub Release page: run the command above before that action. `make publish ### Publish from the GitHub Actions page For an existing published Release, open **Actions → Release → Run workflow**, select `master`, and enter -`powercontext-v1.6.0` in `release_tag`. Leave `skip_upgrade_acceptance` unchecked and click **Run workflow**. +`powercontext-v1.6.1` in `release_tag`. Leave `skip_upgrade_acceptance` unchecked and click **Run workflow**. Workflow changes must be merged into `master` first. The run uses its workflow commit for gate tooling and the selected tag for package builds and acceptance suites. All twelve cases must pass before package publication; no support table, fixed Release wording, or policy-mode change is required. diff --git a/docs/zh/development/releasing.md b/docs/zh/development/releasing.md index 904e01687c..4a2a471f2b 100644 --- a/docs/zh/development/releasing.md +++ b/docs/zh/development/releasing.md @@ -232,7 +232,7 @@ CI 中的 **Upgrade release gate** 要求真实 1.3.0 数据库在十二个必 ### 在 GitHub 页面触发发布 对于已有的已发布 Release,打开 **Actions → Release → Run workflow**,分支选择 `master`, -在 `release_tag` 中填写 `powercontext-v1.6.0`,保持 `skip_upgrade_acceptance` 不勾选,点击 **Run workflow**。 +在 `release_tag` 中填写 `powercontext-v1.6.1`,保持 `skip_upgrade_acceptance` 不勾选,点击 **Run workflow**。 工作流修改须先合并到 `master`。本次运行使用工作流提交中的验收脚本,从所选标签构建安装包并执行验收套件。 十二个组合全部通过后才发布软件包,无需支持范围表格、固定 Release 文案或修改策略模式。 diff --git a/scripts/release_version.py b/scripts/release_version.py index d7909ce472..323b251a1f 100644 --- a/scripts/release_version.py +++ b/scripts/release_version.py @@ -60,6 +60,8 @@ r"^The target release is \*\*PowerContext ", ), "docs/zh/docs/operate/database-migrations.md": (r"^目标发布版本为 \*\*PowerContext ",), + "docs/en/development/releasing.md": (r"(?<=and enter\n`)powercontext-v",), + "docs/zh/development/releasing.md": (r"(?<=在 `release_tag` 中填写 `)powercontext-v",), "tests/release_upgrades/README.md": (r"^The declared target release is \*\*",), } diff --git a/tests/test_release_version.py b/tests/test_release_version.py index ca9c9e811f..99ee193057 100644 --- a/tests/test_release_version.py +++ b/tests/test_release_version.py @@ -36,14 +36,13 @@ HISTORICAL_AND_INDEPENDENT_FILES = ( "docs/en/docs/get-started/quickstart.md", "docs/zh/docs/get-started/quickstart.md", - "docs/en/development/releasing.md", - "docs/zh/development/releasing.md", "docs/en/docs/operate/artifact-processing-migration.md", "docs/zh/docs/operate/artifact-processing-migration.md", "website/src/lib/releases.ts", "integrations/agent-plugin/powercontext/plugin.json", "integrations/openclaw/plugins/memory-powercontext/openclaw.plugin.json", ) +RELEASING_PAGES = ("docs/en/development/releasing.md", "docs/zh/development/releasing.md") MIGRATION_PAGES = ( "docs/en/docs/operate/database-migrations.md", "docs/zh/docs/operate/database-migrations.md", @@ -61,6 +60,7 @@ def release_repo(tmp_path: Path) -> Path: *INSTALL_PAGES, *HISTORICAL_AND_INDEPENDENT_FILES, *MIGRATION_PAGES, + *RELEASING_PAGES, ): destination = tmp_path / relative destination.parent.mkdir(parents=True, exist_ok=True) @@ -205,3 +205,22 @@ def test_missing_release_reference_prevents_partial_update(release_repo: Path) - assert result.returncode != 0 assert "integrations/dsh/plugins/powercontext/README.md" in result.stderr assert snapshot(release_repo) == before + + +@pytest.mark.parametrize("relative", RELEASING_PAGES) +def test_release_repairs_publication_tag_without_changing_examples(release_repo: Path, relative: str) -> None: + result = run_release(release_repo, "--write", "--version", "9.8.7") + assert result.returncode == 0, result.stderr + page = release_repo / relative + original = page.read_text(encoding="utf-8") + stale = original.replace("powercontext-v9.8.7", "powercontext-v0.0.1") + page.write_text(stale, encoding="utf-8") + result = run_release(release_repo, "--check", "--version", "9.8.7") + assert result.returncode != 0 + assert relative in result.stdout + result.stderr + result = run_release(release_repo, "--write", "--version", "9.8.7") + assert result.returncode == 0, result.stderr + assert page.read_text(encoding="utf-8") == original + result = run_release(release_repo, "--write", "--version", "1.7.0") + assert result.returncode == 0, result.stderr + assert page.read_text(encoding="utf-8") == original.replace("powercontext-v9.8.7", "powercontext-v1.7.0") From e5403465b4727a9c9dadf9d8cf8780ed0ff7110e Mon Sep 17 00:00:00 2001 From: hidb4ai Date: Tue, 1 Dec 2026 14:52:51 +0800 Subject: [PATCH 3/3] fix(release): clarify artifact qualification and complete release notes --- README.md | 2 +- README_CN.md | 2 +- README_JP.md | 2 +- desktop/VALIDATION.md | 41 ++++++++++++++++++- .../src/connections/compatibility.json | 24 ++++++++++- release/notes/powercontext-v1.6.1.md | 4 ++ website/src/lib/releases.ts | 4 +- 7 files changed, 72 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 84c11848ba..ea2d0438c2 100644 --- a/README.md +++ b/README.md @@ -224,7 +224,7 @@ Codex is officially maintained; other Agent and Python framework integrations ar ## News -- **2026-11-30 · [v1.6.1](https://powercontext.oceanbase.io/en/docs/changelog/#v1-6-1)** — Improve Atomic Memory processing, improve Gateway conversation and integration reliability, and make processing status clearer. +- **2026-12-01 · [v1.6.1](https://powercontext.oceanbase.io/en/changelog/v1.6.1/)** — Improve Atomic Memory processing, improve Gateway conversation and integration reliability, and make processing status clearer. - **2026-11-23 · [v1.6.0](https://powercontext.oceanbase.io/en/changelog/v1.6.0/)** — Knowledge bases debut: import Markdown and images, search with hybrid retrieval, and manage revisioned chunks in the Dashboard. The Gateway reaches its stable release with prebuilt binaries, and memory extraction can reuse the prompt cache of the Agent's conversation. - **2026-11-16 · [v1.5.2](https://powercontext.oceanbase.io/en/changelog/v1.5.2/)** — Batched writes and query optimizations: maintainer measurements report about 190% higher write throughput and 171% higher query throughput than v1.5.1. The Dashboard now shows processing progress, failure diagnostics, and token usage. - **2026-11-09 · [v1.5.1](https://powercontext.oceanbase.io/en/changelog/v1.5.1/)** — Trace memories to precise source locations, plus an optional monitoring stack for metrics, logs, and traces. diff --git a/README_CN.md b/README_CN.md index a1e4d53ec4..324d5ae5a9 100644 --- a/README_CN.md +++ b/README_CN.md @@ -224,7 +224,7 @@ Codex 为官方维护;其余 Agent 和 Python 框架集成为社区维护;Bu ## 最新动态 -- **2026-11-30 · [v1.6.1](https://powercontext.oceanbase.io/zh/docs/changelog/#v1-6-1)** — 改进 Atomic Memory 处理,完善 Gateway 对话与集成可靠性,并提供更清晰的处理状态。 +- **2026-12-01 · [v1.6.1](https://powercontext.oceanbase.io/zh/changelog/v1.6.1/)** — 改进 Atomic Memory 处理,完善 Gateway 对话与集成可靠性,并提供更清晰的处理状态。 - **2026-11-23 · [v1.6.0](https://powercontext.oceanbase.io/zh/changelog/v1.6.0/)** — 知识库首次发布:导入 Markdown 和图片,混合检索并在 Dashboard 中管理版本化分块。Gateway 推出正式版并提供预编译二进制,记忆提取可复用 Agent 对话的提示词缓存。 - **2026-11-16 · [v1.5.2](https://powercontext.oceanbase.io/zh/changelog/v1.5.2/)** — 批量写入和查询优化:维护者实测写入吞吐提升约 190%、查询吞吐提升约 171%(对比 v1.5.1);Dashboard 原生展示处理进度、失败诊断和 Token 用量。 - **2026-11-09 · [v1.5.1](https://powercontext.oceanbase.io/zh/changelog/v1.5.1/)** — 记忆可追溯到来源中的精确位置;新增可选的监控栈,覆盖指标、日志和链路追踪。 diff --git a/README_JP.md b/README_JP.md index 97f33efcb8..c723dd18a9 100644 --- a/README_JP.md +++ b/README_JP.md @@ -224,7 +224,7 @@ Codex 連携は公式メンテナンス、その他の Agent と Python フレ ## 最新情報 -- **2026-11-30 · [v1.6.1](https://powercontext.oceanbase.io/en/docs/changelog/#v1-6-1)** — Atomic Memory の処理を改善し、Gateway と連携の信頼性、処理状況の可視化を改善。 +- **2026-12-01 · [v1.6.1](https://powercontext.oceanbase.io/en/changelog/v1.6.1/)** — Atomic Memory の処理を改善し、Gateway と連携の信頼性、処理状況の可視化を改善。 - **2026-11-23 · [v1.6.0](https://powercontext.oceanbase.io/en/changelog/v1.6.0/)** — ナレッジベースを初公開。Markdown と画像を取り込み、ハイブリッド検索で探し、Dashboard でバージョン管理されたチャンクを管理できます。Gateway は安定版になりビルド済みバイナリを提供し、記憶の抽出で Agent の会話のプロンプトキャッシュを再利用できます。 - **2026-11-16 · [v1.5.2](https://powercontext.oceanbase.io/en/changelog/v1.5.2/)** — 書き込みのバッチ化とクエリの最適化。メンテナーの計測では、v1.5.1 と比べて書き込みスループットが約 190%、クエリスループットが約 171% 向上しました。Dashboard で処理の進捗、失敗の診断、トークン使用量を確認できます。 - **2026-11-09 · [v1.5.1](https://powercontext.oceanbase.io/en/changelog/v1.5.1/)** — 記憶を Source 内の正確な位置までたどれるようになり、メトリクス、ログ、トレースを扱う監視スタックを任意で追加できます。 diff --git a/desktop/VALIDATION.md b/desktop/VALIDATION.md index 87eebafcf1..bce4fe4ef3 100644 --- a/desktop/VALIDATION.md +++ b/desktop/VALIDATION.md @@ -4026,9 +4026,10 @@ POWERCONTEXT_SERVER_ACCESS_MODE=enforced POWERCONTEXT_SERVER_AUTH_TOKEN=qualific ~/pc-venv-tags/bin/powercontext server run --host 127.0.0.1 --port 8250 --no-env-file ``` -## PowerContext 1.6.1 release protocol qualification +## Server 959aa29a protocol qualification -`sqlite-release-1-6-1-959aa29a-v1` qualifies all thirteen generated Desktop protocol operations against +The historical profile ID `sqlite-release-1-6-1-959aa29a-v1` identifies a source-build protocol fixture, +not a published-release qualification. It qualifies all thirteen generated Desktop protocol operations against Server source `959aa29a8418a4c6cdc7a66c6db781bdb4662e59` and its packaged SQLite Server. - Normalized OpenAPI SHA-256: `b2cd6734a32ba320e25d379b646be6fb07f39412cfbeb3af0168d51fbf2a3026`. @@ -4063,3 +4064,39 @@ python desktop/tests/real_server.py \ The wheel identity is specific to this source build; a separately built publication artifact requires its own hash verification and acceptance. Existing historical qualification records retain their original identities. + +## Server fb5d41b2 protocol qualification + +`sqlite-server-fb5d41b2-v1` qualifies all thirteen generated Desktop protocol operations against +Server source `fb5d41b2469cb395461d5ccbfb7118c1bdc27fce`, including the removal of historical-alias recall +and Gateway upstream target binding. This is qualification of a specific source-build wheel, not the final +published 1.6.1 artifact. Publication must qualify its actual Server commit and wheel hash; the candidate +selector requires both identities to match and cannot substitute this record for another build. + +- Normalized OpenAPI SHA-256: `b2cd6734a32ba320e25d379b646be6fb07f39412cfbeb3af0168d51fbf2a3026`. +- Wheel: `powercontext-1.6.1-py3-none-any.whl`. +- Wheel SHA-256: `e43fd76f11d49a954e647f9ddf839ba7428a11a353c2275abaebc1ac2c407d48`. +- All 837 packaged runtime source files, excluding generated version metadata, match the recorded source. + +On 2026-12-01, Linux x86_64 with Python 3.12.13 passed anonymous loopback, static Bearer, +HTTPS with explicit CA/base path, and enforced Provider modes through the unchanged native `server_probe` +and product `ConnectionManager`. The harness selected the matching bundled record and verified the wheel hash. +It exercised save, search and exact revision reads, identity, readiness, Scope selection and statistics. +Committed-write response loss remained unknown without replay; Provider mode additionally passed identity-change +invalidation, same-identity revocation, 51-Scope pagination and scoped authorization without Server observation. +All four isolated Server processes exited cleanly after the clients finished. + +The host lacks GTK development libraries. A separate protocol-only Cargo project used 21 unchanged protocol +source/resource files and the unchanged probe, with 307 dependency versions and checksums matching the Desktop +lock file; its locked offline build passed. Only the library module declarations and build manifest excluded +the Tauri GUI. Statistics usage and authentication Provider inputs are controlled fixtures. This does not +establish installed GUI, system credential storage, Windows/macOS, external model or database-upgrade acceptance. + +With Desktop native build prerequisites installed, reproduce against the recorded wheel: + +```sh +cargo build --locked --manifest-path desktop/src-tauri/Cargo.toml --example server_probe +python desktop/tests/real_server.py \ + --product-qualification sqlite-server-fb5d41b2-v1 \ + --wheel /path/to/powercontext-1.6.1-py3-none-any.whl +``` diff --git a/desktop/src-tauri/src/connections/compatibility.json b/desktop/src-tauri/src/connections/compatibility.json index 2b9f4846fa..9d420de4e8 100644 --- a/desktop/src-tauri/src/connections/compatibility.json +++ b/desktop/src-tauri/src/connections/compatibility.json @@ -2145,6 +2145,28 @@ "remember_memory", "search_memory" ], - "evidence": "desktop/VALIDATION.md#powercontext-161-release-protocol-qualification" + "evidence": "desktop/VALIDATION.md#server-959aa29a-protocol-qualification" + }, + { + "id": "sqlite-server-fb5d41b2-v1", + "serverCommit": "fb5d41b2469cb395461d5ccbfb7118c1bdc27fce", + "contractSha256": "b2cd6734a32ba320e25d379b646be6fb07f39412cfbeb3af0168d51fbf2a3026", + "artifactSha256": "e43fd76f11d49a954e647f9ddf839ba7428a11a353c2275abaebc1ac2c407d48", + "operations": [ + "get_access_principal", + "get_artifact_revision", + "get_capabilities", + "get_connection_identity", + "get_default_scope", + "get_liveness", + "get_readiness", + "get_scope", + "get_server_info", + "get_stats", + "list_scopes", + "remember_memory", + "search_memory" + ], + "evidence": "desktop/VALIDATION.md#server-fb5d41b2-protocol-qualification" } ] diff --git a/release/notes/powercontext-v1.6.1.md b/release/notes/powercontext-v1.6.1.md index d6d6141d95..3c136d9beb 100644 --- a/release/notes/powercontext-v1.6.1.md +++ b/release/notes/powercontext-v1.6.1.md @@ -14,6 +14,8 @@ PowerContext v1.6.1 improves Atomic Memory processing, Gateway conversation hand - Harden request-body admission and remote Skill enrollment, validate Source scheduling, and clarify offline maintenance when widening Processing capabilities. ([#2824](https://github.com/oceanbase/powercontext/pull/2824), [#2858](https://github.com/oceanbase/powercontext/pull/2858), [#2758](https://github.com/oceanbase/powercontext/pull/2758), [#2826](https://github.com/oceanbase/powercontext/pull/2826)) +- Configure per-Artifact and per-query tag limits with POWERCONTEXT_SERVER_RUNTIME_TAG_MAX_PER_ARTIFACT (default 32, maximum 256) and POWERCONTEXT_SERVER_RUNTIME_TAG_MAX_QUERY_LABELS (default 16, maximum 64). Changes take effect after Server restart. ([#2816](https://github.com/oceanbase/powercontext/pull/2816)) + - Upgrade Server, Gateway, SDK, CLI and integrations together. This release adds no schema revision; the managed schema head remains v1_6_0. Databases at earlier released schema revisions require explicit offline maintenance; databases created with unpublished migrations must be rebuilt. Installed-artifact upgrade acceptance is required for each supported source, backend and configuration; release preparation alone does not establish that acceptance. ## 中文 @@ -30,4 +32,6 @@ PowerContext v1.6.1 改进 Atomic Memory 处理、Gateway 对话处理、安装 - 加强请求体准入和远程 Skill 登记限制,校验 Source 调度配置,并在扩展 Processing 能力时明确提示所需的离线维护。 ([#2824](https://github.com/oceanbase/powercontext/pull/2824), [#2858](https://github.com/oceanbase/powercontext/pull/2858), [#2758](https://github.com/oceanbase/powercontext/pull/2758), [#2826](https://github.com/oceanbase/powercontext/pull/2826)) +- 通过 POWERCONTEXT_SERVER_RUNTIME_TAG_MAX_PER_ARTIFACT 配置单个 Artifact 的标签上限(默认 32,最高 256),通过 POWERCONTEXT_SERVER_RUNTIME_TAG_MAX_QUERY_LABELS 配置单次查询的标签上限(默认 16,最高 64)。配置修改在 Server 重启后生效。 ([#2816](https://github.com/oceanbase/powercontext/pull/2816)) + - Server、Gateway、SDK、CLI 与集成需协调升级。本版本不新增数据库迁移,托管数据库的 schema head 保持为 v1_6_0。处于更早已发布 schema revision 的数据库需要显式离线维护;使用未发布迁移创建的数据库必须重建。每个受支持的源版本、后端和配置组合均需通过安装产物升级验收;发布准备本身不代表已经通过该验收。 diff --git a/website/src/lib/releases.ts b/website/src/lib/releases.ts index 9105641ef2..aa4e87f48c 100644 --- a/website/src/lib/releases.ts +++ b/website/src/lib/releases.ts @@ -33,7 +33,7 @@ export const releaseAnchor = (version: string) => version.replaceAll('.', '-'); export const releases: Release[] = [ { "version": "v1.6.1", - "date": "2026-11-30", + "date": "2026-12-01", "title": { "en": "Memory processing · Gateway and integration reliability", "zh": "记忆处理 · Gateway 与集成可靠性" @@ -49,6 +49,7 @@ export const releases: Release[] = [ "Install the Gateway alongside the CLI with verified native release binaries. Improve Gateway-owned recall across integrations, linked Git worktree bindings, completion-aware outcome guidance and recognized-credential redaction.", "Expose Content Source metadata and configurable size limits, show Source consumption and Topic Memory processing status in the Dashboard, and support viewing and editing Profile generation prompts.", "Harden request-body admission and remote Skill enrollment, validate Source scheduling, and clarify offline maintenance when widening Processing capabilities.", + "Configure per-Artifact and per-query tag limits with POWERCONTEXT_SERVER_RUNTIME_TAG_MAX_PER_ARTIFACT (default 32, maximum 256) and POWERCONTEXT_SERVER_RUNTIME_TAG_MAX_QUERY_LABELS (default 16, maximum 64). Changes take effect after Server restart.", "Upgrade Server, Gateway, SDK, CLI and integrations together. This release adds no schema revision; the managed schema head remains v1_6_0. Databases at earlier released schema revisions require explicit offline maintenance; databases created with unpublished migrations must be rebuilt. Installed-artifact upgrade acceptance is required for each supported source, backend and configuration; release preparation alone does not establish that acceptance." ], "zh": [ @@ -57,6 +58,7 @@ export const releases: Release[] = [ "随 CLI 安装经过校验的 Gateway 原生发布二进制。完善各集成中由 Gateway 负责的召回、Git worktree 工作区绑定、任务完成结果引导和已识别凭证的脱敏。", "提供 Content Source 元数据和可配置的大小限制,在 Dashboard 中展示 Source 消费进度与 Topic Memory 处理状态,并支持查看和编辑 Profile 生成提示词。", "加强请求体准入和远程 Skill 登记限制,校验 Source 调度配置,并在扩展 Processing 能力时明确提示所需的离线维护。", + "通过 POWERCONTEXT_SERVER_RUNTIME_TAG_MAX_PER_ARTIFACT 配置单个 Artifact 的标签上限(默认 32,最高 256),通过 POWERCONTEXT_SERVER_RUNTIME_TAG_MAX_QUERY_LABELS 配置单次查询的标签上限(默认 16,最高 64)。配置修改在 Server 重启后生效。", "Server、Gateway、SDK、CLI 与集成需协调升级。本版本不新增数据库迁移,托管数据库的 schema head 保持为 v1_6_0。处于更早已发布 schema revision 的数据库需要显式离线维护;使用未发布迁移创建的数据库必须重建。每个受支持的源版本、后端和配置组合均需通过安装产物升级验收;发布准备本身不代表已经通过该验收。" ] },