22. Production Payment Orchestrator
Finance · Intelligence Studio
Manage a 500-transaction production stream across 10 adversarial hidden test scenarios.
Scenario
500 retail, refund, payroll, business, and settlement payments stream through 3 providers.
Problem statement
You are Principal Payments Architect for YamusaPay.
Your switch processes a 500-transaction production stream—retail transfers, refunds, payroll payouts, business disbursements, and international settlements. Providers experience latency spikes, capacity exhaustion, and unexpected outages.
Your system must protect safety invariants: filter incompatible providers, safeguard urgent payroll/high-value payments, handle retries without repeating failed routes, and pass 10 adversarial test scenarios!
Build your decision tree systematically: 1. Eligibility Invariants: Use `canRouteA/B/C` to reject incompatible or offline routes. 2. Service-Level Protection: Route urgent payroll, priority, and near-deadline work to fast, reliable providers. 3. Retry Management: Prevent retrying the same failed provider using `lastProvider` checks. 4. Cost & Congestion Optimization: Spread routine traffic across healthy providers before congestion cascades.
What this teaches
Design an enterprise payment orchestrator balancing real-time telemetry, provider capacity, and retry backoffs.
Evaluation contract
- Safety invariants and completion: 25%
- Priority, deadline, and high-value protection: 25%
- Outage, recovery, congestion, and retry resilience: 25%
- Cost, throughput, and queue efficiency: 15%
- Generalization across adversarial distributions: 10%
Active controller
Apply & Run executes only the selected controller.
How a rule works
A rule has two parts:
WHEN <something is true> → DO <this action>
- WHEN is a question about what is happening right now. For example: "Is it raining?" or "Is there a wall ahead?"
- DO is what happens when the answer is yes.
- The simulation runs one step at a time.
- On each step, the rules are checked from top to bottom.
- The first rule that is true wins. The rules below it are skipped for that step.
- To change which rule wins, move it up or down the list.
- If no rule is true, nothing happens on that step.
- Some actions have more than one step, like "turn right, then move". You build these in the Functions tab.
- Once a multi-step action starts, it finishes all its steps before the rules are checked again. It only stops early if the next step is not safe.
See an example
Two rules for deciding about an umbrella:
1 WHEN isRaining → take an umbrella 2 WHEN always → leave the umbrella at home
- It is raining. Rule 1 is true, so you take an umbrella. Rule 2 is skipped.
- It is sunny. Rule 1 is false, so rule 2 is checked next. Rule 2 is always true, so you leave the umbrella at home.
- Order matters. If rule 2 were on top, it would be true every day, and you would never take an umbrella.
Rule folders
Categorise cards without changing their global execution order.
Transfer flow
Queue → AI routing decision → provider lane
Ready queue · 1
AI router
Live policy
Choosing a route for production-0001
Awaiting first decision
Provider lanes
Latest activity
No settlements yet — press Apply & Run to start the switch.
Failures and penalty audit⌄
The score is a lower-is-better operating cost. Every component below is added to the final score.
Provider fees
0.00
Failed attempts
0.00
Timeouts
0.00
Priority misses
0.00
Overload
0.00
Queue pressure
0.00
No provider attempt has failed in this run.
Queue depth
1
499 scheduled
In flight
0
0 settled
Success rate
—
No outcomes yet
Throughput
0.00
payments per tick
Provider details
Operational values are recalculated from the runtime after every tick.
Observed success
Awaiting outcome
configured target 96.00%
Current latency
1,200.00ms
1,200.00ms base · no congestion
Live capacity
0/5
5 slots free
Utilization
0.00%
0/0 attempts settled · 0 failed
Health
84.00%
provider online
Current fee
₦0.07
expected attempt cost ₦0.55
Measured latency
Awaiting outcome
0 completed attempts
Observed success
Awaiting outcome
configured target 99.60%
Current latency
950.00ms
950.00ms base · no congestion
Live capacity
0/7
7 slots free
Utilization
0.00%
0/0 attempts settled · 0 failed
Health
90.10%
provider online
Current fee
₦0.32
expected attempt cost ₦0.37
Measured latency
Awaiting outcome
0 completed attempts
Observed success
Awaiting outcome
configured target 98.40%
Current latency
2,100.00ms
2,100.00ms base · no congestion
Live capacity
0/4
4 slots free
Utilization
0.00%
0/0 attempts settled · 0 failed
Health
77.40%
provider online
Current fee
₦0.19
expected attempt cost ₦0.38
Measured latency
Awaiting outcome
0 completed attempts
Task progress & pass contractThe exact requirements used to judge this visible run⌄
- Finalize all 500 visible paymentsnot run
allProcessed - Keep visible timeouts at or below 5not run
allProcessed && timedOut <= 5 - Keep visible priority failures at or below 2not run
allProcessed && priorityFailures <= 2 - Keep overload rejections at or below 3not run
allProcessed && overloadRejects <= 3 - Keep the visible penalty score below 300not run
allProcessed && score < 300
Press Apply & Run to load your brain and start the simulation.
Interview evaluation
10 hidden evaluation scenarios
Hidden scenarios test your solution against different traffic patterns, failures, capacity limits, timing pressure, and edge cases that are not part of Apply & Run. To pass, your solution must satisfy every guardrail and achieve an average score of at least 75/100.