From 839b3ea960bf3e4ed615c2cb7d71f26a03a56cd1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 20 May 2026 01:07:52 +0800 Subject: [PATCH] docs(governance): record km stale ratio recheck rollout [skip ci] --- docs/LOGBOOK.md | 63 +++++++++++++++---- ...-04-15-MASTER-ai-autonomous-flywheel-v2.md | 3 +- 2 files changed, 54 insertions(+), 12 deletions(-) diff --git a/docs/LOGBOOK.md b/docs/LOGBOOK.md index 7a3c7e96..10821766 100644 --- a/docs/LOGBOOK.md +++ b/docs/LOGBOOK.md @@ -43,23 +43,64 @@ git diff --check -> pass ``` -**待 production deploy / smoke**: +**Production deploy / smoke(完成)**: -- Gitea Actions:CD / 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-20|T93 KM duplicate drafts owner archive action 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 ddaef585..280e92ac 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 @@ -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` 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%。 +- Production:`d283e653 feat(governance): trace km stale ratio rechecks` 已推 Gitea main;deploy 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%。 ---