AC-0023: fail-closed intent warn-store; C-case-only verify clear; clear_failed on partial error

Co-authored-by: genichin <4282227+genichin@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-08-25 13:27:03 +00:00
committed by GitHub
co-authored by genichin
parent 1179bdfe23
commit 49eb20bd51
5 changed files with 230 additions and 14 deletions
+8 -4
View File
@@ -271,8 +271,10 @@ class IntentService:
return IntentDecision(
intent.intent_id, "rejected", None, "reconcile_warned"
)
except Exception: # noqa: BLE001 - fail-open
pass
except Exception: # noqa: BLE001 - fail-closed: warn-store down → reject
return IntentDecision(
intent.intent_id, "rejected", None, "reconcile_warning_unavailable"
)
# dcy-021: a buy on a HOLDING slot is a position-sizing increase.
is_increase = slot.status is SlotState.HOLDING
@@ -362,8 +364,10 @@ class IntentService:
return IntentDecision(
intent.intent_id, "rejected", None, "reconcile_warned"
)
except Exception: # noqa: BLE001 - fail-open
pass
except Exception: # noqa: BLE001 - fail-closed: warn-store down → reject
return IntentDecision(
intent.intent_id, "rejected", None, "reconcile_warning_unavailable"
)
if slot.status is not SlotState.HOLDING:
return IntentDecision(