docs(webdev): clarify conditional realtime events

This commit is contained in:
Codex
2026-07-11 20:59:37 +02:00
parent 98e4cde51f
commit 28e2cff32c
+3
View File
@@ -42,6 +42,9 @@ description: UniDesk Web 开发与浏览器验证技能。用户处理 UniDesk/H
- Workbench Kafka 实时 fanout 的重复验收: - Workbench Kafka 实时 fanout 的重复验收:
- 使用 `observe command --type validateRealtimeFanout --profile <yaml-profile> --provider <provider> --text <first> --second-text <second>` - 使用 `observe command --type validateRealtimeFanout --profile <yaml-profile> --provider <provider> --text <first> --second-text <second>`
- connected、refresh/reconnect 和 capability 期望来自 owning YAML,可独立组合,禁止在命令中硬编码 live-only 或 refresh mode - connected、refresh/reconnect 和 capability 期望来自 owning YAML,可独立组合,禁止在命令中硬编码 live-only 或 refresh mode
- 每轮只把 `user``assistant``terminal` 对应的 AgentRun/HWLAB 事件族作为必需核心事件;
- `tool_call`/`command_output` 与 HWLAB `tool`/`status` 是条件事件对,仅在实际出现时校验数量和 lineage;
- 直接答复不得为了通过探针而合成工具事件,超时证据必须披露已经观测和仍然缺失的事件族;
- refresh 启用时必须证明 retention 到 live handoff、正式 `user` event、`hwlab.event.v1` 同 envelope,以及主页面单一 EventSource 和同一 UI reducer 终态; - refresh 启用时必须证明 retention 到 live handoff、正式 `user` event、`hwlab.event.v1` 同 envelope,以及主页面单一 EventSource 和同一 UI reducer 终态;
- observer 后台维持两个独立 product subscriber 和三条 debug SSE - observer 后台维持两个独立 product subscriber 和三条 debug SSE
- 命令提交后按 `status <observer> --command-id <command>` 轮询,不得回退为长连接 `web-probe script` - 命令提交后按 `status <observer> --command-id <command>` 轮询,不得回退为长连接 `web-probe script`