48 lines
1.3 KiB
Markdown
48 lines
1.3 KiB
Markdown
|
|
# T762 — p0 cross-layer integration gate
|
|||
|
|
|
|||
|
|
> Status: `done`
|
|||
|
|
> Milestone: `M6` · Phase C
|
|||
|
|
> Kind: `test` · Est. change: `~200 lines`
|
|||
|
|
|
|||
|
|
## Goal
|
|||
|
|
|
|||
|
|
以跨層測試證明 P0 真流程可從建立產品 watch 走到多產品單卡與人工主推。
|
|||
|
|
|
|||
|
|
## Depends on
|
|||
|
|
|
|||
|
|
- T760、T761
|
|||
|
|
|
|||
|
|
## Inputs
|
|||
|
|
|
|||
|
|
- `../spec.md` 驗收 #1–#13
|
|||
|
|
- backend integration harness、frontend live mapper tests
|
|||
|
|
|
|||
|
|
## Outputs
|
|||
|
|
|
|||
|
|
| 路徑 | 動作 | 說明 |
|
|||
|
|
|------|------|------|
|
|||
|
|
| `apps/backend/internal/logic/radar/brand_product_integration_test.go` | add | create→sweep→merge→primary→query |
|
|||
|
|
| `apps/web/src/pages/ProductRadarLiveFlow.test.tsx` | add | live-shaped page flow |
|
|||
|
|
| `docs/product/brand-product-radar/P0-ACCEPTANCE.md` | add | case 結果與未解缺口 |
|
|||
|
|
|
|||
|
|
## Behavior
|
|||
|
|
|
|||
|
|
- 同貼文兩 ProductMatch、單 Opportunity、單 Contact identity。
|
|||
|
|
- today/all/filter/primary/legacy/delete lifecycle 均可追查。
|
|||
|
|
- Threads/AI 使用 fake;不依賴外部網路或真 token。
|
|||
|
|
|
|||
|
|
## Out of scope
|
|||
|
|
|
|||
|
|
- Phase D reply/CRM/outcome
|
|||
|
|
- 宣稱準確度已過(T773)
|
|||
|
|
|
|||
|
|
## Acceptance
|
|||
|
|
|
|||
|
|
- [x] spec #1–#13 全部有自動測試或明確人工 case,結果記錄於 `../P0-ACCEPTANCE.md`。
|
|||
|
|
- [ ] P0 live 驗收批准後才進 T770(使用者 gate 尚待批准)。
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
cd apps/backend && make test-integration && go test ./... -count=1 && make build
|
|||
|
|
cd apps/web && npm run test && npm run build
|
|||
|
|
```
|