diff --git a/docs/LOGBOOK.md b/docs/LOGBOOK.md index ff8cf0880..8d2798356 100644 --- a/docs/LOGBOOK.md +++ b/docs/LOGBOOK.md @@ -71,7 +71,46 @@ Screenshot: **Production deploy / smoke**: ```text -Pending:推 Gitea main 後,以正式 production domain 驗證 Work Items nav、KM 草稿去重、封存 / 回測歷史空狀態或 history rows。 +Code commit: + 14697ba2 feat(governance): surface km archive audit history + +Gitea Actions: + 2559 CD -> tests success / build-and-deploy success / post-deploy-checks success + 2560 Code Review -> success + 2561 Type Sync -> success + +GET https://awoooi.wooo.work/api/v1/health + -> healthy, prod, mock_mode=false + +GET /api/v1/ai/governance/queue?dispatch_status=all&event_type=knowledge_degradation&size=20 + -> total=205 + -> table_pending=false + -> items=20 + -> archive_history_items_in_page=0 + -> sample_has_fingerprint_key=true + -> sample_has_archived_count_key=true + -> sample_has_stale_ratio_snapshot_key=true + +GET /api/v1/ai/governance/km-review-drafts/dedupe?limit=100 + -> schema_version=km_review_draft_dedupe_v1 + -> total_review_drafts=100 + -> event_group_total=45 + -> duplicate_draft_total=55 + +Work Items production smoke: + -> navVisible=true + -> kmPanelVisible=true + -> dedupeVisible=true + -> historyVisible=true + -> emptyVisible=true + -> historyRowVisible=false + -> consoleErrors=0 + -> pageErrors=0 + -> failedResponses=[] + -> screenshot=/tmp/awoooi-t97-km-archive-history-production.png + +Boundary: + -> historyRowVisible=false 是目前正確狀態,因為本輪沒有對 production KM 做 owner confirm 封存;一旦 owner confirm 寫入 archive / recheck dispatch,該區塊會顯示 history row。 ``` **目前整體進度**: 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 130584492..ec22abaec 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 @@ -2356,7 +2356,7 @@ Phase 6 完成後 - UI:`/awooop/work-items` 的 KM 草稿去重卡片新增固定「封存 / 回測歷史」區塊。尚無 owner archive / stale ratio recheck dispatch 時顯示明確空狀態;有 history row 時顯示 Hermes executor、dispatch status、workflow stage、archived count、dry-run fingerprint 與 stale ratio snapshot。executor 以 i18n 顯示 `Hermes:owner 確認封存` / `Hermes:stale ratio 回測`,不再只露 raw id。 - 邊界:T97 只讀取既有 dispatch audit,不自動寫 KM、不封存 production KM、不放寬 T96 fingerprint guard。這是 AwoooP operator observability,不是新的自動改寫權限。 - Local verification:`py_compile` ok;ruff ok;治理 endpoint / dispatcher / Hermes worker tests `62 passed`;Work Items Next lint ok;`tsc --noEmit` ok;i18n JSON parse ok;shared-types regenerate 後無 diff;`NEXT_PUBLIC_API_URL=https://awoooi.wooo.work pnpm --dir apps/web run build` 成功產出 90/90 static pages;`git diff --check` pass。Local Playwright live production API bridge(只允許 GET)確認 nav、KM healthcheck panel、KM 草稿去重視圖、封存 / 回測歷史區塊、empty state 可見,blockedWrites=0,截圖 `/tmp/awoooi-t97-km-archive-history-local.png`。 -- Production:pending,推 Gitea main 後以正式 production domain 驗證 Work Items nav、KM 草稿去重、封存 / 回測歷史空狀態或 history rows。 +- Production:`14697ba2 feat(governance): surface km archive audit history` 已推 Gitea main;Gitea runs `2559` CD、`2560` Code Review、`2561` Type Sync 全 success。Production health healthy/prod/mock_mode=false。`GET /ai/governance/queue?dispatch_status=all&event_type=knowledge_degradation&size=20` 回 `total=205`、`table_pending=false`,sample item 已含 `dry_run_plan_fingerprint` / `archived_count` / `stale_ratio_snapshot` 欄位。`GET /ai/governance/km-review-drafts/dedupe?limit=100` 回 `total_review_drafts=100`、`event_group_total=45`、`duplicate_draft_total=55`。Work Items production smoke 顯示 nav、KM healthcheck panel、KM 草稿去重視圖、封存 / 回測歷史區塊與 empty state,pageErrors=0 / consoleErrors=0 / failedResponses=[],截圖 `/tmp/awoooi-t97-km-archive-history-production.png`。目前 `historyRowVisible=false` 是正確狀態,因為本輪沒有對 production KM 做 owner confirm 封存;一旦 owner confirm 寫入 archive / recheck dispatch,該區塊會顯示 history row。 - 目前進度更新:前端 AI 自動化管理介面同步約 98.6%;治理告警可讀性 / 可處置性約 98.9%;AI Agent ownership 可追溯性約 98.0%;KM healthcheck 派工可追蹤性約 99.7%;Hermes KB growth 草稿 / owner review 閉環約 99.5%;完整 AI 自動化管理產品化約 97.3%。 ---