thread-master/docs/product/growth-loop/tasks/T312-outcome-observe-job.md

52 lines
1.2 KiB
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.

# T312 — outcome-observe-job-72h
> Status: `done`
> Milestone: `M1`
> Kind: `feat`
> Est. change: `~180 lines`
## Goal
完成後系統應Job/worker `outcome_observe` 在 72h 窗內更新訊號;能讀則寫 confirmed/possible不能讀則跳過窗結束 expired。
## Depends on
- T311
## Inputs
- Spec`../spec.md` §3.1、§5.4、§5.5、OC-0203、OC-08
- 既有 job runnerworker
## Outputs
| 路徑 | 動作 | 說明 |
|------|------|------|
| `apps/backend/internal/**/job/**` 或 worker | edit | template outcome_observe |
| `apps/backend/internal/**/outcome/**` | edit | ApplySignals / Expire |
| 註記檔或 TESTING 附錄 | add | Threads scope 探測結果 |
### 行為變更
- 對話→confirmed若可得followers diff→possible
- 全無訊號仍保留事件(觸達);不整域失敗
## Out of scope
- UTMP2
- 手動成交 APIT313
## Acceptance
- [ ] SpecOC-02、OC-03、OC-08降級
- [ ] fake transport 可測「有訊號/無訊號」
- [ ] 指令:
```bash
cd apps/backend && go test ./internal/... -run OC_0|Observe -count=1
```
## Notes
探測表寫進 notes缺 scope 不阻塞手動路徑交付。