feat(awooop): classify callback trace gaps
This commit is contained in:
@@ -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 decision(pre-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%。
|
||||
|
||||
Reference in New Issue
Block a user