The safe version has plain code making the call and people reading only what the code can't prove.
The four checks, the bug that dropped approvals, and the two ledger rows are in Salesforce Cut Change Reviews From 24 Hours to 12 Seconds. The Gate Decides and the Model Narrates.. The ledger comes from Kill 'Human in the Loop' as a Control. Keep a Gate Ledger.. My own lesson with an expense agent is in Nothing Refunds a Sentence.