diff --git a/docs/LOGBOOK.md b/docs/LOGBOOK.md index a36d28b5..f1aa5e24 100644 --- a/docs/LOGBOOK.md +++ b/docs/LOGBOOK.md @@ -22308,3 +22308,83 @@ production frontend smoke: - 24h 完整自動修復 production claim:0%(不能宣稱真正全自動修復閉環)。 - 完整 AI 自動化管理產品化:約 98.9%,但「真正 AI 自動修復閉環」仍需補齊 execution / repair / approval / learning evidence 與 Ansible runtime gate。 + +### 2026-05-29 — T203 Homepage live evidence fast path(post-deploy) + +**背景**:T202 已把首頁 Blueprint 接上 production live evidence,但 production smoke 顯示 +MCP 節點 ready time 曾達桌機 41.2s、手機 34.2s。根因是首頁一載入就併發抓 25 筆 +`/api/v1/platform/status-chain`,把瀏覽器同源連線池塞滿,延後 `/runs/list`、 +coverage、KM burndown 等摘要 API。 + +**完成變更**: + +- `useIncidentStatusChains` 新增 `concurrency` 選項,改成限流抓取與逐筆落地: + - 不再 `Promise.all` 等全部 status-chain 回來才更新。 + - 每筆完成就更新對應 incident card / summary。 +- 首頁 status-chain 預抓從 25 筆降為 8 筆,並設 `concurrency=2`、`timeoutMs=6000`。 + 完整列表仍由 `/alerts` 承接,首頁只保留最新摘要。 +- 首頁 Blueprint 改用 per-source loaded flag: + - Signal 不再等 callback audit 才顯示 dossier coverage。 + - MCP 不再等 callback / recurrence / KM,先用 `/runs/list` 顯示 MCP observations。 + - Verify/KM 只等 KM burndown / stale candidate 自己的來源。 +- local structural smoke 也確認 deep-link 可回到指定 `signal/mcp/verify` stage。 + +**validation / deployment evidence**: + +```text +local: + pnpm install --frozen-lockfile + pnpm --dir apps/web exec tsc --noEmit --tsBuildInfoFile /tmp/awoooi-homepage-fast-evidence-tsconfig.tsbuildinfo + pnpm --dir apps/web lint -- --file 'src/app/[locale]/page.tsx' --file src/hooks/useIncidentStatusChains.ts + pass; remaining warnings are pre-existing any / literal warnings in the old page + git diff --check + NEXT_PUBLIC_API_URL=https://awoooi.wooo.work pnpm --dir apps/web run build + pass; /[locale] = 26.9 kB, Sentry warnings are pre-existing + Playwright localhost structural smoke: + blueprint_stage=signal/mcp/verify source route visible + console_errors=0 + document/body horizontal overflow=false + content scrolling works + +gitea: + 2200 code-review success + 2199 CD produced deploy marker 845e14b8 + +commits: + 1b28dcf3 fix(web): speed up homepage live evidence loading + 845e14b8 chore(cd): deploy 1b28dcf [skip ci] + +production frontend smoke: + https://awoooi.wooo.work/zh-TW?blueprint_stage=signal#blueprint-stage-inspector + desktop readyMs=1788, source_count=100, refs=500, missing=0, duplicates=48, Alert=200, Sentry=0, SigNoz=0 + mobile readyMs=1466, document/body scrollWidth=390, viewport=390, inner scroll works + https://awoooi.wooo.work/zh-TW?blueprint_stage=mcp#blueprint-stage-inspector + desktop readyMs=1604, MCP observations=42, success=9, failed=33, server=ssh_host + mobile readyMs=2155, document/body scrollWidth=390, viewport=390, inner scroll works + https://awoooi.wooo.work/zh-TW?blueprint_stage=verify#blueprint-stage-inspector + desktop readyMs=2132, stale=2188, stale_ratio=70.2%, pending_owner_reviews=10, completed=1, remaining=1565 + mobile readyMs=3619, document/body scrollWidth=390, viewport=390, inner scroll works + all smoke: + console_errors = 0 + unexpected failed requests = 0 + Live Evidence has no 讀取中 / 未回應 after ready + desktop document/body scrollWidth=1440, viewport=1440 +``` + +**目前整體進度(post-deploy)**: + +- 首頁產品化工作地圖:約 99.35%。 +- 首頁可用性 / 導航 / 滾動:約 99.9%。 +- 首頁 live evidence 體感:約 98.5%(MCP ready time 已由 34-41s 降到 1.6-2.2s)。 +- 專業圖像化呈現:約 96.8%。 +- 前端 AI 自動化管理介面同步:約 99.95%。 +- Telegram outbound / callback DB coverage 可視化:約 99.9%。 +- Work Items / backlog 可追蹤性:約 98.0%。 +- AI Provider lane visibility:約 94.0%。 +- MCP / 自建 MCP 可視化:約 96.8%。 +- Sentry / SigNoz source correlation:約 95.0%(coverage 仍顯示 Sentry/SigNoz refs=0,需補告警來源引用)。 +- KM governance:約 82.0%(stale ratio 已升到約 70.2%,Hermes draft + owner review 消化量不足,需列下一波)。 +- Ansible / PlayBook 自動執行:約 0% runtime-ready(仍受 `ansible_playbook_binary_missing` gate 阻塞)。 +- 24h 完整自動修復 production claim:0%(不能宣稱真正全自動修復閉環)。 +- 完整 AI 自動化管理產品化:約 99.2%,但「真正 AI 自動修復閉環」仍需補齊 + execution / repair / approval / learning evidence 與 Ansible runtime gate。