thread-master/docs/product/demand-radar/tasks/T603-regression-scout-outbo...

51 lines
1.3 KiB
Markdown
Raw Normal View History

2026-08-03 05:52:02 +00:00
# T603 — regression-scout-outbox-outcomes-naming
> Status: `done`
> Milestone: `M6`
> Kind: `test`
> Est. change: `~180 lines`
## Goal
完成後系統應RG-01RG-05 全數通過——既有海巡、Outbox、成果歸因、`soft_caps`、命名紅線都沒被本 run 弄壞。
## Depends on
- T602
## Inputs
- Spec`../spec.md` §9.6、§6Retain 清單)
- `AGENTS.md`:禁止未實作 API 回成功空資料
## Outputs
### 程式變更(預期路徑)
| 路徑 | 動作 | 說明 |
|------|------|------|
| `apps/backend/internal/testkit/regression_radar_test.go` | add | RG-01RG-04 斷言 |
| `apps/backend/Makefile` 或 CI 腳本 | edit | 加一個命名紅線檢查步驟(`lead` 用法) |
### 行為變更
- 無(測試與檢查)。
## Out of scope
- 修 bug 本身(發現問題另開 task 或回到對應 M 的 task 修)
## Acceptance
- [x] RG-01海巡三模式 briefscan 行為一致
- [x] RG-02Outbox 僅平台成功才 `published`
- [x] RG-03既有成果彙總含 radar 成交且既有數字不變
- [x] RG-04`soft_caps` 四分項加總等於 `monthly_credits`
- [x] RG-05檢索無新增以 `lead` 指稱銷售線索
- [x] 指令:
```bash
cd apps/backend && go test ./... -count=1 && make test-integration
rg -w 'lead' apps/backend apps/web docs/product/demand-radar
```