Commit Graph

82 Commits

Author SHA1 Message Date
OoO
bdae154237 新增市場情報 queue review inventory
Some checks failed
CD Pipeline / deploy (push) Has been cancelled
2026-05-19 13:00:46 +08:00
OoO
e7e045253d 補 OpenClaw QA 備援與市場情報交接
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s
2026-05-19 12:46:43 +08:00
OoO
04844099d9 新增市場情報 queue writer closeout
All checks were successful
CD Pipeline / deploy (push) Successful in 1m10s
2026-05-19 12:21:58 +08:00
OoO
2d4a3a4bf9 新增市場情報 queue writer run receipt 2026-05-19 12:04:28 +08:00
OoO
1274dadfa1 新增市場情報 queue writer run readiness
All checks were successful
CD Pipeline / deploy (push) Successful in 1m3s
2026-05-19 11:40:55 +08:00
OoO
98a0ca7af9 新增市場情報 queue writer run package
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s
2026-05-19 11:01:02 +08:00
OoO
ac1bdb7812 新增市場情報佇列 writer operator drill
All checks were successful
CD Pipeline / deploy (push) Successful in 1m3s
2026-05-19 10:33:21 +08:00
OoO
e217865ccc 新增市場情報佇列寫入後 smoke
All checks were successful
CD Pipeline / deploy (push) Successful in 1m3s
2026-05-19 10:11:14 +08:00
OoO
20d22b69ea 新增市場情報候選佇列 writer transaction
All checks were successful
CD Pipeline / deploy (push) Successful in 1m18s
2026-05-19 09:57:59 +08:00
OoO
c0ba5e876a 新增市場情報候選佇列 writer preflight
All checks were successful
CD Pipeline / deploy (push) Successful in 1m1s
2026-05-19 09:42:16 +08:00
OoO
9ada594197 新增市場情報候選佇列 writer gate
Some checks failed
CD Pipeline / deploy (push) Has been cancelled
2026-05-19 09:30:10 +08:00
OoO
595c88fa1e 新增市場情報候選佇列交易預覽
All checks were successful
CD Pipeline / deploy (push) Successful in 1m18s
2026-05-19 01:27:45 +08:00
OoO
7572622cb5 新增市場情報候選送審 gate
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s
2026-05-19 01:16:15 +08:00
OoO
f6d34628f6 新增市場情報候選審核佇列草案
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s
2026-05-19 01:05:27 +08:00
OoO
7a6afa3055 新增市場情報候選活動交接預覽
All checks were successful
CD Pipeline / deploy (push) Successful in 1m3s
2026-05-19 00:54:41 +08:00
OoO
f221832735 新增市場情報樣本結果即時審核
All checks were successful
CD Pipeline / deploy (push) Successful in 1m3s
2026-05-19 00:41:53 +08:00
OoO
5908d1bdca 新增市場情報樣本結果審核預覽
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s
2026-05-19 00:28:20 +08:00
OoO
cd08dd7f97 新增市場情報樣本驗收契約
All checks were successful
CD Pipeline / deploy (push) Successful in 1m1s
2026-05-19 00:18:10 +08:00
OoO
774f1b4b45 新增市場情報人工樣本抓取計畫
All checks were successful
CD Pipeline / deploy (push) Successful in 1m3s
2026-05-19 00:09:56 +08:00
OoO
e880c91028 新增市場情報 DB 庫存只讀總覽
All checks were successful
CD Pipeline / deploy (push) Successful in 1m3s
2026-05-18 20:37:04 +08:00
OoO
c4b92ce9f5 新增市場情報正式 DB 只讀 smoke
All checks were successful
CD Pipeline / deploy (push) Successful in 1m55s
2026-05-18 20:26:04 +08:00
OoO
36e20216ed 新增市場情報 DB catalog 判讀
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s
2026-05-18 20:18:03 +08:00
OoO
841443f37c 新增市場情報 migration 套用演練
All checks were successful
CD Pipeline / deploy (push) Successful in 1m2s
2026-05-18 20:05:24 +08:00
OoO
bc900321f8 feat(market-intel): add alert review queue migration blueprint
All checks were successful
CD Pipeline / deploy (push) Successful in 1m1s
2026-05-18 19:51:36 +08:00
OoO
96533a1c20 feat(market-intel): add alert review queue contract
All checks were successful
CD Pipeline / deploy (push) Successful in 1m3s
2026-05-18 19:41:35 +08:00
OoO
841db133d0 refactor(market-intel): modularize deployment readiness
All checks were successful
CD Pipeline / deploy (push) Successful in 1m13s
2026-05-18 19:36:19 +08:00
OoO
43773e871c feat(market-intel): add alert review preview
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s
2026-05-18 19:27:54 +08:00
OoO
9ed0805697 feat(market-intel): add opportunity alert plan preview
All checks were successful
CD Pipeline / deploy (push) Successful in 1m2s
2026-05-18 19:18:00 +08:00
OoO
8f6b3a4b41 feat(market-intel): add opportunity evidence plan preview
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s
2026-05-18 19:07:45 +08:00
OoO
f5b9f1bd74 feat(market-intel): add opportunity scoring plan preview
Some checks failed
CD Pipeline / deploy (push) Has been cancelled
2026-05-18 18:59:41 +08:00
OoO
18f8038b01 feat(market-intel): add opportunity plan preview
All checks were successful
CD Pipeline / deploy (push) Successful in 1m2s
2026-05-18 16:16:55 +08:00
OoO
0fcc0ea265 feat(market-intel): add match review plan preview
All checks were successful
CD Pipeline / deploy (push) Successful in 1m2s
2026-05-18 16:08:42 +08:00
OoO
a3fb476eed feat(market-intel): add scheduler attach plan preview
Some checks failed
CD Pipeline / deploy (push) Failing after 45s
2026-05-18 15:48:59 +08:00
OoO
921e9eeb15 feat(market-intel): gate manual fetch behind mcp readiness
All checks were successful
CD Pipeline / deploy (push) Successful in 1m6s
2026-05-18 15:40:56 +08:00
OoO
d990316d74 feat(market-intel): add mcp activation runbook
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s
2026-05-18 15:25:44 +08:00
OoO
160173a270 fix(market-intel): mount mcp compose for preflight
All checks were successful
CD Pipeline / deploy (push) Successful in 6m28s
2026-05-18 14:55:02 +08:00
OoO
6f68178959 feat(market-intel): add external mcp preflight
All checks were successful
CD Pipeline / deploy (push) Successful in 1m2s
2026-05-18 14:51:47 +08:00
OoO
07b76870c9 feat(market-intel): add internal mcp contract
All checks were successful
CD Pipeline / deploy (push) Successful in 1m1s
2026-05-18 14:42:25 +08:00
OoO
45af902b63 feat(market-intel): add mcp readiness preview
All checks were successful
CD Pipeline / deploy (push) Successful in 1m2s
2026-05-18 14:31:52 +08:00
OoO
bb6a862dbe feat(market-intel): 新增既有資料橋接預覽
All checks were successful
CD Pipeline / deploy (push) Successful in 1m2s
2026-05-18 14:19:43 +08:00
OoO
b7ba54a88f 更新 ADR-017 模組化現況 2026-05-13 16:15:06 +08:00
OoO
0c9f9278f1 啟用 Market Intel seed writer CLI gate
All checks were successful
CD Pipeline / deploy (push) Successful in 57s
2026-05-13 12:06:02 +08:00
OoO
749eace426 移除未使用 Paramiko 依賴
Some checks failed
CD Pipeline / deploy (push) Has been cancelled
2026-05-13 11:32:04 +08:00
OoO
605250619c Frontend V3 responsive production update
All checks were successful
CD Pipeline / deploy (push) Successful in 1m3s
2026-05-12 18:27:29 +08:00
OoO
30a173cf69 統一全站暖色視覺與市場情報骨架
All checks were successful
CD Pipeline / deploy (push) Successful in 58s
2026-05-06 20:24:46 +08:00
OoO
153e4c9734 fix(observability): revert unrelated quick review commit files
All checks were successful
CD Pipeline / deploy (push) Successful in 58s
2026-05-06 19:50:52 +08:00
OoO
308efdce25 chore(observability): clarify quick review completion copy
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s
2026-05-06 19:49:28 +08:00
OoO
390c32b05d feat(p21): Caller × Context 動態 Model Router + ADR-034
All checks were successful
CD Pipeline / deploy (push) Successful in 2m45s
Operation Ollama-First v5.0 / Phase 21 — 動態路由治理

services/llm_model_router.py (160+ 行)
- 純規則引擎,零 LLM 成本(Python lambda predicate)
- 6 caller × 12 條路由規則:
  • sales_copy: 短文 < 100 字 → gemma3:4b / 長文 → llama3.1:8b
  • hermes_analyst: gap > 20% 或銷量 < -50% → qwen3:14b / 預設 hermes3
  • aider_heal: diff > 200 行 → qwen2.5-coder:32b / 預設 7b
  • openclaw_qa: query > 200 字或 multi_turn → qwen3:14b / 預設 qwen2.5:7b-instruct
  • ppt_vision: minicpm 不健康 → llava / 預設 minicpm-v
  • ea_engine: require_chain_of_thought → deepseek-r1:14b / 預設 Gemini
- feature flag MODEL_ROUTER_ENABLED 預設 OFF(向下相容)
- 失敗安全:predicate 例外 skip 到下一條

tests/test_llm_model_router.py (18 tests 全綠)
- T1 flag OFF 不路由
- T2 sales_copy 短/長文路由
- T3 hermes 簡單/複雜 SKU
- T4 aider_heal 簡單/重構
- T5 ppt_vision 主備援
- T6 ea_engine CoT 路由
- T7 predicate 例外容錯
- T8 utility 函數

ADR-034 — Caller × Context 動態 Model Router
- 6 caller 路由規則對應表
- 5 段否決方案(LLM-based / hardcode / 配置檔 / 統一升級)
- Phase 21.2-21.6 戰略性遷移計畫
- V1-V3 驗收 SQL(caller 整合後 model 分布觀察)

關聯:Primary + Secondary 兩台 GCP 已備齊 10 模型(67GB 對稱)支援所有
路由規則;caller 整合可分階段進行(Phase 21.2-21.5)。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 10:54:12 +08:00
OoO
4e82acc0f5 feat(p10)+docs(adr): MCP 自建 Stack docker-compose + ADR-031
Operation Ollama-First v5.0 / Phase 10 + Phase 12 收尾

docker-compose.mcp.yml — 4+3 容器 MCP stack
- postgres-mcp (port 3001): Claude 直連 momo_pro DB read-only RBAC
- mcp-omnisearch (3003): Tavily 主 + Exa 備(取代 Gemini Grounding)
  避開 Brave(2026-02 取消免費 tier)
- firecrawl-self (3002): 自建爬蟲,SPA 反爬蟲
- filesystem-mcp (3004): 跨主機檔案 read-only

護欄 #2 落地(Owen v5.0 鐵律 / ADR-033):
  firecrawl-self mem_limit:2g + cpus:1.5
  PLAYWRIGHT_BROWSER_POOL_MAX=3
  chrome-reaper sidecar 每小時清 Chrome zombies

安全設計:
- 全部 127.0.0.1 暴露(不外網)
- read-only volume mount(filesystem 只能讀)
- postgres-mcp RBAC mcp_readonly role 限 SELECT 6 熱表
- API key 全走 env var 不寫死

ADR-031 — MCP 自建 Stack 治理決策
- 取代 Gemini Grounding 唯一通路(多供應商策略)
- 預期 70%+ grounding 流量走免費 Tavily
- 188 主機資源 +4-5GB RAM 可控
- Migration Plan:6 步驟(含 Tavily/Exa key 申請 + mcp_readonly role 預建)

啟用前置(待統帥):
1. .env 加 TAVILY_API_KEY / EXA_API_KEY / MCP_POSTGRES_PASSWORD / FIRECRAWL_AUTH_KEY
2. momo-db 建 mcp_readonly role + GRANT SELECT
3. ssh wooo@110 → ssh ollama@188 → docker compose -f docker-compose.mcp.yml up -d

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 09:02:07 +08:00
OoO
c29ce83653 docs(adr): ADR-032 RAG 自主學習迴圈 + ADR-033 三護欄
Operation Ollama-First v5.0 / Phase 12 Wave 2 收尾

ADR-032 — RAG 自主學習迴圈
- 雙表分離:rag_query_log (audit) / learning_episodes (蒸餾池) / ai_insights (知識庫)
- Distiller 規則引擎(純 Hermes 零 LLM 成本)
- PromotionGate 4 階段晉升閘
- Telegram 反饋環(rag_feedback / promotion_review keyboard)
- feature flag RAG_ENABLED 預設 OFF
- V1-V4 驗收 SQL(命中率 / 晉升通過率 / 反饋分布 / embedding 一致性)

ADR-033 — RAG 三護欄(Owen v5.0 鐵律)
- 護欄 #1 Promotion Gate:強制反饋門檻,weight>=0.8 必經人工驗收
- 護欄 #2 Firecrawl 資源:Docker mem_limit:2g + chrome-reaper sidecar + 1.8GB 告警
- 護欄 #3 BGE-M3 一致性:embedding_signature SHA1[:12] + 啟動跨主機驗證
- 五案否決理由完整(包含「不要反饋按鈕」「不限資源」「:latest 接受漂移」)

Migration Plan 對照:
   migration 026/028 schema + service 已落地
   Phase 12+ 補:embedding 寫入 / worker cron / Telegram 推播 / Firecrawl 部署 / signature 回填

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 00:01:19 +08:00