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:
co-authored by
genichin
parent
1179bdfe23
commit
49eb20bd51
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user