From 0ce33decce6f2b0476d57850e15a4e257612494b Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Wed, 16 Apr 2025 17:12:38 +1000 Subject: [PATCH] WIP: remove corrective cleanup when local state is restored --- design/sales2.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/design/sales2.md b/design/sales2.md index 1dde03d..f22cc1f 100644 --- a/design/sales2.md +++ b/design/sales2.md @@ -799,7 +799,12 @@ each sale reached [would be tracked](#tracking-latest-state-machine-state) in the `SalesOrder` object. On restart, the state of each of these `SalesOrders` would be restored, similar to how state is [restored for on chain filled slots](#restoring-on-chain-state). A new `SalesAgent` would be created for each -local `SalesOrder`, starting in the state of the state machine that it left off in. +local `SalesOrder`, starting in the state of the state machine that it left off +in. + +Because the local `SalesOrder` state is getting restored, and there is a deterministic active +cleanup at the conclusion of the state machine, corrective cleanup would no +longer be needed. Careful consideration would need to be taken in each state machine step to ensure that any assumptions at each state are validated at the start, as it