docs(mdtodo): 收口 AgentRun 事件摘要
This commit is contained in:
@@ -19,14 +19,14 @@
|
||||
|
||||
覆盖 compact/full/raw、repository/deliveryId、错误参数和 trans --help 回归,完成静态验证、非草稿 PR、架构审查与自动交付后原入口验收,完成任务后将详细报告写入[任务报告](./details/cli-output-progressive-disclosure/R1.3_Task_Report.md)。
|
||||
|
||||
## R2 [in_progress]
|
||||
## R2 [completed]
|
||||
|
||||
依据 [UniDesk #1817](https://github.com/pikasTech/unidesk/issues/1817) 收敛 AgentRun event 高频摘要的输出爆炸,只改 UniDesk render-only CLI,不改变 AgentRun/Kafka durable event facts,完成任务后将详细报告写入[任务报告](./details/cli-output-progressive-disclosure/R2_Task_Report.md)。
|
||||
|
||||
### R2.1 [in_progress]
|
||||
### R2.1 [completed]
|
||||
|
||||
默认 human 与 -o json|yaml 只展示有界 tool_call/event summary,保留 seq/type/status/commandId、命令首行、exit/duration 和 output bytes/hash/截断标记,完成任务后将详细报告写入[任务报告](./details/cli-output-progressive-disclosure/R2.1_Task_Report.md)。
|
||||
|
||||
### R2.2
|
||||
### R2.2 [completed]
|
||||
|
||||
显式 --full|--raw 或稳定 event identity 保持完整下钻,并用固定 run_d7f1cbb11ab04a75ad435ee462c2e60d 和大 output 离线夹具证明默认不再触发 dump,完成任务后将详细报告写入[任务报告](./details/cli-output-progressive-disclosure/R2.2_Task_Report.md)。
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# R2.1 任务报告
|
||||
|
||||
## 结果
|
||||
|
||||
[UniDesk PR #1818](https://github.com/pikasTech/unidesk/pull/1818) 已合并,source commit 为 `9a4848fb20ef27a17df00fbf73064256d11693fa`,merge commit 为 `c73b797b25b9`。修改只位于 UniDesk render-only AgentRun events CLI:
|
||||
|
||||
- 默认 human、JSON 和 YAML 最多返回 20 条事件,并用第 21 条只做 `hasMore` lookahead;
|
||||
- `tool_call` 保留 seq、type、status、commandId、稳定 identity、tool、命令首行、exit、duration、output bytes/hash、上游 truncation 与本地 `outputOmitted`;
|
||||
- 默认摘要不再拼接 stdout、stderr、skill 正文或完整 payload;
|
||||
- JSON 使用有界 compact schema,YAML 与 human 使用同一 normalized items;
|
||||
- shared log renderer 在没有 event page disclosure 时继续使用原五列表格,未改变 logs 合同;
|
||||
- 没有修改 AgentRun manager、Kafka、SSE、durable event facts 或全局 stdout 阈值。
|
||||
|
||||
## 验证
|
||||
|
||||
合并后使用固定 run `run_d7f1cbb11ab04a75ad435ee462c2e60d`、`afterSeq=21`、请求 limit 100 复验:默认返回 count 20、fetchedCount 21、hasMore true、nextAfterSeq 41;其中 8 条 tool call,4 条带 `outputOmitted`,最大 summary 109 字符。JSON 6666 B、human 3767 B、YAML 6243 B,三种输出均没有 `/tmp/unidesk-cli-output` dump hint,也没有 `# Git 规范` 等 skill 正文。
|
||||
@@ -0,0 +1,16 @@
|
||||
# R2.2 任务报告
|
||||
|
||||
## 完整下钻
|
||||
|
||||
默认条目提供 `event/<eventId>`;缺 eventId 时回退到 `run/<runId>/seq/<seq>`。disclosure 明确给出按 `afterSeq=item.seq-1 --limit 1 --full` 的下钻方式;`--full` 和 `--raw` 直接返回 AgentRun 原始 event page,不删除源事件、不按正文去重。
|
||||
|
||||
## 测试与交付
|
||||
|
||||
连续 20 条大 tool output 的离线 fixture 同时覆盖:
|
||||
|
||||
- 默认 human、JSON、YAML 均低于 10 KiB;
|
||||
- stdout、stderr、第二命令行和 skill 正文 marker 均不可见;
|
||||
- bytes、SHA-256、truncation、omission 与稳定 identity 可读;
|
||||
- `--full` 和 `--raw` 精确返回 26 条原始事件及完整 output。
|
||||
|
||||
定向目标回归为 13 tests / 214 assertions,扩展回归为 23 tests / 329 assertions,均通过。PR 合并后只观察自动链:PipelineRun `unidesk-host-6kvm5` 12 秒成功,source `c73b797b25b9`,GitOps `61ad750b36ee`,Argo `Synced/Healthy/exact`,runtime `1/1` 且既有 image digest 保持对齐。没有人工 trigger、mirror、PipelineRun、sync、flush、apply 或 Argo refresh。
|
||||
@@ -0,0 +1,5 @@
|
||||
# R2 任务报告
|
||||
|
||||
[UniDesk #1817](https://github.com/pikasTech/unidesk/issues/1817) 已完成:AgentRun events 默认 human/JSON/YAML 改为同一份有界 metadata summary,完整正文只通过显式 full/raw 或稳定 event identity 下钻。固定大输出 fixture、现网固定 run、PR 自动交付和合并后复验均通过。
|
||||
|
||||
本变更严格停留在 UniDesk render-only CLI,没有改变 AgentRun、Kafka、SSE、durable facts、事件顺序、去重语义或全局 dump 阈值。详细证据见 R2.1 与 R2.2 报告。
|
||||
Reference in New Issue
Block a user