thread-master/docs/product/growth-loop/tasks/T331-checkup-api-no-usage-d...

51 lines
906 B
Markdown
Raw 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.

# T331 — checkup-api-no-usage-debit
> Status: `done`
> Milestone: `M2`
> Kind: `feat`
> Est. change: `~160 lines`
## Goal
完成後系統應Checkup API latest/list/get/generateNow7 日≤2 次重產;**任何健檢 AI 路徑不寫 Usage 扣點**;完成發通知。
## Depends on
- T330
- T300
## Inputs
- Spec`../spec.md` §4.2、§5.2、CU-0305
- 既有 usage recorder、notification
## Outputs
| 路徑 | 動作 | 說明 |
|------|------|------|
| `apps/backend/internal/logic/**/checkup*/**` | edit | API |
| usage 呼叫點 | edit | 健檢 path 跳過 meter |
### 行為變更
- generateNow 超限明確錯誤
- ready → notification
## Out of scope
- FE
## Acceptance
- [ ] SpecCU-03、CU-04、CU-05
- [ ] Test 斷言無 checkup debit UsageEvent
- [ ] 指令:
```bash
cd apps/backend && go test ./internal/... -run CU_0|Checkup -count=1
```
## Notes