cli

Command-line interface for Radroots
git clone https://radroots.dev/git/cli.git
Log | Files | Refs | README | LICENSE

commit 06fecf0f298c71d9ddad5945bf8558c2b22241f3
parent dbf061a57afaa92569c876f1a4606233cff0ef47
Author: triesap <tyson@radroots.org>
Date:   Wed, 29 Apr 2026 20:42:42 +0000

order: surface inventory arithmetic overflow

Diffstat:
Msrc/runtime/order.rs | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/runtime/order.rs b/src/runtime/order.rs @@ -1212,7 +1212,8 @@ fn listing_inventory_issue_involves_order( order_id: issue_order_id, event_ids, } => issue_order_id == order_id || event_ids.iter().any(|id| id == decision_event_id), - RadrootsListingInventoryAccountingIssue::UnknownInventoryBin { event_ids, .. } + RadrootsListingInventoryAccountingIssue::ArithmeticOverflow { event_ids, .. } + | RadrootsListingInventoryAccountingIssue::UnknownInventoryBin { event_ids, .. } | RadrootsListingInventoryAccountingIssue::OverReserved { event_ids, .. } => { event_ids.iter().any(|id| id == decision_event_id) } @@ -1370,6 +1371,7 @@ fn order_status_inventory_view( "missing_decision_inventory_commitments" | "decision_inventory_commitment_mismatch" | "decision_counterparty_mismatch" + | "listing_inventory_arithmetic_overflow" | "unknown_inventory_bin" | "listing_inventory_over_reserved" | "invalid_inventory_order" @@ -2342,6 +2344,14 @@ fn listing_inventory_accounting_issue_view( format!("inventory accounting reported invalid active order `{order_id}`"), event_ids, ), + RadrootsListingInventoryAccountingIssue::ArithmeticOverflow { bin_id, event_ids } => { + issue_with_events( + "listing_inventory_arithmetic_overflow", + "inventory.count", + format!("inventory accounting overflowed for bin `{bin_id}`"), + event_ids, + ) + } RadrootsListingInventoryAccountingIssue::UnknownInventoryBin { bin_id, event_ids } => { issue_with_events( "unknown_inventory_bin",