Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
docs(test-plan): cover empty delegate summaries
vastsa681d083fa458
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.mdindex 85847e370..4b4eb023e 100644--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@ -11820,9 +11820,11 @@ This test plan spec is accepted when:3. Repeat with the crossing landing while a tool result is still pending,then with it landing on a completed turn.4. Repeat with the summary request scripted to fail.- 5. Run the same brief as the session Agent on the same fixture and compare+ 5. Repeat with a summary response containing only thinking blocks or+ whitespace, including a response stopped at the output limit.+ 6. Run the same brief as the session Agent on the same fixture and compareits requests and transcript rows with a run recorded before this change.- 6. Inspect the delegation card, the transcript, the context inspector, and+ 7. Inspect the delegation card, the transcript, the context inspector, andthe parent's own model context after the delegate settles.- **Expected**: The delegate keeps working instead of failing. The requestafter the crossing is below the hard limit and carries a summary plus the@@ -11831,10 +11833,13 @@ This test plan spec is accepted when:completed turn retains none. A failed summary degrades to the original taskbrief plus the most recent message(s), the run still completes, and thereport and lifecycle details say it was degraded rather than presenting a- partial answer as complete. Delegate compaction adds no transcript row, no- host-core checkpoint, no warning toast, and no context-inspector line; the- delegate's own rows stay complete and the parent's model context still holds- only the report. The session Agent behaves exactly as it did before.+ partial answer as complete. A thinking-only or whitespace-only summary also+ follows that degradation path, preserves the recent tool evidence, and never+ installs an empty successful checkpoint. Delegate compaction adds no+ transcript row, no host-core checkpoint, no warning toast, and no+ context-inspector line; the delegate's own rows stay complete and the+ parent's model context still holds only the report. The session Agent+ behaves exactly as it did before.- **Specs linked**: `03-runtime/02-agent-runtime.md` §5.1, §5f,`03-runtime/08-error-codes.md` §3.2, ADR 0299, ADR 0064, ADR 0136- **Acceptance criterion**: C — Conversation & stream; Qualitydiff --git a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.mdindex 00ebbc8e0..1c6b67558 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@@ -4694,16 +4694,18 @@ eleven-tool-round desktop paths are verified by3. 让越界发生在仍有待处理工具结果的时刻,再让它发生在一个已完成的回合上,各重复一次。4. 把摘要请求脚本化为失败,再重复一次。- 5. 用同一套夹具让会话 Agent 跑同样的任务简报,把它的请求与转录行同本次改动+ 5. 用只含思考块或空白文本的摘要响应再重复一次,包括因输出上限而停止的响应。+ 6. 用同一套夹具让会话 Agent 跑同样的任务简报,把它的请求与转录行同本次改动之前记录的一次运行作对比。- 6. 在委托结算后检查委派卡片、转录、上下文检查器,以及父级自己的模型上下文。+ 7. 在委托结算后检查委派卡片、转录、上下文检查器,以及父级自己的模型上下文。- **预期**:委托继续工作,而不是失败。越界之后的那一次请求低于硬边界,携带摘要加上适用的保留尾部;没有任何请求超出窗口被发出。仍有待处理工具结果时按活动回合保留(只留最新的用户消息),已完成的回合不保留。摘要失败会降级为原始任务简报加最近的若干条消息,该次运行依然完成,报告与生命周期 details 会说明它已被- 降级,而不是把一个不完整的答案当作完整答案呈现。委托压缩不添加转录行、不写- host-core 检查点、不弹警告 toast、也不添加上下文检查器条目;委托自己的行保持- 完整,父级的模型上下文里依旧只有那份报告。会话 Agent 的行为与改动之前完全一致。+ 降级,而不是把一个不完整的答案当作完整答案呈现。只含思考块或空白文本的摘要也会+ 走同一降级路径、保留最近的工具证据,并且不会安装空的成功检查点。委托压缩不添加+ 转录行、不写 host-core 检查点、不弹警告 toast、也不添加上下文检查器条目;委托自己的+ 行保持完整,父级的模型上下文里依旧只有那份报告。会话 Agent 的行为与改动之前完全一致。- **链接规格**:`03-runtime/02-agent-runtime.md` §5.1、§5f、`03-runtime/08-error-codes.md` §3.2、ADR 0299、ADR 0064、ADR 0136- **验收**:C — 对话和直播;品质