From c1e2567b1536cca1aa2e5373fe72b99d041a8e09 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 13 May 2026 16:49:29 +0800 Subject: [PATCH] docs(awooop): record t12d quality overview deployment --- docs/LOGBOOK.md | 55 +++++++++++++++++++ ...-04-15-MASTER-ai-autonomous-flywheel-v2.md | 10 ++++ 2 files changed, 65 insertions(+) diff --git a/docs/LOGBOOK.md b/docs/LOGBOOK.md index 4d33f2fc6..150536404 100644 --- a/docs/LOGBOOK.md +++ b/docs/LOGBOOK.md @@ -7536,3 +7536,58 @@ curl http://127.0.0.1:3000/zh-TW/awooop -> 200 ``` **目前整體進度**:約 75%。 + +**production deploy / smoke 追加(完成)**: + +```text +Gitea: +2050 ai-code-review 356bfce2 -> success +2049 CD Pipeline 356bfce2 -> success +2048 ai-code-review e4203060 -> success +2047 CD Pipeline e4203060 -> success +Deploy marker: 90156a7c chore(cd): deploy 356bfce [skip ci] + +K8s image: +awoooi-api 192.168.0.110:5000/awoooi/api:356bfce2c8663c46933df4a9050dfaa9f594436a +awoooi-worker 192.168.0.110:5000/awoooi/api:356bfce2c8663c46933df4a9050dfaa9f594436a +awoooi-web 192.168.0.110:5000/awoooi/web:356bfce2c8663c46933df4a9050dfaa9f594436a + +health: +https://awoooi.wooo.work/api/v1/health -> 200 + +summary endpoint smoke: +GET /api/v1/platform/truth-chain/quality/summary?project_id=awoooi&hours=24&limit=10 -> 200 +schema_version=automation_quality_summary_v1 +incident_total=10 +evaluated_total=10 +verified_auto_repair_total=0 +production_claim.can_claim_full_auto_repair=false +examples_len=0 +visibility_note=Aggregate only. Use /truth-chain/{source_id} with operator auth for source-level details. +score_buckets={green: 0, yellow: 3, red: 7} +by_verdict: + received_only=4 + execution_unverified=3 + manual_required_no_action=3 +top gate_failures: + auto_repair_recorded=10 + evidence_collected=7 + execution_recorded=7 + mcp_gateway_observed=4 + outbound_recorded=4 + timeline_recorded=4 + approval_state=3 + verification_recorded=3 + +formal page smoke: +https://awoooi.wooo.work/zh-TW/awooop -> 200 +HTML contains: AwoooP 治理總覽 / 自動化品質 / 不可宣稱完整閉環 +``` + +判讀: + +- T12d 已部署:Operator Console 首頁現在能直接顯示最近告警的自動化品質總覽。 +- summary endpoint 是 public aggregate 讀取面,刻意清空 `examples`;逐筆 source-level truth-chain 仍走 `/truth-chain/{source_id}` operator auth。 +- 產線資料仍顯示 `verified_auto_repair_total=0`、`production_claim=false`,因此目前正確說法是「真相可見度已補上」,不是「完整 AI 自動修復閉環已完成」。 +- 下一步要進 T13:收斂 `execution_unverified`,把 post-execution verification / auto_repair durable record / learning writeback 的缺口從可見化推進到真正閉環。 +- 目前整體進度更新:約 76%。 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 7ee6cb5e5..a67829d2c 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 @@ -2015,6 +2015,16 @@ Phase 6 完成後 - `post_verify_first_class=5` - 邊界:T8 只完成修復後 read-only 驗證 path。approval execution SSH / write-admin MCP / Ansible check-mode / apply / rollback 仍未完成,不能宣稱真正自動修復閉環已全面完成。 +**T9-T12 AwoooP truth-chain / quality visibility production verified(2026-05-13 台北)**: +- T9:approved SSH execution 已經過 first-class `McpGateway`,`approval_executor` write tools 需有 active contract / grants / Gate 5 approval;production smoke `trace_id=codex-t9-approval-smoke-eb44cd4a` 證明 `gateway_path=awooop_mcp_gateway`、`policy_enforced=true`、`required_scope=write`、`is_shadow=false`。provider error 來自安全測試位址不在 `SSH_MCP_ALLOWED_HOSTS`,不是 Gateway 黑盒。 +- T10:truth-chain 新增 MCP Gateway summary,可把 `first_class_total`、`legacy_bridge_total`、`policy_enforced_total`、agent/tool/scope 與 provider failure stage 一次輸出,避免 Telegram 卡片只看到「失敗」而不知道卡在 Gate 還是底層 provider。 +- T11:Telegram incident detail 與 AwoooP Run Detail 都接上 MCP Gateway summary;production smoke 以 detail formatter 驗證,不發真實 Telegram 訊息避免洗版。 +- T12a:Telegram outbound mirror 新增 `sent_at` 與 structured `source_refs`,新出站訊息能以 incident / code refs 回查,不再只靠 preview 文字猜關聯。 +- T12b:truth-chain 新增 `automation_quality` gate,逐筆回答是否 `auto_repaired_verified`、`execution_unverified`、`manual_required_no_action` 等;Telegram detail 顯示品質摘要。 +- T12c:`GET /api/v1/platform/truth-chain/quality/summary` 新增全體品質總覽;production 50 筆 smoke 顯示 `verified_auto_repair_total=0`、`production_claim.can_claim_full_auto_repair=false`,因此仍不能宣稱完整 AI 自動修復閉環。 +- T12d:Operator Console `/awooop` 首頁新增「自動化品質」面板;summary endpoint 改為 public aggregate 且清空 `examples`,source-level `/truth-chain/{source_id}` 仍需 operator auth。production image `356bfce2c8663c46933df4a9050dfaa9f594436a`、Gitea runs `2050/2049` success、health 200、頁面含 `自動化品質` / `不可宣稱完整閉環`。 +- 目前總體判讀:真相鏈可見度已從 Telegram 卡片補到 DB / truth-chain API / Run Detail / Operator Console,但 latest production aggregate 仍是 `verified_auto_repair_total=0`。下一步 T13 必須收斂 `execution_unverified`:post-execution verification、auto-repair durable record、learning / KM writeback 缺口要從「可見」推到「閉環」。 + --- ### 2026-04-20 晚 (台北) — C1-C4 全流程串接 — Playbook 鏈路保護(commit de2d34d)