diff --git a/docs/LOGBOOK.md b/docs/LOGBOOK.md index 2d298a538..37e14ea01 100644 --- a/docs/LOGBOOK.md +++ b/docs/LOGBOOK.md @@ -1,3 +1,67 @@ +## 2026-05-21|T127 Work Items source flow summary + +**觸發**: + +- T126 已把 source flow 拉到 Runs list,但 operator 從 Telegram / recurrence 工作項進 `/awooop/work-items` 時,仍只能看到 source refs 與 source review/apply count。 +- Work Items 卡片需要直接說明「Provider 已接收、來源證據已到、待審核、審核已記錄、已套用」哪一段,避免 recurrence / 重複告警看不出 AI 流程跑到哪。 + +**修正**: + +- `apps/web/src/app/[locale]/awooop/work-items/page.tsx` 在重複告警工作項卡片新增 `來源流程 / Source flow` 摘要。 +- 狀態分類完全取自既有 recurrence API 欄位,不新增 API、不新增 mock data: + - `已套用 / Applied`:`source_correlation_apply` 或 action result 已有 applied / partial / provider event。 + - `審核已記錄 / Review recorded`:source review decision 或 review record status 已寫入。 + - `待審核配對 / Awaiting match review`:工作項是 `source_correlation_review`。 + - `來源證據已到 / Source evidence found`:`source_ref_total`、Sentry refs 或 SignOz refs 大於 0。 + - `Provider 已接收 / Provider received`:已有 provider event 但尚未進入 evidence/review/apply。 + - `等待來源 / Waiting for source`:尚無來源證據。 +- 每張卡片同時顯示 `refs / Sentry / SignOz / provider event id`,讓 operator 可直接判斷是否要審核、補證據或看 Status Chain。 +- `apps/web/messages/en.json` / `zh-TW.json` 補齊 i18n;UI 使用 lucide icons,不新增 emoji icon。 + +**Verification**: + +```text +python3 -m json.tool apps/web/messages/en.json >/dev/null +python3 -m json.tool apps/web/messages/zh-TW.json >/dev/null +git diff --check + -> pass +pnpm --filter @awoooi/web typecheck + -> pass +pnpm --filter @awoooi/web exec next lint --file src/app/[locale]/awooop/work-items/page.tsx + -> pass, no warnings +NEXT_PUBLIC_API_URL=https://awoooi.wooo.work pnpm --filter @awoooi/web build + -> compiled successfully + -> generated static pages 90/90 +Local Browser: + -> same-origin local proxy + production API displayed 來源流程:來源證據已到 + -> visible detail examples: refs=98 / 30 / 20 / 10, Sentry=0, SignOz=0, provider event ids present +Gitea / CD: + -> ebb73af1 feat(awooop): show source flow in work items + -> Code Review #2753 success + -> CD #2752 tests / build-and-deploy / post-deploy-checks success + -> deploy marker 39f0f765 chore(cd): deploy ebb73af [skip ci] +Production readback: + -> /zh-TW/awooop/work-items?project_id=awoooi&incident_id=INC-20260521-A02D7D + -> displayed 來源流程:來源證據已到 + -> displayed refs=116; Sentry=0; SignOz=0; event=alertmanager:received:alert-20260521141001:be6a1821f6336fa44b5ec33855b9f23d + -> same page also displayed source flow for DockerContainerMemoryLimitPressure and GiteaMemoryPressure +``` + +**判讀**: + +- T127 把 recurrence work item 從「只知道有待處理項」推到「每張卡片知道來源證據流程階段」。 +- 目前 Work Items / Runs / Status Chain 三個核心觀測面已能串起 provider ingress、source evidence、review/apply 與 verified readback;下一段可把相同來源流程摘要同步到 Approvals / Monitoring 的待處理入口。 +- Production Browser 仍有既有 dashboard SSE snapshot fetch warning,但 recurrence API 與 Work Items source flow 已正常讀回;這應列為前端全域 SSE 技術債,不阻塞 T127。 + +**目前整體進度**: + +- AwoooP 告警可觀測鏈:99.998%。 +- Incident-level source correlation 可見性:98.3% → 98.5%。 +- Source correlation apply 狀態鏈可驗證性:99.72%。 +- Source correlation freshness / rolling gate:98.2%。 +- 前端 AI 自動化管理介面同步:99.994% → 99.996%。 +- 完整 AI 自動化管理產品化:99.90% → 99.92%。 + ## 2026-05-21|T126 Runs list source flow summary **觸發**: 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 2a9d54d12..4e3653e17 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 @@ -2603,6 +2603,12 @@ Phase 6 完成後 - Verification:messages JSON parse ok;`pnpm --filter @awoooi/web typecheck` pass;scoped `next lint --file src/app/[locale]/awooop/runs/page.tsx --file src/components/awooop/status-chain.tsx` exit 0(runs/page.tsx 既有 literal-string warnings 仍存在);`NEXT_PUBLIC_API_URL=https://awoooi.wooo.work pnpm --filter @awoooi/web build` compiled successfully,90/90 static pages generated。Local Browser 已看到 Runs list 新 `來源流程` 欄;local CORS proxy 未完成 status-chain fetch,因此以 CD 後 production same-origin readback 收斂。`9c966699 feat(awooop): show source flow in runs list` 已推 Gitea main;deploy marker `9206e271 chore(cd): deploy 9c96669 [skip ci]`。Actions #2750 Code Review success,#2749 CD tests / build-and-deploy / post-deploy-checks success;production Runs list row for `INC-20260505-25E744` 顯示 `已驗證` 與 `providers=1; d/c/a=1/0/1`。 - 目前進度更新:AwoooP 告警可觀測鏈約 99.998%;Incident-level source correlation 可見性約 98.3%;Source correlation apply 狀態鏈可驗證性約 99.72%;Source correlation freshness / rolling gate 約 98.2%;前端 AI 自動化管理介面同步約 99.994%;完整 AI 自動化管理產品化約 99.90%。 +**T127 Work Items source flow summary(2026-05-21 台北)**: +- 觸發:T126 已把 source flow 拉到 Runs list,但 operator 從 Telegram / recurrence 工作項進 `/awooop/work-items` 時,仍只能看到 source refs 與 source review/apply count,無法在工作項卡片上直接判斷流程停在哪一段。 +- 修正:`apps/web/src/app/[locale]/awooop/work-items/page.tsx` 在重複告警工作項卡片新增 `來源流程 / Source flow` 摘要,分類為 Applied、Review recorded、Awaiting match review、Source evidence found、Provider received、Waiting。資料完全取自既有 recurrence API 欄位:`source_correlation_apply`、`source_correlation_review`、`source_ref_total`、`sentry_ref_total`、`signoz_ref_total`、`latest_provider_event_id`;不新增 API、不新增 mock data。`apps/web/messages/en.json` / `zh-TW.json` 補齊 i18n;UI 使用 lucide icons,不新增 emoji icon。 +- Verification:messages JSON parse ok;`git diff --check` pass;`pnpm --filter @awoooi/web typecheck` pass;scoped `next lint --file src/app/[locale]/awooop/work-items/page.tsx` pass;`NEXT_PUBLIC_API_URL=https://awoooi.wooo.work pnpm --filter @awoooi/web build` compiled successfully,90/90 static pages generated。Local Browser 以 same-origin local proxy + production API 顯示 `來源流程:來源證據已到` 與 refs / Sentry / SignOz / provider event id。`ebb73af1 feat(awooop): show source flow in work items` 已推 Gitea main;Actions #2753 Code Review success,#2752 CD tests / build-and-deploy / post-deploy-checks success;deploy marker `39f0f765 chore(cd): deploy ebb73af [skip ci]`。Production Browser readback:`/zh-TW/awooop/work-items?project_id=awoooi&incident_id=INC-20260521-A02D7D` 顯示 `來源流程:來源證據已到`、`refs=116; Sentry=0; SignOz=0; event=alertmanager:received:alert-20260521141001:be6a1821f6336fa44b5ec33855b9f23d`,同頁也顯示 DockerContainerMemoryLimitPressure / GiteaMemoryPressure source flow。既有 dashboard SSE snapshot fetch warning 仍存在,列為前端全域技術債,不阻塞 T127。 +- 目前進度更新:AwoooP 告警可觀測鏈約 99.998%;Incident-level source correlation 可見性約 98.5%;Source correlation apply 狀態鏈可驗證性約 99.72%;Source correlation freshness / rolling gate 約 98.2%;前端 AI 自動化管理介面同步約 99.996%;完整 AI 自動化管理產品化約 99.92%。 + --- ### 2026-04-20 晚 (台北) — C1-C4 全流程串接 — Playbook 鏈路保護(commit de2d34d)