feat(governance): trace km stale ratio rechecks
All checks were successful
Code Review / ai-code-review (push) Successful in 10s
Type Sync Check / check-type-sync (push) Successful in 26s
CD Pipeline / tests (push) Successful in 3m34s
CD Pipeline / build-and-deploy (push) Successful in 4m2s
CD Pipeline / post-deploy-checks (push) Successful in 1m48s
All checks were successful
Code Review / ai-code-review (push) Successful in 10s
Type Sync Check / check-type-sync (push) Successful in 26s
CD Pipeline / tests (push) Successful in 3m34s
CD Pipeline / build-and-deploy (push) Successful in 4m2s
CD Pipeline / post-deploy-checks (push) Successful in 1m48s
This commit is contained in:
@@ -2323,6 +2323,15 @@ Phase 6 完成後
|
||||
- Production:`c8a995af feat(governance): archive duplicate km review drafts` 已推 Gitea main;deploy marker `3c9404d2 chore(cd): deploy c8a995a [skip ci]`;Gitea runs `1885` CD、`1886` Code Review、`1887` Type Sync 全 success。Production health healthy/prod/mock_mode=false。`GET /ai/governance/km-review-drafts/dedupe?limit=100` 回 `total_review_drafts=90`、`event_group_total=23`、`duplicate_draft_total=67`。Archive endpoint dry-run 對第一組 duplicate plan 回 `status=dry_run`、`would_archive_entry_ids=5`、`writes_km=false`、`writes_governance_audit=false`,dry-run 前後 duplicate total 仍為 67。Work Items Playwright smoke 顯示封存重複草稿按鈕與 owner guard,pageErrors=0 / consoleErrors=0。
|
||||
- 目前進度更新:治理告警可讀性 / 可處置性約 98.0%;AI Agent ownership 可追溯性約 96.5%;KM healthcheck 派工可追蹤性約 99.2%;Hermes KB growth 草稿 / owner review 閉環約 98.6%;完整 AI 自動化管理產品化約 95.9%。
|
||||
|
||||
**T94 KM archive 後 stale ratio recheck trace(2026-05-20 台北)**:
|
||||
- 觸發:T93 已讓 owner 可在 AwoooP 封存 duplicate KM review drafts,但封存後仍需要直接看到治理回測:KM stale ratio 是否下降、是否仍高於門檻、是否要繼續 owner review。
|
||||
- 修正:archive endpoint response 新增 `stale_ratio_snapshot`、`stale_ratio_recheck_status`、`stale_ratio_recheck_dispatch_id`。snapshot 沿用 `GovernanceAgent.check_knowledge_degradation` 的 non-archived KM + `KM_STALE_DAYS` / `KM_STALE_RATIO` 定義,不另立規則。
|
||||
- 寫入行為:dry-run 只計算 snapshot,不寫 KM / audit / recheck dispatch。owner 實際封存成功後,先 soft archive duplicates,再立刻計算 stale ratio,寫一筆 terminal `governance_remediation_dispatch`:`executor_type=hermes_km_stale_ratio_recheck`、`dispatch_status=succeeded`、`workflow.current_stage=stale_ratio_recheck`、`worker_result.status=stale_ratio_rechecked`;archive audit context 反向記錄 recheck dispatch id / status。
|
||||
- UI:`/awooop/work-items` 的 archive result 顯示 stale ratio recheck status、dispatch id、stale / total / ratio / threshold snapshot;新增 `owner_approved_duplicate_archive`、`km_duplicate_archive_after_owner_approval`、`km_governance_rechecked`、`km_governance_close_or_continue` stage i18n。
|
||||
- 邊界:T94 不讓 AI 自動批量改寫高影響 KM;它只把 owner action 後的治理回測納入 AwoooP 可見 audit trail。production smoke 仍使用 dry-run,不直接改 production KM。
|
||||
- Local verification:`py_compile` ok;ruff ok;治理 endpoint / dispatcher / Hermes worker tests `60 passed`;Work Items Next lint ok;`tsc --noEmit` ok;shared-types regenerate 後無 diff;`git diff --check` pass。
|
||||
- 目前進度更新:治理告警可讀性 / 可處置性約 98.2%;AI Agent ownership 可追溯性約 96.8%;KM healthcheck 派工可追蹤性約 99.3%;Hermes KB growth 草稿 / owner review 閉環約 98.9%;完整 AI 自動化管理產品化約 96.2%。
|
||||
|
||||
---
|
||||
|
||||
### 2026-04-20 晚 (台北) — C1-C4 全流程串接 — Playbook 鏈路保護(commit de2d34d)
|
||||
|
||||
Reference in New Issue
Block a user