新增市場情報樣本驗收契約
All checks were successful
CD Pipeline / deploy (push) Successful in 1m1s

This commit is contained in:
OoO
2026-05-19 00:18:10 +08:00
parent dddafc579b
commit cd08dd7f97
9 changed files with 435 additions and 32 deletions

View File

@@ -173,6 +173,7 @@ EwoooC 目前已有 MOMO EDM / 節慶活動資料、`promo_products`、PChome
- 2026-05-18 追加 migration live smoke preview`services.market_intel.migration_live_smoke``/api/market_intel/migration_live_smoke``execute=true` 的正式 DB 只讀探測整理成 smoke result例如 `passed_not_applied_seed_table_missing``attention_partial_schema``passed_already_applied``failed_catalog_probe_error`。UI 預設仍只呼叫 `execute=false`;人工 smoke 可用 `execute=true` 只讀查 catalog不執行 migration、不寫 DB、不跑 rollback、不掛 scheduler。
- 2026-05-18 追加 live DB inventory preview`services.market_intel.live_db_inventory``/api/market_intel/live_db_inventory` 預設 `execute=false` 只回 planned不連 DB人工 smoke 可用 `execute=true``market_*` tables 執行只讀 count / group by產生平台、活動狀態、商品活躍度、比對狀態、告警審核佇列與 crawler run 基準總覽。此探針不建立 ORM session、不寫 DB、不執行 migration、不連外、不掛 scheduler。
- 2026-05-19 追加 manual sample fetch plan preview`services.market_intel.manual_sample_plan``/api/market_intel/manual_sample_plan` 定義第一次人工 sample fetch 的平台順序、每平台 1 個公開入口、MCP fetch gate、正式 DB 庫存基準、操作員步驟與備援。此階段只產生計畫,不抓外部網站、不寫 DB、不建立 crawler run、不掛 scheduler、不繞反爬。
- 2026-05-19 追加 manual sample acceptance contract`services.market_intel.manual_sample_acceptance``/api/market_intel/manual_sample_acceptance` 定義 sample fetch 結果回來後的必要欄位、診斷欄位、驗收門檻、拒收條件、人工決策與升級順序。此階段不載入 sample result、不抓外部網站、不允許候選導入、不寫 DB、不掛 scheduler。
### Phase 4Coupang / Shopee Adapter