--- license: mit pretty_name: FinalityBench size_categories: - n<1K tags: - benchmark - agents - llm-agents - finance - payments - evaluation - counterfactual configs: - config_name: public data_files: public.json field: cases default: true - config_name: hidden data_files: hidden.json field: cases --- # FinalityBench An executable benchmark for one decision: **what should an agent do about a payment exception while the systems that hold the facts still disagree?** A merchant's payment processor, internal ledger, ERP and bank feed are updated by messages that get delayed, duplicated, dropped and reordered. For minutes at a time the four systems hold contradictory beliefs about the same order. An agent asked to resolve the exception must decide whether to ship goods, re-submit a capture, refund, escalate, or wait, and some of those actions cannot be undone. Agents are graded on the money that actually moved, not on what they say. - Paper: [arXiv:2609.04706](https://arxiv.org/abs/2609.04706) - Code and harness: [github.com/abhisheksharma2411/finalitybench](https://github.com/abhisheksharma2411/finalitybench) - Archived release: [10.5281/zenodo.22262592](https://doi.org/10.5281/zenodo.22262592) (v1.0.1). The task files here are byte-identical to the files in that release. ## What is in this dataset The task corpus: two splits of 321 task definitions each. A task fixes the scenario (archetype, amount, timing, how the capture finally resolves, and the seed for the faulted delivery schedule). The FinalityBench harness turns each task into the four system views and the tools an agent uses, so you run the tasks with the code above; this dataset alone does not contain the observations. | Config | Tasks | Twin pairs | Master seed | | --- | --- | --- | --- | | `public` | 321 | 45 | 20260902 | | `hidden` | 321 | 45 | 71041983 | The `hidden` split is regenerated from a different master seed by the same generator, not held out from the same draw, so tuning on `public` cannot transfer through memorised task identities. Experiment E4 in the paper measures this. **Twin pairs.** 45 tasks in each split are paired with a twin: two tasks whose four system views are identical at the decision instant and whose correct actions are opposite. The property is verified against every evaluation seed, not assumed. ### Fields `task_id`, `archetype`, `amount`, `cogs`, `t_det`, `terminal_kind`, `retry_succeeds`, `schedule_seed`, `chargeback_at`, `twin_of`, `t_decide`, `sla_deadline`, `horizon`, `resolvable`, `outcome`, `forced`. Archetypes (count per split): `pending_settle` 58, `lost_settlement` 45, `pending_fail` 45, `duplicate_settlement` 38, `unresolvable` 38, `partial_ledger` 32, `pending_fail_hard` 26, `stale_processor` 26, `late_chargeback` 13. ## Quick start ```python from datasets import load_dataset public = load_dataset("abhicse24/FinalityBench", "public", split="train") hidden = load_dataset("abhicse24/FinalityBench", "hidden", split="train") print(public[0]["task_id"], public[0]["archetype"], public[0]["outcome"]) ``` To score a policy or a language model, use the harness: implement `Policy.act(obs)` (or supply a model backend) and run the experiments as described in the [repository README](https://github.com/abhisheksharma2411/finalitybench). ## Headline result (from the paper) | Policy | Exact | pass^5 | Mean excess loss | Paired loss | | --- | ---: | ---: | ---: | ---: | | optimistic ship | 65.7% | 32.7% | $163.61 | $253.53 | | ReAct loop | 54.0% | 17.4% | $128.19 | $116.97 | | rule-based SOP | 34.0% | 6.9% | $204.54 | $146.69 | | finality gate | 85.4% | 85.4% | $31.37 | $103.91 | | finality oracle (reference) | 100% | 100% | $0.00 | $0.00 | No language model has been run against this benchmark yet; the model adapter is in the repository. ## Citation ```bibtex @misc{sharma2026finalitybench, author = {Sharma, Abhishek}, title = {FinalityBench: An Effect-Level Benchmark for Agent Decisions Under Delayed and Conflicting Financial Finality}, year = {2026}, eprint = {2609.04706}, archivePrefix = {arXiv} } @software{sharma2026finalitybench_code, author = {Sharma, Abhishek}, title = {FinalityBench: an effect-level benchmark for agent decisions under delayed and conflicting financial finality}, year = {2026}, version = {1.0.1}, doi = {10.5281/zenodo.22262592} } ``` ## License MIT. Abhishek Sharma, ORCID [0009-0007-1103-2103](https://orcid.org/0009-0007-1103-2103).