spec: add harden-hourly-sync-lifecycle change (WealthLedger/backend#56)
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
sequenceDiagram
|
||||
participant Coordinator
|
||||
participant DB as Durable attempt status
|
||||
participant Steps as Child step owners
|
||||
participant TB as T-Bank and public sources
|
||||
|
||||
Coordinator->>Steps: Run required steps
|
||||
Steps->>TB: Start upstream call
|
||||
Coordinator->>Coordinator: Wait for step result within bound
|
||||
alt Step reaches terminal result in time
|
||||
Steps->>DB: Publish complete result
|
||||
Coordinator->>DB: Settle attempt after terminal barrier
|
||||
else Wait bound expires
|
||||
Note over Coordinator,TB: Upstream call is not cancelled
|
||||
Coordinator->>DB: Record step problem cause DEADLINE
|
||||
Coordinator->>DB: Settle partial or failed after terminal barrier
|
||||
Steps->>TB: Upstream call completes later
|
||||
Steps->>DB: Publish late result for the same attempt
|
||||
alt Outcome not recorded yet and no successor
|
||||
DB-->>Steps: Late result is preserved and counts at outcome derivation
|
||||
else Successor attempt already started
|
||||
DB-->>Steps: Publication rejected as stale
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user