Close P22 maintenance retention rollup
This commit is contained in:
@@ -411,6 +411,7 @@ candidate -> decision alert -> dispatcher -> 外部消息 -> delivery record
|
||||
- 2026-05-12 P19 已完成 `multi-channel alert routing` 本地闭环:channel router 现在输出 workbench/webhook/WeCom/Email capability 与 health summary,WeCom/Email 在凭据缺失或 adapter 未实现时会以 disabled adapter 形式返回 `credential_missing` / `adapter_not_implemented`,dispatcher、delivery summary、runtime、脚本和 workbench 均可见 per-channel 状态。
|
||||
- 2026-05-12 P20 已完成 `operator digest / review queue` 本地闭环:operator digest 会把高价值告警、被抑制 delivery、失败/重试 delivery、视觉 mismatch 与待反馈项聚合成 bounded review queue,并通过脚本、API 和 workbench `Alert Quality` 面板暴露。
|
||||
- 2026-05-12 P21 已完成 `runtime incident journal` 本地闭环:runtime/watchdog/blocker/noisy incident 现在可聚合写入 `runtime_incidents`,每条 incident 带 severity、source、reason、first/last seen 与 recommended action,并通过脚本、API、runtime status 和 workbench runtime panel 暴露。
|
||||
- 2026-05-12 P22 已完成 `maintenance / retention rollup` 本地闭环:maintenance summary 以只读方式聚合 visual capture retention dry-run、delivery/feedback、runtime watchdog 与 incident journal,输出 P23 harness 可复用的 checks/blockers/warnings/p23_assertions,不执行未纳入 retention policy 的业务数据删除。
|
||||
|
||||
### 验收
|
||||
- 非重大错误不打断主循环
|
||||
|
||||
@@ -119,6 +119,11 @@
|
||||
|
||||
2026-05-12 P21 已落地:`runtime_incidents` 使用 `incident_key` 做去重聚合,并保存 severity、source、reason、subject、first/last seen、occurrence_count、recommended_action 与 payload。`GET /trading/runtime-incidents`、`scripts/run_runtime_incident_journal.py`、`runtime_status.incident_summary` 与 workbench runtime panel 均可查看当前 incident summary;该层只做可观测性与恢复建议,不改变任何交易权限或 operator confirmation protocol。
|
||||
|
||||
#### `src/services/maintenance/maintenance_summary_service.py`
|
||||
职责:只读汇总 storage / delivery / feedback / runtime 维护健康状态,为无人值守 harness 提供断言输入。
|
||||
|
||||
2026-05-12 P22 已落地:maintenance summary 会 dry-run visual capture retention,读取 alert quality summary、runtime watchdog 与 runtime incident journal,输出 `checks`、`blockers`、`warnings`、`maintenance_actions` 与 `p23_assertions`。该 summary 不执行删除;自动清理动作只作为可用 action 暴露,未纳入 retention policy 的业务数据不会被删除。
|
||||
|
||||
#### `src/services/alerts/delivery_policy_service.py`
|
||||
职责:
|
||||
|
||||
|
||||
@@ -267,6 +267,10 @@
|
||||
- 维护摘要能作为 P23 harness 的断言输入。
|
||||
- 不自动删除未纳入 retention policy 的业务数据。
|
||||
|
||||
- 2026-05-12 P22 已完成 `Maintenance And Retention Rollup` 本地闭环:新增 `MaintenanceSummaryService`,聚合 visual capture retention dry-run、alert delivery health、feedback sample health、runtime watchdog 与 incident journal summary,并输出 `checks`、`blockers`、`warnings`、`maintenance_actions` 与 `p23_assertions`。
|
||||
- 2026-05-12 P22 已新增 `scripts/run_maintenance_summary.py` 与 `GET /trading/maintenance-summary`,并将 maintenance rollup 接入 workbench runtime panel。
|
||||
- 2026-05-12 P22 本地闭环已验证:focused P22 tests 通过,`tests/unit` 全量 696 个测试通过,script static checks 70 个脚本通过,`node --check src/web/app.js` 通过;脚本/API smoke 返回 warning-only `feedback.sample_health`,blockers 为空,且 `p23_assertions.no_unscoped_deletion=true` / `retention_policy_dry_run_only=true`。
|
||||
|
||||
---
|
||||
|
||||
## 13. P23 End-To-End Unattended Harness
|
||||
|
||||
Reference in New Issue
Block a user