新增市場情報 AI summary Telegram dispatch closeout
All checks were successful
CD Pipeline / deploy (push) Successful in 1m8s

This commit is contained in:
OoO
2026-05-20 11:13:56 +08:00
parent 93f1a558a5
commit 38085d4cec
9 changed files with 1150 additions and 93 deletions

View File

@@ -219,6 +219,7 @@ EwoooC 目前已有 MOMO EDM / 節慶活動資料、`promo_products`、PChome
- 2026-05-20 追加 candidate queue review AI summary persistence Telegram dispatch run package`services.market_intel.candidate_queue_review_ai_summary_persistence_telegram_dispatch_run_package``/api/market_intel/manual_sample_review/candidate_queue_review_ai_summary_persistence_telegram_dispatch_run_package` 在 dispatch gate 後整理 message contract snapshot、command plan、artifact checklist 與下一階段 readiness promotion。此 run package 只允許放行到後續 Telegram dispatch run readinessAPI/UI 不讀 approval/Telegram token、不呼叫 LLM、不開 DB、不寫檔、不派送 Telegram、不更新 `review_state`、不 commit、不掛 scheduler。
- 2026-05-20 追加 candidate queue review AI summary persistence Telegram dispatch run readiness`services.market_intel.candidate_queue_review_ai_summary_persistence_telegram_dispatch_run_readiness``/api/market_intel/manual_sample_review/candidate_queue_review_ai_summary_persistence_telegram_dispatch_run_readiness` 在 dispatch run package 後檢查 message preview、run package、dispatch receipt artifact path、manual command review、Telegram token shell-only 與 no-side-effect 確認。此 readiness 只允許放行到人工 Telegram dispatch 後的 receipt reviewAPI/UI 不讀 approval/Telegram token、不呼叫 LLM、不開 DB、不寫檔、不派送 Telegram、不更新 `review_state`、不 commit、不掛 scheduler。
- 2026-05-20 追加 candidate queue review AI summary persistence Telegram dispatch run receipt`services.market_intel.candidate_queue_review_ai_summary_persistence_telegram_dispatch_run_receipt``/api/market_intel/manual_sample_review/candidate_queue_review_ai_summary_persistence_telegram_dispatch_run_receipt` 審核人工 Telegram 派送後貼回的 message id、channel、summary hash、receipt artifact 與 token 外洩風險。此 receipt 只允許放行到後續 Telegram dispatch closeoutAPI/UI 不讀 approval/Telegram token、不呼叫 LLM、不補發或重送 Telegram、不開 DB、不寫檔、不更新 `review_state`、不 commit、不掛 scheduler。
- 2026-05-20 追加 candidate queue review AI summary persistence Telegram dispatch closeout`services.market_intel.candidate_queue_review_ai_summary_persistence_telegram_dispatch_closeout``/api/market_intel/manual_sample_review/candidate_queue_review_ai_summary_persistence_telegram_dispatch_closeout` 在人工 Telegram receipt 通過後整理 closeout artifact、receipt archive、message visibility、duplicate dispatch 與 post-closeout monitoring gate。此 closeout 只允許放行到後續封存/報表 gateAPI/UI 不讀 approval/Telegram token、不呼叫 LLM、不補發或重送 Telegram、不開 DB、不寫檔、不更新 `review_state`、不 commit、不掛 scheduler。
### Phase 4Coupang / Shopee Adapter

View File

@@ -23,6 +23,7 @@
- 2026-05-20 追記:同步背景匯出流程更新後的 `routes/export_routes.py` 行數;此處只更新 inventory不變更 export 行為。
- 2026-05-20 追記:同步背景 PChome feeder 人工覆核回饋採納後的 `services/competitor_price_feeder.py` 行數;此處只更新 inventory不變更 feeder 行為。
- 2026-05-20 追記:同步背景 PChome 比價人工覆核閉環後的 `services/competitor_intel_repository.py` 行數;此處只更新 inventory不變更競品情報 repository 行為。
- 2026-05-20 追記:同步背景 PChome identity / price direction 更新後的 `services/marketplace_product_matcher.py` 行數;此處只更新 inventory不變更商品比對行為。
## 達到或超過 800 行檔案清單
@@ -49,7 +50,7 @@
| 940 | `services/import_service.py` | P2 import service | validators / import writers / report builders |
| 933 | `services/telegram_templates.py` | P2 Telegram templates | alert template groups / channel-specific formatting / reusable render helpers |
| 867 | `services/token_report_service.py` | P2 token report service | query / aggregation / chart payload / notification formatting |
| 863 | `services/marketplace_product_matcher.py` | P2 marketplace matcher | identity parsing / unit-comparable scoring / persistence normalization |
| 972 | `services/marketplace_product_matcher.py` | P2 marketplace matcher | identity parsing / unit-comparable scoring / persistence normalization |
| 865 | `routes/daily_sales_routes.py` | P2 Daily Sales Blueprint | route glue / export helpers / daily query and formatting service |
| 844 | `services/ollama_service.py` | P2 Ollama client | host health / request client / fallback policy / response parsing |
| 1042 | `services/code_review_pipeline_service.py` | P2 Code review pipeline service | scan orchestration / finding normalization / persistence adapter |