docs(governance): record km stale ratio recheck rollout [skip ci]

This commit is contained in:
Your Name
2026-05-20 01:07:52 +08:00
parent b7eb3f7da2
commit 839b3ea960
2 changed files with 54 additions and 12 deletions

View File

@@ -43,23 +43,64 @@ git diff --check
-> pass
```
**待 production deploy / smoke**
**Production deploy / smoke(完成)**
- Gitea ActionsCD / Code Review / Type Sync 全綠。
- Production dry-run archive endpoint 應回 `status=dry_run``stale_ratio_recheck_status=dry_run``stale_ratio_snapshot`,且 `writes_km=false`
- Dry-run 前後 `duplicate_draft_total` 必須不變。
- Work Items production smoke 應看到 stale ratio recheck 文案與 snapshot 欄位,且 page/console error 為 0。
```text
Code commit:
d283e653 feat(governance): trace km stale ratio rechecks
Deploy marker:
b7eb3f7d chore(cd): deploy d283e65 [skip ci]
Gitea Actions:
1888 CD tests / build-and-deploy / post-deploy-checks -> success
1889 Code Review -> success
1890 Type Sync Check -> success
GET https://awoooi.wooo.work/api/v1/health
-> healthy, prod, mock_mode=false
GET /api/v1/ai/governance/km-review-drafts/dedupe?limit=100
-> schema_version=km_review_draft_dedupe_v1
-> total_review_drafts=92 -> 93 after the next KM healthcheck draft
-> event_group_total=25 -> 26 after the next KM healthcheck draft
-> duplicate_draft_total=67
POST /api/v1/ai/governance/km-review-drafts/dedupe/{event}/archive-duplicates
body dry_run=true, owner_approved=true
-> schema_version=km_review_draft_archive_v1
-> status=dry_run
-> would_archive_entry_ids=5
-> writes_km=false
-> writes_governance_audit=false
-> stale_ratio_recheck_status=dry_run
-> stale_ratio_recheck_dispatch_id=null
-> stale_ratio_snapshot: stale_count=1454, total_count=1966, stale_ratio=0.74, threshold=0.2, stale_days=7
Dry-run guard:
-> duplicate_draft_total before=67 / after=67
Work Items Playwright smoke:
-> nav visible
-> KM healthcheck panel visible
-> KM draft dedupe view visible
-> archive duplicate drafts button visible
-> owner guard visible
-> stale ratio recheck copy visible
-> pageErrors=0 / consoleErrors=0
-> screenshot=/tmp/awoooi-t94-km-stale-ratio-recheck.png
```
**目前整體進度**
- AwoooP 告警可觀測鏈:約 99.1%。
- 低風險自動修復閉環:約 95%。
- 前端 AI 自動化管理介面同步:約 97.8%。
- 治理告警可讀性 / 可處置性:約 98.2%。
- AI Agent ownership 可追溯性:約 96.8%。
- KM healthcheck 派工可追蹤性:約 99.3%。
- Hermes KB growth 草稿 / owner review 閉環:約 98.9%。
- 完整 AI 自動化管理產品化:約 96.2%。
- 前端 AI 自動化管理介面同步:約 97.9%。
- 治理告警可讀性 / 可處置性:約 98.3%。
- AI Agent ownership 可追溯性:約 97.0%。
- KM healthcheck 派工可追蹤性:約 99.4%。
- Hermes KB growth 草稿 / owner review 閉環:約 99.0%。
- 完整 AI 自動化管理產品化:約 96.4%。
## 2026-05-20T93 KM duplicate drafts owner archive action

View File

@@ -2330,7 +2330,8 @@ Phase 6 完成後
- 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` okruff ok治理 endpoint / dispatcher / Hermes worker tests `60 passed`Work Items Next lint ok`tsc --noEmit` okshared-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%
- Production`d283e653 feat(governance): trace km stale ratio rechecks` 已推 Gitea maindeploy marker `b7eb3f7d chore(cd): deploy d283e65 [skip ci]`Gitea runs `1888` CD、`1889` Code Review、`1890` Type Sync 全 success。Production health healthy/prod/mock_mode=false。Dry-run archive endpoint 回 `status=dry_run``writes_km=false``writes_governance_audit=false``stale_ratio_recheck_status=dry_run``stale_ratio_snapshot stale_count=1454 total_count=1966 stale_ratio=0.74 threshold=0.2 stale_days=7`dry-run 前後 duplicate total 仍為 67。Work Items Playwright smoke 顯示 nav、KM healthcheck panel、KM 草稿去重視圖、封存重複草稿按鈕、owner guard、stale ratio recheck 文案pageErrors=0 / consoleErrors=0截圖 `/tmp/awoooi-t94-km-stale-ratio-recheck.png`
- 目前進度更新:前端 AI 自動化管理介面同步約 97.9%;治理告警可讀性 / 可處置性約 98.3%AI Agent ownership 可追溯性約 97.0%KM healthcheck 派工可追蹤性約 99.4%Hermes KB growth 草稿 / owner review 閉環約 99.0%;完整 AI 自動化管理產品化約 96.4%。
---