Reproducible Research Repository
Reproducible Research Repository
  • Home
  • Repository
  • Collections
  • About
    Home / Repository / PRWP / RR_KEN_2026_585
PRWP

Reproducibility package for SMaRT: Online Reusable Resource Assignment and an Application to Mediation in the Kenyan Judiciary

2026
Get Reproducibility Package
Reference ID
RR_KEN_2026_585
Author(s)
Antoine Deeb, Shafkat Farabi, Anja Sautman, Manuel Ramos-Maqueda, Sanmay Das, Wei Lu, Didac Marti Pinto
Collections
World Bank Policy Research Working Papers
Metadata
JSON
Created on
Sep 08, 2026
Last modified
Sep 15, 2026
Page views
6
  • Project Description
  • Downloads
  • Overview
  • Reproducibility Package
  • Description
  • Scope and coverage
  • Disclaimer
  • Access and rights
  • Contacts
  • Information on metadata
  • Overview

    Abstract

    Motivated by the problem of assigning mediators to cases in the Kenyan judicial, we study an online resource allocation problem where incoming tasks (cases) must be immediately assigned to available, capacity-constrained resources (mediators). The resources differ in their quality, which may need to be learned. In addition, resources can only be assigned to a subset of tasks that overlaps to varying degrees with the subset of tasks other resources can be assigned to. The objective is to maximize task completion while satisfying soft capacity constraints across all the resources. The scale of the real-world problem poses substantial challenges, since there are over 2000 mediators and a multitude of combinations of geographic locations (87) and case types (12) that each mediator is qualified to work on. Together, these features, unknown quality of new resources, soft capacity constraints, and a high-dimensional state space, make existing scheduling and resource allocation algorithms either inapplicable or inefficient. We formalize the problem in a tractable manner using a quadratic program formulation for assignment and a multi-agent bandit-style framework for learning. We demonstrate the key properties and advantages of our new algorithm, SMaRT (Selecting Mediators that are Right for the Task), compared with baselines on stylized instances of the mediator allocation problem. We then consider its application to real-world data on cases and mediators from the Kenyan judiciary. SMaRT outperforms baselines and allows control over the tradeoff between the strictness of capacity constraints and overall case resolution rates, both in settings where mediator quality is known beforehand and in bandit-like settings where learning is part of the problem definition. On the strength of these results, we plan to run a randomized controlled trial with SMaRT in the judiciary in the near future.

    Reproducibility Package

    Scripts
    Readme Get Reproducibility Package
    Link: https://reproducibility.worldbank.org/catalog/648/download/1950/README.pdf
    Reproducibility package for SMaRT: Online Reusable Resource Assignment and an Application to Mediation in the Kenyan Judiciary
    File name
    RR_KEN_2026_585
    Zip package
    RR_KEN_2026_585.zip
    Title
    Reproducibility package for SMaRT: Online Reusable Resource Assignment and an Application to Mediation in the Kenyan Judiciary
    Date
    2026-09
    Dependencies
    Python dependencies are listed in requirenments.txt.
    Instructions
    See README in reproducibility package.
    Notes
    Computational reproducibility verified by Development Impact (DECDI) Analytics team, World Bank.
    Source code repository
    Repository name URI
    Reproducible Research Repository (World Bank) https://reproducibility.worldbank.org
    Software
    Python
    Name
    Python
    Version
    3.11.15

    Reproducibility

    Technology environment

    Paper exhibits were reproduced on a computer with the following specifications:
    • OS: Windows 11 Enterprise
    • Processor: INTEL(R) XEON(R) PLATINUM 8562Y+ (2.80 GHz) (2 processors)
    • Memory available: 128.0 GB

    Technology requirements

    Run time with intermediate data: ~ 90 minutes.
    Total run time: ~ 640 hours

    Reproduction instructions

    To reproduce the findings in this paper, a replicator must:

    1. Secure Access to Data: Access the datasets not included in the package. See the Datasets section for more details.
    2. Run the Package (Workflow A):
      • Restore the environment in requirenments.txt.
      • Run the notebooks: reproduce_exp_one_click_QP.ipynb; reproduce_exp_one_click_LP_refinedC5.ipynb; sensitivity_analysis_of_VA_esitmation.ipynb.

    Refer to the instructions in the README for details on Workflow B. Since no data is included, the package includes the results produced by replicators. These files can be used to review the results presented in the paper.

    Data

    Datasets
    Kenyan Judiciary Court Annexed Mediation (CAM) Administrative Data
    Name
    Kenyan Judiciary Court Annexed Mediation (CAM) Administrative Data
    Note
    Files: vw_deidentified_case_w_appointer_20250729.csv (accessed July 29, 2025), vw_all_mediators_20250729.csv (accessed July 29, 2025), cases_raw_07012025.csv (accessed July 1, 2025), data_casetype_20250729.csv (accessed July 29, 2025), data_accreditationcategory_20250729.csv (accessed July 29, 2025), data_casetype_eligible_accreditation_categories_20250729.csv (accessed July 29, 2025). Located in param_files/ (and cases_raw_07012025.csv at the package root). Anonymized administrative records of 30,633 mediation cases from 2016-2025, covering case arrivals, mediator assignments, 13 case-type categories, 87 court stations, case conclusion dates, mediation outcomes, mediator accreditations, and station preferences for approximately 2,100 mediators. All personally identifying information about mediators and parties has been removed. Casetypes_parameters_lognormal.xlsx (log-normal case-resolution-time parameters) is derived by the authors from vw_deidentified_case_w_appointer_20250729.csv and is not a separate raw data source.
    Access policy
    Data access was granted directly to the study authors by the data owners/managers. It was obtained with a custom data license that does not allow for redistribution and it is not included in the reproducibility package.
    License
    Proprietary
    Citation
    Kenyan Judiciary. 2025. "Court Annexed Mediation Administrative Data, 2016-2025" [dataset]. Accessed July 1-29, 2025.
    Data statement

    All data is restricted and has not been included in the reproducibility package. For more details, please refer to the README file.

    Description

    Output
    SMaRT: Online Reusable Resource Assignment and an Application to Mediation in the Kenyan Judiciary
    Type
    Working Paper
    Title
    SMaRT: Online Reusable Resource Assignment and an Application to Mediation in the Kenyan Judiciary
    Description
    Policy Research Working Paper (PRWP)
    Authors
    Author Affiliation Email
    Antoine Deeb World Bank adeeb1@worldbank.org
    Shafkat Farabi Virginia Tech mfarabi@vt.edu
    Anja Sautman World Bank asautmann@worldbank.org
    Manuel Ramos-Maqueda World Bank mramosmaqueda@worldbank.org
    Sanmay Das Virginia Tech sanmay@vt.edu
    Wei Lu World Bank wlu4@worldbank.org
    Didac Marti Pinto University College London didac.marti.pinto.19@ucl.ac.uk
    Date of production

    2026-09-08

    Scope and coverage

    Geographic locations
    Location Code
    Kenya KEN

    Disclaimer

    Disclaimer

    The materials in the reproducibility packages are distributed as they were prepared by the staff of the International Bank for Reconstruction and Development/The World Bank. The findings, interpretations, and conclusions expressed in this event do not necessarily reflect the views of the World Bank, the Executive Directors of the World Bank, or the governments they represent. The World Bank does not guarantee the accuracy of the materials included in the reproducibility package.

    Access and rights

    License
    Name URI
    MIT License https://opensource.org/license/mit
    World Bank IGO Rider https://github.com/worldbank/metadata-editor/blob/main/WB-IGO-RIDER.md

    Contacts

    Contacts
    Name Affiliation Email
    Antoine Deeb World Bank adeeb1@worldbank.org
    Reproducibility WBG World Bank reproducibility@worldbank.org

    Information on metadata

    Producers
    Name Abbreviation Affiliation Role
    Reproducibility WBG DECDI World Bank - Development Impact Department Verification and preparation of metadata
    Date of Production

    2026-09-08

    Document version

    1

    Back to Catalog
    The World Bank Working for a World Free of Poverty
    • IBRD IDA IFC MIGA ICSID

    © The World Bank Group, All Rights Reserved.