917 B
917 B
T350 — account-health-model-recompute-job
Status:
done
Milestone:M3
Kind:feat
Est. change:~180 lines
Goal
完成後系統應:每 ThreadsAccount 有 score 0–100、level normal|warn|throttle、factors、advice;日批+發送事件可重算。
Depends on
- T301
Inputs
- Spec:
../spec.md§3.3、§4.4、AH-01 - 既有 outbox 失敗率、token 狀態、發送紀錄
Outputs
| 路徑 | 動作 | 說明 |
|---|---|---|
apps/backend/internal/module/**/health/** |
add | domain + recompute |
| job template | edit | account_health_recompute |
行為變更
- 無操作不扣分
- 門檻:≥70 normal;40–69 warn;<40 throttle
Out of scope
- 送出閘(T351)
Acceptance
- Spec:AH-01
- 指令:
cd apps/backend && go test ./internal/.../health/... -count=1
Notes
權重可調;門檻帶鎖定。