OG T
561bcb638b
fix(api): Sprint 4 首席架構師 Review P0 修正 — hash 統一 + 積木化合規
P0-1: anomaly_key hash 推導統一
- B1: 新增 _derive_anomaly_key() 使用 AnomalyCounter.hash_signature()
取代 symptoms.compute_hash()
- B3/B4: namespace 改用 signal.labels.get("namespace", "")
修正 getattr(signal, "namespace", "") 永遠回傳空字串
P0-2: Router 層積木化合規
- C1/C2: 封裝 get_all_disposition_stats() 到 AnomalyCounter
- Router 不再直接存取 counter.redis
- stats.py 移除未使用的 days/stats 參數
P1: get_frequency() 填充 disposition 欄位
- 與 _record_anomaly_impl() 一致,回傳完整處置統計
首席架構師評分: 82/100 → P0 全數修正
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-07 12:53:12 +08:00
..
2026-03-26 16:06:20 +08:00
2026-04-06 11:46:05 +08:00
2026-03-29 21:16:50 +08:00
2026-04-07 12:53:12 +08:00
2026-04-07 11:17:40 +08:00
2026-04-05 01:00:31 +08:00
2026-03-22 18:57:44 +08:00
2026-03-22 18:57:44 +08:00
2026-04-05 12:42:37 +08:00
2026-03-29 15:27:49 +08:00
2026-04-01 16:05:19 +08:00
2026-04-02 00:23:29 +08:00
2026-03-22 18:57:44 +08:00
2026-04-02 00:23:29 +08:00