feat(agentcli): 运行结果 incomplete 语义与契约文档

RunResult 增加 Outcome/Reason;触顶标记 incomplete:max_steps;
WebSocket finish 区分 incomplete 与 fatal error。补充 ai-agent docs 13 与挂点索引。
This commit is contained in:
Logan.Li committed 2026-10-19 03:53:09 +08:00
1 parent f3a4fb569f
commit 1c98c25c74
9 files changed
+249 -6

No files matched your search

@@ -132,3 +132,25 @@ data/agentcli/
| 记忆脱敏 | 敏感输出不进入记忆 |
| 团队共享 | 高质量经验可转为团队 Runbook |
| 来源追踪 | 每条记忆能追溯到 session/message |
---
## 续聊与 incomplete(2026-09-18 增补)// Logan.Li
平台路径:`resumeSession → convHistory → continueTask(prior)` ——相对 opsxcli 更接近真·续跑。
仍须对齐 [13-契约](13-运行结果状态与可续跑契约.md):tool 轨迹完整;触顶/超时标记 `incomplete` + reason + `resumable`。
| 项 | 现状 | 目标 |
|----|------|------|
| 续聊 prior 注入 | 已有 | 保持;补集成测试与文档示例 |
| MaxIterations=16 硬停 | 有 | `incomplete`/`max_steps`,允许加预算再 continue |
| incomplete 对外语义 | 偏 error/文案 | 结构化状态枚举 |
| ToolTimeout / MaxContext | 120s / 8000 | 写入可观测字段;与契约一致 |
| | opsxcli | aiops |
|--|---------|-------|
| resume | UI 为主,引擎未接通 | 续聊链路已通 |
| tool integrity | 多 tool 有丢 observation 风险 | 按 tool_call_id 整组保留 |
| 默认上下文 | 6000 | 8000 |
| 默认工具超时 | 60s | 120s |