Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ Install PowerContext on this machine by following https://powercontext.oceanbase
<details>
<summary><b>Install it yourself</b></summary>

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
Expand All @@ -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
```

Expand Down Expand Up @@ -224,6 +224,7 @@ Codex is officially maintained; other Agent and Python framework integrations ar

## News

- **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.
Expand Down
7 changes: 4 additions & 3 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ Agent 通过 Hooks、MCP 或 SDK 接入 Server;也可以让模型请求经过
<details>
<summary><b>自己动手安装</b></summary>

需要 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
Expand All @@ -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
```

Expand Down Expand Up @@ -224,6 +224,7 @@ Codex 为官方维护;其余 Agent 和 Python 框架集成为社区维护;Bu

## 最新动态

- **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/)** — 记忆可追溯到来源中的精确位置;新增可选的监控栈,覆盖指标、日志和链路追踪。
Expand Down
7 changes: 4 additions & 3 deletions README_JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ https://powercontext.oceanbase.io/en/llms.mdx/docs/get-started/agent-install/con
<details>
<summary><b>自分でインストールする</b></summary>

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
Expand All @@ -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
```

Expand Down Expand Up @@ -224,6 +224,7 @@ Codex 連携は公式メンテナンス、その他の Agent と Python フレ

## 最新情報

- **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 内の正確な位置までたどれるようになり、メトリクス、ログ、トレースを扱う監視スタックを任意で追加できます。
Expand Down
75 changes: 75 additions & 0 deletions desktop/VALIDATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -4025,3 +4025,78 @@ 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
```

## Server 959aa29a protocol qualification

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`.
- 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.

## 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
```
44 changes: 44 additions & 0 deletions desktop/src-tauri/src/connections/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -2124,5 +2124,49 @@
"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#server-959aa29a-protocol-qualification"
},
Comment on lines +2128 to +2149

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Design note (non-blocking): sqlite-release-1-6-1-959aa29a-v1 (and its matching section in desktop/VALIDATION.md) was added by an earlier commit in this PR before #2920 and #2935 were merged, so it reflects a superseded draft commit carrying reverted features and the removed 000 schema revision. Because it was never merged to master, keeping it in the bundled compatibility.json adds a dead entry whose release-1-6-1 ID is easy to misread as a 1.6.1 release profile. Dropping it and keeping only sqlite-server-fb5d41b2-v1 would leave a cleaner final-state record.

{
"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"
}
]
2 changes: 1 addition & 1 deletion desktop/src-tauri/src/transport/operations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"contractSha256": "4a632917abc6a54f117d2c7dd299b105534a5cbe576f653750cf130ada1e69d5",
"contractSha256": "b2cd6734a32ba320e25d379b646be6fb07f39412cfbeb3af0168d51fbf2a3026",
"operations": {
"get_liveness": {
"method": "GET",
Expand Down
2 changes: 1 addition & 1 deletion desktop/ui/src/generated/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

// Generated from openapi/powercontext.yaml. Do not edit.
export const contractSha256 = "4a632917abc6a54f117d2c7dd299b105534a5cbe576f653750cf130ada1e69d5";
export const contractSha256 = "b2cd6734a32ba320e25d379b646be6fb07f39412cfbeb3af0168d51fbf2a3026";
export const operations = {
"get_liveness": {
"method": "GET",
Expand Down
2 changes: 1 addition & 1 deletion docs/en/development/dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/en/development/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading
Loading