Skip to main content
Challenge

Optimize Debit Card Interchange Routing with DSPy and Compiled Prompts

Shifting debit interchange regulations require dynamic routing choices across Visa, Mastercard, and regional EFT networks. Create a compiled DSPy optimization agent that minimizes transaction processing fees while adhering to federal routing mandate constraints.

CybersecurityHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Use DSPy to compile and optimize multi-stage debit card interchange routing prompts to lower processing fees.

Delivery guide

How work is evaluated

Evaluation

Evaluates processing fee reduction and regulatory compliance across payment streams.

Datasets

Challenge datasets

Public datasets, plus the private datasets you have access to.

Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

Durbin Compliance Test

Selection must be compliant with Durbin dual-network rules.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

Interchange Cost Reduction

Percentage reduction in processing costs versus baseline default network. • target: 0.15 • range: 0.1-0.25

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Define DSPy Signatures and Modules for multi-network debit routing logic.

  • Compile DSPy signatures using Teleprompter modules to maximize routing cost savings.

  • Enforce Durbin Amendment dual-network routing compliance automatically.

  • Achieve fee reductions of over 12% across synthetic merchant processing workloads.

Resources and assets

Reference links and supporting material

Dataset notes

Synthetic debit transaction stream labeled with network interchange schedule rates.

Challenge setup

Evaluates processing fee reduction and regulatory compliance across payment streams.

Challenge input

JSON with ticket_size, card_bin, available_networks, merchant_mcc

DSPy

Compiles structured routing modules into optimal few-shot prompts.

Evaluated output

JSON with selected_network, estimated_interchange_bps, durbin_compliant (boolean)

Evaluation checks
  • Selection must be compliant with Durbin dual-network rules.
  • Percentage reduction in processing costs versus baseline default network. • target: 0.15 • range: 0.1-0.25
Configured evaluation evidence
  • Benchmark: DebitRoutingBench
  • Interchange Cost Reduction target: 0.15
  • 1 public reference case
Configured runtime
  • Python execution harness
  • Python sandbox (unavailable on Versalist)

Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.

View technical recipe

Configured tools

Action Space
  • DSPy · Required
Training Infra
  • DSPy · Required
Orchestration
  • DSPy · Required

Evaluation contract

  • Durbin Compliance Test · Weight 1
  • Interchange Cost Reduction · Weight 1

Metrics

  • Interchange Cost Reduction · Target 0.15

Benchmarks

  • DebitRoutingBench
  • security

Reference cases

  • 1 public reference case

Workflow tasks

  1. Task 1

    Input: JSON with ticket_size, card_bin, available_networks, merchant_mcc

    Output: JSON with selected_network, estimated_interchange_bps, durbin_compliant (boolean)

    Execution harness: Python

Evaluation tools

  • DSPy · Prompt Optimization Framework

Recipe freeze marker

No recipe freeze time is recorded.

Frequently Asked Questions about Optimize Debit Card Interchange Routing with DSPy and Compiled Prompts