Central bank payment gridlock resolution testing checks whether a payment system can identify queued payment instructions that are mutually blocked by insufficient settlement liquidity and release a valid set under its configured rules. It verifies the selection logic, resulting account positions, payment statuses and audit records, including cases where no eligible set can settle. The tests apply to a central bank settlement service, commonly a real-time gross settlement (RTGS) system.
What central bank payment gridlock resolution testing covers
In an RTGS system, each payment normally settles individually and irrevocably when the sending participant has enough funds. If several payments wait in a queue because participants lack liquidity, each may depend on another payment settling first. A gridlock resolution function evaluates queued instructions and may settle a compatible group together, subject to the system's rules.
Testing checks that the function applies the configured eligibility, priority, liquidity and timing rules. These rules vary by payment system, so scenarios should come from the system specification. Gridlock resolution is distinct from ordinary queue processing, which attempts to settle payments as funds become available. It is also distinct from net settlement: a gridlock function may settle multiple gross instructions together without replacing them with a single net instruction.
How to design the test scenarios
Start with controlled participant accounts, known opening balances and a queue of payments with explicit amounts, priorities and statuses. Define the expected result for each scenario before execution. Include a resolvable cycle, a queue with no eligible combination, and cases where a payment is ineligible or constrained by a participant limit. Vary one relevant condition at a time where possible, such as available liquidity or payment priority.
Check dependencies as well as the resolution logic. Results can depend on queue configuration, participant limits, collateral or liquidity services, payment cut-off times, and the rules for simultaneous settlement. Test environments need consistent configuration and seeded data. Differences between test and production settings can make an apparent algorithm failure an environment drift issue.
A useful worked case is a system that permits simultaneous settlement of a compatible group. Participants A, B and C each have a zero opening balance. The queue contains A-to-B for 60, B-to-C for 60 and C-to-A for 60. Each instruction is blocked when assessed alone, but the group has no net debit for any participant. The expected result is that all three instructions settle together, each account ends with its opening balance, and each instruction has one final settlement record. If the system's rules do not permit this form of simultaneous settlement, the expected result must reflect those rules instead.
How to verify the result
Verify the queue and settlement records, not just a summary screen. Confirm that the intended instructions moved to the correct statuses, balances changed as expected, and the accounting entries reconcile to the settled payments. Check that the system did not settle an ineligible instruction, exceed a limit or create a duplicate settlement record. Where settlement is final, confirm that a retry or repeated resolution request cannot settle the same instruction again.
Exercise failure paths too. For example, interrupt processing during a resolution cycle, make a participant or liquidity service unavailable, or change an input while a run is in progress. Check that the system either completes the group consistently or leaves it in a recoverable state according to its design. Review timestamps and audit events to establish which instructions were considered, selected, rejected or left queued, and why.
These checks support broader Central bank RTGS application testing and Central bank settlement queue management testing.
Frequently asked questions
How can teams make gridlock resolution tests repeatable?
Use controlled participant balances, a fixed payment queue, known configuration and a documented expected result. Record the environment and rule settings with each run so a changed outcome can be traced to changed inputs or behaviour.
Should payment production data be used in these tests?
Use synthetic or appropriately anonymised data where possible. Test data should preserve the relationships needed for the scenario, such as participant identifiers and payment dependencies, without exposing real account or customer information.
What evidence should a test retain?
Retain the input queue, participant balances, relevant configuration, execution events, resulting payment and account records, and reconciliation results. This evidence lets reviewers reconstruct why a payment settled or remained queued.
