diff --git a/docs/LOGBOOK.md b/docs/LOGBOOK.md index 428db8d9..16197c85 100644 --- a/docs/LOGBOOK.md +++ b/docs/LOGBOOK.md @@ -1,3 +1,75 @@ +## 2026-05-20|T110 Alerts 顯示來源卷宗覆蓋率與 Sentry / SigNoz provider 視窗 + +**觸發**: + +- T109 已讓每張 incident card 顯示 Source refs / Sentry / SigNoz 關聯證據,但 production 多數 card 顯示 `Sentry 0 / SigNoz 0`。 +- 統帥需要分清楚:是 Sentry / SigNoz ingestion 根本沒進來,還是 provider events 有進來、只是目前 incident correlation 沒掛上。 + +**修正**: + +- `/zh-TW/alerts` 新增 `來源卷宗覆蓋率` 區塊,讀 production `GET /api/v1/platform/events/dossier/coverage`: + - overall latest 100 source events 覆蓋率。 + - top provider breakdown。 + - dedicated `sentry window` / `signoz window`,避免被最新 100 筆 Alertmanager 淹沒。 +- zh-TW / en i18n 補齊 source coverage 文案。 + +**Production verification**: + +```text +GET /api/v1/platform/events/dossier/coverage?project_id=awoooi&limit=100 + -> 200 + -> source_count=100, with_source_refs_total=100, missing_source_refs_total=0 + -> top provider alertmanager total=100, Sentry refs=0, SigNoz refs=0 + +GET /api/v1/platform/events/dossier/coverage?project_id=awoooi&limit=100&provider=sentry + -> 200 + -> source_count=2, with_source_refs_total=2, missing=0, sentry_ref_total=4 + +GET /api/v1/platform/events/dossier/coverage?project_id=awoooi&limit=100&provider=signoz + -> 200 + -> source_count=2, with_source_refs_total=2, missing=0, signoz_ref_total=4 + +Production Playwright https://awoooi.wooo.work/zh-TW/alerts + -> visible: 來源卷宗覆蓋率 + -> visible: source refs 覆蓋率 100% / total 100 + -> visible: alertmanager: total 100, missing 0, Sentry 0, SigNoz 0 + -> visible: sentry window: total 2, with refs 2, missing 0 + -> visible: signoz window: total 2, with refs 2, missing 0 + -> screenshot /tmp/awoooi-t110-source-coverage-production.png +``` + +**Gitea deploy / smoke**: + +```text +Code commit: + 49ad1cfb feat(web): show source dossier coverage on alerts + +Deploy marker: + eea9c82f chore(cd): deploy 49ad1cf [skip ci] + +Gitea Actions: + Code Review -> success in 11s + CD -> success in 9m10s +``` + +**邊界 / 下一步**: + +- T110 解決「前端看不到 provider 是否有 ingestion」問題;目前證據顯示 Sentry / SigNoz provider events 存在且 source refs 完整。 +- 仍未解決「目前每張 Alertmanager incident 是否自動關聯對應 Sentry / SigNoz / log trace」;這是下一個 correlation coverage / matching rule 工作,不是 T110 前端漏顯。 + +**目前整體進度**: + +- 首頁資料可信度:約 99.9%。 +- Alerts 完整清單可追蹤性:約 99.98%。 +- 前端 AI 自動化管理介面同步:約 99.98%。 +- AwoooP 告警可觀測鏈:約 99.95%。 +- MCP / 自建 MCP 使用證據可見性:約 99.6%。 +- Execution / Ansible / PlayBook 證據可見性:約 99.3%。 +- Source refs / Sentry / SigNoz 可見性:約 99.4%。 +- Source refs latest source-event 覆蓋率:約 100%;incident-level Sentry / SigNoz correlation 仍需補強。 +- 低風險自動修復閉環:約 95.3%。 +- 完整 AI 自動化管理產品化:約 99.45%。 + ## 2026-05-20|T109 Alerts 顯示 Source refs / Sentry / SigNoz 關聯證據 **觸發**: diff --git a/docs/superpowers/specs/2026-04-15-MASTER-ai-autonomous-flywheel-v2.md b/docs/superpowers/specs/2026-04-15-MASTER-ai-autonomous-flywheel-v2.md index 977b74c2..e16dc5b3 100644 --- a/docs/superpowers/specs/2026-04-15-MASTER-ai-autonomous-flywheel-v2.md +++ b/docs/superpowers/specs/2026-04-15-MASTER-ai-autonomous-flywheel-v2.md @@ -2458,6 +2458,14 @@ Phase 6 完成後 - 邊界:T109 是 source refs visibility,不改 Sentry/SigNoz ingestion、不補寫舊事件、不改 Alertmanager routing。若前端顯示 Sentry 0 / SigNoz 0 或 Inbound 0,代表 ingestion / correlation 技術債浮出水面,不是前端漏顯。 - 目前進度更新:首頁資料可信度約 99.9%;Alerts 完整清單可追蹤性約 99.97%;前端 AI 自動化管理介面同步約 99.98%;AwoooP 告警可觀測鏈約 99.94%;MCP / 自建 MCP 使用證據可見性約 99.6%;Execution / Ansible / PlayBook 證據可見性約 99.3%;Source refs / Sentry / SigNoz 關聯可見性約 99.0%;Source refs 實際覆蓋率約 78%;低風險自動修復閉環約 95.3%;完整 AI 自動化管理產品化約 99.4%。 +**T110 Alerts 顯示來源卷宗覆蓋率與 Sentry / SigNoz provider 視窗(2026-05-20 台北)**: +- 觸發:T109 讓每張 incident card 顯示 Source refs / Sentry / SigNoz 關聯,但 production 多數 Alertmanager incident 仍顯示 `Sentry 0 / SigNoz 0`;Operator 無法分辨這是 provider ingestion 缺失,還是 incident correlation 未掛上。 +- 修正:`/alerts` 新增 `來源卷宗覆蓋率` read-only 區塊,讀 `GET /api/v1/platform/events/dossier/coverage` overall latest 100 source events、top provider breakdown,並額外查 dedicated `provider=sentry` / `provider=signoz` 視窗,避免被最新 Alertmanager 事件淹沒。zh-TW / en i18n 補齊 source coverage 文案。 +- 驗證:i18n JSON ok;web typecheck pass;targeted lint exit 0;`git diff --check` pass;`NEXT_PUBLIC_API_URL=https://awoooi.wooo.work pnpm --dir apps/web run build` compiled successfully,90/90 static pages。Local Playwright 確認 `來源卷宗覆蓋率`、`source refs 覆蓋率 100% / total 100`、`sentry window: total 2, with refs 2, missing 0`、`signoz window: total 2, with refs 2, missing 0`。 +- Production / CI:`49ad1cfb feat(web): show source dossier coverage on alerts` 已推 Gitea main;deploy marker `eea9c82f chore(cd): deploy 49ad1cf [skip ci]`。Actions:Code Review success 11s、CD success 9m10s。Production API overall 回 `source_count=100/with_source_refs_total=100/missing_source_refs_total=0`、top provider alertmanager total=100;`provider=sentry` 回 `source_count=2/with_source_refs_total=2/sentry_ref_total=4`;`provider=signoz` 回 `source_count=2/with_source_refs_total=2/signoz_ref_total=4`。Production Playwright 確認 Alerts 頁可見 coverage card 與三組 provider 視窗,screenshot `/tmp/awoooi-t110-source-coverage-production.png`。 +- 邊界:T110 解決「前端看不到 provider 是否有 ingestion」問題;目前證據顯示 Sentry / SigNoz provider events 存在且 source refs 完整。下一步是 incident-level correlation coverage / matching rule,讓 Alertmanager incident 自動掛上對應 Sentry / SigNoz / log trace,不是再修前端顯示。 +- 目前進度更新:首頁資料可信度約 99.9%;Alerts 完整清單可追蹤性約 99.98%;前端 AI 自動化管理介面同步約 99.98%;AwoooP 告警可觀測鏈約 99.95%;MCP / 自建 MCP 使用證據可見性約 99.6%;Execution / Ansible / PlayBook 證據可見性約 99.3%;Source refs / Sentry / SigNoz 可見性約 99.4%;Source refs latest source-event 覆蓋率約 100%,incident-level Sentry / SigNoz correlation 仍需補強;低風險自動修復閉環約 95.3%;完整 AI 自動化管理產品化約 99.45%。 + --- ### 2026-04-20 晚 (台北) — C1-C4 全流程串接 — Playbook 鏈路保護(commit de2d34d)