fix: validate Kafka refresh delivery in web probe

This commit is contained in:
Codex
2026-07-11 06:59:43 +02:00
parent 5afde90f00
commit 0fa47e9295
10 changed files with 360 additions and 29 deletions
@@ -0,0 +1,7 @@
# R1.1 任务报告
- 来源:https://github.com/pikasTech/unidesk/issues/1751
- 已冻结 YAML-owned 可组合合同:`directPublish``liveKafkaSse``kafkaRefreshReplay` 独立校验。
- refresh profile 要求 `workbench.connected` 披露 `kafka-retention-then-live`,并验证 barrier、retention 计数和 live handoff。
- 验收禁止 HTTP history、cursor、projector、snapshot、polling、gap-fill 和 fallback。
- 正式用户输入必须以稳定 `userMessageId` 一对一贯穿 AgentRun、HWLAB Kafka 和 product SSE。
@@ -0,0 +1,6 @@
# R1.2 任务报告
- owning YAML 新增 `expectedProductSse`connected/reconnect 期望不再由 runner 硬编码 live-only。
- typed `validateRealtimeFanout` 同时支持 YAML 显式声明的 live-only 与 refresh+live 合同。
- reconnect 时验证 retained trace 原 envelope 重放,随后第二轮增量继续从 live fanout 到达。
- report 输出 bounded connected、handoff、正式 user event、request ledger 和同一 Workbench UI reducer 证据。
@@ -0,0 +1,7 @@
# R1.3 任务报告
- `bun test` 定向执行 17 个测试,全部通过。
- 覆盖 YAML refresh/live connected 合同、legacy live-only profile、handoff 计数一致性和正式 user event 三段 lineage。
- 覆盖 semantic origin 继承、URL 选择歧义拒绝和既有 collect 行为。
- `bun scripts/cli.ts check --syntax-only` 通过 11 项检查。
- `git diff --check` 通过。
@@ -0,0 +1,22 @@
# Web Probe Kafka 刷新重放验收
来源:https://github.com/pikasTech/unidesk/issues/1751
边界:只增强 YAML-first typed Web Probe;不部署、不合并,不引入临时脚本、URL/IP、HTTP history、projector 或 fallback。
## R1 [in_progress]
完成 [UniDesk #1751](https://github.com/pikasTech/unidesk/issues/1751) 的 YAML-first Kafka refresh→live typed Web Probe 验收,完成任务后将详细报告写入[任务报告](./details/web-probe-kafka-refresh-delivery/R1_Task_Report.md)。
### R1.1 [completed]
冻结 [#1751](https://github.com/pikasTech/unidesk/issues/1751) 可组合 connected、handoff、user event 与同源 reducer 合同,完成任务后将详细报告写入[任务报告](./details/web-probe-kafka-refresh-delivery/R1.1_Task_Report.md)。
### R1.2 [completed]
实现 YAML profile 与 typed realtime validator,不保留 hardcoded live-only,完成任务后将详细报告写入[任务报告](./details/web-probe-kafka-refresh-delivery/R1.2_Task_Report.md)。
### R1.3 [completed]
补齐 connected、retention→live、正式 user event、同 EventSource/envelope 的定向测试,完成任务后将详细报告写入[任务报告](./details/web-probe-kafka-refresh-delivery/R1.3_Task_Report.md)。
### R1.4 [in_progress]
完成帮助/skill、报告、提交、非 draft PR 与 preflight,保持不部署不合并,完成任务后将详细报告写入[任务报告](./details/web-probe-kafka-refresh-delivery/R1.4_Task_Report.md)。