refactor(market-intel): modularize deployment readiness
All checks were successful
CD Pipeline / deploy (push) Successful in 1m13s

This commit is contained in:
OoO
2026-05-18 19:36:19 +08:00
parent d946c1abab
commit 841db133d0
5 changed files with 310 additions and 278 deletions

View File

@@ -164,6 +164,7 @@ EwoooC 目前已有 MOMO EDM / 節慶活動資料、`promo_products`、PChome
- 2026-05-18 追加 opportunity evidence plan preview`services.market_intel.opportunity_evidence``/api/market_intel/opportunity_evidence_plan` 定義 scoring / alert / AI 摘要必須攜帶的 campaign、market product、match review、MOMO reference、scoring trace 五段 evidence bundle contract。此階段不查 DB、不產生 sample evidence、不建立 alert candidate、不派送 Telegram、不產生 AI 摘要。
- 2026-05-18 追加 opportunity alert plan preview`services.market_intel.opportunity_alerts``/api/market_intel/opportunity_alert_plan` 定義人工審核、每日摘要、Telegram 候選、AI 摘要候選四種 channel 的最低門檻、去重節流、payload contract 與操作順序。此階段不建立 alert queue、不派送 Telegram、不呼叫 LLM、不寫 DB所有告警必須先有 evidence bundle、dedupe key 與人工批准。
- 2026-05-18 追加 opportunity alert review preview`/api/market_intel/opportunity_alert_plan` 擴充人工審核狀態與操作,定義 `draft → needs_review → approved_for_digest / approved_for_telegram / rejected / deferred` 流程、審核理由、審核者身分與派送前二次 gate。此階段不建立 review queue、不執行審核動作、不寫 approval record、不派送 Telegram、不呼叫 LLM。
- 2026-05-18 追加 deployment readiness modularization`/api/market_intel/deployment_readiness` 的大型 app-only release gate 組裝邏輯由 `services.market_intel.service` 拆至 `services.market_intel.deployment_readiness`,主服務保留薄入口,避免後續 crawler / MCP / 審核功能推進時超過 800 行治理線;行為仍維持 preview-only不執行 git、部署、SSH、migration 或 DB write。
### Phase 4Coupang / Shopee Adapter