feat(governance): attach km archive history to dedupe groups
All checks were successful
Code Review / ai-code-review (push) Successful in 11s
CD Pipeline / tests (push) Successful in 6m56s
Type Sync Check / check-type-sync (push) Successful in 6m51s
CD Pipeline / build-and-deploy (push) Successful in 4m43s
CD Pipeline / post-deploy-checks (push) Successful in 1m47s
All checks were successful
Code Review / ai-code-review (push) Successful in 11s
CD Pipeline / tests (push) Successful in 6m56s
Type Sync Check / check-type-sync (push) Successful in 6m51s
CD Pipeline / build-and-deploy (push) Successful in 4m43s
CD Pipeline / post-deploy-checks (push) Successful in 1m47s
This commit is contained in:
@@ -2359,6 +2359,15 @@ Phase 6 完成後
|
||||
- Production:`14697ba2 feat(governance): surface km archive audit history` 已推 Gitea main;deploy marker `8a306975 chore(cd): deploy 14697ba [skip ci]`;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%。
|
||||
|
||||
**T98 KM archive history 綁定 dedupe group read model(2026-05-20 台北)**:
|
||||
- 觸發:T97 的 history UI 仍依賴同頁 governance queue `size=20` 分頁資料;archive/recheck dispatch row 一旦不在該頁,Operator 仍可能看不到已發生的 owner 封存或 stale ratio 回測。
|
||||
- 修正:`KnowledgeReviewDraftDedupeGroup` 新增 `archive_history: list[DispatchItem]`。`query_km_review_draft_dedupe()` 會針對本次 dedupe groups 的 `governance_event_id` 直接讀取最近 3 筆 `hermes_km_review_dedupe_owner_archive` / `hermes_km_stale_ratio_recheck` dispatch,並重用 `DispatchItem` read model 帶出 status、stage、fingerprint、archived_count、stale_ratio_snapshot。
|
||||
- UI:Work Items 前端優先讀 `group.archive_history`;若 API 尚未升級或 group 無 history,再 fallback 到 T97 的 queue item 匹配。這把「封存 / 回測歷史」從旁路分頁猜測改成 dedupe group 自帶證據。
|
||||
- 邊界:T98 仍是 read-only read model,不自動寫 KM、不封存 production KM、不改 owner approval / fingerprint guard。
|
||||
- Local verification:`py_compile` ok;ruff ok;治理 endpoint 單檔 `39 passed`;治理 endpoint / dispatcher / Hermes worker tests `62 passed`;Work Items Next lint ok;`tsc --noEmit` ok;i18n JSON parse ok;shared-types regenerate 後無 diff;production build 成功產出 90/90 static pages;`git diff --check` pass。Local Playwright live production API bridge 對 dedupe response 注入 1 筆 archive_history row,確認 `Hermes:owner 確認封存` 與 fingerprint 顯示,blockedWrites=0,截圖 `/tmp/awoooi-t98-km-archive-history-row-local.png`。
|
||||
- Production:pending,推 Gitea main 後驗證 dedupe API group 已含 archive_history key,並以 production Work Items 確認頁面無 console / page error。
|
||||
- 目前進度更新:前端 AI 自動化管理介面同步約 98.7%;治理告警可讀性 / 可處置性約 99.0%;AI Agent ownership 可追溯性約 98.2%;KM healthcheck 派工可追蹤性約 99.7%;Hermes KB growth 草稿 / owner review 閉環約 99.6%;完整 AI 自動化管理產品化約 97.5%。
|
||||
|
||||
---
|
||||
|
||||
### 2026-04-20 晚 (台北) — C1-C4 全流程串接 — Playbook 鏈路保護(commit de2d34d)
|
||||
|
||||
Reference in New Issue
Block a user