Why a Timeout Does Not Mean a Payment Failed
ADR 0001 defines how FinSim isolates ambiguous transfers in UNKNOWN and resolves them forward first without ever creating duplicate credits.
REJECTED vs. UNKNOWN
In FinSim, FAILED is not a transfer state. A transfer is marked REJECTED only when a participant definitively refuses a leg (or a leg never left the network). When a leg times out after submission, the participant may have already committed the balance change. FinSim therefore transitions the transfer to UNKNOWN and blocks naive caller retries with 409 RECONCILIATION_REQUIRED.
ADR 0001 resolution decision table
Calling POST /api/v1/transfers/{id}/resolve queries each leg via GET /finsim/v1/payments/{transactionId}?leg=... and applies forward recovery first, backward recovery only on a definitive rejection:
| Debit at source | Credit at destination | Action | Outcome |
|---|---|---|---|
| 404 not found | Not sent | Nothing was applied. | REJECTED (FINSIM_TIMEOUT) |
| REJECTED | Not sent | Nothing was applied. | REJECTED (source reason) |
| COMPLETED | COMPLETED | Original response was lost after commit. | COMPLETED |
| COMPLETED | 404 not found | Re-send CREDIT once with same Idempotency-Key (RETRY_CREDIT). | Re-evaluate |
| COMPLETED | REJECTED | Issue reversal credit to source (REVERSE_DEBIT). | REJECTED (after reversal) |
| COMPLETED | ACCEPTED | Destination is still processing. | Stays UNKNOWN |
| Query times out | Any | Cannot decide without evidence. | Stays UNKNOWN |
Reversals and needsManualReview
A debit reversal is a new CREDIT leg sent to the source institution with transaction ID <transactionId>-rev, derived idempotency key <transactionId>-rev (staying within the 128-character key limit), and reversalOf. If the source institution rejects the reversal itself, FinSim keeps the transfer in UNKNOWN and flags needsManualReview: true rather than silently accepting an inconsistent state.