OG T
a94bb57d8b
feat(types): ADR-046 IncidentConverter + IncidentEngineAdapter
實作 ADR-046 Option B: IncidentConverter 轉換層,解決
BrainIncident (lewooogo-brain) 與 LocalIncident (apps/api) 型別邊界問題。
變更:
- 新增 src/utils/incident_converter.py
- brain_to_local(): BrainIncident → LocalIncident
- local_to_brain(): LocalIncident → BrainIncident
- ESCALATED → MITIGATING 映射 (brain 無 ESCALATED)
- incident_engine.py: 新增 IncidentEngineAdapter 包裝層
- process_signal() / get_incident() 輸出轉換為 LocalIncident
- get_incident_engine() 返回 IncidentEngineAdapter
- incident_memory.py: 加入 brain_to_local import,更新 _record_to_incident 說明
- ADR-046: 標記三個轉換點全部完成
解鎖: #123 proposal_service.py 清理 (下一步)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 22:47:54 +08:00
..
2026-03-26 16:06:20 +08:00
2026-03-26 16:06:20 +08:00
2026-03-29 21:16:50 +08:00
2026-03-31 22:47:54 +08:00
2026-03-31 16:25:00 +08:00
2026-03-22 18:57:44 +08:00
2026-03-22 18:57:44 +08:00
2026-03-31 14:03:34 +08:00
2026-03-29 15:27:49 +08:00
2026-03-31 13:57:10 +08:00
2026-03-29 17:05:20 +08:00
2026-03-22 18:57:44 +08:00
2026-03-26 00:32:19 +08:00