OoO
|
98a0ca7af9
|
新增市場情報 queue writer run package
CD Pipeline / deploy (push) Successful in 1m4s
|
2026-05-19 11:01:02 +08:00 |
|
OoO
|
ac1bdb7812
|
新增市場情報佇列 writer operator drill
CD Pipeline / deploy (push) Successful in 1m3s
|
2026-05-19 10:33:21 +08:00 |
|
OoO
|
e217865ccc
|
新增市場情報佇列寫入後 smoke
CD Pipeline / deploy (push) Successful in 1m3s
|
2026-05-19 10:11:14 +08:00 |
|
OoO
|
20d22b69ea
|
新增市場情報候選佇列 writer transaction
CD Pipeline / deploy (push) Successful in 1m18s
|
2026-05-19 09:57:59 +08:00 |
|
OoO
|
c0ba5e876a
|
新增市場情報候選佇列 writer preflight
CD Pipeline / deploy (push) Successful in 1m1s
|
2026-05-19 09:42:16 +08:00 |
|
OoO
|
9ada594197
|
新增市場情報候選佇列 writer gate
CD Pipeline / deploy (push) Has been cancelled
|
2026-05-19 09:30:10 +08:00 |
|
OoO
|
595c88fa1e
|
新增市場情報候選佇列交易預覽
CD Pipeline / deploy (push) Successful in 1m18s
|
2026-05-19 01:27:45 +08:00 |
|
OoO
|
7572622cb5
|
新增市場情報候選送審 gate
CD Pipeline / deploy (push) Successful in 1m4s
|
2026-05-19 01:16:15 +08:00 |
|
OoO
|
f6d34628f6
|
新增市場情報候選審核佇列草案
CD Pipeline / deploy (push) Successful in 1m4s
|
2026-05-19 01:05:27 +08:00 |
|
OoO
|
7a6afa3055
|
新增市場情報候選活動交接預覽
CD Pipeline / deploy (push) Successful in 1m3s
|
2026-05-19 00:54:41 +08:00 |
|
OoO
|
f221832735
|
新增市場情報樣本結果即時審核
CD Pipeline / deploy (push) Successful in 1m3s
|
2026-05-19 00:41:53 +08:00 |
|
OoO
|
5908d1bdca
|
新增市場情報樣本結果審核預覽
CD Pipeline / deploy (push) Successful in 1m4s
|
2026-05-19 00:28:20 +08:00 |
|
OoO
|
cd08dd7f97
|
新增市場情報樣本驗收契約
CD Pipeline / deploy (push) Successful in 1m1s
|
2026-05-19 00:18:10 +08:00 |
|
OoO
|
774f1b4b45
|
新增市場情報人工樣本抓取計畫
CD Pipeline / deploy (push) Successful in 1m3s
|
2026-05-19 00:09:56 +08:00 |
|
OoO
|
e880c91028
|
新增市場情報 DB 庫存只讀總覽
CD Pipeline / deploy (push) Successful in 1m3s
|
2026-05-18 20:37:04 +08:00 |
|
OoO
|
c4b92ce9f5
|
新增市場情報正式 DB 只讀 smoke
CD Pipeline / deploy (push) Successful in 1m55s
|
2026-05-18 20:26:04 +08:00 |
|
OoO
|
36e20216ed
|
新增市場情報 DB catalog 判讀
CD Pipeline / deploy (push) Successful in 1m4s
|
2026-05-18 20:18:03 +08:00 |
|
OoO
|
841443f37c
|
新增市場情報 migration 套用演練
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
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
CD Pipeline / deploy (push) Successful in 1m3s
|
2026-05-18 19:41:35 +08:00 |
|
OoO
|
841db133d0
|
refactor(market-intel): modularize deployment readiness
CD Pipeline / deploy (push) Successful in 1m13s
|
2026-05-18 19:36:19 +08:00 |
|
OoO
|
43773e871c
|
feat(market-intel): add alert review preview
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
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
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
CD Pipeline / deploy (push) Has been cancelled
|
2026-05-18 18:59:41 +08:00 |
|
OoO
|
18f8038b01
|
feat(market-intel): add opportunity plan preview
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
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
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
CD Pipeline / deploy (push) Successful in 1m6s
|
2026-05-18 15:40:56 +08:00 |
|
OoO
|
d990316d74
|
feat(market-intel): add mcp activation runbook
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
CD Pipeline / deploy (push) Successful in 6m28s
|
2026-05-18 14:55:02 +08:00 |
|
OoO
|
6f68178959
|
feat(market-intel): add external mcp preflight
CD Pipeline / deploy (push) Successful in 1m2s
|
2026-05-18 14:51:47 +08:00 |
|
OoO
|
07b76870c9
|
feat(market-intel): add internal mcp contract
CD Pipeline / deploy (push) Successful in 1m1s
|
2026-05-18 14:42:25 +08:00 |
|
OoO
|
45af902b63
|
feat(market-intel): add mcp readiness preview
CD Pipeline / deploy (push) Successful in 1m2s
|
2026-05-18 14:31:52 +08:00 |
|
OoO
|
bb6a862dbe
|
feat(market-intel): 新增既有資料橋接預覽
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
CD Pipeline / deploy (push) Successful in 57s
|
2026-05-13 12:06:02 +08:00 |
|
OoO
|
749eace426
|
移除未使用 Paramiko 依賴
CD Pipeline / deploy (push) Has been cancelled
|
2026-05-13 11:32:04 +08:00 |
|
OoO
|
605250619c
|
Frontend V3 responsive production update
CD Pipeline / deploy (push) Successful in 1m3s
|
2026-05-12 18:27:29 +08:00 |
|
OoO
|
30a173cf69
|
統一全站暖色視覺與市場情報骨架
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
CD Pipeline / deploy (push) Successful in 58s
|
2026-05-06 19:50:52 +08:00 |
|
OoO
|
308efdce25
|
chore(observability): clarify quick review completion copy
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
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 |
|
OoO
|
d3d90121cf
|
docs(adr): ADR-030 Frontier 多供應商策略 — Anthropic + Google + OpenRouter
Operation Ollama-First v5.0 / Phase 12 / Phase 7 落地後追認
Phase 7 引入 Anthropic Claude(Opus 4.7 接 Code Review)後,
戰役有 2 家 Frontier 供應商,需明確治理準則:
決策矩陣(與 ADR-028 鎖定 7 場景對齊):
- 場景 #5 Code Review ⭐: Claude Opus 4.7 (Arena Elo 1548)
→ Gemini 2.5 Flash → ElephantAlpha 49B (3 層 fallback)
- 其他 6 場景維持 Gemini 主鏈
Prompt cache 戰術:
- Anthropic 5min ephemeral:Code Review 命中率預估 80%+,省 ~90% 成本
- Google Gemini:隱式 server-side cache,不可預測
預估月成本:~$32 USD
- Claude $10 + Gemini $8 + NIM $5×2 + OpenRouter $3 + Ollama $0.02
新增供應商 SOP:
1. service wrapper 加 feature flag + is_available() 檢查
2. budget 種子 + ai_calls.provider 白名單
3. unit test (fallback 鏈 + cache hit/miss)
4. 獨立 ADR
對齊:
- migration 024(claude in provider 白名單)
- migration 025(claude $10/月 budget 種子)
- ai_call_logger COST_TABLE(claude-opus/sonnet/haiku 三模型)
- services/anthropic_service.py(Phase 7 落地)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-03 23:42:36 +08:00 |
|
OoO
|
3ea7004a6f
|
refactor(p4)+docs(p5+p6): Meta 降頻 + LOCKED-GEMINI + ADR-028/029
Phase 4 A10 — OpenClaw 雙塔重劃
- run_scheduler.py: Meta 自審 cron 6h → 每日 12:00(月省 2.25M Gemini, +20% 達標)
- scheduler.py: 移除 icaim 內 2 處 inline meta 觸發
- openclaw_strategist 抽 _push_report_with_charts (call×3) + _collect_mcp_intel (call×2)
- 行數目標 -25% 未達(4 報告函數結構差異大,A10 採保守抽出避險)
- 主戰果:Meta 降頻月呼叫 300 → 30(-90%)
Phase 5 — 5 處 LOCKED-GEMINI 註解(涵蓋鎖定 7 場景)
- services/mcp_collector_service.py:32 (場景 #1: Google Search Grounding)
- services/openclaw_strategist_service.py:40 (場景 #2/3/4: 週/月/年報)
- services/code_review_pipeline_service.py:46 (場景 #5: 100K+ token diff)
- services/elephant_alpha_orchestrator.py:88 (場景 #6: EA HITL)
- routes/openclaw_bot_routes.py:98 (場景 #7: PPT 簡報)
Phase 6 A12 — 憲法級 ADR 三份
- ADR-028「LLM 路由統一準則」(269 行)
- 5 大支柱:三主機級聯 / Ollama 優先 / 雙塔分工 / Gemini 鎖 7 場景 / 可觀測性
- 8 個 provider 白名單(DB CHECK 對齊)
- 30+ caller 名單分「已實作 / 規劃中」
- ADR-029「Hermes-First 雙塔分工」(222 行)
- 12 項職責重劃表 + A7/A8/A10 落地對照
- Gemini 月支出 -23.5%(critic 第 3 輪 B5 算術修正)
- ADR-027 附錄(+69 行)
- 三主機架構(Primary/Secondary/Fallback)
- 4 條獨立 fallback 鏈
- 廢止「188 Ollama」概念
- README 索引更新
A11 critic 第 3 輪修補:5 BLOCKER 全清
- B1: 行數 1831 → 2677 (含 baseline 對照)
- B2: 場景 #4 行號 759/1267 → 1102/1628 + annual 不存在註明
- B3: 虛構 caller 改實存(ea_hitl_prefetch → ea_engine 等)
- B4: 白名單三層對齊(DB 8 = ADR 8 = token_report 補 ollama_secondary)
- B5: KPI 算術 50→38 = -23.5% 重核
services/telegram_templates.py: A5 daily_token_report() 函數
services/mcp_collector_service.py: 加 LOCKED-GEMINI 註解
services/elephant_alpha_orchestrator.py: 加 LOCKED-GEMINI 註解
103/103 unit test 全綠(zero regression)
Operation Ollama-First v5.0 / Phase 4 A10 + Phase 5 + Phase 6 A12
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-03 23:06:08 +08:00 |
|
OoO
|
ce270edc5d
|
docs(adr): ADR-026 PPT price_elasticity + complete v3 campaign roadmap
收尾 v3 PPT 戰役(ADR-022~026 共 5 份 ADR):
完成總計:
- 18 commits(38967ce → 16b169d)
- 16 種有效 PPT 報表
- 2 種 DEPRECATED(bcg / growth)
- 5 ADR 涵蓋完整戰役決策
報表角色覆蓋:
- 戰情/早會:daily / weekly
- BU 主管:monthly / quarterly / half_yearly / forecast / strategy
- CEO/CFO:annual / ttm / market_intel
- 採購/PM:vendor / category / new_product / price_elasticity
- 行銷:promo / promo_compare / customer / market_intel
- 競品:competitor
Wave 4 待辦(受資料層 / 外部整合限制):
- clv (需 user_id 會員系統)
- competitor v4 五力(需外部 SKU/品牌力資料整合)
- inventory / operations / finance(需新 DB schema)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-03 12:50:25 +08:00 |
|
OoO
|
9862edeb44
|
docs(adr): ADR-025 PPT Wave 3 (new_product + market_intel_weekly)
Wave 3 完成 2 種橫向資訊整合型報表:
- new_product (95a74c3) — 30 天追蹤,PostgreSQL CTE 識別新品
- market_intel_weekly (fe3cba8) — 8 個外部 API 彙整,fail-safe 設計
累計報表清單:13 種有效 + 2 種 DEPRECATED + 4 種待資料層支援。
Wave 3 餘項(受資料層限制):
- clv (需 user_id)
- price_elasticity (需長期定價歷史)
- competitor v4 五力 (需外部 SKU/品牌力資料)
Wave 4 待辦(依資料層 schema):
- inventory / operations / finance
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-03 12:41:12 +08:00 |
|
OoO
|
af6157f8ba
|
docs(adr): ADR-024 PPT Wave 2 (forecast + promo_compare) + deprecate bcg/growth
CD Pipeline / deploy (push) Successful in 2m41s
Wave 2 完成 2 種新報表:
- forecast_pre_event (9f04dc3) — 檔期前 14 天備戰策略 (BU 主管用)
- promo_compare (958f705) — 多活動 ROI 並排比較 (行銷主管覆盤)
正式廢除(DEPRECATED 標記,函式保留作 internal helper):
- bcg — 與 strategy 報表功能重疊(strategy 已含 BCG 五級分類)
- growth — 已被 quarterly + half_yearly + annual + ttm 完全取代
報表體系現況:16 種有效(v3 重做 6 + Wave 1 新增 8 + Wave 2 新增 2)+ 2 種
DEPRECATED;4 種角色覆蓋(採購/PM/行銷/CFO/CEO)。
forecast 核心:baseline 日均 × 21 天 × lift_factor,含 8 種檔期靜態知識
(雙11 1.65× / 母親節 1.40× 等),封面倒數天數徽章自動切換。
promo_compare 核心:N 場活動並排 KPI 表 + 拉抬 % 排序橫條 + 4 排名亮點
(最高拉抬/最低拉抬/最佳毛利/最高業績)。
Wave 3 待辦:market_intel_weekly / new_product / clv / price_elasticity
Wave 4 待辦:inventory / operations / finance(依資料層)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-03 12:30:35 +08:00 |
|