File size: 6,818 Bytes
1cab4db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b6c2274
1cab4db
 
 
 
a3e497d
 
 
 
1cab4db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c9e537d
 
 
 
 
1cab4db
 
 
 
b6c2274
1cab4db
 
c5cecc7
 
1cab4db
 
 
 
 
 
 
 
 
 
 
 
c9e537d
 
 
c757659
 
 
 
 
6b0b468
 
dba0b07
c9e537d
590fd05
 
 
 
b6c2274
590fd05
 
 
 
 
c9e537d
 
 
 
 
 
b6c2274
590fd05
 
 
 
34bce7a
 
 
 
 
 
 
 
 
 
 
 
 
8fe7f20
34bce7a
 
 
 
 
 
590fd05
c9e537d
 
 
 
 
 
 
 
 
 
 
1cab4db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
---
license: mit
task_categories:
- question-answering
- text-generation
language:
- en
pretty_name: FlowBench
size_categories:
- n<1K
tags:
- agents
- tool-use
- benchmark
- harbor
- data-orchestration
---

# FlowBench

Dataset ID: `jwu323/FlowBench`

FlowBench is a tool-use benchmark for deterministic business operations
workflows. Each task asks an agent to compose Python tools over synthetic
customers, products, orders, returns, inventory, support tickets, FX rates, and
SLA policies.

Scope note: this dataset is a business-operations tool-composition benchmark. It
is unrelated to prior workflow-guided planning or workflow-generation benchmarks
that also use the FlowBench name.

This repository contains the public `test` split. It is answer-free by design:
fixed gold labels, oracle solutions, and strict verifier expected files are not
included. The public files are suitable for task inspection, agent integration,
and reproducible smoke tests. Official scoring should use a private evaluator
pack or a freshly generated held-out split with hidden answers.

## Splits

`test` contains 300 public task specifications:

| depth | tasks | description |
|---:|---:|---|
| 1 | 50 | single-step lookups such as region currency or top-selling product id |
| 2 | 50 | filtered order and customer counts |
| 3 | 50 | revenue and refund-rate aggregations |
| 4 | 50 | local-currency conversion and margin-after-refund calculations |
| 5 | 50 | replenishment shortfall and delayed-order revenue workflows |
| 6 | 50 | delayed fulfillment plus SLA breach burden, and at-risk revenue from breached tickets |

There are 12 task families with 25 tasks per family. The `currency_lookup`
family is a depth-1 diagnostic and intentionally repeats the four region
currency facts across task ids. Treat it as a tool-wiring sanity check, not as a
leaderboard difficulty signal. The public `test` split is closed-world and
deterministic, but it is not a public-answer leaderboard split.

## Files

- `data/test.jsonl`: answer-free task records.
- `tools/flowbench_tools.py`: deterministic tool implementation visible to agents.
- `harbor/`: Harbor-compatible public task pack with a smoke verifier. The smoke
  verifier checks output shape only; it is not official scoring.
- `RUN.md`: instructions for wiring the public split to an LLM agent and writing
  prediction files.

Each JSONL record includes:

- `task_id`
- `depth`
- `family`
- `region`, `category`, `month_start`, `month_end`
- `instruction`
- `answer_format`

No record contains a gold answer.

## Training Trace Companion

A separate companion dataset, `jwu323/FlowBench-GPT55-Traces`, may be used for
supervised training or trace analysis. It contains real `gpt-5.5` multi-turn
REPL-submit traces on regenerated salted tasks whose parameter tuples are
excluded from this public test split. It contains final answers by design, so it
must not be mixed into FlowBench evaluation prompts, public-test scoring, or
leaderboards.
Its turn-level SFT files are prefix-target slices from those multi-turn
episodes, not independent single-turn traces.
Link: https://huggingface.co/datasets/jwu323/FlowBench-GPT55-Traces

## Where the Data Comes From

There is no separate CSV, database dump, or network service to download. The
benchmark data are generated deterministically inside
`tools/flowbench_tools.py` and inside each Harbor task's
`/app/flowbench_tools.py`. Importing that file builds in-memory tables for 72
customers, 48 products, 720 orders, 180 returns, 260 support tickets, inventory,
FX rates, and SLA policies from SHA-256 keyed generators. The same task and tool
file therefore produce the same data on every machine.

Because those deterministic tools are public, anyone can recompute answers for
the public task records. This is intentional for transparency and agent
integration, but it means the repository is not a secure fixed-answer
leaderboard package. Official scores should come from a private evaluator or a
freshly salted held-out split.

When running without Harbor, load `tools/flowbench_tools.py` into the agent
runtime and expose its functions as the tool API. When running with Harbor, the
task container already places the same tool file at `/app/flowbench_tools.py`.
Agents should solve tasks by calling the provided tools; the public release does
not ship gold answers or a strict answer checker.

## Running an Agent

For public agent evaluation, give the agent one task record from
`data/test.jsonl`, expose only the functions listed in
`tools/flowbench_tools.py::TOOLS`, and ask the agent to return only the final
answer in the record's `answer_format`. The task record supplies the question
and parameters; the tool module is the data source and builds all tables
deterministically at import time.

Recommended public prediction format:

```json
{"task_id": "example_task_id", "answer": "<model-output>", "model": "your-model-name"}
```

`RUN.md` has a fuller harness contract, adapter skeleton, prompt template, and a
worked tool plan for a depth-6 task. The public split has no labels, so
predictions from this repository alone are for inspection, integration testing,
or private scoring; do not report them as official FlowBench scores.

## Evaluation Boundary

The task records and deterministic tool code in this repository are public.
Repeated prompt or adapter tuning on `data/test.jsonl` can overfit to the
released task surface. Treat public-only runs as integration or smoke-test
evidence, not as an official leaderboard.

For paper, leaderboard, or cross-model claims, freeze the prompt and tool
adapter before scoring, use private labels or a freshly generated held-out split,
report the scoring setting, and reject task-id-specific lookup logic.

## Running the Harbor Smoke Pack

```bash
harbor run -p harbor -a <agent> -l 1
```

The Harbor pack in this repository is a public smoke pack. It verifies that an
agent writes an output with the required shape. It deliberately does not contain
the private expected answers.

## Task Families

- `currency_lookup`
- `top_product_lookup`
- `order_count`
- `unique_customer_count`
- `net_revenue_usd`
- `refund_share_bp`
- `local_net_revenue`
- `margin_after_refunds`
- `reorder_shortfall`
- `delayed_net_revenue`
- `delay_sla_burden`
- `breached_ticket_revenue`

## Evaluation Notes

FlowBench is designed to compare how agent interfaces express the same tool
capabilities: function-calling style, command style, and code/REPL style
substrates can all call the same tools. For public release, do not evaluate by
matching against labels embedded in this repository; there are none. Use a
private evaluator or generate a held-out split with hidden answers.

## Citation

If you use FlowBench, cite the associated paper or this dataset repository once
the paper is released.