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:
@@ -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)"""
|
||||
...
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user