Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
83d71ac
feat(desktop): integrate exact-Scope statistics through native IPC
WuShang-d Oct 24, 2026
34c61c5
feat(desktop): visualize current-Scope inventory and usage
WuShang-d Oct 24, 2026
bde9972
test(desktop): validate native statistics journeys and zoom
WuShang-d Oct 24, 2026
0cc9036
fix(desktop): sync statistics with master and repair docs links
WuShang-d Oct 24, 2026
7f6ef3c
fix(desktop): merge current master and refresh statistics qualification
WuShang-d Oct 26, 2026
434859f
fix(desktop): reconcile master and preserve server fixture cleanup
WuShang-d Oct 27, 2026
1c7911c
fix(desktop): wire inventory panel and integrate discovery
WuShang-d Oct 28, 2026
9341edb
fix(desktop): integrate current master and session observations
WuShang-d Oct 29, 2026
f13d065
docs(desktop): preserve qualification evidence when merging master
WuShang-d Oct 30, 2026
79ccd1c
fix(desktop): integrate current contracts and lockfile baseline
WuShang-d Oct 30, 2026
89e1553
fix(ci): align migration and Code fixtures with current master
WuShang-d Oct 31, 2026
9e7d8d8
fix(desktop): distinguish pending statistics context
WuShang-d Oct 31, 2026
4f0be5e
fix(desktop): qualify bundled statistics through product path
WuShang-d Nov 1, 2026
5bb0b7e
fix(desktop): preserve statistics qualification on receipt contract
WuShang-d Nov 2, 2026
eb30a2d
fix(desktop): integrate deployment fencing and current qualification
WuShang-d Nov 3, 2026
31e9294
ci: rerun validation after SQLite concurrency failure
WuShang-d Nov 3, 2026
daddf65
fix(desktop): integrate statistics with session observation UI
WuShang-d Nov 4, 2026
31e5392
fix(desktop): qualify statistics after ownership contract update
WuShang-d Nov 4, 2026
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ Coding and memory evaluations, performance benchmarks, and Skill regressions liv

## Learn more

- [Desktop preview: exact-Scope inventory and usage](desktop/README.md#current-scope-inventory-and-usage)
- [Get started](https://powercontext.oceanbase.io/en/docs/get-started/quickstart/)
- [Connect Agents](https://powercontext.oceanbase.io/en/docs/integrations/)
- [Manage context](https://powercontext.oceanbase.io/en/docs/workflows/)
Expand Down
1 change: 1 addition & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ make test

## 进一步了解

- [桌面预览:精确范围的存量与用量](desktop/README.zh.md#当前范围的存量与用量)
- [开始使用](https://powercontext.oceanbase.io/zh/docs/get-started/quickstart/)
- [接入 Agent](https://powercontext.oceanbase.io/zh/docs/integrations/)
- [管理上下文](https://powercontext.oceanbase.io/zh/docs/workflows/)
Expand Down
16 changes: 15 additions & 1 deletion desktop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ See [中文说明](README.zh.md), [security boundary](SECURITY.md), and [validat

## Observation

The sidebar provides Overview, Connections, Memories, and Observation, with Settings & diagnostics at the bottom. Overview is the initial page. Observation contains Runtime state, Current-Scope inventory & usage, and This session tabs. Their data views are explicitly unavailable until integrated; opening the page or switching tabs does not run connection checks or local diagnostics. English/Chinese and existing theme settings apply to Observation.
The sidebar provides Overview, Connections, Memories, and Observation, with Settings & diagnostics at the bottom. Overview is the initial page. Observation contains Runtime state, Current-Scope inventory & usage, and This session tabs. Inventory & usage hosts the qualified Statistics view; Runtime state and This session remain unavailable until integrated; opening the page or switching tabs does not run connection checks or local diagnostics. English/Chinese and existing theme settings apply to Observation.


## Shared feedback and current context
Expand Down Expand Up @@ -96,6 +96,20 @@ Search uses FTS in the selected Scope and returns at most 10 matches. This is no

A successful save that returns no memory record is reported as an operation success without inventing a reference. A timeout or interrupted dispatched write is **unknown**, not a safe invitation to retry: inspect the original Server/Scope before deciding whether to submit again. Identical text alone cannot identify that operation. Desktop does not automatically replay writes or keep an offline queue. Switching context hides old results while retaining minimal original-operation metadata for this session. See [validation guide](VALIDATION.md) for tested behavior and qualification gaps.

## Current-Scope inventory and usage

In **Observation → Current-Scope inventory & usage**, explicitly activate a qualified connection, select an exact Scope,
choose **Today**, **Last 7 days** or **Last 30 days**, then press **Load statistics**.
The view displays the Server timestamp, Scope coverage, inventory snapshot,
recorded UTC model usage and recall token estimates. Missing token counts remain
**Unknown**; estimates are not billing savings or quality scores. Every chart has
an equivalent table and keyboard-scrollable region. A statistics error does not
disable independent Memory actions. See the [developer contract](../docs/en/development/desktop-statistics.md)
and [qualification evidence](VALIDATION.md#current-scope-statistics-qualification).

Statistics require the explicit `sqlite-stats-27404931-v1` profile; the separately
qualified `sqlite-atomic-dd62723d-v1` profile covers Memory operations only.

## Native discovery results

Connection checks call the public `get_server_info` operation through the existing native transport. `CheckReport.discovery` reports `supported`, `missing`, `denied`, `unavailable`, `invalid`, or `incompatible`, the observed Server metadata, safe errors, and per-operation `qualified`/`unsupported`/`unverified` results with reasons. Compatible discovery minor versions accept additional optional fields in the response and its nested version/feature objects.
Expand Down
14 changes: 13 additions & 1 deletion desktop/README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## 观察

侧栏提供总览、连接、记忆、观察入口,“设置与诊断”位于侧栏底部。默认进入总览。“观察”包含运行状态、当前 Scope 库存与用量、本次会话三个标签页。数据视图接入前明确显示尚未可用;进入页面或切换标签不会执行连接检查或本机诊断。观察页面沿用现有中英文和主题设置。
侧栏提供总览、连接、记忆、观察入口,“设置与诊断”位于侧栏底部。默认进入总览。“观察”包含运行状态、当前 Scope 库存与用量、本次会话三个标签页。库存与用量已接入统计视图,运行状态和本次会话接入前明确显示尚未可用;进入页面或切换标签不会执行连接检查或本机诊断。观察页面沿用现有中英文和主题设置。


## 统一反馈与当前上下文
Expand Down Expand Up @@ -129,6 +129,18 @@ Desktop 在每次诊断前检查固定路径和摘要,然后只允许 `service

[验证说明](VALIDATION.md)列出可复现的检查方式和待完成的平台、产品验收项。

## 当前范围的存量与用量

统计需要显式选择 `sqlite-stats-27404931-v1` 配置;独立验证的
`sqlite-atomic-dd62723d-v1` 配置仅覆盖 Memory 操作。

在“观察 → 当前 Scope 库存与用量”中显式启用已验证兼容的连接、选择精确范围和“今天/最近 7 天/最近
30 天”后,点击“加载统计”。页面展示 Server 时间、范围覆盖、存量快照、已记录
的 UTC 模型用量和召回 token 估算。缺失 token 数保持“未知”;估算不代表账单
节省或质量提升。每个图表均有等价表格,滚动区域可通过键盘聚焦。统计错误不禁用
独立的 Memory 操作。详见[开发契约](../docs/zh/development/desktop-statistics.md)和
[资格证据](VALIDATION.md#current-scope-statistics-qualification)。

## 远程安装包验收

Windows GitHub Actions 会构建未签名安装包,安装到临时中文路径,并通过匹配且验证 Microsoft 签名的 WebDriver 操作实际安装的 WebView2 页面。测试使用独立 SQLite Server,覆盖启用连接、精确范围选择、中文多行笔记保存、全文查找、精确阅读,以及正文和引用复制后的粘贴核对。Server 使用合成数据,测试结束后清理。
Expand Down
Loading
Loading