feat(api): expose reboot SLO readback rollups
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 22s
CD Pipeline / build-and-deploy (push) Successful in 4m10s
CD Pipeline / post-deploy-checks (push) Successful in 1m1s

This commit is contained in:
Your Name
2026-06-29 21:46:34 +08:00
parent 7d9df2bf30
commit f426522b59
3 changed files with 131 additions and 37 deletions

View File

@@ -1,3 +1,16 @@
## 2026-06-29 — 21:43 P0-006 reboot SLO API readback promoted
**照優先順序完成的實作**
- P0-005 credential escrow evidence refs 已由 production API / Delivery Workbench 讀回 closed最新 Gitea CD #3968 / #3969 皆 success。
- P0-006 仍是 active P0唯一 blocker 維持 `host_boot_observation_older_than_target_window`;未從此 lane 重啟主機或 restart service。
- 將 P0-006 `/api/v1/agents/reboot-auto-recovery-slo-scorecard` 的主線判斷值提升成 top-level readback`active_blocker_count``readiness_percent`、service/data/backup green、observed/stale hosts、verify-only metric 與 StockPlatform freshness / ingestion 狀態。
**驗證**
- Focused pytestP0-006 scorecard / Delivery Workbench / CD profile `24 passed`
- `ruff check``py_compile``git diff --check`、Gitea runner pressure guard、Gitea secret env guard通過。
**邊界**:未操作 host / Docker / K8s / DB / firewall / Wazuh runtime未觸發 workflow_dispatch未使用 GitHub / `gh` / GitHub API未讀 secret / token / raw sessions / SQLite / `.env`
## 2026-06-29 — 21:25 CD profile fix for log writeback readbacks
**照優先順序處理**