Your Name
3a2cd15144
feat(p3.1-t2): Tier-2 三服務感知強化 — Sentry 簽章 + DiagnosisAggregator + Solver actions test
...
CD Pipeline / build-and-deploy (push) Has been cancelled
Wave 8 P3.1-T2 三項感知強化(多 engineer 補完):
Sentry Webhook 簽章驗證:
- sentry_webhook.py: 接入 SentryWebhookService.verify_sentry_signature()
- 拒絕無效 sentry-hook-signature → 401 → 防偽造攻擊
DiagnosisAggregator Pod 深診斷整合:
- pre_decision_investigator.py: 新增 _collect_diagnosis_aggregator()
- ENABLE_DIAGNOSIS_AGGREGATOR feature flag 守衛(default=False)
- evidence_snapshot.py: extra_diagnosis 欄位 + build_summary 顯示
- timeout=3.0s + try/except 隔離(fail-soft)
- Conservative 策略:待重疊分析確認 vs PreDecisionInvestigator 不重複
config.py:
- 新增 ENABLE_DIAGNOSIS_AGGREGATOR Field(default=False,K8s ConfigMap 動態啟用)
Solver B1 補測(commit 7c726ebc 對應):
- test_solver_recommended_actions.py — 20 tests + 3 skipped
- 驗證結構化 recommended_actions(北極星 §1.1 修復多樣性 ≥ 40%)
- LLM 失敗 graceful degraded(candidates=[], degraded=True)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
Co-Authored-By: Multiple Engineers (Wave 8 P3.1-T2) <noreply@anthropic.com >
2026-04-27 08:24:15 +08:00
OG T
665f93e83f
fix(telegram): 首席架構師 R1 修正 — I-1/I-2/M-1/M-2
...
CD Pipeline / build-and-deploy (push) Has been cancelled
I-1: webhooks/sentry_webhook/signoz_webhook 三個呼叫者補 TODO 說明
無 incident_id 是已知限制(Approval 路徑未建 Incident 關聯)
I-2: TestPushRequest 新增 incident_id 欄位,使 QA 可驗證按鈕渲染
M-1: 移除 _build_inline_keyboard 呼叫中多餘的 `or message.incident_id`
M-2: 補充 900/1000 截斷長度差異說明
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-05 13:07:42 +08:00
OG T
f5b8738185
fix(wave-a): Wave A 告警鏈路驗收修復
...
CD Pipeline / build-and-deploy (push) Has been cancelled
E2E Health Check / e2e-health (push) Has been cancelled
- sentry_webhook: 加入 GET /health endpoint (smoke test 探測用)
- smoke_test: alertmanager 路徑改為 /webhooks/health (已存在)
- smoke_test: Prometheus URL 改為正確的 110:9090
- smoke_test: Alert chain metric 標記 critical=False (初始化期正常)
Wave A.6 smoke test 現在 6/8 → 7/8 checks pass (sentry health deploy 後 8/8)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-02 20:08:26 +08:00
OG T
077e1cd637
fix(telegram): 修復所有 webhook 路徑缺失 ai_provider → Telegram 顯示「AI 仲裁判定」
...
E2E Health Check / e2e-health (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
根本原因: send_approval_card() 有 ai_provider 參數,但三個 webhook 呼叫端都沒傳:
- signoz_webhook.py: 有 ai_provider 參數但未轉傳給 send_approval_card
- sentry_webhook.py: 有 analysis.analyzed_by 但未傳
- webhooks.py: _push_to_telegram_background 缺少 ai_provider 參數
修復後 Telegram 會顯示「🤖 OpenClaw Nemo 仲裁」而非「🤖 AI 仲裁判定」
2026-04-02 ogt: 三個 webhook 路徑統一修復
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-02 00:51:13 +08:00
OG T
8313a3787b
refactor(api): Phase 22 P0 leWOOOgo 模組化修復
...
E2E Health Check / e2e-health (push) Has been cancelled
Router 層禁止直接 httpx.AsyncClient,抽取到 Service 層:
新增 Services:
- OpenClawHttpService: Error 分析/Code Review/CI 診斷
- GitHubApiService: PR Diff 取得
- HealthCheckService: HTTP/PostgreSQL/Redis 健康檢查
修改 Routers:
- sentry_webhook.py: 使用 OpenClawHttpService
- github_webhook.py: 使用 GitHubApiService + OpenClawHttpService
- health.py: 使用 HealthCheckService
遵循規範:
- Skill 09: Router 層禁止直接外部 API 呼叫
- feedback_lewooogo_modular_enforcement.md
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-03-31 16:06:35 +08:00
OG T
89a2339796
feat(api): ADR-038 Circuit Breaker 整合 + Graceful Degradation
...
sentry_webhook.py:
- 整合 OpenClawGuard (Circuit Breaker + Semaphore)
- 斷路狀態快速失敗,不呼叫 OpenClaw
- 並發控制: 最多 3 個同時 LLM 推理
anomaly_counter.py:
- record_anomaly() Redis 故障 Graceful Degradation
- 失敗時返回預設 AnomalyFrequency (count=0)
- 不中斷主流程
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-03-29 15:55:51 +08:00
OG T
d89f0520f9
fix(api): 修復 34 個 Ruff lint 錯誤
...
- 自動修復 import 排序、unused imports
- 手動修復 raise from、isinstance union、unused variable
- scripts/ 暫時保留 (非 CI 阻擋)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-03-29 15:27:49 +08:00
OG T
d6dc80bcbc
fix(sentry): OpenClaw URL 修正 8088→8089
...
ADR-028 端口統一,Sentry webhook 漏掉更新
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-03-29 01:46:28 +08:00
OG T
ecdcb6110e
fix(api): 修復 Sentry Approval 創建參數 (P2)
...
ApprovalDBService.create_approval() 不接受 approval_id 參數
ID 由 Service 自動生成,返回後從 ApprovalRequest.id 取得
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-03-28 00:18:12 +08:00
OG T
a5ff57ddc3
fix(api): 修復 Sentry Approval 欄位對齊 ApprovalRequestBase
...
- ApprovalRequestCreate 使用正確欄位 (action, description, blast_radius...)
- BlastRadius 改用 Model 實例而非不存在的 enum
- 移除未使用的 DryRunCheck import
- 原始欄位移至 metadata
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-03-27 23:14:24 +08:00
OG T
2b069818af
refactor(api): Sentry dedup 邏輯移至 Service 層 (leWOOOgo 模組化)
...
Phase 10.2.1 - 2026-03-27 台北時區
- 將 check_sentry_dedup() 從 Router 移至 SentryService.check_dedup()
- Router 層禁止直接存取 Redis (遵循 leWOOOgo 積木化原則)
- 保持 10 分鐘 TTL 去重窗口
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-03-27 15:04:53 +08:00
OG T
749b8bc554
fix(api): 修復時區 import 排序與未使用變數 lint 錯誤
...
- 修正 import 順序 (standard → third-party → local)
- 修復 datetime/timedelta 未定義錯誤
- 移除未使用的 imports
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-03-25 09:26:58 +08:00
OG T
5c95b194b9
feat(api): Sentry + OpenClaw + Telegram 整合 (Phase 10)
...
- 新增 Telegram 告警發送 (send_sentry_telegram_alert)
- 新增 Approval 創建 (create_sentry_approval)
- 整合 analyze_and_comment 流程:
1. OpenClaw AI 分析
2. 建立 Approval 記錄
3. 發送 Telegram 告警 (含 Y/n 按鈕)
4. 回寫 Sentry Comment
Memory: project_sentry_openclaw_v2.md
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-03-25 09:12:41 +08:00
OG T
2a2dac865a
feat(api): 統一使用台北時區 UTC+8 (禁止 UTC)
...
- 新增 src/utils/timezone.py 時區工具函式
- 修改 11 個後端檔案,全部改用 now_taipei()
- 更新 HARD_RULES.md 加入時區鐵律章節
- 更新 Skills 02/04 加入時區禁令
🔴 HARD RULE: 禁止 datetime.utcnow() / datetime.now(UTC)
✅ 正確做法: from src.utils.timezone import now_taipei
Memory: feedback_timezone_taipei.md
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-03-25 09:08:34 +08:00
OG T
1ab3f15816
fix(api): Lint fixes for sentry_webhook.py
2026-03-25 00:26:24 +08:00
OG T
3b8638b350
feat(api): Add sync-from-approvals endpoint for incident backfill
...
Fixes existing approvals created before b645981 that lack
corresponding incidents. Ensures "活躍事件" count matches
"待簽核" count.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-03-25 00:09:44 +08:00