{"id":"wallet-transfers-are-safe-under-concurrency","text":"Wallet concurrent transfers are deadlock-free via sorted lock acquisition with frozen-check inside the lock — but this safety guarantee assumes stable wallet identity, which silent creation-overwrite could violate mid-transfer.","truth_value":"IN","source":"","source_url":"","source_hash":"","justifications":[{"type":"SL","antecedents":["wallet-deadlock-free-concurrent-transfers"],"outlist":["wallet-creation-silently-overwrites"],"label":"sorted lock ordering prevents deadlock and frozen-check prevents TOCTOU, but `create_wallet` silently replacing an existing wallet could reset balance and lose in-flight transaction state for any concurrent transfer holding a lock on that wallet"}],"dependents":["all-monetary-operations-maintain-double-entry-invariant","concurrency-safety-strategy-varies-by-financial-risk"],"metadata":{"last_reviewed":"2026-06-06T06:26:57","review_result":"pass"},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"wallet-transfers-are-safe-under-concurrency","truth_value":"IN","reason":"SL justification valid","antecedents":["wallet-deadlock-free-concurrent-transfers"],"label":"sorted lock ordering prevents deadlock and frozen-check prevents TOCTOU, but `create_wallet` silently replacing an existing wallet could reset balance and lose in-flight transaction state for any concurrent transfer holding a lock on that wallet","outlist":["wallet-creation-silently-overwrites"]},{"node":"wallet-deadlock-free-concurrent-transfers","truth_value":"IN","reason":"SL justification valid","antecedents":["wallet-lock-ordering-prevents-deadlock","wallet-frozen-check-inside-lock","wallet-two-tier-locking"],"label":"Three complementary locking disciplines compose into a deadlock-free, race-free concurrency model"},{"node":"wallet-lock-ordering-prevents-deadlock","truth_value":"IN","reason":"premise"},{"node":"wallet-frozen-check-inside-lock","truth_value":"IN","reason":"premise"},{"node":"wallet-two-tier-locking","truth_value":"IN","reason":"premise"}]}}