docs: record awooop automation flow gates

This commit is contained in:
Your Name
2026-06-01 11:24:41 +08:00
parent 1233cb3738
commit a0284113de

View File

@@ -1,3 +1,75 @@
## 2026-06-01AwoooP AI 自動化流程 Gate 上線
**背景**
- 使用者持續指出 Telegram 告警雖然會顯示 ACTION REQUIRED但無法一眼知道 AI 自動化到底跑到哪個階段、是否真有自動修復,或只是需要人工介入。
- 本輪不新增自動修復能力、不宣稱 AI 自動化已完全達成;先把 truth-chain 已有證據收斂成 production gate讓 Runs 頁明確顯示「哪個關卡通過、卡住或需要補證據」。
**本次調整**
- `apps/api/src/services/awooop_truth_chain_service.py`
- 新增 `automation_flow_gates` summary schema。
- 將 existing quality gates 收斂為 8 個 operator 可讀流程關卡:`alert_intake``mcp_investigation``approval_policy``execution_recorded``auto_repair_recorded``verification_recorded``knowledge_recorded``operator_visible`
- 每個 gate 會回傳 status、passed / warning / missing / failed、passed_percent、next_action 與 sample incident。
- `apps/web/src/app/[locale]/awooop/runs/page.tsx`
- Runs 首段新增 `AI 自動化流程 Gate`,直接顯示 24h flow gate、production claim、blocked gate、warning gate 與 sample incident。
- 手動刷新時同步向 quality summary 傳 `refresh=true`
- `apps/web/messages/zh-TW.json` / `apps/web/messages/en.json`
- 補齊 automation flow gate 文案;繁中頁可直接看到下一步與 full auto-repair 被封鎖的原因。
**驗證**
```text
python3 -m py_compile apps/api/src/services/awooop_truth_chain_service.py
DATABASE_URL=postgresql://test:test@localhost:5432/test PYTHONPATH=apps/api pytest apps/api/tests/test_awooop_truth_chain_service.py apps/api/tests/test_operator_summary_cache.py -q
52 passed
python3 -m json.tool apps/web/messages/zh-TW.json
python3 -m json.tool apps/web/messages/en.json
pnpm --dir apps/web exec tsc --noEmit --tsBuildInfoFile /tmp/awoooi-runs-flow-gates-post-rebase.tsbuildinfo
NEXT_PUBLIC_API_URL=https://awoooi.wooo.work NEXT_PRIVATE_WORKERS=1 pnpm --dir apps/web run build
git diff --check
```
**Gitea / Production evidence**
```text
commit: fbcef599 feat(awooop): surface automation flow gates
Gitea:
3483 ai-code-review = success
3482 CD = success
jobs: tests success, docker build / deploy success, post-deploy success
Kubernetes images:
awoooi-api = 192.168.0.110:5000/awoooi/api:fbcef599...
awoooi-worker = 192.168.0.110:5000/awoooi/api:fbcef599...
awoooi-web = 192.168.0.110:5000/awoooi/web:fbcef599...
Production API:
/api/v1/platform/truth-chain/quality/summary?project_id=awoooi&hours=24&limit=30&refresh=true
incident_total=30
evaluated_total=30
verified_auto_repair_total=0
overall_status=blocked
blocked_gates=5
warning_gates=1
production_claim.can_auto_repair=false
Production UI:
/zh-TW/awooop/runs?project_id=awoooi#automation-flow-gates
已顯示 AI 自動化流程 Gate畫面上可見 30 筆樣本、5 個 blocked gate、1 個 warning gate。
```
**進度**
```text
Telegram / Runs truth-chain visibility: 99%
AI 自動化流程 Gate 可視性: 100%
Production claim safety: 100%(會明確阻擋不實宣稱)
Actual 24h verified full auto-repair: 0%(本輪 production 仍是 0不能宣稱已達成
Overall AI 自動化飛輪: 83%(可見性提高,但真正自動修復閉環仍待補 execution / auto-repair / verification / KM gate
```
## 2026-06-01IwoooS 拓樸節點下鑽
**背景**