Skip to content
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
8e919d8
feat(recall): add bounded atomic memory manifest
Tech-Circle-48 Oct 22, 2026
6c3e4a9
chore(desktop): align generated files with upstream
Tech-Circle-48 Oct 22, 2026
2fa557f
fix: reconcile atomic memory processing changes
Tech-Circle-48 Oct 22, 2026
dbf15ed
Merge branch 'master' into s3
Tech-Circle-48 Oct 22, 2026
85e0303
fix(memory): preserve model-free writes and integration compatibility
Tech-Circle-48 Oct 22, 2026
7ce6f73
fix(memory): reject model-supplied creation metadata
Tech-Circle-48 Oct 22, 2026
3909595
fix(runtime): preserve injected generation components
Tech-Circle-48 Oct 22, 2026
73a645b
fix(migrations): recognize ALTER-added memory descriptions
Tech-Circle-48 Oct 22, 2026
7284c0c
fix(evals): synchronize recall manifest tool catalog
Tech-Circle-48 Oct 22, 2026
36a446a
fix(desktop): regenerate API and IPC contracts
Tech-Circle-48 Oct 22, 2026
1da7621
fix(tags): unwrap atomic memory HTTP tag filters
Tech-Circle-48 Oct 22, 2026
530b99c
fix(recall): bound manifest cursor size
Tech-Circle-48 Oct 23, 2026
ec937dc
Merge branch 'master' into s3
Tech-Circle-48 Oct 23, 2026
6744130
fix(kimi): regenerate MCP tool profiles
Tech-Circle-48 Oct 23, 2026
dd056ea
fix(kimi): include descriptions in model fixtures
Tech-Circle-48 Oct 23, 2026
6c26029
fix(kimi): declare recall manifest capability
Tech-Circle-48 Oct 23, 2026
f30bc4c
fix(dsh): include descriptions in model fixtures
Tech-Circle-48 Oct 23, 2026
30a35db
fix(desktop): synchronize contract fingerprints
Tech-Circle-48 Oct 23, 2026
8f44c20
fix(recall): preserve exact Unicode filters in cursor fingerprints
Tech-Circle-48 Oct 24, 2026
7cb9043
Merge branch 'master' into s3
Tech-Circle-48 Oct 24, 2026
7c7b97c
Merge branch 'master' into s3
Tech-Circle-48 Oct 25, 2026
e5b4fa9
fix4
Tech-Circle-48 Oct 26, 2026
42650f0
fix(atomic-memory): repair processing merge conflict
Tech-Circle-48 Oct 26, 2026
461e5ab
fix(atomic-memory): forward commit window source parameters
Tech-Circle-48 Oct 26, 2026
807b799
fix(atomic-memory): restore authorized batch readback
Tech-Circle-48 Oct 26, 2026
6deac79
merge: sync upstream master into s3
Tech-Circle-48 Oct 26, 2026
777bfdb
fix(ci): sync desktop contract and memory test descriptions
Tech-Circle-48 Oct 26, 2026
46e3a3d
fix: persist memory descriptions and qualify desktop contract
Tech-Circle-48 Oct 26, 2026
037808b
fix(tests): align memory fixtures with description contract
Tech-Circle-48 Oct 26, 2026
2c063a9
test(atomic-memory): verify prepared description invariant
Tech-Circle-48 Oct 26, 2026
dfec729
Merge branch 'master' into s3
Tech-Circle-48 Oct 27, 2026
cc5980f
fix27
Tech-Circle-48 Oct 27, 2026
3b8d3ff
fix(ci): refresh desktop qualification and isolate upgrade test
Tech-Circle-48 Oct 27, 2026
984101b
Merge remote-tracking branch 'upstream/master' into s3
Tech-Circle-48 Oct 27, 2026
b36f761
fix(migrations): validate legacy memory projections before descriptio…
Tech-Circle-48 Oct 27, 2026
99f0440
fix(ci): resolve upstream migration and contract conflicts
Tech-Circle-48 Oct 28, 2026
7354022
Merge branch 'master' into s3
Tech-Circle-48 Oct 28, 2026
23c2827
Merge branch 'master' into s3
Tech-Circle-48 Oct 28, 2026
ce87f44
fix(recall): restore timing and extraction rules after merge
Tech-Circle-48 Oct 28, 2026
1953951
Merge branch 'master' into s3
Tech-Circle-48 Oct 29, 2026
27d499e
fix(evaluation): refresh atomic extraction evidence
Tech-Circle-48 Oct 29, 2026
6518f00
Merge commit '6bdba9bcc3e46aeca71c189bc0ebdc27b8bb72c5^1' into s3
Tech-Circle-48 Oct 30, 2026
37089ed
fix(cindy): rebuild worker with recall manifest operation
Tech-Circle-48 Oct 30, 2026
4028045
fix(runtime): keep explicit memory writes outside generation slots
Tech-Circle-48 Oct 30, 2026
b7c1dd5
merge: sync master and reconcile persistence compatibility review
Tech-Circle-48 Oct 30, 2026
4b044eb
merge: resolve recall manifest conflicts with master
hidb4ai Oct 30, 2026
8835a3a
Merge remote-tracking branch 'refs/remotes/upstream/master' into code…
hidb4ai Oct 30, 2026
751a0d9
merge: reconcile upgrade policy with master
hidb4ai Oct 30, 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
141 changes: 76 additions & 65 deletions desktop/VALIDATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,78 +22,89 @@ cargo test --locked --manifest-path desktop/src-tauri/Cargo.toml

## Compatibility scope

[compatibility.json](src-tauri/src/connections/compatibility.json) preserves the recorded Server sources, normalized OpenAPI contract digests and qualification-wheel digests for the historical profiles below. The current contract has source-specific qualifications `sqlite-atomic-dd62723d-v1` and `sqlite-atomic-4ffdf4e9-v1` below. Ordinary builds require explicitly selecting the record whose tested Server source and wheel match the deployment, then checking the connection before business operations become available. The `dd62723d` record covers the migration-framework sources; the `4ffdf4e9` record covers the earlier release-preparation sources. The `sqlite-atomic-98275dbb-v1`, `sqlite-atomic-1da99747-v1`, `sqlite-atomic-8f10c560-v1`, `sqlite-atomic-d9a78567-v1`, `sqlite-atomic-caf2a35a-v1`, `sqlite-atomic-683e2db0-v1` and `sqlite-atomic-cab054db-v1` records qualify their corresponding Server source deployments and do not match this bundled contract. Historical records are disabled in the selector, and saved unavailable selections remain visible until explicitly replaced. CI builds have their own artifact identities and do not change product qualification.
[compatibility.json](src-tauri/src/connections/compatibility.json) preserves the recorded Server sources, normalized OpenAPI contract digests and qualification-wheel digests for the historical profiles below. The current contract is qualified by `sqlite-atomic-cc5980f0-v1` below; ordinary builds require explicitly selecting it and checking the connection before business operations become available. Historical records qualify their corresponding Server source deployments and do not match this bundled contract. Historical records are disabled in the selector, and saved unavailable selections remain visible until explicitly replaced. CI builds have their own artifact identities and do not change product qualification.

The real Server harness covers SQLite with anonymous loopback, static Bearer, HTTPS with explicit CA/base path, and injected-provider/enforced access. It exercises save/search/exact reads, identity changes, binding revocation, ambiguous writes without replay and Scope pagination. Installed UI checks cover repeated launches preserving the existing editor, late committed-save responses preserving a new Scope draft, explicit connection/Scope selection, clipboard copies, connection isolation, draft cancellation, byte limits and independent Server survival after Desktop exit.

Selecting a compatibility profile does not attest the remote binary identity. Existing `sqlite-1.1.1-v1` / `sqlite-63f918b7-v1` / `sqlite-ab43e3a7-v1` / `sqlite-f1089f4e-v1` / `sqlite-6e237568-v1` / `sqlite-legacy-58f7f4f6-v1` selections require explicitly choosing an available matching profile and rechecking the connection. Desktop reads memories only through Atomic Memory references, so Servers that answer only with Memory entry citations are not qualified. CLI diagnostics separately verify the registered executable path and digest, then validate the diagnostic response schema. The observed version is optional report information; a registration does not require a version.

### Current Server protocol qualification

#### Server 4ffdf4e9 protocol qualification

`sqlite-atomic-4ffdf4e9-v1` qualifies the v1.4.1 preparation sources at
`4ffdf4e97ad43c55d8718a1df581596db2e6097d` for the bundled OpenAPI digest
`c12901b88b8e958c9cd63469298b9a04b9d5e2b0b4564d83b50f7ae95542519a`.
The qualification wheel is `powercontext-1.4.1.dev176+g4ffdf4e97-py3-none-any.whl`, SHA-256
`33079ebc5eb61d03dd4cccc0d104c47b0415beab1502a5b01fbc38f2cc30af2b`, built from that clean commit.
All 552 packaged runtime files in `powercontext/` and `powercontext_service_bootstrap/`
match the source bytes at that commit. The runtime manifest digest is
`ea7f63e5e0a16fa7386c3bdea80ea083dd09fe00447a3639391ed114a9e65ec3`
(sorted `wheel/path sha256` lines, with a final newline).
This is a development wheel from the release preparation branch; it is not evidence of a published v1.4.1 package.

On 2026-10-26, Linux x86_64 with Python 3.14.6 and Rust 1.96.0 ran the existing
`desktop/tests/real_server.py` harness against the extracted wheel and independent SQLite Server processes.
All four modes passed: anonymous loopback, static Bearer, HTTPS with an explicit CA and base path,
and an injected provider with enforced access. The ten recorded operations cover Atomic Memory
save/search/exact revision reads, Scope selection and pagination, identity changes, same-identity
revocation, committed writes with lost responses without replay, and Server survival after client exit.
The report records the source commit above and `desktopWorkingTreeDirty=false`.

The native client compiled the unmodified product `connections`, `credentials`, `error`, and `transport`
modules and the existing `server_probe.rs` in a standalone library. Dependency versions and checksums
match the product Cargo lock. The standalone library excludes the Tauri GUI shell because the local
Linux environment lacks WebKit development libraries. These results qualify SQLite protocol behavior;
Windows/macOS packaging, native vaults, installed UI, signing, IME, and screen-reader behavior require
their own platform checks.

From the recorded checkout, use an empty wheel output directory and a platform with the Desktop native
build dependencies to run the existing harness:

```sh
uv sync --frozen --python 3.14
uv build --wheel --out-dir desktop/.artifacts/server-wheel
cargo build --locked --manifest-path desktop/src-tauri/Cargo.toml --example server_probe
uv run --no-sync python desktop/tests/fixture_qualification.py --server-commit 4ffdf4e97ad43c55d8718a1df581596db2e6097d
uv run --no-sync python desktop/tests/real_server.py
```

#### Server dd62723d protocol qualification

`sqlite-atomic-dd62723d-v1` qualifies Server sources at `dd62723dceabae8b41e293531f0080a819f87c68`
for OpenAPI digest `c12901b88b8e958c9cd63469298b9a04b9d5e2b0b4564d83b50f7ae95542519a`.
The wheel is `powercontext-1.4.1.dev293+gdd62723dc-py3-none-any.whl`,
SHA-256 `030c6a4647f0ee517d15877286c99fef87ed6a5fb29ef6b2d606615b66274441`. All 609 packaged runtime files
match the clean source commit byte for byte; the sorted runtime manifest digest is
`75947c5ecf6ce0053a9632155c2063093732ada18128607aba20eca91229aeeb` (one `wheel/path sha256` line per file, with a final newline).

On 2026-10-26, macOS 15.7.3 ARM64, Python 3.12.13 and Rust 1.95.0 ran the existing
`desktop/tests/real_server.py` harness against this wheel and independent SQLite Servers.
All four modes passed: anonymous loopback, static Bearer, HTTPS with an explicit CA/base path,
and an injected provider with enforced access. The native `server_probe` was rebuilt from
the unmodified product modules and locked dependencies. The ten recorded operations cover
save/search/exact reads, Scope selection and pagination, identity changes and revocation,
committed writes with lost responses without replay, and Server survival after client exit.

This is protocol qualification of the recorded source, contract and wheel. It does not qualify
Windows/Intel execution, native credential persistence, installed GUI workflows, signing or release readiness.
Historical records keep their original identities. Reproduce with the existing wheel build,
native `server_probe` build, `fixture_qualification.py --server-commit dd62723dceabae8b41e293531f0080a819f87c68`,
and `real_server.py` commands from this clean commit.

本记录对应上述精确源码、契约和 wheel;四种真实 SQLite/HTTP 连接模式均已通过。
它不替代 Windows/Intel、安装后 GUI、原生凭据库或正式发布验收。
#### Server cc5980f0 protocol qualification

`sqlite-atomic-cc5980f0-v1` qualifies Server sources at
`cc5980f01610f32b2f86b4d4068dd72a0408a500` for OpenAPI digest
`fd8f5dcf8dfb1a02c186623c08c3c62217ecdbc21a80cd5d9c329f3497b85f7d`.
The wheel `powercontext-1.4.1.dev211+gcc5980f0-py3-none-any.whl` has SHA-256
`443f5ec8c73148045caadbba09cf6f08cc6e17329fcf9764378ebcc2cb03ba7c`.
It was built from `git archive` of that commit with
`SETUPTOOLS_SCM_PRETEND_VERSION=1.4.1.dev211+gcc5980f0 uv build --wheel`.
All 614 packaged runtime files across `powercontext/` and `powercontext_service_bootstrap/`
match the archived sources byte for byte. Their manifest digest (sorted `wheel/path sha256`
lines with a final newline) is
`ea0a886acb5092548822b43b2dcee7f3e414a5ffba7d6bdc0b193ac311e157c1`.
The OpenAPI contract, project configuration and lock also match that commit.

On 2026-10-27, macOS 26.6.2 ARM64, Python 3.13.12 and Rust 1.99.1 ran
`desktop/tests/real_server.py` with the freshly built native `server_probe` against
independent SQLite Server processes loaded from that wheel. Anonymous loopback,
static Bearer, HTTPS with an explicit CA/base path, and injected-provider/enforced
access all passed. The ten operations recorded in the profile cover liveness,
readiness, access principal, capabilities, Scope listing/detail/default, Atomic Memory
save/search and exact Artifact revision reads. The same native connection manager also
passed Scope pagination, identity changes, same-identity revocation, committed writes
with lost responses without replay, and independent Server survival after client exit.

The client Rust sources, Cargo manifest/lock and qualification harnesses match the
recorded commit. The candidate fixture profile supplied the exact wheel/contract identity
to the probe. Evidence is
retained locally in ignored `desktop/.artifacts/real-server.json`,
`desktop/.artifacts/qualification-wheel-identity.json`,
`desktop/.artifacts/qualification-cc5980f0/` and `desktop/.artifacts/server-wheel/`.

`cargo test --locked --manifest-path desktop/src-tauri/Cargo.toml` passed all 62 tests,
including `bundled_qualification_allows_explicit_scope_browsing`, with this product record.

This qualifies the listed SQLite protocol operations on that host. Windows execution,
installed UI, native credential persistence, signing and packaging require their own
acceptance checks. Historical profiles retain their original identities and evidence.

2026-10-27,使用上述提交的归档源码构建独立 wheel,并逐文件核对 614 个运行时文件及
OpenAPI、项目配置和锁文件。原生探针通过匿名回环、Bearer、显式 CA/路径前缀 HTTPS
及强制访问控制四种真实 SQLite 协议验收,覆盖所列十项操作、Scope 分页、身份变更、
同身份撤权、响应丢失后不重放已提交写入及客户端退出后 Server 独立存活。该记录仅覆盖
上述主机的协议行为,不包含 Windows、安装界面、原生凭据持久化、签名或打包验收。
包含随包兼容资格用例在内的全部 62 项 Rust 测试通过。

#### Server 777bfdb7 protocol qualification

`sqlite-atomic-777bfdb7-v1` qualifies Server sources at
`777bfdb7ef45e1380a8a9ea6d6639149924b639f` for OpenAPI digest
`f5e455eabb8d0e0353d963141802df5b14a4c1fdbb1a4a64ed1cfab6235730f1`.
The wheel `powercontext-1.4.1.dev202+g777bfdb7-py3-none-any.whl` has SHA-256
`9b0543d1c907774ea0f35d4b804b87c3f927925eb65661ebc6e7a1a184412199`.
It was built from `git archive` of that commit with the distribution version supplied explicitly.
All 553 packaged runtime files match the archived sources byte for byte. Their manifest digest
(sorted `wheel/path sha256` lines with a final newline) is
`55b6e3fcbb95f0d29d1ccecefd4d757498e305f23df1421b7f529bacedb0c07f`.

On 2026-10-26, macOS 26.6.2 ARM64, Python 3.13.12 and Rust 1.99.1 ran
`desktop/tests/real_server.py` with the native `server_probe` against independent SQLite
Server processes loaded from that wheel. Anonymous loopback, static Bearer, HTTPS with an
explicit CA/base path, and injected-provider/enforced access all passed. The ten listed
operations cover save/search/exact revision reads, Scope pagination, identity changes,
same-identity revocation, committed writes with lost responses without replay, and independent
Server survival after client exit. The client was built from commit `777bfdb7`; the working
tree also contained a persistence projection change, which was excluded from the archived
Server wheel and does not change the native client. Evidence is retained locally in ignored
`desktop/.artifacts/real-server.json` and `desktop/.artifacts/server-wheel/`.
This qualifies the listed SQLite protocol operations, not manifest descriptions, Windows
execution, native vaults, installed UI, signing or packaging. Historical records keep their
original source, contract and wheel identities.

2026-10-26,使用上述提交的归档源码构建独立 wheel,并逐文件核对 553 个运行时文件。
原生探针通过匿名回环、Bearer、显式 CA/路径前缀 HTTPS 及强制访问控制四种真实 SQLite
协议验收。该记录仅覆盖所列十项操作,不包含 manifest 摘要、Windows、安装包或原生凭据库验收。

#### Server 98275dbb protocol qualification

Expand Down
32 changes: 16 additions & 16 deletions desktop/src-tauri/src/connections/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,29 +210,29 @@
"evidence": "desktop/VALIDATION.md#server-98275dbb-protocol-qualification"
},
{
"id": "sqlite-atomic-4ffdf4e9-v1",
"serverCommit": "4ffdf4e97ad43c55d8718a1df581596db2e6097d",
"contractSha256": "c12901b88b8e958c9cd63469298b9a04b9d5e2b0b4564d83b50f7ae95542519a",
"artifactSha256": "33079ebc5eb61d03dd4cccc0d104c47b0415beab1502a5b01fbc38f2cc30af2b",
"id": "sqlite-atomic-777bfdb7-v1",
"serverCommit": "777bfdb7ef45e1380a8a9ea6d6639149924b639f",
"contractSha256": "f5e455eabb8d0e0353d963141802df5b14a4c1fdbb1a4a64ed1cfab6235730f1",
"artifactSha256": "9b0543d1c907774ea0f35d4b804b87c3f927925eb65661ebc6e7a1a184412199",
"operations": [
"get_access_principal",
"get_artifact_revision",
"get_capabilities",
"get_default_scope",
"get_liveness",
"get_readiness",
"get_scope",
"get_access_principal",
"get_capabilities",
"list_scopes",
"get_scope",
"get_default_scope",
"remember_memory",
"search_memory"
"search_memory",
"get_artifact_revision"
],
"evidence": "desktop/VALIDATION.md#server-4ffdf4e9-protocol-qualification"
"evidence": "desktop/VALIDATION.md#server-777bfdb7-protocol-qualification"
},
{
"id": "sqlite-atomic-dd62723d-v1",
"serverCommit": "dd62723dceabae8b41e293531f0080a819f87c68",
"contractSha256": "c12901b88b8e958c9cd63469298b9a04b9d5e2b0b4564d83b50f7ae95542519a",
"artifactSha256": "030c6a4647f0ee517d15877286c99fef87ed6a5fb29ef6b2d606615b66274441",
"id": "sqlite-atomic-cc5980f0-v1",
"serverCommit": "cc5980f01610f32b2f86b4d4068dd72a0408a500",
"contractSha256": "fd8f5dcf8dfb1a02c186623c08c3c62217ecdbc21a80cd5d9c329f3497b85f7d",
"artifactSha256": "443f5ec8c73148045caadbba09cf6f08cc6e17329fcf9764378ebcc2cb03ba7c",
"operations": [
"get_access_principal",
"get_artifact_revision",
Expand All @@ -245,6 +245,6 @@
"remember_memory",
"search_memory"
],
"evidence": "desktop/VALIDATION.md#server-dd62723d-protocol-qualification"
"evidence": "desktop/VALIDATION.md#server-cc5980f0-protocol-qualification"
}
]
1 change: 1 addition & 0 deletions desktop/src-tauri/src/transport/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ impl ServerApi {
text: text.to_owned(),
reason: None,
expected_revision: None,
description: None,
};
let body = serde_json::to_value(request)
.map_err(|_| ApiFailure::before(SafeError::InvalidInput))?;
Expand Down
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": "c12901b88b8e958c9cd63469298b9a04b9d5e2b0b4564d83b50f7ae95542519a",
"contractSha256": "fd8f5dcf8dfb1a02c186623c08c3c62217ecdbc21a80cd5d9c329f3497b85f7d",
"operations": {
"get_liveness": {
"method": "GET",
Expand Down
11 changes: 11 additions & 0 deletions desktop/src-tauri/src/transport/wire.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,16 @@ pub struct RememberMemoryRequest {
skip_serializing_if = "Option::is_none"
)]
pub expected_revision: Option<Option<i64>>,
/// Optional supplied single-line summary. When omitted, the Server stores a whitespace-collapsed text prefix of at most 200 Unicode characters, including a trailing ellipsis when truncated. Explicit writes do not invoke a generation model.
#[ts(optional)]
#[ts(type = "string | null")]
#[serde(
rename = "description",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub description: Option<Option<String>>,
}

impl RememberMemoryRequest {
Expand All @@ -1206,6 +1216,7 @@ impl RememberMemoryRequest {
text,
reason: None,
expected_revision: None,
description: None,
}
}
}
Expand Down
Loading
Loading