fix(api): Phase R-R2.2 首席架構師 72/100 P2 修復

P2-01 signal_worker.py: persisted_to_pg 改用 getattr 防 BrainIncident AttributeError
P2-02 IIncidentEngine Protocol: update_incident_status → update_status 對齊 brain 實作
P2-03 config.py USE_NEW_ENGINE: 標記失效 + 回滾路徑更正 (git revert 而非 kubectl)
ADR-046: Option B (IncidentConverter) 決策完成,待實作清單更新
ADR-024: 審查結論 + 正式回滾指令更新
Skill 02: v2.5 版本記錄

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-03-31 22:33:08 +08:00
parent cd91560e0b
commit 2ba61acf72
6 changed files with 39 additions and 22 deletions

View File

@@ -76,12 +76,12 @@ class IIncidentEngine(Protocol):
"""取得指定 Incident"""
...
async def update_incident_status(
async def update_status(
self,
incident_id: str,
status: str,
) -> Incident | None:
"""更新 Incident 狀態"""
status: Any, # IncidentStatus enum (lewooogo-brain)
) -> bool:
"""更新 Incident 狀態 (2026-04-01 ogt: 簽名與 lewooogo-brain 對齊, ADR-046 P2-02)"""
...