Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

docs(mcp): record session result contract coverage

vastsaa19a960e4d10
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index f40c85713..152acd9cc 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -13426,10 +13426,10 @@ are withdrawn with ADR 0165.
- **Specs linked**: `03-runtime/01-ipc-protocol.md` §13d
- **Acceptance**: C (sessions), Quality
- **Milestone**: M6+
-- **Status**: Unit-covered by `apps/desktop/test/mcp-control.test.mjs`
- (`session/get compaction metadata is projected before bounding`,
- `session/get projection leaves a small session untouched`); the full Electron
- journey remains deferred by the no-local-E2E policy
+- **Status**: The local MCP server contract test in
+ `apps/desktop/test/mcp-control.test.mjs` exercises authenticated JSON-RPC
+ `tools/call` for both oversized and under-limit `pi_session_get` results. The
+ separate full Electron-to-Host journey remains release qualification.
#### E2E-234: Workspace security denylist and ignore layers
diff --git a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
index b4776ed0d..ba762f2e7 100644
--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
@@ -7648,10 +7648,9 @@ eleven-tool-round desktop paths are verified by
- **链接规格**:`03-runtime/01-ipc-protocol.md` §13d
- **验收**:C(会话)、质量
- **里程碑**:M6+
-- **状态**:由 `apps/desktop/test/mcp-control.test.mjs` 单元覆盖
- (`session/get compaction metadata is projected before bounding`、
- `session/get projection leaves a small session untouched`);完整 Electron 旅程仍按
- 无本地 E2E 策略延后
+- **状态**:`apps/desktop/test/mcp-control.test.mjs` 中的本地 MCP Server 合约测试会运行带认证的
+ JSON-RPC `tools/call`,分别验证超限和未超限的 `pi_session_get` 答复。完整 Electron 到 Host
+ 旅程仍属于发布验收。
## 受信任扩展场景(R7 v1)