thread-master/docs/product/growth-loop/tasks/T350-account-health-model-r...

49 lines
917 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# T350 — account-health-model-recompute-job
> Status: `done`
> Milestone: `M3`
> Kind: `feat`
> Est. change: `~180 lines`
## Goal
完成後系統應:每 ThreadsAccount 有 score 0100、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 normal4069 warn<40 throttle
## Out of scope
- 送出閘T351
## Acceptance
- [ ] SpecAH-01
- [ ] 指令:
```bash
cd apps/backend && go test ./internal/.../health/... -count=1
```
## Notes
權重可調;門檻帶鎖定。