docs(governance): record adr100 slo emitter rollout

This commit is contained in:
Your Name
2026-05-14 19:22:39 +08:00
parent 80a056539c
commit cdb8bf6802
3 changed files with 25 additions and 8 deletions

View File

@@ -2127,10 +2127,11 @@ Phase 6 完成後
**T18 ADR-100 SLO emitter 接入2026-05-14 台北)**
- 觸發:治理告警 `governance_slo_data_gap` 反覆推 Telegram但 production 查核顯示 API Pod 已有 `PROMETHEUS_MULTIPROC_DIR``emptyDir`,真正缺口是 `/metrics` 未輸出 ADR-100 recording rules 所需底層 series導致 `sli:*` 全部 empty result。
- 修正:新增 DB-derived `/metrics` emitter`automation_operation_log``incident_evidence``knowledge_entries``approval_records` 暴露 `automation_operation_log_total``post_execution_verification_total``knowledge_entries_total``approval_records_high_confidence_total``approval_records_high_confidence_success_total`;不新增 schema、不改 scrape target。
- 訊息治理:`GovernanceAgent` no-data hint 改為 emitter / recording rule / multiprocess mount 三段式,避免 Operator 被誤導成只有 `PROMETHEUS_MULTIPROC_DIR` 未設。
- 驗證:`py_compile` pass`pytest tests/test_adr100_slo_metrics_service.py tests/test_governance_agent.py tests/test_ai_governance_endpoints.py -q` 47 passedruff F/E9 passdiff check passproduction SQL dry-run 通過。
- 目前進度更新Alertmanager 低風險自動修復主線約 96%;完整 AI 自動化管理產品化約 78%。推版後需等 Prometheus scrape / recording rule evaluation再確認 `sli:*` 不再全空
- 修正:新增 DB-derived `/metrics` emitter`auto_repair_executions`、remediation/PlayBook 範圍的 `automation_operation_log``incident_evidence``knowledge_entries``approval_records` 暴露 `automation_operation_log_total``post_execution_verification_total``knowledge_entries_total``approval_records_high_confidence_total``approval_records_high_confidence_success_total`;不新增 schema、不改 scrape target。背景治理工作asset scanner / rule updater 等)不進 AI 自動修復 SLO 分母。
- 訊息治理:`GovernanceAgent` no-data hint 改為 emitter / recording rule / multiprocess mount 三段式Prometheus `NaN` / `Inf` 改標 `skipped`,避免 Operator 被誤導成只有 `PROMETHEUS_MULTIPROC_DIR` 未設或把無分母資料假綠
- 驗證:`py_compile` pass`pytest tests/test_adr100_slo_metrics_service.py tests/test_governance_agent.py tests/test_ai_governance_endpoints.py -q` 48 passedruff F/E9 passdiff check passproduction SQL dry-run 通過。
- Production deploy`13cf02b7``368386ab``b92c9e28` 已推 Gitea mainCode Review runs `2155` / `2157` / `2159` successCD runs `2154` / `2156` / `2158` success最新 deploy marker `80a05653 chore(cd): deploy b92c9e2 [skip ci]`API / Worker / Web image 均為 `b92c9e285f880c50893adeac9f55ab7b5170e303`health healthy`/metrics` 已輸出 scoped ADR-100 seriesPrometheus 底層 metrics 與 `sli:*` 不再 empty result
- 目前進度更新Alertmanager 低風險自動修復主線約 96%;完整 AI 自動化管理產品化約 79%。T18 已解除 SLO data gap下一段處理真實 SLO 紅燈decision accuracy / KM growth與前端治理階段呈現。
---