feat(awooop): classify callback trace gaps
All checks were successful
CD Pipeline / tests (push) Successful in 1m33s
Code Review / ai-code-review (push) Successful in 12s
CD Pipeline / build-and-deploy (push) Successful in 3m32s
CD Pipeline / post-deploy-checks (push) Successful in 1m33s

This commit is contained in:
Your Name
2026-05-25 21:32:37 +08:00
parent f52fdebe0a
commit 32e172ed8b
7 changed files with 159 additions and 7 deletions

View File

@@ -21361,3 +21361,53 @@ GET /api/v1/health
- KM governance約 84.6%。
- AI Provider lane visibility約 92.2%。
- 完整 AI 自動化管理產品化:約 97.95%。
### 2026-05-25 — T193 Callback trace gap decisionpre-deploy
**背景**T192 已把 callback trace gap 的 freshness 顯示到前端,但值班者仍需要自行
`total / 1h / 24h / latest` 解讀成下一步。T193 把這段判讀搬進 API summary
前端直接顯示「缺 trace 判讀」與「下一步」。
**完成變更**
- `/api/v1/platform/runs/callback-replies` summary 新增:
- `outbound_reply_markup_trace_ref_gap_status`
- `outbound_reply_markup_trace_ref_gap_next_action`
- 判讀規則:
- `clean`:缺 trace refs 總數為 0。
- `active_gap`:近 1 小時仍新增缺 trace refs。
- `recent_backlog`:近 1 小時沒有新增,但 24 小時窗口內仍有歷史缺口。
- `legacy_backlog`:只剩 24 小時外的舊缺口。
- AwoooP Runs / TG Callback Evidence 前端新增:
- `缺 trace 判讀:{status};下一步:{action}`
**local validation完成**
```text
python3 -m py_compile apps/api/src/services/platform_operator_service.py apps/api/src/api/v1/platform/operator_runs.py apps/api/tests/test_awooop_operator_timeline_labels.py
jq empty apps/web/messages/zh-TW.json apps/web/messages/en.json
PYTHONPATH=. DATABASE_URL='postgresql+asyncpg://test:test@localhost/test' /Users/ogt/.pyenv/shims/pytest apps/api/tests/test_awooop_operator_timeline_labels.py -q
53 passed in 1.12s
pnpm --dir apps/web exec tsc --noEmit --tsBuildInfoFile /tmp/awoooi-t193-tsconfig.tsbuildinfo
pass
pnpm --dir apps/web lint -- --file 'src/app/[locale]/awooop/runs/page.tsx'
pass with pre-existing i18next/no-literal-string and unused icon warnings
NEXT_PUBLIC_API_URL=https://awoooi.wooo.work pnpm --dir apps/web run build
pass; Sentry global-error / instrumentation-client warnings are pre-existing
git diff --check
pass
```
**目前整體進度pre-deploy**
- AwoooP 告警可觀測鏈:約 99.82%。
- 低風險自動修復閉環:約 95.85%。
- 前端 AI 自動化管理介面同步:約 99.72%。
- Telegram outbound / callback DB coverage 可視化:約 99.82%。
- callback / DB replayability約 98.9%。
- MCP / 自建 MCP 可視化:約 95.1%。
- Sentry / SigNoz source correlation約 94.5%。
- Ansible / PlayBook 可視化:約 92.6%。
- KM governance約 84.6%。
- AI Provider lane visibility約 92.2%。
- 完整 AI 自動化管理產品化:約 98.0%。