jwu323 commited on
Commit
1cab4db
·
verified ·
1 Parent(s): ed0a931

Release FlowBench v3 public split

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. LICENSE +21 -0
  2. README.md +104 -0
  3. data/test.jsonl +0 -0
  4. harbor/README.md +21 -0
  5. harbor/dataset.toml +1210 -0
  6. harbor/manifest.json +330 -0
  7. harbor/tasks/v3_depth1_currency_lookup_t0/environment/Dockerfile +4 -0
  8. harbor/tasks/v3_depth1_currency_lookup_t0/environment/flowbench_tools.py +311 -0
  9. harbor/tasks/v3_depth1_currency_lookup_t0/environment/task.json +13 -0
  10. harbor/tasks/v3_depth1_currency_lookup_t0/instruction.md +38 -0
  11. harbor/tasks/v3_depth1_currency_lookup_t0/task.toml +28 -0
  12. harbor/tasks/v3_depth1_currency_lookup_t0/tests/check_output_shape.py +42 -0
  13. harbor/tasks/v3_depth1_currency_lookup_t0/tests/test.sh +3 -0
  14. harbor/tasks/v3_depth1_currency_lookup_t1/environment/Dockerfile +4 -0
  15. harbor/tasks/v3_depth1_currency_lookup_t1/environment/flowbench_tools.py +311 -0
  16. harbor/tasks/v3_depth1_currency_lookup_t1/environment/task.json +13 -0
  17. harbor/tasks/v3_depth1_currency_lookup_t1/instruction.md +38 -0
  18. harbor/tasks/v3_depth1_currency_lookup_t1/task.toml +28 -0
  19. harbor/tasks/v3_depth1_currency_lookup_t1/tests/check_output_shape.py +42 -0
  20. harbor/tasks/v3_depth1_currency_lookup_t1/tests/test.sh +3 -0
  21. harbor/tasks/v3_depth1_currency_lookup_t10/environment/Dockerfile +4 -0
  22. harbor/tasks/v3_depth1_currency_lookup_t10/environment/flowbench_tools.py +311 -0
  23. harbor/tasks/v3_depth1_currency_lookup_t10/environment/task.json +13 -0
  24. harbor/tasks/v3_depth1_currency_lookup_t10/instruction.md +38 -0
  25. harbor/tasks/v3_depth1_currency_lookup_t10/task.toml +28 -0
  26. harbor/tasks/v3_depth1_currency_lookup_t10/tests/check_output_shape.py +42 -0
  27. harbor/tasks/v3_depth1_currency_lookup_t10/tests/test.sh +3 -0
  28. harbor/tasks/v3_depth1_currency_lookup_t11/environment/Dockerfile +4 -0
  29. harbor/tasks/v3_depth1_currency_lookup_t11/environment/flowbench_tools.py +311 -0
  30. harbor/tasks/v3_depth1_currency_lookup_t11/environment/task.json +13 -0
  31. harbor/tasks/v3_depth1_currency_lookup_t11/instruction.md +38 -0
  32. harbor/tasks/v3_depth1_currency_lookup_t11/task.toml +28 -0
  33. harbor/tasks/v3_depth1_currency_lookup_t11/tests/check_output_shape.py +42 -0
  34. harbor/tasks/v3_depth1_currency_lookup_t11/tests/test.sh +3 -0
  35. harbor/tasks/v3_depth1_currency_lookup_t12/environment/Dockerfile +4 -0
  36. harbor/tasks/v3_depth1_currency_lookup_t12/environment/flowbench_tools.py +311 -0
  37. harbor/tasks/v3_depth1_currency_lookup_t12/environment/task.json +13 -0
  38. harbor/tasks/v3_depth1_currency_lookup_t12/instruction.md +38 -0
  39. harbor/tasks/v3_depth1_currency_lookup_t12/task.toml +28 -0
  40. harbor/tasks/v3_depth1_currency_lookup_t12/tests/check_output_shape.py +42 -0
  41. harbor/tasks/v3_depth1_currency_lookup_t12/tests/test.sh +3 -0
  42. harbor/tasks/v3_depth1_currency_lookup_t13/environment/Dockerfile +4 -0
  43. harbor/tasks/v3_depth1_currency_lookup_t13/environment/flowbench_tools.py +311 -0
  44. harbor/tasks/v3_depth1_currency_lookup_t13/environment/task.json +13 -0
  45. harbor/tasks/v3_depth1_currency_lookup_t13/instruction.md +38 -0
  46. harbor/tasks/v3_depth1_currency_lookup_t13/task.toml +28 -0
  47. harbor/tasks/v3_depth1_currency_lookup_t13/tests/check_output_shape.py +42 -0
  48. harbor/tasks/v3_depth1_currency_lookup_t13/tests/test.sh +3 -0
  49. harbor/tasks/v3_depth1_currency_lookup_t14/environment/Dockerfile +4 -0
  50. harbor/tasks/v3_depth1_currency_lookup_t14/environment/flowbench_tools.py +311 -0
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mind Lab
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - question-answering
5
+ - text-generation
6
+ language:
7
+ - en
8
+ pretty_name: FlowBench
9
+ size_categories:
10
+ - n<1K
11
+ tags:
12
+ - agents
13
+ - tool-use
14
+ - benchmark
15
+ - harbor
16
+ - data-orchestration
17
+ ---
18
+
19
+ # FlowBench
20
+
21
+ Dataset ID: `jwu323/FlowBench`
22
+
23
+ FlowBench v3 is a tool-use benchmark for deterministic business operations
24
+ workflows. Each task asks an agent to compose Python tools over synthetic
25
+ customers, products, orders, returns, inventory, support tickets, FX rates, and
26
+ SLA policies.
27
+
28
+ This repository contains the public `test` split. It is answer-free by design:
29
+ fixed gold labels, oracle solutions, and strict verifier expected files are not
30
+ included. The public files are suitable for task inspection, agent integration,
31
+ and reproducible smoke tests. Official scoring should use a private evaluator
32
+ pack or a freshly generated held-out split with hidden answers.
33
+
34
+ ## Splits
35
+
36
+ `test` contains 300 public task specifications:
37
+
38
+ | depth | tasks | description |
39
+ |---:|---:|---|
40
+ | 1 | 50 | single-step lookups such as region currency or top-selling product id |
41
+ | 2 | 50 | filtered order and customer counts |
42
+ | 3 | 50 | revenue and refund-rate aggregations |
43
+ | 4 | 50 | local-currency conversion and margin-after-refund calculations |
44
+ | 5 | 50 | replenishment shortfall and delayed-order revenue workflows |
45
+ | 6 | 50 | delayed fulfillment plus SLA breach burden, and at-risk revenue from breached tickets |
46
+
47
+ There are 12 task families with 25 tasks per family. The public `test` split is
48
+ closed-world and deterministic, but it is not a public-answer leaderboard split.
49
+
50
+ ## Files
51
+
52
+ - `data/test.jsonl`: answer-free task records.
53
+ - `tools/flowbench_tools_v3.py`: deterministic tool implementation visible to agents.
54
+ - `harbor/`: Harbor-compatible public task pack with a smoke verifier. The smoke
55
+ verifier checks output shape only; it is not official scoring.
56
+
57
+ Each JSONL record includes:
58
+
59
+ - `task_id`
60
+ - `depth`
61
+ - `family`
62
+ - `region`, `category`, `month_start`, `month_end`
63
+ - `instruction`
64
+ - `answer_format`
65
+
66
+ No record contains a gold answer.
67
+
68
+ ## Running the Harbor Smoke Pack
69
+
70
+ ```bash
71
+ harbor run -p harbor -a <agent> -l 1
72
+ ```
73
+
74
+ The Harbor pack in this repository is a public smoke pack. It verifies that an
75
+ agent writes an output with the required shape. It deliberately does not contain
76
+ the private expected answers.
77
+
78
+ ## Task Families
79
+
80
+ - `currency_lookup`
81
+ - `top_product_lookup`
82
+ - `order_count`
83
+ - `unique_customer_count`
84
+ - `net_revenue_usd`
85
+ - `refund_share_bp`
86
+ - `local_net_revenue`
87
+ - `margin_after_refunds`
88
+ - `reorder_shortfall`
89
+ - `delayed_net_revenue`
90
+ - `delay_sla_burden`
91
+ - `breached_ticket_revenue`
92
+
93
+ ## Evaluation Notes
94
+
95
+ FlowBench is designed to compare how agent interfaces express the same tool
96
+ capabilities: function-calling style, command style, and code/REPL style
97
+ substrates can all call the same tools. For public release, do not evaluate by
98
+ matching against labels embedded in this repository; there are none. Use a
99
+ private evaluator or generate a held-out split with hidden answers.
100
+
101
+ ## Citation
102
+
103
+ If you use FlowBench, cite the associated paper or this dataset repository once
104
+ the paper is released.
data/test.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
harbor/README.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FlowBench v3 Public Release
2
+
3
+ This is the answer-free public task package. It is suitable for inspecting
4
+ tasks, integrating agents, and launching Harbor containers with a smoke
5
+ verifier. It is not the official scoring package.
6
+
7
+ Files intentionally excluded from this public package:
8
+ - fixed gold labels
9
+ - Harbor oracle solutions
10
+ - strict verifier expected files
11
+ - model result logs and generated transcripts
12
+
13
+ Official benchmark scores should be computed with the private evaluator
14
+ pack or a freshly generated held-out split. Publishing fixed labels for the
15
+ official split would make hard-coded benchmark submissions possible.
16
+
17
+ Harbor smoke run, replacing `<agent>` with the Harbor agent to evaluate:
18
+
19
+ ```bash
20
+ harbor run -p code/flowbench_public/harbor_v3_public -a <agent> -l 1
21
+ ```
harbor/dataset.toml ADDED
@@ -0,0 +1,1210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Public task-only manifest for mindlab/flowbench-v3-public
2
+ # Smoke verifier only; official scoring uses the private evaluator pack.
3
+
4
+ [dataset]
5
+ name = "mindlab/flowbench-v3-public"
6
+ description = "Answer-free public FlowBench v3 task pack with smoke verifier."
7
+ keywords = ["flowbench", "tool-use", "data-orchestration", "operations"]
8
+ [[dataset.authors]]
9
+ name = "Mind Lab"
10
+ email = "contact@mindlab.ltd"
11
+
12
+ [[tasks]]
13
+ name = "mindlab/v3_depth1_currency_lookup_t0"
14
+ digest = "sha256:38952be087dded21bdc16c0f099ee4dcdf3e19315149efa8b9a05ec65e87a4cc"
15
+
16
+ [[tasks]]
17
+ name = "mindlab/v3_depth1_currency_lookup_t1"
18
+ digest = "sha256:29d1778238deed5b2ecab2bef000e46556a15bb0a37e87a555c3698388401da2"
19
+
20
+ [[tasks]]
21
+ name = "mindlab/v3_depth1_currency_lookup_t2"
22
+ digest = "sha256:e999f46b693e5be45c383abb2eb7053659991d24c34cd0226723f1783896a895"
23
+
24
+ [[tasks]]
25
+ name = "mindlab/v3_depth1_currency_lookup_t3"
26
+ digest = "sha256:08572d97636eafaa654dc5bb4d334c932bbd64380ae3d5b4c520be025ff387b9"
27
+
28
+ [[tasks]]
29
+ name = "mindlab/v3_depth1_currency_lookup_t4"
30
+ digest = "sha256:7e938a3de0e60e651619335a554bf854b7105ff5514e5a73f4448e60626e7726"
31
+
32
+ [[tasks]]
33
+ name = "mindlab/v3_depth1_currency_lookup_t5"
34
+ digest = "sha256:0c1aa8e7381c5b6ccf4fed06365a885b8fe27990fd513b20f7805add393719d4"
35
+
36
+ [[tasks]]
37
+ name = "mindlab/v3_depth1_currency_lookup_t6"
38
+ digest = "sha256:beba5b7fd75837a6859c794a82d791a77c05760e918ae7062034804873b506af"
39
+
40
+ [[tasks]]
41
+ name = "mindlab/v3_depth1_currency_lookup_t7"
42
+ digest = "sha256:5cd31f7a566a2bc0c62f34d39f25d8807d3ea61dac48b7db687f8f49f4d3bba8"
43
+
44
+ [[tasks]]
45
+ name = "mindlab/v3_depth1_currency_lookup_t8"
46
+ digest = "sha256:fac1ff8137bc6f6c824e9bd2bb9d64c549cc3b891bccdf18c623be364c96516d"
47
+
48
+ [[tasks]]
49
+ name = "mindlab/v3_depth1_currency_lookup_t9"
50
+ digest = "sha256:3d57a28fb4e7a927cd6813cf0aab9dc48a80c3df1ef2ddf741e1f880ecb49935"
51
+
52
+ [[tasks]]
53
+ name = "mindlab/v3_depth1_currency_lookup_t10"
54
+ digest = "sha256:e72f9e47a0d208f99e92e4430ab874328146ae0cd12bd8cfdc87ae3c39bee3d0"
55
+
56
+ [[tasks]]
57
+ name = "mindlab/v3_depth1_currency_lookup_t11"
58
+ digest = "sha256:d9188060c7e6d2347c4097af84c91e7edb15fd235dacca2fb363a6a0267e6aad"
59
+
60
+ [[tasks]]
61
+ name = "mindlab/v3_depth1_currency_lookup_t12"
62
+ digest = "sha256:10bd9cdd11ac3a23fa8b4c365551e79ee81e8c658f465be038ff2a2f80f2d1e4"
63
+
64
+ [[tasks]]
65
+ name = "mindlab/v3_depth1_currency_lookup_t13"
66
+ digest = "sha256:7df6f59824962952d1b6100297b900b8b7cb5cbd9128f54813751186ba118d9d"
67
+
68
+ [[tasks]]
69
+ name = "mindlab/v3_depth1_currency_lookup_t14"
70
+ digest = "sha256:14ae991706f62d3452fc4fe72a247fb2da74c3af7e668fc82b4c00e04782c455"
71
+
72
+ [[tasks]]
73
+ name = "mindlab/v3_depth1_currency_lookup_t15"
74
+ digest = "sha256:87a868fd22a186a6aa6e5dd7c66e04a296529fdc1bc02753c7abee4eaf3c8c67"
75
+
76
+ [[tasks]]
77
+ name = "mindlab/v3_depth1_currency_lookup_t16"
78
+ digest = "sha256:b3c01a2c210d98c61785c720d47c103504822f3e8756ccfca1dc78908314cff7"
79
+
80
+ [[tasks]]
81
+ name = "mindlab/v3_depth1_currency_lookup_t17"
82
+ digest = "sha256:417c789452b47e32d6d6daa0cb0fb896c637d339040b90c75aca34779416867c"
83
+
84
+ [[tasks]]
85
+ name = "mindlab/v3_depth1_currency_lookup_t18"
86
+ digest = "sha256:260c7f74e4fd795b7a4fac41d2f3f71241ed0b3d50f04fd5403acd178b3d3b09"
87
+
88
+ [[tasks]]
89
+ name = "mindlab/v3_depth1_currency_lookup_t19"
90
+ digest = "sha256:f484c166069615c461a572f73de047cb7295999d1f8971d0f4eba637f36584e1"
91
+
92
+ [[tasks]]
93
+ name = "mindlab/v3_depth1_currency_lookup_t20"
94
+ digest = "sha256:17eef1cf3d1e06d862a7dac4273f67441ea55236ff2fd1a8aa1d2ad82289d82b"
95
+
96
+ [[tasks]]
97
+ name = "mindlab/v3_depth1_currency_lookup_t21"
98
+ digest = "sha256:414a719a51eb85c838a56b00e6ea2994348f8d5b5a32b06ce33da695c792b28f"
99
+
100
+ [[tasks]]
101
+ name = "mindlab/v3_depth1_currency_lookup_t22"
102
+ digest = "sha256:7d89c8ee836cb6e65e9442422560a31b0505c2cf1df15130301947cf532e4471"
103
+
104
+ [[tasks]]
105
+ name = "mindlab/v3_depth1_currency_lookup_t23"
106
+ digest = "sha256:6cdbf1970fffb6ba11bb8c2e8d9d1136d5b5d1304ce59159b9e35101e7f279a3"
107
+
108
+ [[tasks]]
109
+ name = "mindlab/v3_depth1_currency_lookup_t24"
110
+ digest = "sha256:4c9540a6f2624f715648ff3447f2df385e4272dd9dcd4023d5a37d117916e928"
111
+
112
+ [[tasks]]
113
+ name = "mindlab/v3_depth1_top_product_lookup_t0"
114
+ digest = "sha256:8ecff84976eb65e8faa0269c03a2fb551c8b45cdd55cfdbc7818dd7a962fe191"
115
+
116
+ [[tasks]]
117
+ name = "mindlab/v3_depth1_top_product_lookup_t1"
118
+ digest = "sha256:03b3b1fd470c5a47e91fb0899d30cfbcf927901853e8dfa271479587672cad6a"
119
+
120
+ [[tasks]]
121
+ name = "mindlab/v3_depth1_top_product_lookup_t2"
122
+ digest = "sha256:69009aa9deeb372399e6fcea5c9790d4ab9727bfe2465aaa7aefaec0ba4ce879"
123
+
124
+ [[tasks]]
125
+ name = "mindlab/v3_depth1_top_product_lookup_t3"
126
+ digest = "sha256:c6bfeb4396163b26a0d699944ab0c94e23b97c73b3c1b125f1d9121833b45139"
127
+
128
+ [[tasks]]
129
+ name = "mindlab/v3_depth1_top_product_lookup_t4"
130
+ digest = "sha256:5a4d0a0ca95fd43c48132202f9930d248a58a763805125c518d1fb06ca4df9be"
131
+
132
+ [[tasks]]
133
+ name = "mindlab/v3_depth1_top_product_lookup_t5"
134
+ digest = "sha256:cc2222c4da2d2c07b622809628118113a080d0987fb7ee6c94bd138572ff2a5b"
135
+
136
+ [[tasks]]
137
+ name = "mindlab/v3_depth1_top_product_lookup_t6"
138
+ digest = "sha256:9274ca72d5ce3b281c85941c17df44511622494336df6f7086577890dbd46f66"
139
+
140
+ [[tasks]]
141
+ name = "mindlab/v3_depth1_top_product_lookup_t7"
142
+ digest = "sha256:369c2105cca67232c30409b98d22b4d688aff5c6d41a2e4e38a1d4ef23e228cc"
143
+
144
+ [[tasks]]
145
+ name = "mindlab/v3_depth1_top_product_lookup_t8"
146
+ digest = "sha256:bb63dfdb01c670e852aded52b8c9c6933f969dfdcf71941a886f0f60b156d841"
147
+
148
+ [[tasks]]
149
+ name = "mindlab/v3_depth1_top_product_lookup_t9"
150
+ digest = "sha256:a2eb6ceb3187b3f7a54df52b10c917265e7002c586c865f226c1de71e18bcdae"
151
+
152
+ [[tasks]]
153
+ name = "mindlab/v3_depth1_top_product_lookup_t10"
154
+ digest = "sha256:ff0c0946461999b100daea851732bb78f0efed21c54347e1c8224f34f2db0901"
155
+
156
+ [[tasks]]
157
+ name = "mindlab/v3_depth1_top_product_lookup_t11"
158
+ digest = "sha256:ac6f660f8da2cd724c5e64ec6bf0ee60d4981e0a93ca763b50b385971d30b584"
159
+
160
+ [[tasks]]
161
+ name = "mindlab/v3_depth1_top_product_lookup_t12"
162
+ digest = "sha256:4beaf32fba1a8ebc461a186c0e2c3d93ef3cc5d91b424c73f7eb55e2acf11831"
163
+
164
+ [[tasks]]
165
+ name = "mindlab/v3_depth1_top_product_lookup_t13"
166
+ digest = "sha256:2d6087702a179b14a024bb8f07ce089448e93712e6b4ba578c41881303bfbd16"
167
+
168
+ [[tasks]]
169
+ name = "mindlab/v3_depth1_top_product_lookup_t14"
170
+ digest = "sha256:1cd43d588d229ac93d1d8076ec997c0c421fa9682fcc85008a430b6184fd6a6c"
171
+
172
+ [[tasks]]
173
+ name = "mindlab/v3_depth1_top_product_lookup_t15"
174
+ digest = "sha256:d631560f48523145db325850575583dcb0aa69a895cb37b7be7d219fa98a281f"
175
+
176
+ [[tasks]]
177
+ name = "mindlab/v3_depth1_top_product_lookup_t16"
178
+ digest = "sha256:086c0e17a1ca99d16a175af13682590cba52488e034eb49486e33d4f6e5fd3f1"
179
+
180
+ [[tasks]]
181
+ name = "mindlab/v3_depth1_top_product_lookup_t17"
182
+ digest = "sha256:ba64ae9ccde1efe1748fd7e60063f4b0de688b6f5b871c69693d1d998c7aeb87"
183
+
184
+ [[tasks]]
185
+ name = "mindlab/v3_depth1_top_product_lookup_t18"
186
+ digest = "sha256:82d07ad6ead4b48466cf8b502147f8a6667cabdfbf185fc4c50d0a7f0049f5c3"
187
+
188
+ [[tasks]]
189
+ name = "mindlab/v3_depth1_top_product_lookup_t19"
190
+ digest = "sha256:8600998ac67e8a59ecab439c6a4c45f23574491be744acf867b613e08a6196c1"
191
+
192
+ [[tasks]]
193
+ name = "mindlab/v3_depth1_top_product_lookup_t20"
194
+ digest = "sha256:400bf14ef9d5ae2c993de9ee999e7e2039e069d8e43de8f82711910498e1e69a"
195
+
196
+ [[tasks]]
197
+ name = "mindlab/v3_depth1_top_product_lookup_t21"
198
+ digest = "sha256:60295743c068215937f96c0023c9d0820ab8d4be032047d0d8b6b5a039c9d315"
199
+
200
+ [[tasks]]
201
+ name = "mindlab/v3_depth1_top_product_lookup_t22"
202
+ digest = "sha256:8cc0b7df5e3b73eda6a3c23f7eef0cf1a40c9db9a8fc56cee283c040a4c2cd82"
203
+
204
+ [[tasks]]
205
+ name = "mindlab/v3_depth1_top_product_lookup_t23"
206
+ digest = "sha256:b414ce2a50896eac507e1f7bb4d36bd825968260ad21810690c8943e0ba5cd1f"
207
+
208
+ [[tasks]]
209
+ name = "mindlab/v3_depth1_top_product_lookup_t24"
210
+ digest = "sha256:20cb854552f9a47149eb02f7da8417a46f9a543566b73bdb3f5db3ef4ff1536b"
211
+
212
+ [[tasks]]
213
+ name = "mindlab/v3_depth2_order_count_t0"
214
+ digest = "sha256:46c7a242eb11e56770c0d456985d48fae51ebc713428a55978d06afa09c514f5"
215
+
216
+ [[tasks]]
217
+ name = "mindlab/v3_depth2_order_count_t1"
218
+ digest = "sha256:6873fb0c4efacf6943d2b1bb2d61072fb482f6950f7ae956164e052f8aa9b09d"
219
+
220
+ [[tasks]]
221
+ name = "mindlab/v3_depth2_order_count_t2"
222
+ digest = "sha256:f1e2fa0a5495873e812a2b218077868749fd7e0428c613b46a0ed4abd01a2e7b"
223
+
224
+ [[tasks]]
225
+ name = "mindlab/v3_depth2_order_count_t3"
226
+ digest = "sha256:34cb144c0978f9c8a64212212457299d38fe8b348d095ebfd659eba4fcdea3c1"
227
+
228
+ [[tasks]]
229
+ name = "mindlab/v3_depth2_order_count_t4"
230
+ digest = "sha256:2fdd23792ea797952f49b49917d6ed6a122089968c0f8594d24266a36c358fe9"
231
+
232
+ [[tasks]]
233
+ name = "mindlab/v3_depth2_order_count_t5"
234
+ digest = "sha256:90ce8959bcf6f848bae6476cd6bd2c63f1ddb3ec846a14041bc942120b645570"
235
+
236
+ [[tasks]]
237
+ name = "mindlab/v3_depth2_order_count_t6"
238
+ digest = "sha256:aee653c6506521b5c95b7410105780115f1adb81f4e9fbe4bf437f6ba45c4676"
239
+
240
+ [[tasks]]
241
+ name = "mindlab/v3_depth2_order_count_t7"
242
+ digest = "sha256:e419fe5c0934370b70f5e41e33fd4abb45368d77b8df47ece4e32644c6af8633"
243
+
244
+ [[tasks]]
245
+ name = "mindlab/v3_depth2_order_count_t8"
246
+ digest = "sha256:ffac21dc82682b2400fbd2b122f92ca01f40133dce44c9fccd724e503993bb9a"
247
+
248
+ [[tasks]]
249
+ name = "mindlab/v3_depth2_order_count_t9"
250
+ digest = "sha256:fd445403ae2aca6bd0bc92ad7bf57bc10b8d3083f4bc16bd28dea59312400cbb"
251
+
252
+ [[tasks]]
253
+ name = "mindlab/v3_depth2_order_count_t10"
254
+ digest = "sha256:b18b92ac27da7e6538c48783dd49e1966c1502296590e5e4a14cc8c26a2b21e9"
255
+
256
+ [[tasks]]
257
+ name = "mindlab/v3_depth2_order_count_t11"
258
+ digest = "sha256:a436a02bc8970eb7407bfbb90cbb404cf90158bae13bbdd126387e8a351e263d"
259
+
260
+ [[tasks]]
261
+ name = "mindlab/v3_depth2_order_count_t12"
262
+ digest = "sha256:32e551c73a18ae20e6d90d32aa263d8f01bc1a897b91393747eabe6cc6b5dc7c"
263
+
264
+ [[tasks]]
265
+ name = "mindlab/v3_depth2_order_count_t13"
266
+ digest = "sha256:43e55f537e0309c429a13b83cb91d1eb496f51cd2c7244d270358737f2bc96ec"
267
+
268
+ [[tasks]]
269
+ name = "mindlab/v3_depth2_order_count_t14"
270
+ digest = "sha256:249f49fd955a8cfc7a29a154ff68c43cd822b9f13ad5b4fa74c7356e021ba8ff"
271
+
272
+ [[tasks]]
273
+ name = "mindlab/v3_depth2_order_count_t15"
274
+ digest = "sha256:3d3bb62350b950707f8cb5b96da7336bba0b376144d80e742ba57b813c546604"
275
+
276
+ [[tasks]]
277
+ name = "mindlab/v3_depth2_order_count_t16"
278
+ digest = "sha256:4cde6f134b4dbd1286d40dcd47fdef1c757b159d591d538f46e9624f6be99573"
279
+
280
+ [[tasks]]
281
+ name = "mindlab/v3_depth2_order_count_t17"
282
+ digest = "sha256:df835d60319087f7f28951633c5d4350d7026ff8d6b573af1cea3a4563a93027"
283
+
284
+ [[tasks]]
285
+ name = "mindlab/v3_depth2_order_count_t18"
286
+ digest = "sha256:758f33cea97f13bac62e0ddacefad2692f58dda2d91b8dd198509a1e69d40fe3"
287
+
288
+ [[tasks]]
289
+ name = "mindlab/v3_depth2_order_count_t19"
290
+ digest = "sha256:037221b8eb614a1bf9eb63f511aae73f3e1a018034fdf0216ec78f99c591f9df"
291
+
292
+ [[tasks]]
293
+ name = "mindlab/v3_depth2_order_count_t20"
294
+ digest = "sha256:2613706cbf67313c910f0353a8336fe7274f3382976a37b91a84d1afc25ef05b"
295
+
296
+ [[tasks]]
297
+ name = "mindlab/v3_depth2_order_count_t21"
298
+ digest = "sha256:a16dc5e8f16540b646d8846f7edbd2ed001ab3f821e23049147874676a5bee45"
299
+
300
+ [[tasks]]
301
+ name = "mindlab/v3_depth2_order_count_t22"
302
+ digest = "sha256:1066628f29df214850718c3b85fd6251be23e1d9cd59fc5e5f7dc810c337cfd4"
303
+
304
+ [[tasks]]
305
+ name = "mindlab/v3_depth2_order_count_t23"
306
+ digest = "sha256:29e4b0d20ca96c9fef55a79475130cb5cc33be03dfce67837308eb7fb1b6a0d8"
307
+
308
+ [[tasks]]
309
+ name = "mindlab/v3_depth2_order_count_t24"
310
+ digest = "sha256:856b5503d50140deeb6aebded8ab212f24a04ee6db40ba5dd317838fef9b2aa6"
311
+
312
+ [[tasks]]
313
+ name = "mindlab/v3_depth2_unique_customer_count_t0"
314
+ digest = "sha256:01753bbfaba7e43a1e1fad9fb4376b7f22cccb1af777dbe809a997b3319eb61f"
315
+
316
+ [[tasks]]
317
+ name = "mindlab/v3_depth2_unique_customer_count_t1"
318
+ digest = "sha256:bff9a3014a35f8f6fce94d5f66693cd02dd1e92ad30b7c5fa7440a2558855d01"
319
+
320
+ [[tasks]]
321
+ name = "mindlab/v3_depth2_unique_customer_count_t2"
322
+ digest = "sha256:6360a049077eb628f2eae90072eb5b3e1ac614485515756f86926f3042626e13"
323
+
324
+ [[tasks]]
325
+ name = "mindlab/v3_depth2_unique_customer_count_t3"
326
+ digest = "sha256:54b00e2afceb7e7993592b600a55a442b128aeac208bd272688a21f5a56f70c4"
327
+
328
+ [[tasks]]
329
+ name = "mindlab/v3_depth2_unique_customer_count_t4"
330
+ digest = "sha256:8ca794136e0b46939793f6a70900eb59c067f7d4249790616eb1b71dc6a98dbe"
331
+
332
+ [[tasks]]
333
+ name = "mindlab/v3_depth2_unique_customer_count_t5"
334
+ digest = "sha256:71921c421f84bc7cb83a242585a11bb301c82cd80c269888dc51eb92cc71feb4"
335
+
336
+ [[tasks]]
337
+ name = "mindlab/v3_depth2_unique_customer_count_t6"
338
+ digest = "sha256:f3b5deef2ed76b28fb9ce24baea1d279e83aede0415e05270498aab8a2812fe3"
339
+
340
+ [[tasks]]
341
+ name = "mindlab/v3_depth2_unique_customer_count_t7"
342
+ digest = "sha256:69b3e29ac47ff5d87dd7eb50d845cfce51a213da46e0fbddea9f4130f51ce394"
343
+
344
+ [[tasks]]
345
+ name = "mindlab/v3_depth2_unique_customer_count_t8"
346
+ digest = "sha256:33acb284e0cc7a5a3088906e8ed3cf71639ec68ed90d2812932874049c1483f1"
347
+
348
+ [[tasks]]
349
+ name = "mindlab/v3_depth2_unique_customer_count_t9"
350
+ digest = "sha256:cef17783b7d361ad70f9dc92da4f9a9b70c41b88822fdfeb3b2cc7a5bd3c448d"
351
+
352
+ [[tasks]]
353
+ name = "mindlab/v3_depth2_unique_customer_count_t10"
354
+ digest = "sha256:4fe74bbc86e910cb5dfd4416bfdce9e2b6ef4f0705bc029d4c7989da1489f29a"
355
+
356
+ [[tasks]]
357
+ name = "mindlab/v3_depth2_unique_customer_count_t11"
358
+ digest = "sha256:a1c0fa906cbaa1ecf2a60edaf00cb281d4c8bc5a3fe851ce333987c98b18d28c"
359
+
360
+ [[tasks]]
361
+ name = "mindlab/v3_depth2_unique_customer_count_t12"
362
+ digest = "sha256:bb3f1fceefebaf9a0c835fa4b9f67e030e15b3e02121103755a231653caccb8c"
363
+
364
+ [[tasks]]
365
+ name = "mindlab/v3_depth2_unique_customer_count_t13"
366
+ digest = "sha256:d95a6f730e4c7602d1e325237440fa9e4c53d2186396c55f698aa88740a86ac0"
367
+
368
+ [[tasks]]
369
+ name = "mindlab/v3_depth2_unique_customer_count_t14"
370
+ digest = "sha256:5b945b7e0b10ce1790a475329957e46539391c11001df820994b964a7debf5fd"
371
+
372
+ [[tasks]]
373
+ name = "mindlab/v3_depth2_unique_customer_count_t15"
374
+ digest = "sha256:081fe8b63b7612ea6571216d7dc5df02a26a2fdad896b2f3b88fafc3c8be9143"
375
+
376
+ [[tasks]]
377
+ name = "mindlab/v3_depth2_unique_customer_count_t16"
378
+ digest = "sha256:bcbace62285425120c7571b037f4bd4988d170be751b2bd7e711a6aaa9e310d1"
379
+
380
+ [[tasks]]
381
+ name = "mindlab/v3_depth2_unique_customer_count_t17"
382
+ digest = "sha256:f5188c6862d6b4e7ac8997abf0848dd3f3cc3d3836ee3b1100b45064673e89fb"
383
+
384
+ [[tasks]]
385
+ name = "mindlab/v3_depth2_unique_customer_count_t18"
386
+ digest = "sha256:152fd7cafe09366657fbb93f30826d1d1c96c3cebb5c74c56da3e1e44077c353"
387
+
388
+ [[tasks]]
389
+ name = "mindlab/v3_depth2_unique_customer_count_t19"
390
+ digest = "sha256:1231cb9cd97981651dcba311b3ddf0dcef96865d582203ad58de80b0cb5df1cc"
391
+
392
+ [[tasks]]
393
+ name = "mindlab/v3_depth2_unique_customer_count_t20"
394
+ digest = "sha256:5fe09fd3a80cdc43b0d8d9d6e0ad086e962052cc9b9549c0cbb8c9a4efeb311f"
395
+
396
+ [[tasks]]
397
+ name = "mindlab/v3_depth2_unique_customer_count_t21"
398
+ digest = "sha256:4ec9f7fcb6e87fd9cf7db8e1498cd249b81f9c349eec5e51fed501faa42179c9"
399
+
400
+ [[tasks]]
401
+ name = "mindlab/v3_depth2_unique_customer_count_t22"
402
+ digest = "sha256:a6d3f10092327fb6d7b15b9aaf890de9c9f12e60996167a6ad54a50357c4c8d5"
403
+
404
+ [[tasks]]
405
+ name = "mindlab/v3_depth2_unique_customer_count_t23"
406
+ digest = "sha256:ffaa621befca29c11212ff90e05af04b6455e0a4a829cf1ed8a3340aa4a29dab"
407
+
408
+ [[tasks]]
409
+ name = "mindlab/v3_depth2_unique_customer_count_t24"
410
+ digest = "sha256:fb025e975c9a36908c0f37e40f0792f2019d5f1295d134cf90d63af181eeeee2"
411
+
412
+ [[tasks]]
413
+ name = "mindlab/v3_depth3_net_revenue_usd_t0"
414
+ digest = "sha256:1a9e80dd89e0773d298e284fefb5d271a2cc991067262f33191ebce9cc835f03"
415
+
416
+ [[tasks]]
417
+ name = "mindlab/v3_depth3_net_revenue_usd_t1"
418
+ digest = "sha256:ccb4be30ef9cab931888c3fd57ef9bf48b84aa3a7a27ca89c88bcbdcabc00563"
419
+
420
+ [[tasks]]
421
+ name = "mindlab/v3_depth3_net_revenue_usd_t2"
422
+ digest = "sha256:eebb33c284c0ad2f9893d64164589f840e091b69a2c8919917321ef73ab9ce1a"
423
+
424
+ [[tasks]]
425
+ name = "mindlab/v3_depth3_net_revenue_usd_t3"
426
+ digest = "sha256:a6bb1117a1d12df74289e3a7aac3c92322e9134fc588dbddc10fbaa6ec1e3f99"
427
+
428
+ [[tasks]]
429
+ name = "mindlab/v3_depth3_net_revenue_usd_t4"
430
+ digest = "sha256:2769a21d2121fadf32d44d13f050c3184d0f2fd97f985774f88d3eefd5cbcf89"
431
+
432
+ [[tasks]]
433
+ name = "mindlab/v3_depth3_net_revenue_usd_t5"
434
+ digest = "sha256:e3ce7a9fad349d05c609d45a36366c0848bdc721eb7436bc6186ddd3c7e31563"
435
+
436
+ [[tasks]]
437
+ name = "mindlab/v3_depth3_net_revenue_usd_t6"
438
+ digest = "sha256:44615bcc0129745a60d5420d3d8ad7ad9b03fe5709557656847400bd05fc8c04"
439
+
440
+ [[tasks]]
441
+ name = "mindlab/v3_depth3_net_revenue_usd_t7"
442
+ digest = "sha256:798fbf0eff0467f2c32ed941dfbb6b6984b8a52a483af49614e3f0bb219c10ee"
443
+
444
+ [[tasks]]
445
+ name = "mindlab/v3_depth3_net_revenue_usd_t8"
446
+ digest = "sha256:28432bda3fc9deb0025eea202e655ed1a160679c8710b85f5fe7f406a720710f"
447
+
448
+ [[tasks]]
449
+ name = "mindlab/v3_depth3_net_revenue_usd_t9"
450
+ digest = "sha256:641b2796c6c9912e582382767fb6d02dc79c48ddd8a8d874ababe4d92a300a8e"
451
+
452
+ [[tasks]]
453
+ name = "mindlab/v3_depth3_net_revenue_usd_t10"
454
+ digest = "sha256:ce25905a92a1871ae3c44e2e866cfcce4905213d05ad3457e42b8f3f30571bee"
455
+
456
+ [[tasks]]
457
+ name = "mindlab/v3_depth3_net_revenue_usd_t11"
458
+ digest = "sha256:dc7d041ffd0840d78e617784da90ec9826864156bbd6d1a07111f0c2c4649544"
459
+
460
+ [[tasks]]
461
+ name = "mindlab/v3_depth3_net_revenue_usd_t12"
462
+ digest = "sha256:b951947bdb8a9454162e7f569ea7006d8c53cb3fa1a81b80c59864b868241a8a"
463
+
464
+ [[tasks]]
465
+ name = "mindlab/v3_depth3_net_revenue_usd_t13"
466
+ digest = "sha256:a8bd25db8cfda9cad3a64478c3a7b50f43f2347f2b96ce3d95750e07031f7ca9"
467
+
468
+ [[tasks]]
469
+ name = "mindlab/v3_depth3_net_revenue_usd_t14"
470
+ digest = "sha256:e2c33bd09055f25dbc1dc166c70ec3353376f1ad10e44b13bbc008b0ebd83d3f"
471
+
472
+ [[tasks]]
473
+ name = "mindlab/v3_depth3_net_revenue_usd_t15"
474
+ digest = "sha256:fb37aacad743a2b20db30e442dae55ccbc3cdcb80e3dfd27ae89ebe087bdfb3d"
475
+
476
+ [[tasks]]
477
+ name = "mindlab/v3_depth3_net_revenue_usd_t16"
478
+ digest = "sha256:5478dfdb0e29b26ef97bebddbcd002b5fc7b3391919de01a408879e44b1809f2"
479
+
480
+ [[tasks]]
481
+ name = "mindlab/v3_depth3_net_revenue_usd_t17"
482
+ digest = "sha256:d5ab3f88009ad9fec57280c5fc11046882c2768825270d11cc9c43d6390ad336"
483
+
484
+ [[tasks]]
485
+ name = "mindlab/v3_depth3_net_revenue_usd_t18"
486
+ digest = "sha256:7feff3634cf21360ecace5ca4009f5a8b26b53a8a89258b933fedb73a051a86a"
487
+
488
+ [[tasks]]
489
+ name = "mindlab/v3_depth3_net_revenue_usd_t19"
490
+ digest = "sha256:f163ba3015d1459a9dd2d076205bcbce664ef1050a8f1ba94936435513bc700f"
491
+
492
+ [[tasks]]
493
+ name = "mindlab/v3_depth3_net_revenue_usd_t20"
494
+ digest = "sha256:e17a39e3985b36582e3c65056b966db1c07112441c8c79daba6db19f8b605b65"
495
+
496
+ [[tasks]]
497
+ name = "mindlab/v3_depth3_net_revenue_usd_t21"
498
+ digest = "sha256:93506ca6ea1c780858b49a03c3e3a6c6a532dfdfa5853d4270c891a82280f4d8"
499
+
500
+ [[tasks]]
501
+ name = "mindlab/v3_depth3_net_revenue_usd_t22"
502
+ digest = "sha256:8980e806ed649d5b61cf69ff29a116ed6aba61bc27ed460376337861d59ebb97"
503
+
504
+ [[tasks]]
505
+ name = "mindlab/v3_depth3_net_revenue_usd_t23"
506
+ digest = "sha256:b6c824b3577a2652cbea775bc5209235cb0f824a2717824a61aa4131b37c0e13"
507
+
508
+ [[tasks]]
509
+ name = "mindlab/v3_depth3_net_revenue_usd_t24"
510
+ digest = "sha256:ad3871cf723af33633a2ad115d3d76a143b0da68b18935cd250daa9836104dbd"
511
+
512
+ [[tasks]]
513
+ name = "mindlab/v3_depth3_refund_share_bp_t0"
514
+ digest = "sha256:2a870209ac866137771170fb758e2e5a7cbbf84bf7482c9963908fbff021b0c8"
515
+
516
+ [[tasks]]
517
+ name = "mindlab/v3_depth3_refund_share_bp_t1"
518
+ digest = "sha256:603b3a8423fcc7c2efc0655d7f0f3b01351637686baa45f5b7906f81512ac13b"
519
+
520
+ [[tasks]]
521
+ name = "mindlab/v3_depth3_refund_share_bp_t2"
522
+ digest = "sha256:3a22e4d2e4bcd9a4b7f348405dae129cd6aee63b8fab1b40d2f2142064870297"
523
+
524
+ [[tasks]]
525
+ name = "mindlab/v3_depth3_refund_share_bp_t3"
526
+ digest = "sha256:3d39add56bc8e4f96f569df5c53b596f4cae9abfe415305824cd4e8110de9810"
527
+
528
+ [[tasks]]
529
+ name = "mindlab/v3_depth3_refund_share_bp_t4"
530
+ digest = "sha256:ed73ca7560ab41b57e935b89cfc4e3530e1aa206d87e33e77f78261a3da4451e"
531
+
532
+ [[tasks]]
533
+ name = "mindlab/v3_depth3_refund_share_bp_t5"
534
+ digest = "sha256:c4ec9553e704f489716651d2e2a040a6677efd1cb73a1dbc6710a71b7f01badb"
535
+
536
+ [[tasks]]
537
+ name = "mindlab/v3_depth3_refund_share_bp_t6"
538
+ digest = "sha256:981a8cb0d092576f988a55ab271d7a607fda8d3c07176ab9dab7ea7d3ca3e42d"
539
+
540
+ [[tasks]]
541
+ name = "mindlab/v3_depth3_refund_share_bp_t7"
542
+ digest = "sha256:e29464f70a0db07c9bb3ff0e419c6f9ef8856ab70d3a1edf241f5f9d42307416"
543
+
544
+ [[tasks]]
545
+ name = "mindlab/v3_depth3_refund_share_bp_t8"
546
+ digest = "sha256:7e08a049418744a3d9d71edab8902b8831d008c3be8fd42a2012611466ce4940"
547
+
548
+ [[tasks]]
549
+ name = "mindlab/v3_depth3_refund_share_bp_t9"
550
+ digest = "sha256:ab04256dcbd013309c11a306ae8b9ca30e88de539b8810a2a5809eaad48eb2ca"
551
+
552
+ [[tasks]]
553
+ name = "mindlab/v3_depth3_refund_share_bp_t10"
554
+ digest = "sha256:bd3f6542d9adde5e8ed5933111a635e8d2ca149bc526dc2e896d4ab13ff061ba"
555
+
556
+ [[tasks]]
557
+ name = "mindlab/v3_depth3_refund_share_bp_t11"
558
+ digest = "sha256:c6367897c41dffdd2ae1f46b854c321de752850ab2e7c258db40c8dd0a274966"
559
+
560
+ [[tasks]]
561
+ name = "mindlab/v3_depth3_refund_share_bp_t12"
562
+ digest = "sha256:748129ae55ea4b3c2393f1c472816fcc5547ebe53b327d956e1165c9130c3edd"
563
+
564
+ [[tasks]]
565
+ name = "mindlab/v3_depth3_refund_share_bp_t13"
566
+ digest = "sha256:88377fc034fa3e4e1f20b3ddc55e42cfa19aedd3a72cafb06ce692d633bdc2e9"
567
+
568
+ [[tasks]]
569
+ name = "mindlab/v3_depth3_refund_share_bp_t14"
570
+ digest = "sha256:4b1ee6c381d2dd1d4799153be25e48ab0d341f7608bb111c095cb1adb260678f"
571
+
572
+ [[tasks]]
573
+ name = "mindlab/v3_depth3_refund_share_bp_t15"
574
+ digest = "sha256:71fcfe332e20f55125cd3a18e96f6309e89f810e15b4279b0a1888d72d0cb3e5"
575
+
576
+ [[tasks]]
577
+ name = "mindlab/v3_depth3_refund_share_bp_t16"
578
+ digest = "sha256:4695afa7fa52ac669675b79441deca44e21f725a17c636eb01edcc3376feb6fa"
579
+
580
+ [[tasks]]
581
+ name = "mindlab/v3_depth3_refund_share_bp_t17"
582
+ digest = "sha256:1b6f5b209256efe72bee539002d181ad04a432ca16a287f4fffe2f1d0f10700b"
583
+
584
+ [[tasks]]
585
+ name = "mindlab/v3_depth3_refund_share_bp_t18"
586
+ digest = "sha256:6d3fcacff195409463ac5148c404b3a13b7dd8926d6caf7964d1bc765f6d16ae"
587
+
588
+ [[tasks]]
589
+ name = "mindlab/v3_depth3_refund_share_bp_t19"
590
+ digest = "sha256:751eeba652e8de548923377623dcad295d6d3ad7ef52a9e510d43170e9b26a04"
591
+
592
+ [[tasks]]
593
+ name = "mindlab/v3_depth3_refund_share_bp_t20"
594
+ digest = "sha256:dbd18af1951a61ebd22ce7e456ffb4b254bde441d5d8a97aa9fa0b20656db5b6"
595
+
596
+ [[tasks]]
597
+ name = "mindlab/v3_depth3_refund_share_bp_t21"
598
+ digest = "sha256:54287c3ea44b5005a23a7684f8da9aa836651a27755caf33c16a48a9403fdb7b"
599
+
600
+ [[tasks]]
601
+ name = "mindlab/v3_depth3_refund_share_bp_t22"
602
+ digest = "sha256:a51979492d9119555c25283a39c10a425f9b6a6e36da63c50c35579af4a375d2"
603
+
604
+ [[tasks]]
605
+ name = "mindlab/v3_depth3_refund_share_bp_t23"
606
+ digest = "sha256:28ee094594eafec92437990ecd33174cc6365418d1ebc02b7e5784aeda691d84"
607
+
608
+ [[tasks]]
609
+ name = "mindlab/v3_depth3_refund_share_bp_t24"
610
+ digest = "sha256:1ba169e3ea781bd59c788f99407314f57a97fb937e383c6e33d6c72cc93d0c7c"
611
+
612
+ [[tasks]]
613
+ name = "mindlab/v3_depth4_local_net_revenue_t0"
614
+ digest = "sha256:76fd6293ed327793a94ca3140a2ff01929656a16c158a485faf50a6a7cdab93b"
615
+
616
+ [[tasks]]
617
+ name = "mindlab/v3_depth4_local_net_revenue_t1"
618
+ digest = "sha256:296d00481dc6d3f0d7db0c6a15dfc5216cce9a004a6fd0784e2b590efa4bc38a"
619
+
620
+ [[tasks]]
621
+ name = "mindlab/v3_depth4_local_net_revenue_t2"
622
+ digest = "sha256:9fe54804187acee53bf8abd04bda12559e2228cdf8e1b2083ac18a3600328c48"
623
+
624
+ [[tasks]]
625
+ name = "mindlab/v3_depth4_local_net_revenue_t3"
626
+ digest = "sha256:d369e071d28b179866d978042393ccacde24c49696f4103f4a45542ec67db344"
627
+
628
+ [[tasks]]
629
+ name = "mindlab/v3_depth4_local_net_revenue_t4"
630
+ digest = "sha256:47db52019c5b846d9a52bc671687f656f0427d7db39bfd743a4c4c1a94efcefb"
631
+
632
+ [[tasks]]
633
+ name = "mindlab/v3_depth4_local_net_revenue_t5"
634
+ digest = "sha256:d96dab8897e9f64c667107edd8c03078895bde59064cdfcfef6454840a22fd45"
635
+
636
+ [[tasks]]
637
+ name = "mindlab/v3_depth4_local_net_revenue_t6"
638
+ digest = "sha256:027124353fcd6545f0a0c85e0d64673936c2a182628cea0cfbaa02e6a3bd72ea"
639
+
640
+ [[tasks]]
641
+ name = "mindlab/v3_depth4_local_net_revenue_t7"
642
+ digest = "sha256:1923bb52c45f904c2c3c2eae3546f5886c41625b6c06503cf7ae0d458a8a635c"
643
+
644
+ [[tasks]]
645
+ name = "mindlab/v3_depth4_local_net_revenue_t8"
646
+ digest = "sha256:76c639cac54eb28ec6d06d6a6559e8c150934f7230802fe7df8e36b7d7112bbb"
647
+
648
+ [[tasks]]
649
+ name = "mindlab/v3_depth4_local_net_revenue_t9"
650
+ digest = "sha256:7330745cf7805f284576cf3f9edd8da8f457887bbf86d2d92f04cb89c8f81319"
651
+
652
+ [[tasks]]
653
+ name = "mindlab/v3_depth4_local_net_revenue_t10"
654
+ digest = "sha256:8bf25a6a857383b8bd9777ac657bde3d017e44507f0bff20b75a89ebb6dffc9e"
655
+
656
+ [[tasks]]
657
+ name = "mindlab/v3_depth4_local_net_revenue_t11"
658
+ digest = "sha256:de8c5c7ceeaa6a82125827067c9858b33618fcf30603686214806a1406a09935"
659
+
660
+ [[tasks]]
661
+ name = "mindlab/v3_depth4_local_net_revenue_t12"
662
+ digest = "sha256:9350c8a8036978a0ebbb091c1b0ace391df2e088daeb02ccd693d019e61b5e13"
663
+
664
+ [[tasks]]
665
+ name = "mindlab/v3_depth4_local_net_revenue_t13"
666
+ digest = "sha256:d3119b621ddf907947c4fdb1b7595cd017f369517a31bcc99ccbeccc4bcdd571"
667
+
668
+ [[tasks]]
669
+ name = "mindlab/v3_depth4_local_net_revenue_t14"
670
+ digest = "sha256:105f3382d1da3ded8b77702b7f0b9242258ba8214665e40c9385aa9065bf432a"
671
+
672
+ [[tasks]]
673
+ name = "mindlab/v3_depth4_local_net_revenue_t15"
674
+ digest = "sha256:8a0886888e89ab259d7076eb3285b72448806ab824bd6f374f2a12507842e050"
675
+
676
+ [[tasks]]
677
+ name = "mindlab/v3_depth4_local_net_revenue_t16"
678
+ digest = "sha256:c494f5706b9557b17406ddaf49ff197dda83d084a8fe8dc5419d8f2e5cfcdba1"
679
+
680
+ [[tasks]]
681
+ name = "mindlab/v3_depth4_local_net_revenue_t17"
682
+ digest = "sha256:2ca0315e37ead2975da9e470cb99846720235f1499649c685b3e9bcc3e77e868"
683
+
684
+ [[tasks]]
685
+ name = "mindlab/v3_depth4_local_net_revenue_t18"
686
+ digest = "sha256:ec3be69daedc3c77e9bd8a81e32f6a6a70800a4807eb09bf80c6d39061e84e9e"
687
+
688
+ [[tasks]]
689
+ name = "mindlab/v3_depth4_local_net_revenue_t19"
690
+ digest = "sha256:8b92e33134fb6e51f6cccab0c1144c4e06c48495da01d34ecffd01fbbdb82f08"
691
+
692
+ [[tasks]]
693
+ name = "mindlab/v3_depth4_local_net_revenue_t20"
694
+ digest = "sha256:6929dba500235ccdde8566b6c1e8047ad2d62651ab4bf1732c168d6b60b08ac6"
695
+
696
+ [[tasks]]
697
+ name = "mindlab/v3_depth4_local_net_revenue_t21"
698
+ digest = "sha256:4625c2b26c2e257278b2baa787b58c790345a1ff09ec52aaa32794279ac7f412"
699
+
700
+ [[tasks]]
701
+ name = "mindlab/v3_depth4_local_net_revenue_t22"
702
+ digest = "sha256:6f85fbc8ca809738b9b96dd2004d6e0e9a2b7fa214af9e976d7e6a5d575343fe"
703
+
704
+ [[tasks]]
705
+ name = "mindlab/v3_depth4_local_net_revenue_t23"
706
+ digest = "sha256:9ea0bd46cd3c9cbb42cd6b81964b1b1d52cb96bc7c150e4fcd965a65fc555072"
707
+
708
+ [[tasks]]
709
+ name = "mindlab/v3_depth4_local_net_revenue_t24"
710
+ digest = "sha256:7de828be1deeff60b287a6a820efc389d8924cdd933bd25c29ece1ef509a8db0"
711
+
712
+ [[tasks]]
713
+ name = "mindlab/v3_depth4_margin_after_refunds_t0"
714
+ digest = "sha256:44708eb2e2c5df1fdff1ee7af7b6fe920ed42a0ce19207758a42783629160e3d"
715
+
716
+ [[tasks]]
717
+ name = "mindlab/v3_depth4_margin_after_refunds_t1"
718
+ digest = "sha256:4ca8927604cfc6c2415de9248f1b32882864877517c42870761e77675e64244e"
719
+
720
+ [[tasks]]
721
+ name = "mindlab/v3_depth4_margin_after_refunds_t2"
722
+ digest = "sha256:75f73787954a97bc5ca643bde3bdfa7bf7144b75e5be0850be3b18cc3f693cab"
723
+
724
+ [[tasks]]
725
+ name = "mindlab/v3_depth4_margin_after_refunds_t3"
726
+ digest = "sha256:cdc4a71ad41bc61d64afd2534eb2afa3cf22e8c6552d57fb487fc68fe8abc456"
727
+
728
+ [[tasks]]
729
+ name = "mindlab/v3_depth4_margin_after_refunds_t4"
730
+ digest = "sha256:825c4a8813e29d20017a61bda1007f51c206c563033931521f200ca8a9d3bf71"
731
+
732
+ [[tasks]]
733
+ name = "mindlab/v3_depth4_margin_after_refunds_t5"
734
+ digest = "sha256:8c5d2fb945d54fef851c0377847cd614976a9e172a6175df9605db26b4b6b2c7"
735
+
736
+ [[tasks]]
737
+ name = "mindlab/v3_depth4_margin_after_refunds_t6"
738
+ digest = "sha256:5b42f4cef3d83bb0ad39adcdb5b759bb8404d35695296ce2ce106883f8c036a2"
739
+
740
+ [[tasks]]
741
+ name = "mindlab/v3_depth4_margin_after_refunds_t7"
742
+ digest = "sha256:e6a5aa14800f0721fdc075f280eeea0433b670b5ff4a90b56d73d7382f181e11"
743
+
744
+ [[tasks]]
745
+ name = "mindlab/v3_depth4_margin_after_refunds_t8"
746
+ digest = "sha256:a1fbe20ec257523fdee667485ad9fa66357867c0600e03ab8397efc283c3480d"
747
+
748
+ [[tasks]]
749
+ name = "mindlab/v3_depth4_margin_after_refunds_t9"
750
+ digest = "sha256:6a2575e523262c2eef5cb2d5e949b1ff02bfd578208923dbe159d34b530aa3fa"
751
+
752
+ [[tasks]]
753
+ name = "mindlab/v3_depth4_margin_after_refunds_t10"
754
+ digest = "sha256:7c95d73749a4cb101d965facceaccd4a6f46a7ea8e6e01649ab6e231a80e27db"
755
+
756
+ [[tasks]]
757
+ name = "mindlab/v3_depth4_margin_after_refunds_t11"
758
+ digest = "sha256:8e0a0aead47fea9a5fcae8a7bed45dbce00561716837f63e20f9c4920587dd74"
759
+
760
+ [[tasks]]
761
+ name = "mindlab/v3_depth4_margin_after_refunds_t12"
762
+ digest = "sha256:0fb3929b648d29bf4195390b76848b99bcf0079d4085f2d199fd046b8748b450"
763
+
764
+ [[tasks]]
765
+ name = "mindlab/v3_depth4_margin_after_refunds_t13"
766
+ digest = "sha256:464ceadff8c981c7985767c5bff00a4301cbd8d5ffb28d22e94fbbbeec347570"
767
+
768
+ [[tasks]]
769
+ name = "mindlab/v3_depth4_margin_after_refunds_t14"
770
+ digest = "sha256:f78c414abdf555cbdf3bb2710d4c18696ff3fb2d7c38464ece91fcdfef480633"
771
+
772
+ [[tasks]]
773
+ name = "mindlab/v3_depth4_margin_after_refunds_t15"
774
+ digest = "sha256:bd709792ac5cd011e9761e3cbf0aa8c114cd00192e49f5a40c18d84404b70962"
775
+
776
+ [[tasks]]
777
+ name = "mindlab/v3_depth4_margin_after_refunds_t16"
778
+ digest = "sha256:3ebae8f8de027626ec5b372931fbf56f53cd3d43dce690b380c01bade8ad0f0b"
779
+
780
+ [[tasks]]
781
+ name = "mindlab/v3_depth4_margin_after_refunds_t17"
782
+ digest = "sha256:785df75479ba9c8bc3420352d0df74137a317c70e5aedeb1a3e5bd470fd37699"
783
+
784
+ [[tasks]]
785
+ name = "mindlab/v3_depth4_margin_after_refunds_t18"
786
+ digest = "sha256:8ed3c0dcb62ca9f6a55137a9232c9a864575e646bd012eaaa68ab8de319c1d81"
787
+
788
+ [[tasks]]
789
+ name = "mindlab/v3_depth4_margin_after_refunds_t19"
790
+ digest = "sha256:182eea365188d342848203d2f8c0d40e2e1fe2d54d2094b16dc1295d45e1c4c4"
791
+
792
+ [[tasks]]
793
+ name = "mindlab/v3_depth4_margin_after_refunds_t20"
794
+ digest = "sha256:3aeb4f59a39d48a233033e3c1867cd0e35c93d379906a9ceb459540191da5289"
795
+
796
+ [[tasks]]
797
+ name = "mindlab/v3_depth4_margin_after_refunds_t21"
798
+ digest = "sha256:d3c9ba9da426c0abd521d102e390cafcb5aed9ad2848bf521f8f0c15d2412825"
799
+
800
+ [[tasks]]
801
+ name = "mindlab/v3_depth4_margin_after_refunds_t22"
802
+ digest = "sha256:ab435329b9e218bf688430fd8b7b0fbfd5c47d10944249a3011bda286df8a678"
803
+
804
+ [[tasks]]
805
+ name = "mindlab/v3_depth4_margin_after_refunds_t23"
806
+ digest = "sha256:1e39ea9163051481f9ae6068ca3cc6b86acfd91e1e6d7b371ed8620490bc988b"
807
+
808
+ [[tasks]]
809
+ name = "mindlab/v3_depth4_margin_after_refunds_t24"
810
+ digest = "sha256:5476b225935eccdfdb36d8ba237cd1f88db18dff04805b202128f6c24eb55bb6"
811
+
812
+ [[tasks]]
813
+ name = "mindlab/v3_depth5_reorder_shortfall_t0"
814
+ digest = "sha256:e11475497abf90d4d1175e0c02d9367bc6bc2c3597a928b2c83de942a7729b14"
815
+
816
+ [[tasks]]
817
+ name = "mindlab/v3_depth5_reorder_shortfall_t1"
818
+ digest = "sha256:edbe4638755b1ccc3fe2039e42170acd22f69cff9b0bced6a66a35d722836974"
819
+
820
+ [[tasks]]
821
+ name = "mindlab/v3_depth5_reorder_shortfall_t2"
822
+ digest = "sha256:e4e6d40d7d715b31538a633bdf7bfa6cb198565396c6c03e987d8aedfdf5139e"
823
+
824
+ [[tasks]]
825
+ name = "mindlab/v3_depth5_reorder_shortfall_t3"
826
+ digest = "sha256:46072e516fd6b67e8ea14a067cc7add132fa9fe20de1c4aff36fc9e01baf7947"
827
+
828
+ [[tasks]]
829
+ name = "mindlab/v3_depth5_reorder_shortfall_t4"
830
+ digest = "sha256:eaf1ab58c5db5889ea7dc75edd689512a8d2c5eeb2b03b5be93d1b02b87da986"
831
+
832
+ [[tasks]]
833
+ name = "mindlab/v3_depth5_reorder_shortfall_t5"
834
+ digest = "sha256:600fbdbfce807816fe1801e3c8d2cdfccd5ffb326ffb5cf25ea31c0b7616bbe3"
835
+
836
+ [[tasks]]
837
+ name = "mindlab/v3_depth5_reorder_shortfall_t6"
838
+ digest = "sha256:5ece81a88b6739011da630c44b88c988fcad146dfc5a13736e7655947e288db2"
839
+
840
+ [[tasks]]
841
+ name = "mindlab/v3_depth5_reorder_shortfall_t7"
842
+ digest = "sha256:1772a1018d57346263c751366e541224e4a61e6c4ad2a46f0d8c459fd8119c8a"
843
+
844
+ [[tasks]]
845
+ name = "mindlab/v3_depth5_reorder_shortfall_t8"
846
+ digest = "sha256:238f2aa7f5bdea91c255d16d0394b0dd72b734e6580621af3458065b917e149f"
847
+
848
+ [[tasks]]
849
+ name = "mindlab/v3_depth5_reorder_shortfall_t9"
850
+ digest = "sha256:ee3cfbb3be0578abe35e602521ac64826e69eee55ebc0a8200716ba08360af16"
851
+
852
+ [[tasks]]
853
+ name = "mindlab/v3_depth5_reorder_shortfall_t10"
854
+ digest = "sha256:87dc4e684b7c0a8f8195d2a440b22ea0a5e26572bc8c39e88c3402b6ccc62af5"
855
+
856
+ [[tasks]]
857
+ name = "mindlab/v3_depth5_reorder_shortfall_t11"
858
+ digest = "sha256:19b0b382332bed549c2f0e517d0826c455a12a579afa92a784551e2370dd2ab6"
859
+
860
+ [[tasks]]
861
+ name = "mindlab/v3_depth5_reorder_shortfall_t12"
862
+ digest = "sha256:b8ffd922056699c662dbaff72e1ade5451bae6e476c1b6b5d9fbf503fc0612bc"
863
+
864
+ [[tasks]]
865
+ name = "mindlab/v3_depth5_reorder_shortfall_t13"
866
+ digest = "sha256:f8083e8f4af0811ec4f611b3651389d3631a3bcd489b2d07828937a877d206ec"
867
+
868
+ [[tasks]]
869
+ name = "mindlab/v3_depth5_reorder_shortfall_t14"
870
+ digest = "sha256:6f9a1ea629944b8abf9875f070496e56722e640082b7bbbf6d71f7099dca670a"
871
+
872
+ [[tasks]]
873
+ name = "mindlab/v3_depth5_reorder_shortfall_t15"
874
+ digest = "sha256:dead07914d5d5b6460a01d31df15bb496c1aecba98ee85aca9ac17611479ba5d"
875
+
876
+ [[tasks]]
877
+ name = "mindlab/v3_depth5_reorder_shortfall_t16"
878
+ digest = "sha256:5d60037187ad78297583452ce1235ea58f47aee8df45fc0b4b2fb63aabcbc3f2"
879
+
880
+ [[tasks]]
881
+ name = "mindlab/v3_depth5_reorder_shortfall_t17"
882
+ digest = "sha256:31a7698ff82df0c50b4d7d726466199e8d37bc8eb8728845bf537f47839ef229"
883
+
884
+ [[tasks]]
885
+ name = "mindlab/v3_depth5_reorder_shortfall_t18"
886
+ digest = "sha256:9907364e6b2b8c2309ef06a9e8be72b4a9aeb753c050683fc2f114869ea0231b"
887
+
888
+ [[tasks]]
889
+ name = "mindlab/v3_depth5_reorder_shortfall_t19"
890
+ digest = "sha256:0d9ea638dcf7a75d733f6221cde2d4b238f3d83a3540c2cdcd0db84dc9cd4dff"
891
+
892
+ [[tasks]]
893
+ name = "mindlab/v3_depth5_reorder_shortfall_t20"
894
+ digest = "sha256:04a1818c7b852c02de628f7b65f1877d51d33ac7795187def322a20c040edcdf"
895
+
896
+ [[tasks]]
897
+ name = "mindlab/v3_depth5_reorder_shortfall_t21"
898
+ digest = "sha256:7b779f25d35d3cd01eb62ad0da6246862c91377b968bdbb9c016670bd3c4e3b0"
899
+
900
+ [[tasks]]
901
+ name = "mindlab/v3_depth5_reorder_shortfall_t22"
902
+ digest = "sha256:70d65cfe27500f8c5354dbb4f1ea9ee007dc7b1514d1627dc83103e3b29255d9"
903
+
904
+ [[tasks]]
905
+ name = "mindlab/v3_depth5_reorder_shortfall_t23"
906
+ digest = "sha256:d97c1e4e113d4b4dfa07fdd3ed715f4674f97d65d246058676f152743d4463c5"
907
+
908
+ [[tasks]]
909
+ name = "mindlab/v3_depth5_reorder_shortfall_t24"
910
+ digest = "sha256:e6ee3a5a9ebeb0de2433d37d9396229acf0e752697cb906620a138a3e30de1c3"
911
+
912
+ [[tasks]]
913
+ name = "mindlab/v3_depth5_delayed_net_revenue_t0"
914
+ digest = "sha256:64c31e152821b3d4083a9344c59d417abe545d5f73075be8d8ec6b67261b89a8"
915
+
916
+ [[tasks]]
917
+ name = "mindlab/v3_depth5_delayed_net_revenue_t1"
918
+ digest = "sha256:0c9410d86d556ceefde4146c9ff74a313eaf1888eed5088c73b3d9a0b410e690"
919
+
920
+ [[tasks]]
921
+ name = "mindlab/v3_depth5_delayed_net_revenue_t2"
922
+ digest = "sha256:d81d82f2a8667076cfb4b9d651723a0dbb8ffb3a232a083a1221af335f49dc15"
923
+
924
+ [[tasks]]
925
+ name = "mindlab/v3_depth5_delayed_net_revenue_t3"
926
+ digest = "sha256:8db9bc1bc4ae2dec0afc9424ed03b4473b8c64931512c6058b3eb714170fb101"
927
+
928
+ [[tasks]]
929
+ name = "mindlab/v3_depth5_delayed_net_revenue_t4"
930
+ digest = "sha256:97b337d7fc2980cfe39683f1af6fa0fb215614fbbe06f7f1c46dfa979e5a9b64"
931
+
932
+ [[tasks]]
933
+ name = "mindlab/v3_depth5_delayed_net_revenue_t5"
934
+ digest = "sha256:efb3e7f5a441e395bf03b1c4a636173b5f23d13c891f2d4403c62eccb0093ad0"
935
+
936
+ [[tasks]]
937
+ name = "mindlab/v3_depth5_delayed_net_revenue_t6"
938
+ digest = "sha256:56f862b79ba8eab6f7dc4e8c39ced1838aaea17605f43588cb8c370949f738d9"
939
+
940
+ [[tasks]]
941
+ name = "mindlab/v3_depth5_delayed_net_revenue_t7"
942
+ digest = "sha256:79abb144530d550e474efc0f9d58ac97641a0826f8af16db5dd9ff4a2c5a4121"
943
+
944
+ [[tasks]]
945
+ name = "mindlab/v3_depth5_delayed_net_revenue_t8"
946
+ digest = "sha256:62016493680dd3788ab0f7fa528f84785fd2dc7f5b2574e644019c502942fead"
947
+
948
+ [[tasks]]
949
+ name = "mindlab/v3_depth5_delayed_net_revenue_t9"
950
+ digest = "sha256:bf1799a0f83c5c9b94f7306534c07e7393db6bff8294b5edeb6851e46bee7225"
951
+
952
+ [[tasks]]
953
+ name = "mindlab/v3_depth5_delayed_net_revenue_t10"
954
+ digest = "sha256:2c82fb117cce91049f52059b56d12d4b7719d2ebaae4c8c15b21308f72f0e13c"
955
+
956
+ [[tasks]]
957
+ name = "mindlab/v3_depth5_delayed_net_revenue_t11"
958
+ digest = "sha256:b95c957fb02af4dc57cec3f0d8536c04ec32e43bec8087c1495056d4de378f6f"
959
+
960
+ [[tasks]]
961
+ name = "mindlab/v3_depth5_delayed_net_revenue_t12"
962
+ digest = "sha256:f613875090b28abba724fe362587e6d82203d2d4663b805d0ee27c4442ccc332"
963
+
964
+ [[tasks]]
965
+ name = "mindlab/v3_depth5_delayed_net_revenue_t13"
966
+ digest = "sha256:08fad45cf1f144f945ac4923a55a6f593e6d2fede8e6bb2d0da795c93b56815f"
967
+
968
+ [[tasks]]
969
+ name = "mindlab/v3_depth5_delayed_net_revenue_t14"
970
+ digest = "sha256:e0c697639c49b4eaf019d97e9572389339067808c7059db6905d3d1e95ed4252"
971
+
972
+ [[tasks]]
973
+ name = "mindlab/v3_depth5_delayed_net_revenue_t15"
974
+ digest = "sha256:18ed9fc8e839254a2d83d1c97275a4622af4b4acf6ce11884776a1ce58969cc5"
975
+
976
+ [[tasks]]
977
+ name = "mindlab/v3_depth5_delayed_net_revenue_t16"
978
+ digest = "sha256:ae0f11c221f8cf9d3024af81b047ae70570011bc4d7c4bb084087e9dccbd85f7"
979
+
980
+ [[tasks]]
981
+ name = "mindlab/v3_depth5_delayed_net_revenue_t17"
982
+ digest = "sha256:f22f49c1799179b7079708279f59ebd2d80e18144de7de4a119be20d6b1f3258"
983
+
984
+ [[tasks]]
985
+ name = "mindlab/v3_depth5_delayed_net_revenue_t18"
986
+ digest = "sha256:6084cf342a7811e591f873a23219d5c1ad5128f6fe0ab5ec5ef9782b9c52c90f"
987
+
988
+ [[tasks]]
989
+ name = "mindlab/v3_depth5_delayed_net_revenue_t19"
990
+ digest = "sha256:8c075e9048b604dc3e244d37dc2884d315bef86e983e5bc07937cbf242af5a78"
991
+
992
+ [[tasks]]
993
+ name = "mindlab/v3_depth5_delayed_net_revenue_t20"
994
+ digest = "sha256:5f4f29b1fbb9058a9df296379b40d840041e709f750f8a34c7bcbeaa8468c652"
995
+
996
+ [[tasks]]
997
+ name = "mindlab/v3_depth5_delayed_net_revenue_t21"
998
+ digest = "sha256:8a845789f37818dd4029488654b7ec58f0056b372aad2a2ef50658e07974edc4"
999
+
1000
+ [[tasks]]
1001
+ name = "mindlab/v3_depth5_delayed_net_revenue_t22"
1002
+ digest = "sha256:d05ad4e4e6d6f6b1927f85bc0803aa31a27934324e0e70d7b000c33c67b4e724"
1003
+
1004
+ [[tasks]]
1005
+ name = "mindlab/v3_depth5_delayed_net_revenue_t23"
1006
+ digest = "sha256:4d74b04cfd56ae38f053de155a886fed5c4045d73165895ab080f65a653882ac"
1007
+
1008
+ [[tasks]]
1009
+ name = "mindlab/v3_depth5_delayed_net_revenue_t24"
1010
+ digest = "sha256:198d9d37a7ffebe3b7eaf8bb58622da09c52975e5510bf609f89457b7d569a34"
1011
+
1012
+ [[tasks]]
1013
+ name = "mindlab/v3_depth6_delay_sla_burden_t0"
1014
+ digest = "sha256:94a52bbac3f8a1c083074384049ba05a135258102928f97f48cf636443f9b7ec"
1015
+
1016
+ [[tasks]]
1017
+ name = "mindlab/v3_depth6_delay_sla_burden_t1"
1018
+ digest = "sha256:29245f11c260f75bf9cd406b036be8691755d870fa0ade85e4f70c5cc2720817"
1019
+
1020
+ [[tasks]]
1021
+ name = "mindlab/v3_depth6_delay_sla_burden_t2"
1022
+ digest = "sha256:71d2ec8ede5a3ac1cea954c642a7fc7a0d73d6188857d9784ddcc171753a8cfb"
1023
+
1024
+ [[tasks]]
1025
+ name = "mindlab/v3_depth6_delay_sla_burden_t3"
1026
+ digest = "sha256:69a3e1081a390831a1df375144ce1aef5cd34d25be3108d2963399577d6e03c8"
1027
+
1028
+ [[tasks]]
1029
+ name = "mindlab/v3_depth6_delay_sla_burden_t4"
1030
+ digest = "sha256:03d9ecf29de38c12351abe776e8167d02a7432525ef2ed1c4894e8153d91588c"
1031
+
1032
+ [[tasks]]
1033
+ name = "mindlab/v3_depth6_delay_sla_burden_t5"
1034
+ digest = "sha256:9a86f3be0e28f049a961c23498351e6916231bdc4d10ba257e646b3db71c11a9"
1035
+
1036
+ [[tasks]]
1037
+ name = "mindlab/v3_depth6_delay_sla_burden_t6"
1038
+ digest = "sha256:3c0705d910df0864f9170176793f6993eebf01fac86d8193e27b9f8608a45829"
1039
+
1040
+ [[tasks]]
1041
+ name = "mindlab/v3_depth6_delay_sla_burden_t7"
1042
+ digest = "sha256:ebfe5c21b86fff7416528ff12d4f96e668685718818e428f1b423a9aa399f80a"
1043
+
1044
+ [[tasks]]
1045
+ name = "mindlab/v3_depth6_delay_sla_burden_t8"
1046
+ digest = "sha256:3c1f0d84d8512f6fdd1fa86bb4e2ffdb3b87fc86a50b6dffb5d5de08c5b0fe32"
1047
+
1048
+ [[tasks]]
1049
+ name = "mindlab/v3_depth6_delay_sla_burden_t9"
1050
+ digest = "sha256:b7c1aab57775dcd1a1313be900328d38d266f85796f0a1dbd93e09b41da2138b"
1051
+
1052
+ [[tasks]]
1053
+ name = "mindlab/v3_depth6_delay_sla_burden_t10"
1054
+ digest = "sha256:966202f13d1e150134fd1d06a8a91b84decbe7aaf588ade7e8225f80a649eaf9"
1055
+
1056
+ [[tasks]]
1057
+ name = "mindlab/v3_depth6_delay_sla_burden_t11"
1058
+ digest = "sha256:f5d5744b44eeebdada66fd794ca1865c188c26d8ec817531212c046ccfa64c2d"
1059
+
1060
+ [[tasks]]
1061
+ name = "mindlab/v3_depth6_delay_sla_burden_t12"
1062
+ digest = "sha256:8d1752257ec595db20914b4acd92c8bfe80cd70bb2926a6f0f63dd97c95f272e"
1063
+
1064
+ [[tasks]]
1065
+ name = "mindlab/v3_depth6_delay_sla_burden_t13"
1066
+ digest = "sha256:4b8268605eead6c0af22379ad1dbed5d388b956f42a7c56c9c8e4ddeeac402a6"
1067
+
1068
+ [[tasks]]
1069
+ name = "mindlab/v3_depth6_delay_sla_burden_t14"
1070
+ digest = "sha256:7aa0efeff11f8ae2756cf4e89fea5e3e7b9394e2b0d2809a5a66ef130ba4b38c"
1071
+
1072
+ [[tasks]]
1073
+ name = "mindlab/v3_depth6_delay_sla_burden_t15"
1074
+ digest = "sha256:de3be3c73ce91840c052b3f9527bafcfaf606f84146f6879b8cc382fd5a13221"
1075
+
1076
+ [[tasks]]
1077
+ name = "mindlab/v3_depth6_delay_sla_burden_t16"
1078
+ digest = "sha256:e453576b4397a2a215976a4afe35bb002b99812b02b6c7d4c47d016775a3b161"
1079
+
1080
+ [[tasks]]
1081
+ name = "mindlab/v3_depth6_delay_sla_burden_t17"
1082
+ digest = "sha256:b78f0f718d0096b651580853070868c019f28b80c213881d5738d440e5762f77"
1083
+
1084
+ [[tasks]]
1085
+ name = "mindlab/v3_depth6_delay_sla_burden_t18"
1086
+ digest = "sha256:0985e2399f9e30180f9601551b4918505a101f06a0c342b14e8a7c07785f1ee2"
1087
+
1088
+ [[tasks]]
1089
+ name = "mindlab/v3_depth6_delay_sla_burden_t19"
1090
+ digest = "sha256:e3cf50465e72695850b00edc0ae005944cd5704e8decfc773f99e3b5748be3ba"
1091
+
1092
+ [[tasks]]
1093
+ name = "mindlab/v3_depth6_delay_sla_burden_t20"
1094
+ digest = "sha256:b485ab05ebb0cfd6be399afec09c7826672cbdf8ccfd041022bd7865b7d73c43"
1095
+
1096
+ [[tasks]]
1097
+ name = "mindlab/v3_depth6_delay_sla_burden_t21"
1098
+ digest = "sha256:28e0366181ed69eaafe39e892ba621fb7349c01c1aded07da28b00e5b85f056e"
1099
+
1100
+ [[tasks]]
1101
+ name = "mindlab/v3_depth6_delay_sla_burden_t22"
1102
+ digest = "sha256:e2d783a69296ec9c580b6f87977c113a24e82eb4e4d9e72d768f79bf561aeeaf"
1103
+
1104
+ [[tasks]]
1105
+ name = "mindlab/v3_depth6_delay_sla_burden_t23"
1106
+ digest = "sha256:657c9bc5bb9a6a148efa3c8d502566b75a34b96bdcda6253ae7a2f2383c247a2"
1107
+
1108
+ [[tasks]]
1109
+ name = "mindlab/v3_depth6_delay_sla_burden_t24"
1110
+ digest = "sha256:26418c875811c561cb2feac82ef0e43182b03f879e001b1e165ff5a2c94eccc7"
1111
+
1112
+ [[tasks]]
1113
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t0"
1114
+ digest = "sha256:aba2707d1a4627184884eb6d4ea11b488ac3d70b716d0c2a66e0e5487507894c"
1115
+
1116
+ [[tasks]]
1117
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t1"
1118
+ digest = "sha256:5009ec4735bf53ec987a6e05dfb9c8626ed74c6f6a7e1212c5aa762d7f49c17d"
1119
+
1120
+ [[tasks]]
1121
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t2"
1122
+ digest = "sha256:6669cebce0c6854a4c03523039b58beb4bce1b9d33e73be3e630149baf297680"
1123
+
1124
+ [[tasks]]
1125
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t3"
1126
+ digest = "sha256:7aef50d575aba2d36d3219aa6784423bc9f1945f9a922760d2b556f71f8f55ae"
1127
+
1128
+ [[tasks]]
1129
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t4"
1130
+ digest = "sha256:47ccde1106ea02bad3c4456bd05a829cb5bebdc5beda32227542f679264cb1c0"
1131
+
1132
+ [[tasks]]
1133
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t5"
1134
+ digest = "sha256:eb1c5d5ca182b10ec5e0fd134cc51af72af55973265ea29a33fcb2c0fff3df14"
1135
+
1136
+ [[tasks]]
1137
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t6"
1138
+ digest = "sha256:a6d9cdb203abaa3535fb01c6fe1d829bfc9a85f3b267d8d1e57073cfcbfb1103"
1139
+
1140
+ [[tasks]]
1141
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t7"
1142
+ digest = "sha256:df70291b5157a8e17912d783f918b9a5746a56d08aa1ef832f0ad076faf861ac"
1143
+
1144
+ [[tasks]]
1145
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t8"
1146
+ digest = "sha256:2768456c8f4db1ffb62850ddf95d79856c7e87349640a4bbf8ea0470c0fb8452"
1147
+
1148
+ [[tasks]]
1149
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t9"
1150
+ digest = "sha256:b3a82cc7680a8acdf9d207d7deddc5d55c0784b0e6fb4e1163ad09ea85030491"
1151
+
1152
+ [[tasks]]
1153
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t10"
1154
+ digest = "sha256:6b3e0590fa5ac55d4e3fd7141ef46aed960d9e3a93b406c55de4ca0645ae6601"
1155
+
1156
+ [[tasks]]
1157
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t11"
1158
+ digest = "sha256:bdf7d009e86922c2c36f8402e4d3cae78bbb222c85ad91f7642354709068278e"
1159
+
1160
+ [[tasks]]
1161
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t12"
1162
+ digest = "sha256:9104b5e1198b4de2d0f4246bf65281c06ee46ef6fedde802aba1c339e85b8b36"
1163
+
1164
+ [[tasks]]
1165
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t13"
1166
+ digest = "sha256:27184d51389560daa07eeb805a6b1fd9a7bbee6bc693cdd99215287be618936f"
1167
+
1168
+ [[tasks]]
1169
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t14"
1170
+ digest = "sha256:7c8f49c40e184504c4fc8f0fe8c8dcf42db2da19f0555df5545b31e8ed4a4544"
1171
+
1172
+ [[tasks]]
1173
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t15"
1174
+ digest = "sha256:a75af663750a43a3dec597cdccea3fcc945c7d556a8605972eacdcee82a8b113"
1175
+
1176
+ [[tasks]]
1177
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t16"
1178
+ digest = "sha256:3c7b74a209a19c4927581aaff3f6faa3936c76e98b0589daf3454810126884e8"
1179
+
1180
+ [[tasks]]
1181
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t17"
1182
+ digest = "sha256:15e738818e5e58199fc473acd7ec61dcb2c92fc189a155f88f7bc0f1dd19d058"
1183
+
1184
+ [[tasks]]
1185
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t18"
1186
+ digest = "sha256:8129e080cda9d68f5e0a4c3e409068ee602c730f59f2ebb912b55271c8186fb0"
1187
+
1188
+ [[tasks]]
1189
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t19"
1190
+ digest = "sha256:ba76847a4eef05b2a9337537e88776257576045ffbaee9cd3f4862c62aff6ff8"
1191
+
1192
+ [[tasks]]
1193
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t20"
1194
+ digest = "sha256:ad3f90173f4909cd7fad134b962a0ebb578e8f35c9c5b87ef465284fbc0dca87"
1195
+
1196
+ [[tasks]]
1197
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t21"
1198
+ digest = "sha256:1f2720bb3fd0b4665a05bfdb5b38a8e71436467bbd3d63906862047c56e80b6b"
1199
+
1200
+ [[tasks]]
1201
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t22"
1202
+ digest = "sha256:71843c11b51f67ab95ddd99e329a289d662f4aa5b9f4791905a68a89efb520dd"
1203
+
1204
+ [[tasks]]
1205
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t23"
1206
+ digest = "sha256:e9683f8c16852b326697fe022abf14de52767bb8dfe68e749c0f11317094e7f5"
1207
+
1208
+ [[tasks]]
1209
+ name = "mindlab/v3_depth6_breached_ticket_revenue_t24"
1210
+ digest = "sha256:8fc6404693e4a394f260a19acb65348570d7641c73646d5399cf433dc6ae6002"
harbor/manifest.json ADDED
@@ -0,0 +1,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "benchmark": "FlowBench-v3",
3
+ "split": "public-task-only",
4
+ "task_count": 300,
5
+ "depths": {
6
+ "1": 50,
7
+ "2": 50,
8
+ "3": 50,
9
+ "4": 50,
10
+ "5": 50,
11
+ "6": 50
12
+ },
13
+ "families": [
14
+ "breached_ticket_revenue",
15
+ "currency_lookup",
16
+ "delay_sla_burden",
17
+ "delayed_net_revenue",
18
+ "local_net_revenue",
19
+ "margin_after_refunds",
20
+ "net_revenue_usd",
21
+ "order_count",
22
+ "refund_share_bp",
23
+ "reorder_shortfall",
24
+ "top_product_lookup",
25
+ "unique_customer_count"
26
+ ],
27
+ "answer_visibility": "No gold labels, oracle solutions, or strict expected files are included.",
28
+ "task_ids": [
29
+ "v3_depth1_currency_lookup_t0",
30
+ "v3_depth1_currency_lookup_t1",
31
+ "v3_depth1_currency_lookup_t2",
32
+ "v3_depth1_currency_lookup_t3",
33
+ "v3_depth1_currency_lookup_t4",
34
+ "v3_depth1_currency_lookup_t5",
35
+ "v3_depth1_currency_lookup_t6",
36
+ "v3_depth1_currency_lookup_t7",
37
+ "v3_depth1_currency_lookup_t8",
38
+ "v3_depth1_currency_lookup_t9",
39
+ "v3_depth1_currency_lookup_t10",
40
+ "v3_depth1_currency_lookup_t11",
41
+ "v3_depth1_currency_lookup_t12",
42
+ "v3_depth1_currency_lookup_t13",
43
+ "v3_depth1_currency_lookup_t14",
44
+ "v3_depth1_currency_lookup_t15",
45
+ "v3_depth1_currency_lookup_t16",
46
+ "v3_depth1_currency_lookup_t17",
47
+ "v3_depth1_currency_lookup_t18",
48
+ "v3_depth1_currency_lookup_t19",
49
+ "v3_depth1_currency_lookup_t20",
50
+ "v3_depth1_currency_lookup_t21",
51
+ "v3_depth1_currency_lookup_t22",
52
+ "v3_depth1_currency_lookup_t23",
53
+ "v3_depth1_currency_lookup_t24",
54
+ "v3_depth1_top_product_lookup_t0",
55
+ "v3_depth1_top_product_lookup_t1",
56
+ "v3_depth1_top_product_lookup_t2",
57
+ "v3_depth1_top_product_lookup_t3",
58
+ "v3_depth1_top_product_lookup_t4",
59
+ "v3_depth1_top_product_lookup_t5",
60
+ "v3_depth1_top_product_lookup_t6",
61
+ "v3_depth1_top_product_lookup_t7",
62
+ "v3_depth1_top_product_lookup_t8",
63
+ "v3_depth1_top_product_lookup_t9",
64
+ "v3_depth1_top_product_lookup_t10",
65
+ "v3_depth1_top_product_lookup_t11",
66
+ "v3_depth1_top_product_lookup_t12",
67
+ "v3_depth1_top_product_lookup_t13",
68
+ "v3_depth1_top_product_lookup_t14",
69
+ "v3_depth1_top_product_lookup_t15",
70
+ "v3_depth1_top_product_lookup_t16",
71
+ "v3_depth1_top_product_lookup_t17",
72
+ "v3_depth1_top_product_lookup_t18",
73
+ "v3_depth1_top_product_lookup_t19",
74
+ "v3_depth1_top_product_lookup_t20",
75
+ "v3_depth1_top_product_lookup_t21",
76
+ "v3_depth1_top_product_lookup_t22",
77
+ "v3_depth1_top_product_lookup_t23",
78
+ "v3_depth1_top_product_lookup_t24",
79
+ "v3_depth2_order_count_t0",
80
+ "v3_depth2_order_count_t1",
81
+ "v3_depth2_order_count_t2",
82
+ "v3_depth2_order_count_t3",
83
+ "v3_depth2_order_count_t4",
84
+ "v3_depth2_order_count_t5",
85
+ "v3_depth2_order_count_t6",
86
+ "v3_depth2_order_count_t7",
87
+ "v3_depth2_order_count_t8",
88
+ "v3_depth2_order_count_t9",
89
+ "v3_depth2_order_count_t10",
90
+ "v3_depth2_order_count_t11",
91
+ "v3_depth2_order_count_t12",
92
+ "v3_depth2_order_count_t13",
93
+ "v3_depth2_order_count_t14",
94
+ "v3_depth2_order_count_t15",
95
+ "v3_depth2_order_count_t16",
96
+ "v3_depth2_order_count_t17",
97
+ "v3_depth2_order_count_t18",
98
+ "v3_depth2_order_count_t19",
99
+ "v3_depth2_order_count_t20",
100
+ "v3_depth2_order_count_t21",
101
+ "v3_depth2_order_count_t22",
102
+ "v3_depth2_order_count_t23",
103
+ "v3_depth2_order_count_t24",
104
+ "v3_depth2_unique_customer_count_t0",
105
+ "v3_depth2_unique_customer_count_t1",
106
+ "v3_depth2_unique_customer_count_t2",
107
+ "v3_depth2_unique_customer_count_t3",
108
+ "v3_depth2_unique_customer_count_t4",
109
+ "v3_depth2_unique_customer_count_t5",
110
+ "v3_depth2_unique_customer_count_t6",
111
+ "v3_depth2_unique_customer_count_t7",
112
+ "v3_depth2_unique_customer_count_t8",
113
+ "v3_depth2_unique_customer_count_t9",
114
+ "v3_depth2_unique_customer_count_t10",
115
+ "v3_depth2_unique_customer_count_t11",
116
+ "v3_depth2_unique_customer_count_t12",
117
+ "v3_depth2_unique_customer_count_t13",
118
+ "v3_depth2_unique_customer_count_t14",
119
+ "v3_depth2_unique_customer_count_t15",
120
+ "v3_depth2_unique_customer_count_t16",
121
+ "v3_depth2_unique_customer_count_t17",
122
+ "v3_depth2_unique_customer_count_t18",
123
+ "v3_depth2_unique_customer_count_t19",
124
+ "v3_depth2_unique_customer_count_t20",
125
+ "v3_depth2_unique_customer_count_t21",
126
+ "v3_depth2_unique_customer_count_t22",
127
+ "v3_depth2_unique_customer_count_t23",
128
+ "v3_depth2_unique_customer_count_t24",
129
+ "v3_depth3_net_revenue_usd_t0",
130
+ "v3_depth3_net_revenue_usd_t1",
131
+ "v3_depth3_net_revenue_usd_t2",
132
+ "v3_depth3_net_revenue_usd_t3",
133
+ "v3_depth3_net_revenue_usd_t4",
134
+ "v3_depth3_net_revenue_usd_t5",
135
+ "v3_depth3_net_revenue_usd_t6",
136
+ "v3_depth3_net_revenue_usd_t7",
137
+ "v3_depth3_net_revenue_usd_t8",
138
+ "v3_depth3_net_revenue_usd_t9",
139
+ "v3_depth3_net_revenue_usd_t10",
140
+ "v3_depth3_net_revenue_usd_t11",
141
+ "v3_depth3_net_revenue_usd_t12",
142
+ "v3_depth3_net_revenue_usd_t13",
143
+ "v3_depth3_net_revenue_usd_t14",
144
+ "v3_depth3_net_revenue_usd_t15",
145
+ "v3_depth3_net_revenue_usd_t16",
146
+ "v3_depth3_net_revenue_usd_t17",
147
+ "v3_depth3_net_revenue_usd_t18",
148
+ "v3_depth3_net_revenue_usd_t19",
149
+ "v3_depth3_net_revenue_usd_t20",
150
+ "v3_depth3_net_revenue_usd_t21",
151
+ "v3_depth3_net_revenue_usd_t22",
152
+ "v3_depth3_net_revenue_usd_t23",
153
+ "v3_depth3_net_revenue_usd_t24",
154
+ "v3_depth3_refund_share_bp_t0",
155
+ "v3_depth3_refund_share_bp_t1",
156
+ "v3_depth3_refund_share_bp_t2",
157
+ "v3_depth3_refund_share_bp_t3",
158
+ "v3_depth3_refund_share_bp_t4",
159
+ "v3_depth3_refund_share_bp_t5",
160
+ "v3_depth3_refund_share_bp_t6",
161
+ "v3_depth3_refund_share_bp_t7",
162
+ "v3_depth3_refund_share_bp_t8",
163
+ "v3_depth3_refund_share_bp_t9",
164
+ "v3_depth3_refund_share_bp_t10",
165
+ "v3_depth3_refund_share_bp_t11",
166
+ "v3_depth3_refund_share_bp_t12",
167
+ "v3_depth3_refund_share_bp_t13",
168
+ "v3_depth3_refund_share_bp_t14",
169
+ "v3_depth3_refund_share_bp_t15",
170
+ "v3_depth3_refund_share_bp_t16",
171
+ "v3_depth3_refund_share_bp_t17",
172
+ "v3_depth3_refund_share_bp_t18",
173
+ "v3_depth3_refund_share_bp_t19",
174
+ "v3_depth3_refund_share_bp_t20",
175
+ "v3_depth3_refund_share_bp_t21",
176
+ "v3_depth3_refund_share_bp_t22",
177
+ "v3_depth3_refund_share_bp_t23",
178
+ "v3_depth3_refund_share_bp_t24",
179
+ "v3_depth4_local_net_revenue_t0",
180
+ "v3_depth4_local_net_revenue_t1",
181
+ "v3_depth4_local_net_revenue_t2",
182
+ "v3_depth4_local_net_revenue_t3",
183
+ "v3_depth4_local_net_revenue_t4",
184
+ "v3_depth4_local_net_revenue_t5",
185
+ "v3_depth4_local_net_revenue_t6",
186
+ "v3_depth4_local_net_revenue_t7",
187
+ "v3_depth4_local_net_revenue_t8",
188
+ "v3_depth4_local_net_revenue_t9",
189
+ "v3_depth4_local_net_revenue_t10",
190
+ "v3_depth4_local_net_revenue_t11",
191
+ "v3_depth4_local_net_revenue_t12",
192
+ "v3_depth4_local_net_revenue_t13",
193
+ "v3_depth4_local_net_revenue_t14",
194
+ "v3_depth4_local_net_revenue_t15",
195
+ "v3_depth4_local_net_revenue_t16",
196
+ "v3_depth4_local_net_revenue_t17",
197
+ "v3_depth4_local_net_revenue_t18",
198
+ "v3_depth4_local_net_revenue_t19",
199
+ "v3_depth4_local_net_revenue_t20",
200
+ "v3_depth4_local_net_revenue_t21",
201
+ "v3_depth4_local_net_revenue_t22",
202
+ "v3_depth4_local_net_revenue_t23",
203
+ "v3_depth4_local_net_revenue_t24",
204
+ "v3_depth4_margin_after_refunds_t0",
205
+ "v3_depth4_margin_after_refunds_t1",
206
+ "v3_depth4_margin_after_refunds_t2",
207
+ "v3_depth4_margin_after_refunds_t3",
208
+ "v3_depth4_margin_after_refunds_t4",
209
+ "v3_depth4_margin_after_refunds_t5",
210
+ "v3_depth4_margin_after_refunds_t6",
211
+ "v3_depth4_margin_after_refunds_t7",
212
+ "v3_depth4_margin_after_refunds_t8",
213
+ "v3_depth4_margin_after_refunds_t9",
214
+ "v3_depth4_margin_after_refunds_t10",
215
+ "v3_depth4_margin_after_refunds_t11",
216
+ "v3_depth4_margin_after_refunds_t12",
217
+ "v3_depth4_margin_after_refunds_t13",
218
+ "v3_depth4_margin_after_refunds_t14",
219
+ "v3_depth4_margin_after_refunds_t15",
220
+ "v3_depth4_margin_after_refunds_t16",
221
+ "v3_depth4_margin_after_refunds_t17",
222
+ "v3_depth4_margin_after_refunds_t18",
223
+ "v3_depth4_margin_after_refunds_t19",
224
+ "v3_depth4_margin_after_refunds_t20",
225
+ "v3_depth4_margin_after_refunds_t21",
226
+ "v3_depth4_margin_after_refunds_t22",
227
+ "v3_depth4_margin_after_refunds_t23",
228
+ "v3_depth4_margin_after_refunds_t24",
229
+ "v3_depth5_reorder_shortfall_t0",
230
+ "v3_depth5_reorder_shortfall_t1",
231
+ "v3_depth5_reorder_shortfall_t2",
232
+ "v3_depth5_reorder_shortfall_t3",
233
+ "v3_depth5_reorder_shortfall_t4",
234
+ "v3_depth5_reorder_shortfall_t5",
235
+ "v3_depth5_reorder_shortfall_t6",
236
+ "v3_depth5_reorder_shortfall_t7",
237
+ "v3_depth5_reorder_shortfall_t8",
238
+ "v3_depth5_reorder_shortfall_t9",
239
+ "v3_depth5_reorder_shortfall_t10",
240
+ "v3_depth5_reorder_shortfall_t11",
241
+ "v3_depth5_reorder_shortfall_t12",
242
+ "v3_depth5_reorder_shortfall_t13",
243
+ "v3_depth5_reorder_shortfall_t14",
244
+ "v3_depth5_reorder_shortfall_t15",
245
+ "v3_depth5_reorder_shortfall_t16",
246
+ "v3_depth5_reorder_shortfall_t17",
247
+ "v3_depth5_reorder_shortfall_t18",
248
+ "v3_depth5_reorder_shortfall_t19",
249
+ "v3_depth5_reorder_shortfall_t20",
250
+ "v3_depth5_reorder_shortfall_t21",
251
+ "v3_depth5_reorder_shortfall_t22",
252
+ "v3_depth5_reorder_shortfall_t23",
253
+ "v3_depth5_reorder_shortfall_t24",
254
+ "v3_depth5_delayed_net_revenue_t0",
255
+ "v3_depth5_delayed_net_revenue_t1",
256
+ "v3_depth5_delayed_net_revenue_t2",
257
+ "v3_depth5_delayed_net_revenue_t3",
258
+ "v3_depth5_delayed_net_revenue_t4",
259
+ "v3_depth5_delayed_net_revenue_t5",
260
+ "v3_depth5_delayed_net_revenue_t6",
261
+ "v3_depth5_delayed_net_revenue_t7",
262
+ "v3_depth5_delayed_net_revenue_t8",
263
+ "v3_depth5_delayed_net_revenue_t9",
264
+ "v3_depth5_delayed_net_revenue_t10",
265
+ "v3_depth5_delayed_net_revenue_t11",
266
+ "v3_depth5_delayed_net_revenue_t12",
267
+ "v3_depth5_delayed_net_revenue_t13",
268
+ "v3_depth5_delayed_net_revenue_t14",
269
+ "v3_depth5_delayed_net_revenue_t15",
270
+ "v3_depth5_delayed_net_revenue_t16",
271
+ "v3_depth5_delayed_net_revenue_t17",
272
+ "v3_depth5_delayed_net_revenue_t18",
273
+ "v3_depth5_delayed_net_revenue_t19",
274
+ "v3_depth5_delayed_net_revenue_t20",
275
+ "v3_depth5_delayed_net_revenue_t21",
276
+ "v3_depth5_delayed_net_revenue_t22",
277
+ "v3_depth5_delayed_net_revenue_t23",
278
+ "v3_depth5_delayed_net_revenue_t24",
279
+ "v3_depth6_delay_sla_burden_t0",
280
+ "v3_depth6_delay_sla_burden_t1",
281
+ "v3_depth6_delay_sla_burden_t2",
282
+ "v3_depth6_delay_sla_burden_t3",
283
+ "v3_depth6_delay_sla_burden_t4",
284
+ "v3_depth6_delay_sla_burden_t5",
285
+ "v3_depth6_delay_sla_burden_t6",
286
+ "v3_depth6_delay_sla_burden_t7",
287
+ "v3_depth6_delay_sla_burden_t8",
288
+ "v3_depth6_delay_sla_burden_t9",
289
+ "v3_depth6_delay_sla_burden_t10",
290
+ "v3_depth6_delay_sla_burden_t11",
291
+ "v3_depth6_delay_sla_burden_t12",
292
+ "v3_depth6_delay_sla_burden_t13",
293
+ "v3_depth6_delay_sla_burden_t14",
294
+ "v3_depth6_delay_sla_burden_t15",
295
+ "v3_depth6_delay_sla_burden_t16",
296
+ "v3_depth6_delay_sla_burden_t17",
297
+ "v3_depth6_delay_sla_burden_t18",
298
+ "v3_depth6_delay_sla_burden_t19",
299
+ "v3_depth6_delay_sla_burden_t20",
300
+ "v3_depth6_delay_sla_burden_t21",
301
+ "v3_depth6_delay_sla_burden_t22",
302
+ "v3_depth6_delay_sla_burden_t23",
303
+ "v3_depth6_delay_sla_burden_t24",
304
+ "v3_depth6_breached_ticket_revenue_t0",
305
+ "v3_depth6_breached_ticket_revenue_t1",
306
+ "v3_depth6_breached_ticket_revenue_t2",
307
+ "v3_depth6_breached_ticket_revenue_t3",
308
+ "v3_depth6_breached_ticket_revenue_t4",
309
+ "v3_depth6_breached_ticket_revenue_t5",
310
+ "v3_depth6_breached_ticket_revenue_t6",
311
+ "v3_depth6_breached_ticket_revenue_t7",
312
+ "v3_depth6_breached_ticket_revenue_t8",
313
+ "v3_depth6_breached_ticket_revenue_t9",
314
+ "v3_depth6_breached_ticket_revenue_t10",
315
+ "v3_depth6_breached_ticket_revenue_t11",
316
+ "v3_depth6_breached_ticket_revenue_t12",
317
+ "v3_depth6_breached_ticket_revenue_t13",
318
+ "v3_depth6_breached_ticket_revenue_t14",
319
+ "v3_depth6_breached_ticket_revenue_t15",
320
+ "v3_depth6_breached_ticket_revenue_t16",
321
+ "v3_depth6_breached_ticket_revenue_t17",
322
+ "v3_depth6_breached_ticket_revenue_t18",
323
+ "v3_depth6_breached_ticket_revenue_t19",
324
+ "v3_depth6_breached_ticket_revenue_t20",
325
+ "v3_depth6_breached_ticket_revenue_t21",
326
+ "v3_depth6_breached_ticket_revenue_t22",
327
+ "v3_depth6_breached_ticket_revenue_t23",
328
+ "v3_depth6_breached_ticket_revenue_t24"
329
+ ]
330
+ }
harbor/tasks/v3_depth1_currency_lookup_t0/environment/Dockerfile ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+ WORKDIR /app
3
+ COPY flowbench_tools.py /app/flowbench_tools.py
4
+ COPY task.json /app/task.json
harbor/tasks/v3_depth1_currency_lookup_t0/environment/flowbench_tools.py ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Deterministic FlowBench v3 tools. This file contains no task answers."""
2
+
3
+
4
+ REGIONS = ["NA", "EU", "APAC", "LATAM"]
5
+ CATEGORIES = ["A", "B", "C", "D"]
6
+ CURRENCIES = {"NA": "USD", "EU": "EUR", "APAC": "JPY", "LATAM": "BRL"}
7
+ FX_TO_USD_BP = {"USD": 10000, "EUR": 10900, "JPY": 67, "BRL": 1850}
8
+ TIERS = ["std", "gold", "plat"]
9
+ DISCOUNT_PCT = {"std": 0, "gold": 10, "plat": 20}
10
+ CHANNELS = ["web", "store", "partner"]
11
+ MONTHS = [202601, 202602, 202603, 202604, 202605, 202606]
12
+
13
+ N_CUSTOMERS = 72
14
+ N_PRODUCTS = 48
15
+ N_ORDERS = 720
16
+ N_TICKETS = 260
17
+ N_RETURNS = 180
18
+
19
+
20
+ def _h(*xs):
21
+ import hashlib
22
+ s = "|".join(str(x) for x in xs).encode()
23
+ return int.from_bytes(hashlib.sha256(s).digest()[:8], "big") & 0x7FFFFFFF
24
+
25
+
26
+ def build_data():
27
+ customers = []
28
+ for cid in range(N_CUSTOMERS):
29
+ region = REGIONS[_h("region", cid) % len(REGIONS)]
30
+ customers.append({
31
+ "customer_id": cid,
32
+ "region": region,
33
+ "tier": TIERS[_h("tier", cid) % len(TIERS)],
34
+ "segment": ["consumer", "smb", "enterprise"][_h("segment", cid) % 3],
35
+ })
36
+
37
+ products = []
38
+ for pid in range(N_PRODUCTS):
39
+ cat = CATEGORIES[_h("cat", pid) % len(CATEGORIES)]
40
+ unit_price = 12 + _h("price", pid) % 240
41
+ cogs = unit_price * (45 + _h("margin", pid) % 35) // 100
42
+ products.append({
43
+ "product_id": pid,
44
+ "category": cat,
45
+ "unit_price_usd": unit_price,
46
+ "unit_cogs_usd": cogs,
47
+ "lead_time_days": 3 + _h("lead", pid) % 18,
48
+ })
49
+
50
+ inventory = []
51
+ for pid in range(N_PRODUCTS):
52
+ for region in REGIONS:
53
+ inventory.append({
54
+ "product_id": pid,
55
+ "region": region,
56
+ "on_hand": 10 + _h("onhand", pid, region) % 140,
57
+ "reserved": _h("reserved", pid, region) % 28,
58
+ "inbound": _h("inbound", pid, region) % 85,
59
+ })
60
+
61
+ orders = []
62
+ for oid in range(N_ORDERS):
63
+ customer_id = _h("ocust", oid) % N_CUSTOMERS
64
+ product_id = _h("oprod", oid) % N_PRODUCTS
65
+ month = MONTHS[_h("month", oid) % len(MONTHS)]
66
+ qty = 1 + _h("qty", oid) % 9
67
+ ship_days = 1 + _h("shipdays", oid) % 16
68
+ promised_days = 3 + _h("promise", oid) % 9
69
+ status = ["paid", "paid", "paid", "paid", "cancelled", "refunded"][
70
+ _h("status", oid) % 6]
71
+ orders.append({
72
+ "order_id": oid,
73
+ "customer_id": customer_id,
74
+ "product_id": product_id,
75
+ "month": month,
76
+ "qty": qty,
77
+ "status": status,
78
+ "channel": CHANNELS[_h("channel", oid) % len(CHANNELS)],
79
+ "ship_days": ship_days,
80
+ "promised_days": promised_days,
81
+ })
82
+
83
+ returns = []
84
+ for rid in range(N_RETURNS):
85
+ oid = _h("roid", rid) % N_ORDERS
86
+ order = orders[oid]
87
+ if order["status"] == "cancelled":
88
+ continue
89
+ returned_qty = 1 + _h("rqty", rid) % max(1, order["qty"])
90
+ reason = ["defect", "late", "changed_mind", "wrong_item"][_h("reason", rid) % 4]
91
+ returns.append({
92
+ "return_id": rid,
93
+ "order_id": oid,
94
+ "month": MONTHS[_h("rmonth", rid) % len(MONTHS)],
95
+ "returned_qty": returned_qty,
96
+ "reason": reason,
97
+ })
98
+
99
+ tickets = []
100
+ for tid in range(N_TICKETS):
101
+ oid = _h("toid", tid) % N_ORDERS
102
+ severity = ["low", "medium", "high", "critical"][_h("sev", tid) % 4]
103
+ opened = MONTHS[_h("tmonth", tid) % len(MONTHS)]
104
+ first_response_hours = 1 + _h("resp", tid) % 96
105
+ resolution_hours = first_response_hours + _h("res", tid) % 240
106
+ tickets.append({
107
+ "ticket_id": tid,
108
+ "order_id": oid,
109
+ "opened_month": opened,
110
+ "severity": severity,
111
+ "first_response_hours": first_response_hours,
112
+ "resolution_hours": resolution_hours,
113
+ })
114
+
115
+ return {
116
+ "customers": customers,
117
+ "products": products,
118
+ "inventory": inventory,
119
+ "orders": orders,
120
+ "returns": returns,
121
+ "tickets": tickets,
122
+ "fx_to_usd_bp": FX_TO_USD_BP,
123
+ }
124
+
125
+
126
+ DATA = build_data()
127
+ CUSTOMERS = {c["customer_id"]: c for c in DATA["customers"]}
128
+ PRODUCTS = {p["product_id"]: p for p in DATA["products"]}
129
+ ORDERS = {o["order_id"]: o for o in DATA["orders"]}
130
+
131
+
132
+ def region_currency(region: str) -> str:
133
+ return CURRENCIES[region]
134
+
135
+
136
+ def get_orders(region: str, category: str, month_start: int, month_end: int) -> list:
137
+ """Paid/refunded order ids in a region/category/month window."""
138
+ out = []
139
+ for o in DATA["orders"]:
140
+ if o["status"] not in ("paid", "refunded"):
141
+ continue
142
+ c = CUSTOMERS[o["customer_id"]]
143
+ p = PRODUCTS[o["product_id"]]
144
+ if c["region"] == region and p["category"] == category and month_start <= o["month"] <= month_end:
145
+ out.append(o["order_id"])
146
+ return sorted(out)
147
+
148
+
149
+ def order_gross_usd(order_id: int) -> int:
150
+ o = ORDERS[order_id]
151
+ p = PRODUCTS[o["product_id"]]
152
+ return o["qty"] * p["unit_price_usd"]
153
+
154
+
155
+ def order_margin_usd(order_id: int) -> int:
156
+ o = ORDERS[order_id]
157
+ p = PRODUCTS[o["product_id"]]
158
+ return o["qty"] * (p["unit_price_usd"] - p["unit_cogs_usd"])
159
+
160
+
161
+ def refund_usd(order_id: int) -> int:
162
+ o = ORDERS[order_id]
163
+ p = PRODUCTS[o["product_id"]]
164
+ qty = sum(r["returned_qty"] for r in DATA["returns"] if r["order_id"] == order_id)
165
+ qty = min(qty, o["qty"])
166
+ return qty * p["unit_price_usd"]
167
+
168
+
169
+ def customer_tier(order_id: int) -> str:
170
+ o = ORDERS[order_id]
171
+ return CUSTOMERS[o["customer_id"]]["tier"]
172
+
173
+
174
+ def apply_discount(amount_usd: int, tier: str) -> int:
175
+ return amount_usd * (100 - DISCOUNT_PCT[tier]) // 100
176
+
177
+
178
+ def net_revenue_usd(order_id: int) -> int:
179
+ gross = apply_discount(order_gross_usd(order_id), customer_tier(order_id))
180
+ return max(0, gross - refund_usd(order_id))
181
+
182
+
183
+ def to_local(amount_usd: int, currency: str) -> int:
184
+ return amount_usd * 10000 // FX_TO_USD_BP[currency]
185
+
186
+
187
+ def inventory_position(product_id: int, region: str) -> int:
188
+ row = next(x for x in DATA["inventory"]
189
+ if x["product_id"] == product_id and x["region"] == region)
190
+ return row["on_hand"] - row["reserved"] + row["inbound"]
191
+
192
+
193
+ def product_lead_time(product_id: int) -> int:
194
+ return PRODUCTS[product_id]["lead_time_days"]
195
+
196
+
197
+ def product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int:
198
+ totals = {}
199
+ for oid in get_orders(region, category, month_start, month_end):
200
+ o = ORDERS[oid]
201
+ totals[o["product_id"]] = totals.get(o["product_id"], 0) + o["qty"]
202
+ if not totals:
203
+ return -1
204
+ return min((-qty, pid) for pid, qty in totals.items())[1]
205
+
206
+
207
+ def units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int:
208
+ total = 0
209
+ for o in DATA["orders"]:
210
+ if o["product_id"] != product_id or o["status"] not in ("paid", "refunded"):
211
+ continue
212
+ c = CUSTOMERS[o["customer_id"]]
213
+ if c["region"] == region and month_start <= o["month"] <= month_end:
214
+ total += o["qty"]
215
+ return total
216
+
217
+
218
+ def tickets_for_orders(order_ids: list, severity: str) -> list:
219
+ s = set(order_ids)
220
+ return sorted(t["ticket_id"] for t in DATA["tickets"]
221
+ if t["order_id"] in s and t["severity"] == severity)
222
+
223
+
224
+ def ticket_order_id(ticket_id: int) -> int:
225
+ return next(t["order_id"] for t in DATA["tickets"] if t["ticket_id"] == ticket_id)
226
+
227
+
228
+ def sla_breached(ticket_id: int, first_response_limit_hours: int,
229
+ resolution_limit_hours: int) -> bool:
230
+ t = next(x for x in DATA["tickets"] if x["ticket_id"] == ticket_id)
231
+ return (t["first_response_hours"] > first_response_limit_hours or
232
+ t["resolution_hours"] > resolution_limit_hours)
233
+
234
+
235
+ def delayed_orders(order_ids: list) -> list:
236
+ s = set(order_ids)
237
+ return sorted(o["order_id"] for o in DATA["orders"]
238
+ if o["order_id"] in s and o["ship_days"] > o["promised_days"])
239
+
240
+
241
+ def unique_customers(order_ids: list) -> list:
242
+ return sorted({ORDERS[oid]["customer_id"] for oid in order_ids})
243
+
244
+
245
+ def count_items(values: list) -> int:
246
+ return len(values)
247
+
248
+
249
+ def sum_values(values: list) -> int:
250
+ return sum(values)
251
+
252
+
253
+ def count_true(values: list) -> int:
254
+ return sum(1 for v in values if bool(v))
255
+
256
+
257
+ def count_below(values: list, threshold: int) -> int:
258
+ return sum(1 for v in values if v < threshold)
259
+
260
+
261
+ TOOLS = {
262
+ "region_currency": ("region_currency(region: str) -> str",
263
+ "ISO currency code for a region.", region_currency),
264
+ "get_orders": ("get_orders(region: str, category: str, month_start: int, month_end: int) -> list[int]",
265
+ "Paid/refunded order ids for a region, product category, and inclusive month window.",
266
+ get_orders),
267
+ "order_gross_usd": ("order_gross_usd(order_id: int) -> int",
268
+ "Gross order revenue in USD before discounts/refunds.", order_gross_usd),
269
+ "order_margin_usd": ("order_margin_usd(order_id: int) -> int",
270
+ "Gross order margin in USD before discounts/refunds.", order_margin_usd),
271
+ "refund_usd": ("refund_usd(order_id: int) -> int",
272
+ "Refund amount in USD for returned quantity on an order.", refund_usd),
273
+ "customer_tier": ("customer_tier(order_id: int) -> str",
274
+ "Customer loyalty tier for an order.", customer_tier),
275
+ "apply_discount": ("apply_discount(amount_usd: int, tier: str) -> int",
276
+ "Apply the order customer's loyalty discount to a USD amount.", apply_discount),
277
+ "net_revenue_usd": ("net_revenue_usd(order_id: int) -> int",
278
+ "Net USD revenue after loyalty discount and refunds.", net_revenue_usd),
279
+ "to_local": ("to_local(amount_usd: int, currency: str) -> int",
280
+ "Convert a USD integer amount to a local-currency integer.", to_local),
281
+ "inventory_position": ("inventory_position(product_id: int, region: str) -> int",
282
+ "Available inventory position: on_hand - reserved + inbound.",
283
+ inventory_position),
284
+ "product_lead_time": ("product_lead_time(product_id: int) -> int",
285
+ "Supplier lead time in days for a product.", product_lead_time),
286
+ "product_id_for_top_seller": (
287
+ "product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int",
288
+ "Product id with the highest units sold in a region/category/month window.",
289
+ product_id_for_top_seller),
290
+ "units_sold": ("units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int",
291
+ "Units sold for one product in a region and month window.", units_sold),
292
+ "tickets_for_orders": ("tickets_for_orders(order_ids: list[int], severity: str) -> list[int]",
293
+ "Support ticket ids for given orders and severity.", tickets_for_orders),
294
+ "ticket_order_id": ("ticket_order_id(ticket_id: int) -> int",
295
+ "Order id associated with a support ticket.", ticket_order_id),
296
+ "sla_breached": (
297
+ "sla_breached(ticket_id: int, first_response_limit_hours: int, resolution_limit_hours: int) -> bool",
298
+ "Whether a support ticket breaches first-response or resolution SLA.",
299
+ sla_breached),
300
+ "delayed_orders": ("delayed_orders(order_ids: list[int]) -> list[int]",
301
+ "Subset of order ids whose ship_days exceeded promised_days.", delayed_orders),
302
+ "unique_customers": ("unique_customers(order_ids: list[int]) -> list[int]",
303
+ "Unique customer ids among the given orders.", unique_customers),
304
+ "count_items": ("count_items(values: list) -> int", "Length of a list.", count_items),
305
+ "sum_values": ("sum_values(values: list[int]) -> int", "Sum a list of integers.", sum_values),
306
+ "count_true": ("count_true(values: list[bool]) -> int", "Count true values.", count_true),
307
+ "count_below": ("count_below(values: list[int], threshold: int) -> int",
308
+ "Count values below a threshold.", count_below),
309
+ }
310
+
311
+ __all__ = [name for name in TOOLS.keys()] + ['TOOLS']
harbor/tasks/v3_depth1_currency_lookup_t0/environment/task.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "v3_depth1_currency_lookup_t0",
3
+ "depth": 1,
4
+ "family": "currency_lookup",
5
+ "params": {
6
+ "region": "NA",
7
+ "category": "A",
8
+ "month_start": 202601,
9
+ "month_end": 202603
10
+ },
11
+ "question": "What ISO currency code is used for the NA region? Report only the code.",
12
+ "answer_format": "exact code"
13
+ }
harbor/tasks/v3_depth1_currency_lookup_t0/instruction.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FlowBench v3 Public Task
2
+
3
+ You are in `/app`. The file `/app/flowbench_tools.py` contains deterministic
4
+ Python tools over a synthetic business-operations dataset. Use those tools
5
+ to compute the requested value, then write the final output to
6
+ `/app/answer.txt`.
7
+
8
+ Required output:
9
+ - `/app/answer.txt` must contain only the exact code.
10
+ - Use integer arithmetic for currency and counts. Do not use floating point
11
+ arithmetic.
12
+
13
+ Task:
14
+ What ISO currency code is used for the NA region? Report only the code.
15
+
16
+ Available tools:
17
+ - `region_currency(region: str) -> str`: ISO currency code for a region.
18
+ - `get_orders(region: str, category: str, month_start: int, month_end: int) -> list[int]`: Paid/refunded order ids for a region, product category, and inclusive month window.
19
+ - `order_gross_usd(order_id: int) -> int`: Gross order revenue in USD before discounts/refunds.
20
+ - `order_margin_usd(order_id: int) -> int`: Gross order margin in USD before discounts/refunds.
21
+ - `refund_usd(order_id: int) -> int`: Refund amount in USD for returned quantity on an order.
22
+ - `customer_tier(order_id: int) -> str`: Customer loyalty tier for an order.
23
+ - `apply_discount(amount_usd: int, tier: str) -> int`: Apply the order customer's loyalty discount to a USD amount.
24
+ - `net_revenue_usd(order_id: int) -> int`: Net USD revenue after loyalty discount and refunds.
25
+ - `to_local(amount_usd: int, currency: str) -> int`: Convert a USD integer amount to a local-currency integer.
26
+ - `inventory_position(product_id: int, region: str) -> int`: Available inventory position: on_hand - reserved + inbound.
27
+ - `product_lead_time(product_id: int) -> int`: Supplier lead time in days for a product.
28
+ - `product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int`: Product id with the highest units sold in a region/category/month window.
29
+ - `units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int`: Units sold for one product in a region and month window.
30
+ - `tickets_for_orders(order_ids: list[int], severity: str) -> list[int]`: Support ticket ids for given orders and severity.
31
+ - `ticket_order_id(ticket_id: int) -> int`: Order id associated with a support ticket.
32
+ - `sla_breached(ticket_id: int, first_response_limit_hours: int, resolution_limit_hours: int) -> bool`: Whether a support ticket breaches first-response or resolution SLA.
33
+ - `delayed_orders(order_ids: list[int]) -> list[int]`: Subset of order ids whose ship_days exceeded promised_days.
34
+ - `unique_customers(order_ids: list[int]) -> list[int]`: Unique customer ids among the given orders.
35
+ - `count_items(values: list) -> int`: Length of a list.
36
+ - `sum_values(values: list[int]) -> int`: Sum a list of integers.
37
+ - `count_true(values: list[bool]) -> int`: Count true values.
38
+ - `count_below(values: list[int], threshold: int) -> int`: Count values below a threshold.
harbor/tasks/v3_depth1_currency_lookup_t0/task.toml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+
3
+ [task]
4
+ name = "mindlab/v3_depth1_currency_lookup_t0"
5
+ description = "FlowBench v3 public task metadata. Public verifier is smoke-only."
6
+ authors = [{ name = "Mind Lab", email = "contact@mindlab.ltd" }]
7
+ keywords = ["flowbench", "tool-use", "data-orchestration", "operations"]
8
+
9
+ [metadata]
10
+ benchmark = "FlowBench-v3"
11
+ split = "public-task-only"
12
+ category = "data-processing"
13
+ depth = 1
14
+
15
+ [verifier]
16
+ timeout_sec = 120.0
17
+
18
+ [agent]
19
+ timeout_sec = 900.0
20
+
21
+ [environment]
22
+ network_mode = "no-network"
23
+ build_timeout_sec = 600.0
24
+ os = "linux"
25
+ cpus = 1
26
+ memory_mb = 2048
27
+ storage_mb = 2048
28
+ gpus = 0
harbor/tasks/v3_depth1_currency_lookup_t0/tests/check_output_shape.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import json
5
+ import os
6
+ import re
7
+ from pathlib import Path
8
+
9
+
10
+ def write_reward(score: float, diagnostic: str) -> None:
11
+ log_dir = Path(os.environ.get("LOG_DIR", "/logs/verifier"))
12
+ log_dir.mkdir(parents=True, exist_ok=True)
13
+ (log_dir / "reward.txt").write_text(f"{score:.6g}\n")
14
+ (log_dir / "reward.json").write_text(
15
+ json.dumps({"reward": score, "smoke_only": True}, indent=2) + "\n"
16
+ )
17
+ (log_dir / "diagnostic.txt").write_text(diagnostic + "\n")
18
+
19
+
20
+ def main() -> int:
21
+ app_dir = Path(os.environ.get("APP_DIR", "/app"))
22
+ task = json.loads((app_dir / "task.json").read_text())
23
+ answer_path = app_dir / "answer.txt"
24
+ if not answer_path.exists():
25
+ write_reward(0.0, "missing /app/answer.txt")
26
+ return 1
27
+
28
+ got = answer_path.read_text().strip()
29
+ if task["answer_format"] == "exact integer":
30
+ ok = bool(re.fullmatch(r"-?\d+", got))
31
+ diagnostic = "valid integer smoke output" if ok else f"not an exact integer: {got!r}"
32
+ else:
33
+ ok = bool(re.fullmatch(r"[A-Za-z]+", got))
34
+ diagnostic = "valid code smoke output" if ok else f"not an exact code: {got!r}"
35
+
36
+ # This is intentionally not official scoring; it only verifies I/O shape.
37
+ write_reward(1.0 if ok else 0.0, diagnostic)
38
+ return 0 if ok else 1
39
+
40
+
41
+ if __name__ == "__main__":
42
+ raise SystemExit(main())
harbor/tasks/v3_depth1_currency_lookup_t0/tests/test.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -u
3
+ python /tests/check_output_shape.py
harbor/tasks/v3_depth1_currency_lookup_t1/environment/Dockerfile ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+ WORKDIR /app
3
+ COPY flowbench_tools.py /app/flowbench_tools.py
4
+ COPY task.json /app/task.json
harbor/tasks/v3_depth1_currency_lookup_t1/environment/flowbench_tools.py ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Deterministic FlowBench v3 tools. This file contains no task answers."""
2
+
3
+
4
+ REGIONS = ["NA", "EU", "APAC", "LATAM"]
5
+ CATEGORIES = ["A", "B", "C", "D"]
6
+ CURRENCIES = {"NA": "USD", "EU": "EUR", "APAC": "JPY", "LATAM": "BRL"}
7
+ FX_TO_USD_BP = {"USD": 10000, "EUR": 10900, "JPY": 67, "BRL": 1850}
8
+ TIERS = ["std", "gold", "plat"]
9
+ DISCOUNT_PCT = {"std": 0, "gold": 10, "plat": 20}
10
+ CHANNELS = ["web", "store", "partner"]
11
+ MONTHS = [202601, 202602, 202603, 202604, 202605, 202606]
12
+
13
+ N_CUSTOMERS = 72
14
+ N_PRODUCTS = 48
15
+ N_ORDERS = 720
16
+ N_TICKETS = 260
17
+ N_RETURNS = 180
18
+
19
+
20
+ def _h(*xs):
21
+ import hashlib
22
+ s = "|".join(str(x) for x in xs).encode()
23
+ return int.from_bytes(hashlib.sha256(s).digest()[:8], "big") & 0x7FFFFFFF
24
+
25
+
26
+ def build_data():
27
+ customers = []
28
+ for cid in range(N_CUSTOMERS):
29
+ region = REGIONS[_h("region", cid) % len(REGIONS)]
30
+ customers.append({
31
+ "customer_id": cid,
32
+ "region": region,
33
+ "tier": TIERS[_h("tier", cid) % len(TIERS)],
34
+ "segment": ["consumer", "smb", "enterprise"][_h("segment", cid) % 3],
35
+ })
36
+
37
+ products = []
38
+ for pid in range(N_PRODUCTS):
39
+ cat = CATEGORIES[_h("cat", pid) % len(CATEGORIES)]
40
+ unit_price = 12 + _h("price", pid) % 240
41
+ cogs = unit_price * (45 + _h("margin", pid) % 35) // 100
42
+ products.append({
43
+ "product_id": pid,
44
+ "category": cat,
45
+ "unit_price_usd": unit_price,
46
+ "unit_cogs_usd": cogs,
47
+ "lead_time_days": 3 + _h("lead", pid) % 18,
48
+ })
49
+
50
+ inventory = []
51
+ for pid in range(N_PRODUCTS):
52
+ for region in REGIONS:
53
+ inventory.append({
54
+ "product_id": pid,
55
+ "region": region,
56
+ "on_hand": 10 + _h("onhand", pid, region) % 140,
57
+ "reserved": _h("reserved", pid, region) % 28,
58
+ "inbound": _h("inbound", pid, region) % 85,
59
+ })
60
+
61
+ orders = []
62
+ for oid in range(N_ORDERS):
63
+ customer_id = _h("ocust", oid) % N_CUSTOMERS
64
+ product_id = _h("oprod", oid) % N_PRODUCTS
65
+ month = MONTHS[_h("month", oid) % len(MONTHS)]
66
+ qty = 1 + _h("qty", oid) % 9
67
+ ship_days = 1 + _h("shipdays", oid) % 16
68
+ promised_days = 3 + _h("promise", oid) % 9
69
+ status = ["paid", "paid", "paid", "paid", "cancelled", "refunded"][
70
+ _h("status", oid) % 6]
71
+ orders.append({
72
+ "order_id": oid,
73
+ "customer_id": customer_id,
74
+ "product_id": product_id,
75
+ "month": month,
76
+ "qty": qty,
77
+ "status": status,
78
+ "channel": CHANNELS[_h("channel", oid) % len(CHANNELS)],
79
+ "ship_days": ship_days,
80
+ "promised_days": promised_days,
81
+ })
82
+
83
+ returns = []
84
+ for rid in range(N_RETURNS):
85
+ oid = _h("roid", rid) % N_ORDERS
86
+ order = orders[oid]
87
+ if order["status"] == "cancelled":
88
+ continue
89
+ returned_qty = 1 + _h("rqty", rid) % max(1, order["qty"])
90
+ reason = ["defect", "late", "changed_mind", "wrong_item"][_h("reason", rid) % 4]
91
+ returns.append({
92
+ "return_id": rid,
93
+ "order_id": oid,
94
+ "month": MONTHS[_h("rmonth", rid) % len(MONTHS)],
95
+ "returned_qty": returned_qty,
96
+ "reason": reason,
97
+ })
98
+
99
+ tickets = []
100
+ for tid in range(N_TICKETS):
101
+ oid = _h("toid", tid) % N_ORDERS
102
+ severity = ["low", "medium", "high", "critical"][_h("sev", tid) % 4]
103
+ opened = MONTHS[_h("tmonth", tid) % len(MONTHS)]
104
+ first_response_hours = 1 + _h("resp", tid) % 96
105
+ resolution_hours = first_response_hours + _h("res", tid) % 240
106
+ tickets.append({
107
+ "ticket_id": tid,
108
+ "order_id": oid,
109
+ "opened_month": opened,
110
+ "severity": severity,
111
+ "first_response_hours": first_response_hours,
112
+ "resolution_hours": resolution_hours,
113
+ })
114
+
115
+ return {
116
+ "customers": customers,
117
+ "products": products,
118
+ "inventory": inventory,
119
+ "orders": orders,
120
+ "returns": returns,
121
+ "tickets": tickets,
122
+ "fx_to_usd_bp": FX_TO_USD_BP,
123
+ }
124
+
125
+
126
+ DATA = build_data()
127
+ CUSTOMERS = {c["customer_id"]: c for c in DATA["customers"]}
128
+ PRODUCTS = {p["product_id"]: p for p in DATA["products"]}
129
+ ORDERS = {o["order_id"]: o for o in DATA["orders"]}
130
+
131
+
132
+ def region_currency(region: str) -> str:
133
+ return CURRENCIES[region]
134
+
135
+
136
+ def get_orders(region: str, category: str, month_start: int, month_end: int) -> list:
137
+ """Paid/refunded order ids in a region/category/month window."""
138
+ out = []
139
+ for o in DATA["orders"]:
140
+ if o["status"] not in ("paid", "refunded"):
141
+ continue
142
+ c = CUSTOMERS[o["customer_id"]]
143
+ p = PRODUCTS[o["product_id"]]
144
+ if c["region"] == region and p["category"] == category and month_start <= o["month"] <= month_end:
145
+ out.append(o["order_id"])
146
+ return sorted(out)
147
+
148
+
149
+ def order_gross_usd(order_id: int) -> int:
150
+ o = ORDERS[order_id]
151
+ p = PRODUCTS[o["product_id"]]
152
+ return o["qty"] * p["unit_price_usd"]
153
+
154
+
155
+ def order_margin_usd(order_id: int) -> int:
156
+ o = ORDERS[order_id]
157
+ p = PRODUCTS[o["product_id"]]
158
+ return o["qty"] * (p["unit_price_usd"] - p["unit_cogs_usd"])
159
+
160
+
161
+ def refund_usd(order_id: int) -> int:
162
+ o = ORDERS[order_id]
163
+ p = PRODUCTS[o["product_id"]]
164
+ qty = sum(r["returned_qty"] for r in DATA["returns"] if r["order_id"] == order_id)
165
+ qty = min(qty, o["qty"])
166
+ return qty * p["unit_price_usd"]
167
+
168
+
169
+ def customer_tier(order_id: int) -> str:
170
+ o = ORDERS[order_id]
171
+ return CUSTOMERS[o["customer_id"]]["tier"]
172
+
173
+
174
+ def apply_discount(amount_usd: int, tier: str) -> int:
175
+ return amount_usd * (100 - DISCOUNT_PCT[tier]) // 100
176
+
177
+
178
+ def net_revenue_usd(order_id: int) -> int:
179
+ gross = apply_discount(order_gross_usd(order_id), customer_tier(order_id))
180
+ return max(0, gross - refund_usd(order_id))
181
+
182
+
183
+ def to_local(amount_usd: int, currency: str) -> int:
184
+ return amount_usd * 10000 // FX_TO_USD_BP[currency]
185
+
186
+
187
+ def inventory_position(product_id: int, region: str) -> int:
188
+ row = next(x for x in DATA["inventory"]
189
+ if x["product_id"] == product_id and x["region"] == region)
190
+ return row["on_hand"] - row["reserved"] + row["inbound"]
191
+
192
+
193
+ def product_lead_time(product_id: int) -> int:
194
+ return PRODUCTS[product_id]["lead_time_days"]
195
+
196
+
197
+ def product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int:
198
+ totals = {}
199
+ for oid in get_orders(region, category, month_start, month_end):
200
+ o = ORDERS[oid]
201
+ totals[o["product_id"]] = totals.get(o["product_id"], 0) + o["qty"]
202
+ if not totals:
203
+ return -1
204
+ return min((-qty, pid) for pid, qty in totals.items())[1]
205
+
206
+
207
+ def units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int:
208
+ total = 0
209
+ for o in DATA["orders"]:
210
+ if o["product_id"] != product_id or o["status"] not in ("paid", "refunded"):
211
+ continue
212
+ c = CUSTOMERS[o["customer_id"]]
213
+ if c["region"] == region and month_start <= o["month"] <= month_end:
214
+ total += o["qty"]
215
+ return total
216
+
217
+
218
+ def tickets_for_orders(order_ids: list, severity: str) -> list:
219
+ s = set(order_ids)
220
+ return sorted(t["ticket_id"] for t in DATA["tickets"]
221
+ if t["order_id"] in s and t["severity"] == severity)
222
+
223
+
224
+ def ticket_order_id(ticket_id: int) -> int:
225
+ return next(t["order_id"] for t in DATA["tickets"] if t["ticket_id"] == ticket_id)
226
+
227
+
228
+ def sla_breached(ticket_id: int, first_response_limit_hours: int,
229
+ resolution_limit_hours: int) -> bool:
230
+ t = next(x for x in DATA["tickets"] if x["ticket_id"] == ticket_id)
231
+ return (t["first_response_hours"] > first_response_limit_hours or
232
+ t["resolution_hours"] > resolution_limit_hours)
233
+
234
+
235
+ def delayed_orders(order_ids: list) -> list:
236
+ s = set(order_ids)
237
+ return sorted(o["order_id"] for o in DATA["orders"]
238
+ if o["order_id"] in s and o["ship_days"] > o["promised_days"])
239
+
240
+
241
+ def unique_customers(order_ids: list) -> list:
242
+ return sorted({ORDERS[oid]["customer_id"] for oid in order_ids})
243
+
244
+
245
+ def count_items(values: list) -> int:
246
+ return len(values)
247
+
248
+
249
+ def sum_values(values: list) -> int:
250
+ return sum(values)
251
+
252
+
253
+ def count_true(values: list) -> int:
254
+ return sum(1 for v in values if bool(v))
255
+
256
+
257
+ def count_below(values: list, threshold: int) -> int:
258
+ return sum(1 for v in values if v < threshold)
259
+
260
+
261
+ TOOLS = {
262
+ "region_currency": ("region_currency(region: str) -> str",
263
+ "ISO currency code for a region.", region_currency),
264
+ "get_orders": ("get_orders(region: str, category: str, month_start: int, month_end: int) -> list[int]",
265
+ "Paid/refunded order ids for a region, product category, and inclusive month window.",
266
+ get_orders),
267
+ "order_gross_usd": ("order_gross_usd(order_id: int) -> int",
268
+ "Gross order revenue in USD before discounts/refunds.", order_gross_usd),
269
+ "order_margin_usd": ("order_margin_usd(order_id: int) -> int",
270
+ "Gross order margin in USD before discounts/refunds.", order_margin_usd),
271
+ "refund_usd": ("refund_usd(order_id: int) -> int",
272
+ "Refund amount in USD for returned quantity on an order.", refund_usd),
273
+ "customer_tier": ("customer_tier(order_id: int) -> str",
274
+ "Customer loyalty tier for an order.", customer_tier),
275
+ "apply_discount": ("apply_discount(amount_usd: int, tier: str) -> int",
276
+ "Apply the order customer's loyalty discount to a USD amount.", apply_discount),
277
+ "net_revenue_usd": ("net_revenue_usd(order_id: int) -> int",
278
+ "Net USD revenue after loyalty discount and refunds.", net_revenue_usd),
279
+ "to_local": ("to_local(amount_usd: int, currency: str) -> int",
280
+ "Convert a USD integer amount to a local-currency integer.", to_local),
281
+ "inventory_position": ("inventory_position(product_id: int, region: str) -> int",
282
+ "Available inventory position: on_hand - reserved + inbound.",
283
+ inventory_position),
284
+ "product_lead_time": ("product_lead_time(product_id: int) -> int",
285
+ "Supplier lead time in days for a product.", product_lead_time),
286
+ "product_id_for_top_seller": (
287
+ "product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int",
288
+ "Product id with the highest units sold in a region/category/month window.",
289
+ product_id_for_top_seller),
290
+ "units_sold": ("units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int",
291
+ "Units sold for one product in a region and month window.", units_sold),
292
+ "tickets_for_orders": ("tickets_for_orders(order_ids: list[int], severity: str) -> list[int]",
293
+ "Support ticket ids for given orders and severity.", tickets_for_orders),
294
+ "ticket_order_id": ("ticket_order_id(ticket_id: int) -> int",
295
+ "Order id associated with a support ticket.", ticket_order_id),
296
+ "sla_breached": (
297
+ "sla_breached(ticket_id: int, first_response_limit_hours: int, resolution_limit_hours: int) -> bool",
298
+ "Whether a support ticket breaches first-response or resolution SLA.",
299
+ sla_breached),
300
+ "delayed_orders": ("delayed_orders(order_ids: list[int]) -> list[int]",
301
+ "Subset of order ids whose ship_days exceeded promised_days.", delayed_orders),
302
+ "unique_customers": ("unique_customers(order_ids: list[int]) -> list[int]",
303
+ "Unique customer ids among the given orders.", unique_customers),
304
+ "count_items": ("count_items(values: list) -> int", "Length of a list.", count_items),
305
+ "sum_values": ("sum_values(values: list[int]) -> int", "Sum a list of integers.", sum_values),
306
+ "count_true": ("count_true(values: list[bool]) -> int", "Count true values.", count_true),
307
+ "count_below": ("count_below(values: list[int], threshold: int) -> int",
308
+ "Count values below a threshold.", count_below),
309
+ }
310
+
311
+ __all__ = [name for name in TOOLS.keys()] + ['TOOLS']
harbor/tasks/v3_depth1_currency_lookup_t1/environment/task.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "v3_depth1_currency_lookup_t1",
3
+ "depth": 1,
4
+ "family": "currency_lookup",
5
+ "params": {
6
+ "region": "NA",
7
+ "category": "B",
8
+ "month_start": 202604,
9
+ "month_end": 202606
10
+ },
11
+ "question": "What ISO currency code is used for the NA region? Report only the code.",
12
+ "answer_format": "exact code"
13
+ }
harbor/tasks/v3_depth1_currency_lookup_t1/instruction.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FlowBench v3 Public Task
2
+
3
+ You are in `/app`. The file `/app/flowbench_tools.py` contains deterministic
4
+ Python tools over a synthetic business-operations dataset. Use those tools
5
+ to compute the requested value, then write the final output to
6
+ `/app/answer.txt`.
7
+
8
+ Required output:
9
+ - `/app/answer.txt` must contain only the exact code.
10
+ - Use integer arithmetic for currency and counts. Do not use floating point
11
+ arithmetic.
12
+
13
+ Task:
14
+ What ISO currency code is used for the NA region? Report only the code.
15
+
16
+ Available tools:
17
+ - `region_currency(region: str) -> str`: ISO currency code for a region.
18
+ - `get_orders(region: str, category: str, month_start: int, month_end: int) -> list[int]`: Paid/refunded order ids for a region, product category, and inclusive month window.
19
+ - `order_gross_usd(order_id: int) -> int`: Gross order revenue in USD before discounts/refunds.
20
+ - `order_margin_usd(order_id: int) -> int`: Gross order margin in USD before discounts/refunds.
21
+ - `refund_usd(order_id: int) -> int`: Refund amount in USD for returned quantity on an order.
22
+ - `customer_tier(order_id: int) -> str`: Customer loyalty tier for an order.
23
+ - `apply_discount(amount_usd: int, tier: str) -> int`: Apply the order customer's loyalty discount to a USD amount.
24
+ - `net_revenue_usd(order_id: int) -> int`: Net USD revenue after loyalty discount and refunds.
25
+ - `to_local(amount_usd: int, currency: str) -> int`: Convert a USD integer amount to a local-currency integer.
26
+ - `inventory_position(product_id: int, region: str) -> int`: Available inventory position: on_hand - reserved + inbound.
27
+ - `product_lead_time(product_id: int) -> int`: Supplier lead time in days for a product.
28
+ - `product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int`: Product id with the highest units sold in a region/category/month window.
29
+ - `units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int`: Units sold for one product in a region and month window.
30
+ - `tickets_for_orders(order_ids: list[int], severity: str) -> list[int]`: Support ticket ids for given orders and severity.
31
+ - `ticket_order_id(ticket_id: int) -> int`: Order id associated with a support ticket.
32
+ - `sla_breached(ticket_id: int, first_response_limit_hours: int, resolution_limit_hours: int) -> bool`: Whether a support ticket breaches first-response or resolution SLA.
33
+ - `delayed_orders(order_ids: list[int]) -> list[int]`: Subset of order ids whose ship_days exceeded promised_days.
34
+ - `unique_customers(order_ids: list[int]) -> list[int]`: Unique customer ids among the given orders.
35
+ - `count_items(values: list) -> int`: Length of a list.
36
+ - `sum_values(values: list[int]) -> int`: Sum a list of integers.
37
+ - `count_true(values: list[bool]) -> int`: Count true values.
38
+ - `count_below(values: list[int], threshold: int) -> int`: Count values below a threshold.
harbor/tasks/v3_depth1_currency_lookup_t1/task.toml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+
3
+ [task]
4
+ name = "mindlab/v3_depth1_currency_lookup_t1"
5
+ description = "FlowBench v3 public task metadata. Public verifier is smoke-only."
6
+ authors = [{ name = "Mind Lab", email = "contact@mindlab.ltd" }]
7
+ keywords = ["flowbench", "tool-use", "data-orchestration", "operations"]
8
+
9
+ [metadata]
10
+ benchmark = "FlowBench-v3"
11
+ split = "public-task-only"
12
+ category = "data-processing"
13
+ depth = 1
14
+
15
+ [verifier]
16
+ timeout_sec = 120.0
17
+
18
+ [agent]
19
+ timeout_sec = 900.0
20
+
21
+ [environment]
22
+ network_mode = "no-network"
23
+ build_timeout_sec = 600.0
24
+ os = "linux"
25
+ cpus = 1
26
+ memory_mb = 2048
27
+ storage_mb = 2048
28
+ gpus = 0
harbor/tasks/v3_depth1_currency_lookup_t1/tests/check_output_shape.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import json
5
+ import os
6
+ import re
7
+ from pathlib import Path
8
+
9
+
10
+ def write_reward(score: float, diagnostic: str) -> None:
11
+ log_dir = Path(os.environ.get("LOG_DIR", "/logs/verifier"))
12
+ log_dir.mkdir(parents=True, exist_ok=True)
13
+ (log_dir / "reward.txt").write_text(f"{score:.6g}\n")
14
+ (log_dir / "reward.json").write_text(
15
+ json.dumps({"reward": score, "smoke_only": True}, indent=2) + "\n"
16
+ )
17
+ (log_dir / "diagnostic.txt").write_text(diagnostic + "\n")
18
+
19
+
20
+ def main() -> int:
21
+ app_dir = Path(os.environ.get("APP_DIR", "/app"))
22
+ task = json.loads((app_dir / "task.json").read_text())
23
+ answer_path = app_dir / "answer.txt"
24
+ if not answer_path.exists():
25
+ write_reward(0.0, "missing /app/answer.txt")
26
+ return 1
27
+
28
+ got = answer_path.read_text().strip()
29
+ if task["answer_format"] == "exact integer":
30
+ ok = bool(re.fullmatch(r"-?\d+", got))
31
+ diagnostic = "valid integer smoke output" if ok else f"not an exact integer: {got!r}"
32
+ else:
33
+ ok = bool(re.fullmatch(r"[A-Za-z]+", got))
34
+ diagnostic = "valid code smoke output" if ok else f"not an exact code: {got!r}"
35
+
36
+ # This is intentionally not official scoring; it only verifies I/O shape.
37
+ write_reward(1.0 if ok else 0.0, diagnostic)
38
+ return 0 if ok else 1
39
+
40
+
41
+ if __name__ == "__main__":
42
+ raise SystemExit(main())
harbor/tasks/v3_depth1_currency_lookup_t1/tests/test.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -u
3
+ python /tests/check_output_shape.py
harbor/tasks/v3_depth1_currency_lookup_t10/environment/Dockerfile ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+ WORKDIR /app
3
+ COPY flowbench_tools.py /app/flowbench_tools.py
4
+ COPY task.json /app/task.json
harbor/tasks/v3_depth1_currency_lookup_t10/environment/flowbench_tools.py ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Deterministic FlowBench v3 tools. This file contains no task answers."""
2
+
3
+
4
+ REGIONS = ["NA", "EU", "APAC", "LATAM"]
5
+ CATEGORIES = ["A", "B", "C", "D"]
6
+ CURRENCIES = {"NA": "USD", "EU": "EUR", "APAC": "JPY", "LATAM": "BRL"}
7
+ FX_TO_USD_BP = {"USD": 10000, "EUR": 10900, "JPY": 67, "BRL": 1850}
8
+ TIERS = ["std", "gold", "plat"]
9
+ DISCOUNT_PCT = {"std": 0, "gold": 10, "plat": 20}
10
+ CHANNELS = ["web", "store", "partner"]
11
+ MONTHS = [202601, 202602, 202603, 202604, 202605, 202606]
12
+
13
+ N_CUSTOMERS = 72
14
+ N_PRODUCTS = 48
15
+ N_ORDERS = 720
16
+ N_TICKETS = 260
17
+ N_RETURNS = 180
18
+
19
+
20
+ def _h(*xs):
21
+ import hashlib
22
+ s = "|".join(str(x) for x in xs).encode()
23
+ return int.from_bytes(hashlib.sha256(s).digest()[:8], "big") & 0x7FFFFFFF
24
+
25
+
26
+ def build_data():
27
+ customers = []
28
+ for cid in range(N_CUSTOMERS):
29
+ region = REGIONS[_h("region", cid) % len(REGIONS)]
30
+ customers.append({
31
+ "customer_id": cid,
32
+ "region": region,
33
+ "tier": TIERS[_h("tier", cid) % len(TIERS)],
34
+ "segment": ["consumer", "smb", "enterprise"][_h("segment", cid) % 3],
35
+ })
36
+
37
+ products = []
38
+ for pid in range(N_PRODUCTS):
39
+ cat = CATEGORIES[_h("cat", pid) % len(CATEGORIES)]
40
+ unit_price = 12 + _h("price", pid) % 240
41
+ cogs = unit_price * (45 + _h("margin", pid) % 35) // 100
42
+ products.append({
43
+ "product_id": pid,
44
+ "category": cat,
45
+ "unit_price_usd": unit_price,
46
+ "unit_cogs_usd": cogs,
47
+ "lead_time_days": 3 + _h("lead", pid) % 18,
48
+ })
49
+
50
+ inventory = []
51
+ for pid in range(N_PRODUCTS):
52
+ for region in REGIONS:
53
+ inventory.append({
54
+ "product_id": pid,
55
+ "region": region,
56
+ "on_hand": 10 + _h("onhand", pid, region) % 140,
57
+ "reserved": _h("reserved", pid, region) % 28,
58
+ "inbound": _h("inbound", pid, region) % 85,
59
+ })
60
+
61
+ orders = []
62
+ for oid in range(N_ORDERS):
63
+ customer_id = _h("ocust", oid) % N_CUSTOMERS
64
+ product_id = _h("oprod", oid) % N_PRODUCTS
65
+ month = MONTHS[_h("month", oid) % len(MONTHS)]
66
+ qty = 1 + _h("qty", oid) % 9
67
+ ship_days = 1 + _h("shipdays", oid) % 16
68
+ promised_days = 3 + _h("promise", oid) % 9
69
+ status = ["paid", "paid", "paid", "paid", "cancelled", "refunded"][
70
+ _h("status", oid) % 6]
71
+ orders.append({
72
+ "order_id": oid,
73
+ "customer_id": customer_id,
74
+ "product_id": product_id,
75
+ "month": month,
76
+ "qty": qty,
77
+ "status": status,
78
+ "channel": CHANNELS[_h("channel", oid) % len(CHANNELS)],
79
+ "ship_days": ship_days,
80
+ "promised_days": promised_days,
81
+ })
82
+
83
+ returns = []
84
+ for rid in range(N_RETURNS):
85
+ oid = _h("roid", rid) % N_ORDERS
86
+ order = orders[oid]
87
+ if order["status"] == "cancelled":
88
+ continue
89
+ returned_qty = 1 + _h("rqty", rid) % max(1, order["qty"])
90
+ reason = ["defect", "late", "changed_mind", "wrong_item"][_h("reason", rid) % 4]
91
+ returns.append({
92
+ "return_id": rid,
93
+ "order_id": oid,
94
+ "month": MONTHS[_h("rmonth", rid) % len(MONTHS)],
95
+ "returned_qty": returned_qty,
96
+ "reason": reason,
97
+ })
98
+
99
+ tickets = []
100
+ for tid in range(N_TICKETS):
101
+ oid = _h("toid", tid) % N_ORDERS
102
+ severity = ["low", "medium", "high", "critical"][_h("sev", tid) % 4]
103
+ opened = MONTHS[_h("tmonth", tid) % len(MONTHS)]
104
+ first_response_hours = 1 + _h("resp", tid) % 96
105
+ resolution_hours = first_response_hours + _h("res", tid) % 240
106
+ tickets.append({
107
+ "ticket_id": tid,
108
+ "order_id": oid,
109
+ "opened_month": opened,
110
+ "severity": severity,
111
+ "first_response_hours": first_response_hours,
112
+ "resolution_hours": resolution_hours,
113
+ })
114
+
115
+ return {
116
+ "customers": customers,
117
+ "products": products,
118
+ "inventory": inventory,
119
+ "orders": orders,
120
+ "returns": returns,
121
+ "tickets": tickets,
122
+ "fx_to_usd_bp": FX_TO_USD_BP,
123
+ }
124
+
125
+
126
+ DATA = build_data()
127
+ CUSTOMERS = {c["customer_id"]: c for c in DATA["customers"]}
128
+ PRODUCTS = {p["product_id"]: p for p in DATA["products"]}
129
+ ORDERS = {o["order_id"]: o for o in DATA["orders"]}
130
+
131
+
132
+ def region_currency(region: str) -> str:
133
+ return CURRENCIES[region]
134
+
135
+
136
+ def get_orders(region: str, category: str, month_start: int, month_end: int) -> list:
137
+ """Paid/refunded order ids in a region/category/month window."""
138
+ out = []
139
+ for o in DATA["orders"]:
140
+ if o["status"] not in ("paid", "refunded"):
141
+ continue
142
+ c = CUSTOMERS[o["customer_id"]]
143
+ p = PRODUCTS[o["product_id"]]
144
+ if c["region"] == region and p["category"] == category and month_start <= o["month"] <= month_end:
145
+ out.append(o["order_id"])
146
+ return sorted(out)
147
+
148
+
149
+ def order_gross_usd(order_id: int) -> int:
150
+ o = ORDERS[order_id]
151
+ p = PRODUCTS[o["product_id"]]
152
+ return o["qty"] * p["unit_price_usd"]
153
+
154
+
155
+ def order_margin_usd(order_id: int) -> int:
156
+ o = ORDERS[order_id]
157
+ p = PRODUCTS[o["product_id"]]
158
+ return o["qty"] * (p["unit_price_usd"] - p["unit_cogs_usd"])
159
+
160
+
161
+ def refund_usd(order_id: int) -> int:
162
+ o = ORDERS[order_id]
163
+ p = PRODUCTS[o["product_id"]]
164
+ qty = sum(r["returned_qty"] for r in DATA["returns"] if r["order_id"] == order_id)
165
+ qty = min(qty, o["qty"])
166
+ return qty * p["unit_price_usd"]
167
+
168
+
169
+ def customer_tier(order_id: int) -> str:
170
+ o = ORDERS[order_id]
171
+ return CUSTOMERS[o["customer_id"]]["tier"]
172
+
173
+
174
+ def apply_discount(amount_usd: int, tier: str) -> int:
175
+ return amount_usd * (100 - DISCOUNT_PCT[tier]) // 100
176
+
177
+
178
+ def net_revenue_usd(order_id: int) -> int:
179
+ gross = apply_discount(order_gross_usd(order_id), customer_tier(order_id))
180
+ return max(0, gross - refund_usd(order_id))
181
+
182
+
183
+ def to_local(amount_usd: int, currency: str) -> int:
184
+ return amount_usd * 10000 // FX_TO_USD_BP[currency]
185
+
186
+
187
+ def inventory_position(product_id: int, region: str) -> int:
188
+ row = next(x for x in DATA["inventory"]
189
+ if x["product_id"] == product_id and x["region"] == region)
190
+ return row["on_hand"] - row["reserved"] + row["inbound"]
191
+
192
+
193
+ def product_lead_time(product_id: int) -> int:
194
+ return PRODUCTS[product_id]["lead_time_days"]
195
+
196
+
197
+ def product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int:
198
+ totals = {}
199
+ for oid in get_orders(region, category, month_start, month_end):
200
+ o = ORDERS[oid]
201
+ totals[o["product_id"]] = totals.get(o["product_id"], 0) + o["qty"]
202
+ if not totals:
203
+ return -1
204
+ return min((-qty, pid) for pid, qty in totals.items())[1]
205
+
206
+
207
+ def units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int:
208
+ total = 0
209
+ for o in DATA["orders"]:
210
+ if o["product_id"] != product_id or o["status"] not in ("paid", "refunded"):
211
+ continue
212
+ c = CUSTOMERS[o["customer_id"]]
213
+ if c["region"] == region and month_start <= o["month"] <= month_end:
214
+ total += o["qty"]
215
+ return total
216
+
217
+
218
+ def tickets_for_orders(order_ids: list, severity: str) -> list:
219
+ s = set(order_ids)
220
+ return sorted(t["ticket_id"] for t in DATA["tickets"]
221
+ if t["order_id"] in s and t["severity"] == severity)
222
+
223
+
224
+ def ticket_order_id(ticket_id: int) -> int:
225
+ return next(t["order_id"] for t in DATA["tickets"] if t["ticket_id"] == ticket_id)
226
+
227
+
228
+ def sla_breached(ticket_id: int, first_response_limit_hours: int,
229
+ resolution_limit_hours: int) -> bool:
230
+ t = next(x for x in DATA["tickets"] if x["ticket_id"] == ticket_id)
231
+ return (t["first_response_hours"] > first_response_limit_hours or
232
+ t["resolution_hours"] > resolution_limit_hours)
233
+
234
+
235
+ def delayed_orders(order_ids: list) -> list:
236
+ s = set(order_ids)
237
+ return sorted(o["order_id"] for o in DATA["orders"]
238
+ if o["order_id"] in s and o["ship_days"] > o["promised_days"])
239
+
240
+
241
+ def unique_customers(order_ids: list) -> list:
242
+ return sorted({ORDERS[oid]["customer_id"] for oid in order_ids})
243
+
244
+
245
+ def count_items(values: list) -> int:
246
+ return len(values)
247
+
248
+
249
+ def sum_values(values: list) -> int:
250
+ return sum(values)
251
+
252
+
253
+ def count_true(values: list) -> int:
254
+ return sum(1 for v in values if bool(v))
255
+
256
+
257
+ def count_below(values: list, threshold: int) -> int:
258
+ return sum(1 for v in values if v < threshold)
259
+
260
+
261
+ TOOLS = {
262
+ "region_currency": ("region_currency(region: str) -> str",
263
+ "ISO currency code for a region.", region_currency),
264
+ "get_orders": ("get_orders(region: str, category: str, month_start: int, month_end: int) -> list[int]",
265
+ "Paid/refunded order ids for a region, product category, and inclusive month window.",
266
+ get_orders),
267
+ "order_gross_usd": ("order_gross_usd(order_id: int) -> int",
268
+ "Gross order revenue in USD before discounts/refunds.", order_gross_usd),
269
+ "order_margin_usd": ("order_margin_usd(order_id: int) -> int",
270
+ "Gross order margin in USD before discounts/refunds.", order_margin_usd),
271
+ "refund_usd": ("refund_usd(order_id: int) -> int",
272
+ "Refund amount in USD for returned quantity on an order.", refund_usd),
273
+ "customer_tier": ("customer_tier(order_id: int) -> str",
274
+ "Customer loyalty tier for an order.", customer_tier),
275
+ "apply_discount": ("apply_discount(amount_usd: int, tier: str) -> int",
276
+ "Apply the order customer's loyalty discount to a USD amount.", apply_discount),
277
+ "net_revenue_usd": ("net_revenue_usd(order_id: int) -> int",
278
+ "Net USD revenue after loyalty discount and refunds.", net_revenue_usd),
279
+ "to_local": ("to_local(amount_usd: int, currency: str) -> int",
280
+ "Convert a USD integer amount to a local-currency integer.", to_local),
281
+ "inventory_position": ("inventory_position(product_id: int, region: str) -> int",
282
+ "Available inventory position: on_hand - reserved + inbound.",
283
+ inventory_position),
284
+ "product_lead_time": ("product_lead_time(product_id: int) -> int",
285
+ "Supplier lead time in days for a product.", product_lead_time),
286
+ "product_id_for_top_seller": (
287
+ "product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int",
288
+ "Product id with the highest units sold in a region/category/month window.",
289
+ product_id_for_top_seller),
290
+ "units_sold": ("units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int",
291
+ "Units sold for one product in a region and month window.", units_sold),
292
+ "tickets_for_orders": ("tickets_for_orders(order_ids: list[int], severity: str) -> list[int]",
293
+ "Support ticket ids for given orders and severity.", tickets_for_orders),
294
+ "ticket_order_id": ("ticket_order_id(ticket_id: int) -> int",
295
+ "Order id associated with a support ticket.", ticket_order_id),
296
+ "sla_breached": (
297
+ "sla_breached(ticket_id: int, first_response_limit_hours: int, resolution_limit_hours: int) -> bool",
298
+ "Whether a support ticket breaches first-response or resolution SLA.",
299
+ sla_breached),
300
+ "delayed_orders": ("delayed_orders(order_ids: list[int]) -> list[int]",
301
+ "Subset of order ids whose ship_days exceeded promised_days.", delayed_orders),
302
+ "unique_customers": ("unique_customers(order_ids: list[int]) -> list[int]",
303
+ "Unique customer ids among the given orders.", unique_customers),
304
+ "count_items": ("count_items(values: list) -> int", "Length of a list.", count_items),
305
+ "sum_values": ("sum_values(values: list[int]) -> int", "Sum a list of integers.", sum_values),
306
+ "count_true": ("count_true(values: list[bool]) -> int", "Count true values.", count_true),
307
+ "count_below": ("count_below(values: list[int], threshold: int) -> int",
308
+ "Count values below a threshold.", count_below),
309
+ }
310
+
311
+ __all__ = [name for name in TOOLS.keys()] + ['TOOLS']
harbor/tasks/v3_depth1_currency_lookup_t10/environment/task.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "v3_depth1_currency_lookup_t10",
3
+ "depth": 1,
4
+ "family": "currency_lookup",
5
+ "params": {
6
+ "region": "APAC",
7
+ "category": "B",
8
+ "month_start": 202604,
9
+ "month_end": 202606
10
+ },
11
+ "question": "What ISO currency code is used for the APAC region? Report only the code.",
12
+ "answer_format": "exact code"
13
+ }
harbor/tasks/v3_depth1_currency_lookup_t10/instruction.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FlowBench v3 Public Task
2
+
3
+ You are in `/app`. The file `/app/flowbench_tools.py` contains deterministic
4
+ Python tools over a synthetic business-operations dataset. Use those tools
5
+ to compute the requested value, then write the final output to
6
+ `/app/answer.txt`.
7
+
8
+ Required output:
9
+ - `/app/answer.txt` must contain only the exact code.
10
+ - Use integer arithmetic for currency and counts. Do not use floating point
11
+ arithmetic.
12
+
13
+ Task:
14
+ What ISO currency code is used for the APAC region? Report only the code.
15
+
16
+ Available tools:
17
+ - `region_currency(region: str) -> str`: ISO currency code for a region.
18
+ - `get_orders(region: str, category: str, month_start: int, month_end: int) -> list[int]`: Paid/refunded order ids for a region, product category, and inclusive month window.
19
+ - `order_gross_usd(order_id: int) -> int`: Gross order revenue in USD before discounts/refunds.
20
+ - `order_margin_usd(order_id: int) -> int`: Gross order margin in USD before discounts/refunds.
21
+ - `refund_usd(order_id: int) -> int`: Refund amount in USD for returned quantity on an order.
22
+ - `customer_tier(order_id: int) -> str`: Customer loyalty tier for an order.
23
+ - `apply_discount(amount_usd: int, tier: str) -> int`: Apply the order customer's loyalty discount to a USD amount.
24
+ - `net_revenue_usd(order_id: int) -> int`: Net USD revenue after loyalty discount and refunds.
25
+ - `to_local(amount_usd: int, currency: str) -> int`: Convert a USD integer amount to a local-currency integer.
26
+ - `inventory_position(product_id: int, region: str) -> int`: Available inventory position: on_hand - reserved + inbound.
27
+ - `product_lead_time(product_id: int) -> int`: Supplier lead time in days for a product.
28
+ - `product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int`: Product id with the highest units sold in a region/category/month window.
29
+ - `units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int`: Units sold for one product in a region and month window.
30
+ - `tickets_for_orders(order_ids: list[int], severity: str) -> list[int]`: Support ticket ids for given orders and severity.
31
+ - `ticket_order_id(ticket_id: int) -> int`: Order id associated with a support ticket.
32
+ - `sla_breached(ticket_id: int, first_response_limit_hours: int, resolution_limit_hours: int) -> bool`: Whether a support ticket breaches first-response or resolution SLA.
33
+ - `delayed_orders(order_ids: list[int]) -> list[int]`: Subset of order ids whose ship_days exceeded promised_days.
34
+ - `unique_customers(order_ids: list[int]) -> list[int]`: Unique customer ids among the given orders.
35
+ - `count_items(values: list) -> int`: Length of a list.
36
+ - `sum_values(values: list[int]) -> int`: Sum a list of integers.
37
+ - `count_true(values: list[bool]) -> int`: Count true values.
38
+ - `count_below(values: list[int], threshold: int) -> int`: Count values below a threshold.
harbor/tasks/v3_depth1_currency_lookup_t10/task.toml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+
3
+ [task]
4
+ name = "mindlab/v3_depth1_currency_lookup_t10"
5
+ description = "FlowBench v3 public task metadata. Public verifier is smoke-only."
6
+ authors = [{ name = "Mind Lab", email = "contact@mindlab.ltd" }]
7
+ keywords = ["flowbench", "tool-use", "data-orchestration", "operations"]
8
+
9
+ [metadata]
10
+ benchmark = "FlowBench-v3"
11
+ split = "public-task-only"
12
+ category = "data-processing"
13
+ depth = 1
14
+
15
+ [verifier]
16
+ timeout_sec = 120.0
17
+
18
+ [agent]
19
+ timeout_sec = 900.0
20
+
21
+ [environment]
22
+ network_mode = "no-network"
23
+ build_timeout_sec = 600.0
24
+ os = "linux"
25
+ cpus = 1
26
+ memory_mb = 2048
27
+ storage_mb = 2048
28
+ gpus = 0
harbor/tasks/v3_depth1_currency_lookup_t10/tests/check_output_shape.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import json
5
+ import os
6
+ import re
7
+ from pathlib import Path
8
+
9
+
10
+ def write_reward(score: float, diagnostic: str) -> None:
11
+ log_dir = Path(os.environ.get("LOG_DIR", "/logs/verifier"))
12
+ log_dir.mkdir(parents=True, exist_ok=True)
13
+ (log_dir / "reward.txt").write_text(f"{score:.6g}\n")
14
+ (log_dir / "reward.json").write_text(
15
+ json.dumps({"reward": score, "smoke_only": True}, indent=2) + "\n"
16
+ )
17
+ (log_dir / "diagnostic.txt").write_text(diagnostic + "\n")
18
+
19
+
20
+ def main() -> int:
21
+ app_dir = Path(os.environ.get("APP_DIR", "/app"))
22
+ task = json.loads((app_dir / "task.json").read_text())
23
+ answer_path = app_dir / "answer.txt"
24
+ if not answer_path.exists():
25
+ write_reward(0.0, "missing /app/answer.txt")
26
+ return 1
27
+
28
+ got = answer_path.read_text().strip()
29
+ if task["answer_format"] == "exact integer":
30
+ ok = bool(re.fullmatch(r"-?\d+", got))
31
+ diagnostic = "valid integer smoke output" if ok else f"not an exact integer: {got!r}"
32
+ else:
33
+ ok = bool(re.fullmatch(r"[A-Za-z]+", got))
34
+ diagnostic = "valid code smoke output" if ok else f"not an exact code: {got!r}"
35
+
36
+ # This is intentionally not official scoring; it only verifies I/O shape.
37
+ write_reward(1.0 if ok else 0.0, diagnostic)
38
+ return 0 if ok else 1
39
+
40
+
41
+ if __name__ == "__main__":
42
+ raise SystemExit(main())
harbor/tasks/v3_depth1_currency_lookup_t10/tests/test.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -u
3
+ python /tests/check_output_shape.py
harbor/tasks/v3_depth1_currency_lookup_t11/environment/Dockerfile ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+ WORKDIR /app
3
+ COPY flowbench_tools.py /app/flowbench_tools.py
4
+ COPY task.json /app/task.json
harbor/tasks/v3_depth1_currency_lookup_t11/environment/flowbench_tools.py ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Deterministic FlowBench v3 tools. This file contains no task answers."""
2
+
3
+
4
+ REGIONS = ["NA", "EU", "APAC", "LATAM"]
5
+ CATEGORIES = ["A", "B", "C", "D"]
6
+ CURRENCIES = {"NA": "USD", "EU": "EUR", "APAC": "JPY", "LATAM": "BRL"}
7
+ FX_TO_USD_BP = {"USD": 10000, "EUR": 10900, "JPY": 67, "BRL": 1850}
8
+ TIERS = ["std", "gold", "plat"]
9
+ DISCOUNT_PCT = {"std": 0, "gold": 10, "plat": 20}
10
+ CHANNELS = ["web", "store", "partner"]
11
+ MONTHS = [202601, 202602, 202603, 202604, 202605, 202606]
12
+
13
+ N_CUSTOMERS = 72
14
+ N_PRODUCTS = 48
15
+ N_ORDERS = 720
16
+ N_TICKETS = 260
17
+ N_RETURNS = 180
18
+
19
+
20
+ def _h(*xs):
21
+ import hashlib
22
+ s = "|".join(str(x) for x in xs).encode()
23
+ return int.from_bytes(hashlib.sha256(s).digest()[:8], "big") & 0x7FFFFFFF
24
+
25
+
26
+ def build_data():
27
+ customers = []
28
+ for cid in range(N_CUSTOMERS):
29
+ region = REGIONS[_h("region", cid) % len(REGIONS)]
30
+ customers.append({
31
+ "customer_id": cid,
32
+ "region": region,
33
+ "tier": TIERS[_h("tier", cid) % len(TIERS)],
34
+ "segment": ["consumer", "smb", "enterprise"][_h("segment", cid) % 3],
35
+ })
36
+
37
+ products = []
38
+ for pid in range(N_PRODUCTS):
39
+ cat = CATEGORIES[_h("cat", pid) % len(CATEGORIES)]
40
+ unit_price = 12 + _h("price", pid) % 240
41
+ cogs = unit_price * (45 + _h("margin", pid) % 35) // 100
42
+ products.append({
43
+ "product_id": pid,
44
+ "category": cat,
45
+ "unit_price_usd": unit_price,
46
+ "unit_cogs_usd": cogs,
47
+ "lead_time_days": 3 + _h("lead", pid) % 18,
48
+ })
49
+
50
+ inventory = []
51
+ for pid in range(N_PRODUCTS):
52
+ for region in REGIONS:
53
+ inventory.append({
54
+ "product_id": pid,
55
+ "region": region,
56
+ "on_hand": 10 + _h("onhand", pid, region) % 140,
57
+ "reserved": _h("reserved", pid, region) % 28,
58
+ "inbound": _h("inbound", pid, region) % 85,
59
+ })
60
+
61
+ orders = []
62
+ for oid in range(N_ORDERS):
63
+ customer_id = _h("ocust", oid) % N_CUSTOMERS
64
+ product_id = _h("oprod", oid) % N_PRODUCTS
65
+ month = MONTHS[_h("month", oid) % len(MONTHS)]
66
+ qty = 1 + _h("qty", oid) % 9
67
+ ship_days = 1 + _h("shipdays", oid) % 16
68
+ promised_days = 3 + _h("promise", oid) % 9
69
+ status = ["paid", "paid", "paid", "paid", "cancelled", "refunded"][
70
+ _h("status", oid) % 6]
71
+ orders.append({
72
+ "order_id": oid,
73
+ "customer_id": customer_id,
74
+ "product_id": product_id,
75
+ "month": month,
76
+ "qty": qty,
77
+ "status": status,
78
+ "channel": CHANNELS[_h("channel", oid) % len(CHANNELS)],
79
+ "ship_days": ship_days,
80
+ "promised_days": promised_days,
81
+ })
82
+
83
+ returns = []
84
+ for rid in range(N_RETURNS):
85
+ oid = _h("roid", rid) % N_ORDERS
86
+ order = orders[oid]
87
+ if order["status"] == "cancelled":
88
+ continue
89
+ returned_qty = 1 + _h("rqty", rid) % max(1, order["qty"])
90
+ reason = ["defect", "late", "changed_mind", "wrong_item"][_h("reason", rid) % 4]
91
+ returns.append({
92
+ "return_id": rid,
93
+ "order_id": oid,
94
+ "month": MONTHS[_h("rmonth", rid) % len(MONTHS)],
95
+ "returned_qty": returned_qty,
96
+ "reason": reason,
97
+ })
98
+
99
+ tickets = []
100
+ for tid in range(N_TICKETS):
101
+ oid = _h("toid", tid) % N_ORDERS
102
+ severity = ["low", "medium", "high", "critical"][_h("sev", tid) % 4]
103
+ opened = MONTHS[_h("tmonth", tid) % len(MONTHS)]
104
+ first_response_hours = 1 + _h("resp", tid) % 96
105
+ resolution_hours = first_response_hours + _h("res", tid) % 240
106
+ tickets.append({
107
+ "ticket_id": tid,
108
+ "order_id": oid,
109
+ "opened_month": opened,
110
+ "severity": severity,
111
+ "first_response_hours": first_response_hours,
112
+ "resolution_hours": resolution_hours,
113
+ })
114
+
115
+ return {
116
+ "customers": customers,
117
+ "products": products,
118
+ "inventory": inventory,
119
+ "orders": orders,
120
+ "returns": returns,
121
+ "tickets": tickets,
122
+ "fx_to_usd_bp": FX_TO_USD_BP,
123
+ }
124
+
125
+
126
+ DATA = build_data()
127
+ CUSTOMERS = {c["customer_id"]: c for c in DATA["customers"]}
128
+ PRODUCTS = {p["product_id"]: p for p in DATA["products"]}
129
+ ORDERS = {o["order_id"]: o for o in DATA["orders"]}
130
+
131
+
132
+ def region_currency(region: str) -> str:
133
+ return CURRENCIES[region]
134
+
135
+
136
+ def get_orders(region: str, category: str, month_start: int, month_end: int) -> list:
137
+ """Paid/refunded order ids in a region/category/month window."""
138
+ out = []
139
+ for o in DATA["orders"]:
140
+ if o["status"] not in ("paid", "refunded"):
141
+ continue
142
+ c = CUSTOMERS[o["customer_id"]]
143
+ p = PRODUCTS[o["product_id"]]
144
+ if c["region"] == region and p["category"] == category and month_start <= o["month"] <= month_end:
145
+ out.append(o["order_id"])
146
+ return sorted(out)
147
+
148
+
149
+ def order_gross_usd(order_id: int) -> int:
150
+ o = ORDERS[order_id]
151
+ p = PRODUCTS[o["product_id"]]
152
+ return o["qty"] * p["unit_price_usd"]
153
+
154
+
155
+ def order_margin_usd(order_id: int) -> int:
156
+ o = ORDERS[order_id]
157
+ p = PRODUCTS[o["product_id"]]
158
+ return o["qty"] * (p["unit_price_usd"] - p["unit_cogs_usd"])
159
+
160
+
161
+ def refund_usd(order_id: int) -> int:
162
+ o = ORDERS[order_id]
163
+ p = PRODUCTS[o["product_id"]]
164
+ qty = sum(r["returned_qty"] for r in DATA["returns"] if r["order_id"] == order_id)
165
+ qty = min(qty, o["qty"])
166
+ return qty * p["unit_price_usd"]
167
+
168
+
169
+ def customer_tier(order_id: int) -> str:
170
+ o = ORDERS[order_id]
171
+ return CUSTOMERS[o["customer_id"]]["tier"]
172
+
173
+
174
+ def apply_discount(amount_usd: int, tier: str) -> int:
175
+ return amount_usd * (100 - DISCOUNT_PCT[tier]) // 100
176
+
177
+
178
+ def net_revenue_usd(order_id: int) -> int:
179
+ gross = apply_discount(order_gross_usd(order_id), customer_tier(order_id))
180
+ return max(0, gross - refund_usd(order_id))
181
+
182
+
183
+ def to_local(amount_usd: int, currency: str) -> int:
184
+ return amount_usd * 10000 // FX_TO_USD_BP[currency]
185
+
186
+
187
+ def inventory_position(product_id: int, region: str) -> int:
188
+ row = next(x for x in DATA["inventory"]
189
+ if x["product_id"] == product_id and x["region"] == region)
190
+ return row["on_hand"] - row["reserved"] + row["inbound"]
191
+
192
+
193
+ def product_lead_time(product_id: int) -> int:
194
+ return PRODUCTS[product_id]["lead_time_days"]
195
+
196
+
197
+ def product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int:
198
+ totals = {}
199
+ for oid in get_orders(region, category, month_start, month_end):
200
+ o = ORDERS[oid]
201
+ totals[o["product_id"]] = totals.get(o["product_id"], 0) + o["qty"]
202
+ if not totals:
203
+ return -1
204
+ return min((-qty, pid) for pid, qty in totals.items())[1]
205
+
206
+
207
+ def units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int:
208
+ total = 0
209
+ for o in DATA["orders"]:
210
+ if o["product_id"] != product_id or o["status"] not in ("paid", "refunded"):
211
+ continue
212
+ c = CUSTOMERS[o["customer_id"]]
213
+ if c["region"] == region and month_start <= o["month"] <= month_end:
214
+ total += o["qty"]
215
+ return total
216
+
217
+
218
+ def tickets_for_orders(order_ids: list, severity: str) -> list:
219
+ s = set(order_ids)
220
+ return sorted(t["ticket_id"] for t in DATA["tickets"]
221
+ if t["order_id"] in s and t["severity"] == severity)
222
+
223
+
224
+ def ticket_order_id(ticket_id: int) -> int:
225
+ return next(t["order_id"] for t in DATA["tickets"] if t["ticket_id"] == ticket_id)
226
+
227
+
228
+ def sla_breached(ticket_id: int, first_response_limit_hours: int,
229
+ resolution_limit_hours: int) -> bool:
230
+ t = next(x for x in DATA["tickets"] if x["ticket_id"] == ticket_id)
231
+ return (t["first_response_hours"] > first_response_limit_hours or
232
+ t["resolution_hours"] > resolution_limit_hours)
233
+
234
+
235
+ def delayed_orders(order_ids: list) -> list:
236
+ s = set(order_ids)
237
+ return sorted(o["order_id"] for o in DATA["orders"]
238
+ if o["order_id"] in s and o["ship_days"] > o["promised_days"])
239
+
240
+
241
+ def unique_customers(order_ids: list) -> list:
242
+ return sorted({ORDERS[oid]["customer_id"] for oid in order_ids})
243
+
244
+
245
+ def count_items(values: list) -> int:
246
+ return len(values)
247
+
248
+
249
+ def sum_values(values: list) -> int:
250
+ return sum(values)
251
+
252
+
253
+ def count_true(values: list) -> int:
254
+ return sum(1 for v in values if bool(v))
255
+
256
+
257
+ def count_below(values: list, threshold: int) -> int:
258
+ return sum(1 for v in values if v < threshold)
259
+
260
+
261
+ TOOLS = {
262
+ "region_currency": ("region_currency(region: str) -> str",
263
+ "ISO currency code for a region.", region_currency),
264
+ "get_orders": ("get_orders(region: str, category: str, month_start: int, month_end: int) -> list[int]",
265
+ "Paid/refunded order ids for a region, product category, and inclusive month window.",
266
+ get_orders),
267
+ "order_gross_usd": ("order_gross_usd(order_id: int) -> int",
268
+ "Gross order revenue in USD before discounts/refunds.", order_gross_usd),
269
+ "order_margin_usd": ("order_margin_usd(order_id: int) -> int",
270
+ "Gross order margin in USD before discounts/refunds.", order_margin_usd),
271
+ "refund_usd": ("refund_usd(order_id: int) -> int",
272
+ "Refund amount in USD for returned quantity on an order.", refund_usd),
273
+ "customer_tier": ("customer_tier(order_id: int) -> str",
274
+ "Customer loyalty tier for an order.", customer_tier),
275
+ "apply_discount": ("apply_discount(amount_usd: int, tier: str) -> int",
276
+ "Apply the order customer's loyalty discount to a USD amount.", apply_discount),
277
+ "net_revenue_usd": ("net_revenue_usd(order_id: int) -> int",
278
+ "Net USD revenue after loyalty discount and refunds.", net_revenue_usd),
279
+ "to_local": ("to_local(amount_usd: int, currency: str) -> int",
280
+ "Convert a USD integer amount to a local-currency integer.", to_local),
281
+ "inventory_position": ("inventory_position(product_id: int, region: str) -> int",
282
+ "Available inventory position: on_hand - reserved + inbound.",
283
+ inventory_position),
284
+ "product_lead_time": ("product_lead_time(product_id: int) -> int",
285
+ "Supplier lead time in days for a product.", product_lead_time),
286
+ "product_id_for_top_seller": (
287
+ "product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int",
288
+ "Product id with the highest units sold in a region/category/month window.",
289
+ product_id_for_top_seller),
290
+ "units_sold": ("units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int",
291
+ "Units sold for one product in a region and month window.", units_sold),
292
+ "tickets_for_orders": ("tickets_for_orders(order_ids: list[int], severity: str) -> list[int]",
293
+ "Support ticket ids for given orders and severity.", tickets_for_orders),
294
+ "ticket_order_id": ("ticket_order_id(ticket_id: int) -> int",
295
+ "Order id associated with a support ticket.", ticket_order_id),
296
+ "sla_breached": (
297
+ "sla_breached(ticket_id: int, first_response_limit_hours: int, resolution_limit_hours: int) -> bool",
298
+ "Whether a support ticket breaches first-response or resolution SLA.",
299
+ sla_breached),
300
+ "delayed_orders": ("delayed_orders(order_ids: list[int]) -> list[int]",
301
+ "Subset of order ids whose ship_days exceeded promised_days.", delayed_orders),
302
+ "unique_customers": ("unique_customers(order_ids: list[int]) -> list[int]",
303
+ "Unique customer ids among the given orders.", unique_customers),
304
+ "count_items": ("count_items(values: list) -> int", "Length of a list.", count_items),
305
+ "sum_values": ("sum_values(values: list[int]) -> int", "Sum a list of integers.", sum_values),
306
+ "count_true": ("count_true(values: list[bool]) -> int", "Count true values.", count_true),
307
+ "count_below": ("count_below(values: list[int], threshold: int) -> int",
308
+ "Count values below a threshold.", count_below),
309
+ }
310
+
311
+ __all__ = [name for name in TOOLS.keys()] + ['TOOLS']
harbor/tasks/v3_depth1_currency_lookup_t11/environment/task.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "v3_depth1_currency_lookup_t11",
3
+ "depth": 1,
4
+ "family": "currency_lookup",
5
+ "params": {
6
+ "region": "LATAM",
7
+ "category": "A",
8
+ "month_start": 202601,
9
+ "month_end": 202603
10
+ },
11
+ "question": "What ISO currency code is used for the LATAM region? Report only the code.",
12
+ "answer_format": "exact code"
13
+ }
harbor/tasks/v3_depth1_currency_lookup_t11/instruction.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FlowBench v3 Public Task
2
+
3
+ You are in `/app`. The file `/app/flowbench_tools.py` contains deterministic
4
+ Python tools over a synthetic business-operations dataset. Use those tools
5
+ to compute the requested value, then write the final output to
6
+ `/app/answer.txt`.
7
+
8
+ Required output:
9
+ - `/app/answer.txt` must contain only the exact code.
10
+ - Use integer arithmetic for currency and counts. Do not use floating point
11
+ arithmetic.
12
+
13
+ Task:
14
+ What ISO currency code is used for the LATAM region? Report only the code.
15
+
16
+ Available tools:
17
+ - `region_currency(region: str) -> str`: ISO currency code for a region.
18
+ - `get_orders(region: str, category: str, month_start: int, month_end: int) -> list[int]`: Paid/refunded order ids for a region, product category, and inclusive month window.
19
+ - `order_gross_usd(order_id: int) -> int`: Gross order revenue in USD before discounts/refunds.
20
+ - `order_margin_usd(order_id: int) -> int`: Gross order margin in USD before discounts/refunds.
21
+ - `refund_usd(order_id: int) -> int`: Refund amount in USD for returned quantity on an order.
22
+ - `customer_tier(order_id: int) -> str`: Customer loyalty tier for an order.
23
+ - `apply_discount(amount_usd: int, tier: str) -> int`: Apply the order customer's loyalty discount to a USD amount.
24
+ - `net_revenue_usd(order_id: int) -> int`: Net USD revenue after loyalty discount and refunds.
25
+ - `to_local(amount_usd: int, currency: str) -> int`: Convert a USD integer amount to a local-currency integer.
26
+ - `inventory_position(product_id: int, region: str) -> int`: Available inventory position: on_hand - reserved + inbound.
27
+ - `product_lead_time(product_id: int) -> int`: Supplier lead time in days for a product.
28
+ - `product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int`: Product id with the highest units sold in a region/category/month window.
29
+ - `units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int`: Units sold for one product in a region and month window.
30
+ - `tickets_for_orders(order_ids: list[int], severity: str) -> list[int]`: Support ticket ids for given orders and severity.
31
+ - `ticket_order_id(ticket_id: int) -> int`: Order id associated with a support ticket.
32
+ - `sla_breached(ticket_id: int, first_response_limit_hours: int, resolution_limit_hours: int) -> bool`: Whether a support ticket breaches first-response or resolution SLA.
33
+ - `delayed_orders(order_ids: list[int]) -> list[int]`: Subset of order ids whose ship_days exceeded promised_days.
34
+ - `unique_customers(order_ids: list[int]) -> list[int]`: Unique customer ids among the given orders.
35
+ - `count_items(values: list) -> int`: Length of a list.
36
+ - `sum_values(values: list[int]) -> int`: Sum a list of integers.
37
+ - `count_true(values: list[bool]) -> int`: Count true values.
38
+ - `count_below(values: list[int], threshold: int) -> int`: Count values below a threshold.
harbor/tasks/v3_depth1_currency_lookup_t11/task.toml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+
3
+ [task]
4
+ name = "mindlab/v3_depth1_currency_lookup_t11"
5
+ description = "FlowBench v3 public task metadata. Public verifier is smoke-only."
6
+ authors = [{ name = "Mind Lab", email = "contact@mindlab.ltd" }]
7
+ keywords = ["flowbench", "tool-use", "data-orchestration", "operations"]
8
+
9
+ [metadata]
10
+ benchmark = "FlowBench-v3"
11
+ split = "public-task-only"
12
+ category = "data-processing"
13
+ depth = 1
14
+
15
+ [verifier]
16
+ timeout_sec = 120.0
17
+
18
+ [agent]
19
+ timeout_sec = 900.0
20
+
21
+ [environment]
22
+ network_mode = "no-network"
23
+ build_timeout_sec = 600.0
24
+ os = "linux"
25
+ cpus = 1
26
+ memory_mb = 2048
27
+ storage_mb = 2048
28
+ gpus = 0
harbor/tasks/v3_depth1_currency_lookup_t11/tests/check_output_shape.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import json
5
+ import os
6
+ import re
7
+ from pathlib import Path
8
+
9
+
10
+ def write_reward(score: float, diagnostic: str) -> None:
11
+ log_dir = Path(os.environ.get("LOG_DIR", "/logs/verifier"))
12
+ log_dir.mkdir(parents=True, exist_ok=True)
13
+ (log_dir / "reward.txt").write_text(f"{score:.6g}\n")
14
+ (log_dir / "reward.json").write_text(
15
+ json.dumps({"reward": score, "smoke_only": True}, indent=2) + "\n"
16
+ )
17
+ (log_dir / "diagnostic.txt").write_text(diagnostic + "\n")
18
+
19
+
20
+ def main() -> int:
21
+ app_dir = Path(os.environ.get("APP_DIR", "/app"))
22
+ task = json.loads((app_dir / "task.json").read_text())
23
+ answer_path = app_dir / "answer.txt"
24
+ if not answer_path.exists():
25
+ write_reward(0.0, "missing /app/answer.txt")
26
+ return 1
27
+
28
+ got = answer_path.read_text().strip()
29
+ if task["answer_format"] == "exact integer":
30
+ ok = bool(re.fullmatch(r"-?\d+", got))
31
+ diagnostic = "valid integer smoke output" if ok else f"not an exact integer: {got!r}"
32
+ else:
33
+ ok = bool(re.fullmatch(r"[A-Za-z]+", got))
34
+ diagnostic = "valid code smoke output" if ok else f"not an exact code: {got!r}"
35
+
36
+ # This is intentionally not official scoring; it only verifies I/O shape.
37
+ write_reward(1.0 if ok else 0.0, diagnostic)
38
+ return 0 if ok else 1
39
+
40
+
41
+ if __name__ == "__main__":
42
+ raise SystemExit(main())
harbor/tasks/v3_depth1_currency_lookup_t11/tests/test.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -u
3
+ python /tests/check_output_shape.py
harbor/tasks/v3_depth1_currency_lookup_t12/environment/Dockerfile ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+ WORKDIR /app
3
+ COPY flowbench_tools.py /app/flowbench_tools.py
4
+ COPY task.json /app/task.json
harbor/tasks/v3_depth1_currency_lookup_t12/environment/flowbench_tools.py ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Deterministic FlowBench v3 tools. This file contains no task answers."""
2
+
3
+
4
+ REGIONS = ["NA", "EU", "APAC", "LATAM"]
5
+ CATEGORIES = ["A", "B", "C", "D"]
6
+ CURRENCIES = {"NA": "USD", "EU": "EUR", "APAC": "JPY", "LATAM": "BRL"}
7
+ FX_TO_USD_BP = {"USD": 10000, "EUR": 10900, "JPY": 67, "BRL": 1850}
8
+ TIERS = ["std", "gold", "plat"]
9
+ DISCOUNT_PCT = {"std": 0, "gold": 10, "plat": 20}
10
+ CHANNELS = ["web", "store", "partner"]
11
+ MONTHS = [202601, 202602, 202603, 202604, 202605, 202606]
12
+
13
+ N_CUSTOMERS = 72
14
+ N_PRODUCTS = 48
15
+ N_ORDERS = 720
16
+ N_TICKETS = 260
17
+ N_RETURNS = 180
18
+
19
+
20
+ def _h(*xs):
21
+ import hashlib
22
+ s = "|".join(str(x) for x in xs).encode()
23
+ return int.from_bytes(hashlib.sha256(s).digest()[:8], "big") & 0x7FFFFFFF
24
+
25
+
26
+ def build_data():
27
+ customers = []
28
+ for cid in range(N_CUSTOMERS):
29
+ region = REGIONS[_h("region", cid) % len(REGIONS)]
30
+ customers.append({
31
+ "customer_id": cid,
32
+ "region": region,
33
+ "tier": TIERS[_h("tier", cid) % len(TIERS)],
34
+ "segment": ["consumer", "smb", "enterprise"][_h("segment", cid) % 3],
35
+ })
36
+
37
+ products = []
38
+ for pid in range(N_PRODUCTS):
39
+ cat = CATEGORIES[_h("cat", pid) % len(CATEGORIES)]
40
+ unit_price = 12 + _h("price", pid) % 240
41
+ cogs = unit_price * (45 + _h("margin", pid) % 35) // 100
42
+ products.append({
43
+ "product_id": pid,
44
+ "category": cat,
45
+ "unit_price_usd": unit_price,
46
+ "unit_cogs_usd": cogs,
47
+ "lead_time_days": 3 + _h("lead", pid) % 18,
48
+ })
49
+
50
+ inventory = []
51
+ for pid in range(N_PRODUCTS):
52
+ for region in REGIONS:
53
+ inventory.append({
54
+ "product_id": pid,
55
+ "region": region,
56
+ "on_hand": 10 + _h("onhand", pid, region) % 140,
57
+ "reserved": _h("reserved", pid, region) % 28,
58
+ "inbound": _h("inbound", pid, region) % 85,
59
+ })
60
+
61
+ orders = []
62
+ for oid in range(N_ORDERS):
63
+ customer_id = _h("ocust", oid) % N_CUSTOMERS
64
+ product_id = _h("oprod", oid) % N_PRODUCTS
65
+ month = MONTHS[_h("month", oid) % len(MONTHS)]
66
+ qty = 1 + _h("qty", oid) % 9
67
+ ship_days = 1 + _h("shipdays", oid) % 16
68
+ promised_days = 3 + _h("promise", oid) % 9
69
+ status = ["paid", "paid", "paid", "paid", "cancelled", "refunded"][
70
+ _h("status", oid) % 6]
71
+ orders.append({
72
+ "order_id": oid,
73
+ "customer_id": customer_id,
74
+ "product_id": product_id,
75
+ "month": month,
76
+ "qty": qty,
77
+ "status": status,
78
+ "channel": CHANNELS[_h("channel", oid) % len(CHANNELS)],
79
+ "ship_days": ship_days,
80
+ "promised_days": promised_days,
81
+ })
82
+
83
+ returns = []
84
+ for rid in range(N_RETURNS):
85
+ oid = _h("roid", rid) % N_ORDERS
86
+ order = orders[oid]
87
+ if order["status"] == "cancelled":
88
+ continue
89
+ returned_qty = 1 + _h("rqty", rid) % max(1, order["qty"])
90
+ reason = ["defect", "late", "changed_mind", "wrong_item"][_h("reason", rid) % 4]
91
+ returns.append({
92
+ "return_id": rid,
93
+ "order_id": oid,
94
+ "month": MONTHS[_h("rmonth", rid) % len(MONTHS)],
95
+ "returned_qty": returned_qty,
96
+ "reason": reason,
97
+ })
98
+
99
+ tickets = []
100
+ for tid in range(N_TICKETS):
101
+ oid = _h("toid", tid) % N_ORDERS
102
+ severity = ["low", "medium", "high", "critical"][_h("sev", tid) % 4]
103
+ opened = MONTHS[_h("tmonth", tid) % len(MONTHS)]
104
+ first_response_hours = 1 + _h("resp", tid) % 96
105
+ resolution_hours = first_response_hours + _h("res", tid) % 240
106
+ tickets.append({
107
+ "ticket_id": tid,
108
+ "order_id": oid,
109
+ "opened_month": opened,
110
+ "severity": severity,
111
+ "first_response_hours": first_response_hours,
112
+ "resolution_hours": resolution_hours,
113
+ })
114
+
115
+ return {
116
+ "customers": customers,
117
+ "products": products,
118
+ "inventory": inventory,
119
+ "orders": orders,
120
+ "returns": returns,
121
+ "tickets": tickets,
122
+ "fx_to_usd_bp": FX_TO_USD_BP,
123
+ }
124
+
125
+
126
+ DATA = build_data()
127
+ CUSTOMERS = {c["customer_id"]: c for c in DATA["customers"]}
128
+ PRODUCTS = {p["product_id"]: p for p in DATA["products"]}
129
+ ORDERS = {o["order_id"]: o for o in DATA["orders"]}
130
+
131
+
132
+ def region_currency(region: str) -> str:
133
+ return CURRENCIES[region]
134
+
135
+
136
+ def get_orders(region: str, category: str, month_start: int, month_end: int) -> list:
137
+ """Paid/refunded order ids in a region/category/month window."""
138
+ out = []
139
+ for o in DATA["orders"]:
140
+ if o["status"] not in ("paid", "refunded"):
141
+ continue
142
+ c = CUSTOMERS[o["customer_id"]]
143
+ p = PRODUCTS[o["product_id"]]
144
+ if c["region"] == region and p["category"] == category and month_start <= o["month"] <= month_end:
145
+ out.append(o["order_id"])
146
+ return sorted(out)
147
+
148
+
149
+ def order_gross_usd(order_id: int) -> int:
150
+ o = ORDERS[order_id]
151
+ p = PRODUCTS[o["product_id"]]
152
+ return o["qty"] * p["unit_price_usd"]
153
+
154
+
155
+ def order_margin_usd(order_id: int) -> int:
156
+ o = ORDERS[order_id]
157
+ p = PRODUCTS[o["product_id"]]
158
+ return o["qty"] * (p["unit_price_usd"] - p["unit_cogs_usd"])
159
+
160
+
161
+ def refund_usd(order_id: int) -> int:
162
+ o = ORDERS[order_id]
163
+ p = PRODUCTS[o["product_id"]]
164
+ qty = sum(r["returned_qty"] for r in DATA["returns"] if r["order_id"] == order_id)
165
+ qty = min(qty, o["qty"])
166
+ return qty * p["unit_price_usd"]
167
+
168
+
169
+ def customer_tier(order_id: int) -> str:
170
+ o = ORDERS[order_id]
171
+ return CUSTOMERS[o["customer_id"]]["tier"]
172
+
173
+
174
+ def apply_discount(amount_usd: int, tier: str) -> int:
175
+ return amount_usd * (100 - DISCOUNT_PCT[tier]) // 100
176
+
177
+
178
+ def net_revenue_usd(order_id: int) -> int:
179
+ gross = apply_discount(order_gross_usd(order_id), customer_tier(order_id))
180
+ return max(0, gross - refund_usd(order_id))
181
+
182
+
183
+ def to_local(amount_usd: int, currency: str) -> int:
184
+ return amount_usd * 10000 // FX_TO_USD_BP[currency]
185
+
186
+
187
+ def inventory_position(product_id: int, region: str) -> int:
188
+ row = next(x for x in DATA["inventory"]
189
+ if x["product_id"] == product_id and x["region"] == region)
190
+ return row["on_hand"] - row["reserved"] + row["inbound"]
191
+
192
+
193
+ def product_lead_time(product_id: int) -> int:
194
+ return PRODUCTS[product_id]["lead_time_days"]
195
+
196
+
197
+ def product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int:
198
+ totals = {}
199
+ for oid in get_orders(region, category, month_start, month_end):
200
+ o = ORDERS[oid]
201
+ totals[o["product_id"]] = totals.get(o["product_id"], 0) + o["qty"]
202
+ if not totals:
203
+ return -1
204
+ return min((-qty, pid) for pid, qty in totals.items())[1]
205
+
206
+
207
+ def units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int:
208
+ total = 0
209
+ for o in DATA["orders"]:
210
+ if o["product_id"] != product_id or o["status"] not in ("paid", "refunded"):
211
+ continue
212
+ c = CUSTOMERS[o["customer_id"]]
213
+ if c["region"] == region and month_start <= o["month"] <= month_end:
214
+ total += o["qty"]
215
+ return total
216
+
217
+
218
+ def tickets_for_orders(order_ids: list, severity: str) -> list:
219
+ s = set(order_ids)
220
+ return sorted(t["ticket_id"] for t in DATA["tickets"]
221
+ if t["order_id"] in s and t["severity"] == severity)
222
+
223
+
224
+ def ticket_order_id(ticket_id: int) -> int:
225
+ return next(t["order_id"] for t in DATA["tickets"] if t["ticket_id"] == ticket_id)
226
+
227
+
228
+ def sla_breached(ticket_id: int, first_response_limit_hours: int,
229
+ resolution_limit_hours: int) -> bool:
230
+ t = next(x for x in DATA["tickets"] if x["ticket_id"] == ticket_id)
231
+ return (t["first_response_hours"] > first_response_limit_hours or
232
+ t["resolution_hours"] > resolution_limit_hours)
233
+
234
+
235
+ def delayed_orders(order_ids: list) -> list:
236
+ s = set(order_ids)
237
+ return sorted(o["order_id"] for o in DATA["orders"]
238
+ if o["order_id"] in s and o["ship_days"] > o["promised_days"])
239
+
240
+
241
+ def unique_customers(order_ids: list) -> list:
242
+ return sorted({ORDERS[oid]["customer_id"] for oid in order_ids})
243
+
244
+
245
+ def count_items(values: list) -> int:
246
+ return len(values)
247
+
248
+
249
+ def sum_values(values: list) -> int:
250
+ return sum(values)
251
+
252
+
253
+ def count_true(values: list) -> int:
254
+ return sum(1 for v in values if bool(v))
255
+
256
+
257
+ def count_below(values: list, threshold: int) -> int:
258
+ return sum(1 for v in values if v < threshold)
259
+
260
+
261
+ TOOLS = {
262
+ "region_currency": ("region_currency(region: str) -> str",
263
+ "ISO currency code for a region.", region_currency),
264
+ "get_orders": ("get_orders(region: str, category: str, month_start: int, month_end: int) -> list[int]",
265
+ "Paid/refunded order ids for a region, product category, and inclusive month window.",
266
+ get_orders),
267
+ "order_gross_usd": ("order_gross_usd(order_id: int) -> int",
268
+ "Gross order revenue in USD before discounts/refunds.", order_gross_usd),
269
+ "order_margin_usd": ("order_margin_usd(order_id: int) -> int",
270
+ "Gross order margin in USD before discounts/refunds.", order_margin_usd),
271
+ "refund_usd": ("refund_usd(order_id: int) -> int",
272
+ "Refund amount in USD for returned quantity on an order.", refund_usd),
273
+ "customer_tier": ("customer_tier(order_id: int) -> str",
274
+ "Customer loyalty tier for an order.", customer_tier),
275
+ "apply_discount": ("apply_discount(amount_usd: int, tier: str) -> int",
276
+ "Apply the order customer's loyalty discount to a USD amount.", apply_discount),
277
+ "net_revenue_usd": ("net_revenue_usd(order_id: int) -> int",
278
+ "Net USD revenue after loyalty discount and refunds.", net_revenue_usd),
279
+ "to_local": ("to_local(amount_usd: int, currency: str) -> int",
280
+ "Convert a USD integer amount to a local-currency integer.", to_local),
281
+ "inventory_position": ("inventory_position(product_id: int, region: str) -> int",
282
+ "Available inventory position: on_hand - reserved + inbound.",
283
+ inventory_position),
284
+ "product_lead_time": ("product_lead_time(product_id: int) -> int",
285
+ "Supplier lead time in days for a product.", product_lead_time),
286
+ "product_id_for_top_seller": (
287
+ "product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int",
288
+ "Product id with the highest units sold in a region/category/month window.",
289
+ product_id_for_top_seller),
290
+ "units_sold": ("units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int",
291
+ "Units sold for one product in a region and month window.", units_sold),
292
+ "tickets_for_orders": ("tickets_for_orders(order_ids: list[int], severity: str) -> list[int]",
293
+ "Support ticket ids for given orders and severity.", tickets_for_orders),
294
+ "ticket_order_id": ("ticket_order_id(ticket_id: int) -> int",
295
+ "Order id associated with a support ticket.", ticket_order_id),
296
+ "sla_breached": (
297
+ "sla_breached(ticket_id: int, first_response_limit_hours: int, resolution_limit_hours: int) -> bool",
298
+ "Whether a support ticket breaches first-response or resolution SLA.",
299
+ sla_breached),
300
+ "delayed_orders": ("delayed_orders(order_ids: list[int]) -> list[int]",
301
+ "Subset of order ids whose ship_days exceeded promised_days.", delayed_orders),
302
+ "unique_customers": ("unique_customers(order_ids: list[int]) -> list[int]",
303
+ "Unique customer ids among the given orders.", unique_customers),
304
+ "count_items": ("count_items(values: list) -> int", "Length of a list.", count_items),
305
+ "sum_values": ("sum_values(values: list[int]) -> int", "Sum a list of integers.", sum_values),
306
+ "count_true": ("count_true(values: list[bool]) -> int", "Count true values.", count_true),
307
+ "count_below": ("count_below(values: list[int], threshold: int) -> int",
308
+ "Count values below a threshold.", count_below),
309
+ }
310
+
311
+ __all__ = [name for name in TOOLS.keys()] + ['TOOLS']
harbor/tasks/v3_depth1_currency_lookup_t12/environment/task.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "v3_depth1_currency_lookup_t12",
3
+ "depth": 1,
4
+ "family": "currency_lookup",
5
+ "params": {
6
+ "region": "NA",
7
+ "category": "C",
8
+ "month_start": 202601,
9
+ "month_end": 202606
10
+ },
11
+ "question": "What ISO currency code is used for the NA region? Report only the code.",
12
+ "answer_format": "exact code"
13
+ }
harbor/tasks/v3_depth1_currency_lookup_t12/instruction.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FlowBench v3 Public Task
2
+
3
+ You are in `/app`. The file `/app/flowbench_tools.py` contains deterministic
4
+ Python tools over a synthetic business-operations dataset. Use those tools
5
+ to compute the requested value, then write the final output to
6
+ `/app/answer.txt`.
7
+
8
+ Required output:
9
+ - `/app/answer.txt` must contain only the exact code.
10
+ - Use integer arithmetic for currency and counts. Do not use floating point
11
+ arithmetic.
12
+
13
+ Task:
14
+ What ISO currency code is used for the NA region? Report only the code.
15
+
16
+ Available tools:
17
+ - `region_currency(region: str) -> str`: ISO currency code for a region.
18
+ - `get_orders(region: str, category: str, month_start: int, month_end: int) -> list[int]`: Paid/refunded order ids for a region, product category, and inclusive month window.
19
+ - `order_gross_usd(order_id: int) -> int`: Gross order revenue in USD before discounts/refunds.
20
+ - `order_margin_usd(order_id: int) -> int`: Gross order margin in USD before discounts/refunds.
21
+ - `refund_usd(order_id: int) -> int`: Refund amount in USD for returned quantity on an order.
22
+ - `customer_tier(order_id: int) -> str`: Customer loyalty tier for an order.
23
+ - `apply_discount(amount_usd: int, tier: str) -> int`: Apply the order customer's loyalty discount to a USD amount.
24
+ - `net_revenue_usd(order_id: int) -> int`: Net USD revenue after loyalty discount and refunds.
25
+ - `to_local(amount_usd: int, currency: str) -> int`: Convert a USD integer amount to a local-currency integer.
26
+ - `inventory_position(product_id: int, region: str) -> int`: Available inventory position: on_hand - reserved + inbound.
27
+ - `product_lead_time(product_id: int) -> int`: Supplier lead time in days for a product.
28
+ - `product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int`: Product id with the highest units sold in a region/category/month window.
29
+ - `units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int`: Units sold for one product in a region and month window.
30
+ - `tickets_for_orders(order_ids: list[int], severity: str) -> list[int]`: Support ticket ids for given orders and severity.
31
+ - `ticket_order_id(ticket_id: int) -> int`: Order id associated with a support ticket.
32
+ - `sla_breached(ticket_id: int, first_response_limit_hours: int, resolution_limit_hours: int) -> bool`: Whether a support ticket breaches first-response or resolution SLA.
33
+ - `delayed_orders(order_ids: list[int]) -> list[int]`: Subset of order ids whose ship_days exceeded promised_days.
34
+ - `unique_customers(order_ids: list[int]) -> list[int]`: Unique customer ids among the given orders.
35
+ - `count_items(values: list) -> int`: Length of a list.
36
+ - `sum_values(values: list[int]) -> int`: Sum a list of integers.
37
+ - `count_true(values: list[bool]) -> int`: Count true values.
38
+ - `count_below(values: list[int], threshold: int) -> int`: Count values below a threshold.
harbor/tasks/v3_depth1_currency_lookup_t12/task.toml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+
3
+ [task]
4
+ name = "mindlab/v3_depth1_currency_lookup_t12"
5
+ description = "FlowBench v3 public task metadata. Public verifier is smoke-only."
6
+ authors = [{ name = "Mind Lab", email = "contact@mindlab.ltd" }]
7
+ keywords = ["flowbench", "tool-use", "data-orchestration", "operations"]
8
+
9
+ [metadata]
10
+ benchmark = "FlowBench-v3"
11
+ split = "public-task-only"
12
+ category = "data-processing"
13
+ depth = 1
14
+
15
+ [verifier]
16
+ timeout_sec = 120.0
17
+
18
+ [agent]
19
+ timeout_sec = 900.0
20
+
21
+ [environment]
22
+ network_mode = "no-network"
23
+ build_timeout_sec = 600.0
24
+ os = "linux"
25
+ cpus = 1
26
+ memory_mb = 2048
27
+ storage_mb = 2048
28
+ gpus = 0
harbor/tasks/v3_depth1_currency_lookup_t12/tests/check_output_shape.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import json
5
+ import os
6
+ import re
7
+ from pathlib import Path
8
+
9
+
10
+ def write_reward(score: float, diagnostic: str) -> None:
11
+ log_dir = Path(os.environ.get("LOG_DIR", "/logs/verifier"))
12
+ log_dir.mkdir(parents=True, exist_ok=True)
13
+ (log_dir / "reward.txt").write_text(f"{score:.6g}\n")
14
+ (log_dir / "reward.json").write_text(
15
+ json.dumps({"reward": score, "smoke_only": True}, indent=2) + "\n"
16
+ )
17
+ (log_dir / "diagnostic.txt").write_text(diagnostic + "\n")
18
+
19
+
20
+ def main() -> int:
21
+ app_dir = Path(os.environ.get("APP_DIR", "/app"))
22
+ task = json.loads((app_dir / "task.json").read_text())
23
+ answer_path = app_dir / "answer.txt"
24
+ if not answer_path.exists():
25
+ write_reward(0.0, "missing /app/answer.txt")
26
+ return 1
27
+
28
+ got = answer_path.read_text().strip()
29
+ if task["answer_format"] == "exact integer":
30
+ ok = bool(re.fullmatch(r"-?\d+", got))
31
+ diagnostic = "valid integer smoke output" if ok else f"not an exact integer: {got!r}"
32
+ else:
33
+ ok = bool(re.fullmatch(r"[A-Za-z]+", got))
34
+ diagnostic = "valid code smoke output" if ok else f"not an exact code: {got!r}"
35
+
36
+ # This is intentionally not official scoring; it only verifies I/O shape.
37
+ write_reward(1.0 if ok else 0.0, diagnostic)
38
+ return 0 if ok else 1
39
+
40
+
41
+ if __name__ == "__main__":
42
+ raise SystemExit(main())
harbor/tasks/v3_depth1_currency_lookup_t12/tests/test.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -u
3
+ python /tests/check_output_shape.py
harbor/tasks/v3_depth1_currency_lookup_t13/environment/Dockerfile ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+ WORKDIR /app
3
+ COPY flowbench_tools.py /app/flowbench_tools.py
4
+ COPY task.json /app/task.json
harbor/tasks/v3_depth1_currency_lookup_t13/environment/flowbench_tools.py ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Deterministic FlowBench v3 tools. This file contains no task answers."""
2
+
3
+
4
+ REGIONS = ["NA", "EU", "APAC", "LATAM"]
5
+ CATEGORIES = ["A", "B", "C", "D"]
6
+ CURRENCIES = {"NA": "USD", "EU": "EUR", "APAC": "JPY", "LATAM": "BRL"}
7
+ FX_TO_USD_BP = {"USD": 10000, "EUR": 10900, "JPY": 67, "BRL": 1850}
8
+ TIERS = ["std", "gold", "plat"]
9
+ DISCOUNT_PCT = {"std": 0, "gold": 10, "plat": 20}
10
+ CHANNELS = ["web", "store", "partner"]
11
+ MONTHS = [202601, 202602, 202603, 202604, 202605, 202606]
12
+
13
+ N_CUSTOMERS = 72
14
+ N_PRODUCTS = 48
15
+ N_ORDERS = 720
16
+ N_TICKETS = 260
17
+ N_RETURNS = 180
18
+
19
+
20
+ def _h(*xs):
21
+ import hashlib
22
+ s = "|".join(str(x) for x in xs).encode()
23
+ return int.from_bytes(hashlib.sha256(s).digest()[:8], "big") & 0x7FFFFFFF
24
+
25
+
26
+ def build_data():
27
+ customers = []
28
+ for cid in range(N_CUSTOMERS):
29
+ region = REGIONS[_h("region", cid) % len(REGIONS)]
30
+ customers.append({
31
+ "customer_id": cid,
32
+ "region": region,
33
+ "tier": TIERS[_h("tier", cid) % len(TIERS)],
34
+ "segment": ["consumer", "smb", "enterprise"][_h("segment", cid) % 3],
35
+ })
36
+
37
+ products = []
38
+ for pid in range(N_PRODUCTS):
39
+ cat = CATEGORIES[_h("cat", pid) % len(CATEGORIES)]
40
+ unit_price = 12 + _h("price", pid) % 240
41
+ cogs = unit_price * (45 + _h("margin", pid) % 35) // 100
42
+ products.append({
43
+ "product_id": pid,
44
+ "category": cat,
45
+ "unit_price_usd": unit_price,
46
+ "unit_cogs_usd": cogs,
47
+ "lead_time_days": 3 + _h("lead", pid) % 18,
48
+ })
49
+
50
+ inventory = []
51
+ for pid in range(N_PRODUCTS):
52
+ for region in REGIONS:
53
+ inventory.append({
54
+ "product_id": pid,
55
+ "region": region,
56
+ "on_hand": 10 + _h("onhand", pid, region) % 140,
57
+ "reserved": _h("reserved", pid, region) % 28,
58
+ "inbound": _h("inbound", pid, region) % 85,
59
+ })
60
+
61
+ orders = []
62
+ for oid in range(N_ORDERS):
63
+ customer_id = _h("ocust", oid) % N_CUSTOMERS
64
+ product_id = _h("oprod", oid) % N_PRODUCTS
65
+ month = MONTHS[_h("month", oid) % len(MONTHS)]
66
+ qty = 1 + _h("qty", oid) % 9
67
+ ship_days = 1 + _h("shipdays", oid) % 16
68
+ promised_days = 3 + _h("promise", oid) % 9
69
+ status = ["paid", "paid", "paid", "paid", "cancelled", "refunded"][
70
+ _h("status", oid) % 6]
71
+ orders.append({
72
+ "order_id": oid,
73
+ "customer_id": customer_id,
74
+ "product_id": product_id,
75
+ "month": month,
76
+ "qty": qty,
77
+ "status": status,
78
+ "channel": CHANNELS[_h("channel", oid) % len(CHANNELS)],
79
+ "ship_days": ship_days,
80
+ "promised_days": promised_days,
81
+ })
82
+
83
+ returns = []
84
+ for rid in range(N_RETURNS):
85
+ oid = _h("roid", rid) % N_ORDERS
86
+ order = orders[oid]
87
+ if order["status"] == "cancelled":
88
+ continue
89
+ returned_qty = 1 + _h("rqty", rid) % max(1, order["qty"])
90
+ reason = ["defect", "late", "changed_mind", "wrong_item"][_h("reason", rid) % 4]
91
+ returns.append({
92
+ "return_id": rid,
93
+ "order_id": oid,
94
+ "month": MONTHS[_h("rmonth", rid) % len(MONTHS)],
95
+ "returned_qty": returned_qty,
96
+ "reason": reason,
97
+ })
98
+
99
+ tickets = []
100
+ for tid in range(N_TICKETS):
101
+ oid = _h("toid", tid) % N_ORDERS
102
+ severity = ["low", "medium", "high", "critical"][_h("sev", tid) % 4]
103
+ opened = MONTHS[_h("tmonth", tid) % len(MONTHS)]
104
+ first_response_hours = 1 + _h("resp", tid) % 96
105
+ resolution_hours = first_response_hours + _h("res", tid) % 240
106
+ tickets.append({
107
+ "ticket_id": tid,
108
+ "order_id": oid,
109
+ "opened_month": opened,
110
+ "severity": severity,
111
+ "first_response_hours": first_response_hours,
112
+ "resolution_hours": resolution_hours,
113
+ })
114
+
115
+ return {
116
+ "customers": customers,
117
+ "products": products,
118
+ "inventory": inventory,
119
+ "orders": orders,
120
+ "returns": returns,
121
+ "tickets": tickets,
122
+ "fx_to_usd_bp": FX_TO_USD_BP,
123
+ }
124
+
125
+
126
+ DATA = build_data()
127
+ CUSTOMERS = {c["customer_id"]: c for c in DATA["customers"]}
128
+ PRODUCTS = {p["product_id"]: p for p in DATA["products"]}
129
+ ORDERS = {o["order_id"]: o for o in DATA["orders"]}
130
+
131
+
132
+ def region_currency(region: str) -> str:
133
+ return CURRENCIES[region]
134
+
135
+
136
+ def get_orders(region: str, category: str, month_start: int, month_end: int) -> list:
137
+ """Paid/refunded order ids in a region/category/month window."""
138
+ out = []
139
+ for o in DATA["orders"]:
140
+ if o["status"] not in ("paid", "refunded"):
141
+ continue
142
+ c = CUSTOMERS[o["customer_id"]]
143
+ p = PRODUCTS[o["product_id"]]
144
+ if c["region"] == region and p["category"] == category and month_start <= o["month"] <= month_end:
145
+ out.append(o["order_id"])
146
+ return sorted(out)
147
+
148
+
149
+ def order_gross_usd(order_id: int) -> int:
150
+ o = ORDERS[order_id]
151
+ p = PRODUCTS[o["product_id"]]
152
+ return o["qty"] * p["unit_price_usd"]
153
+
154
+
155
+ def order_margin_usd(order_id: int) -> int:
156
+ o = ORDERS[order_id]
157
+ p = PRODUCTS[o["product_id"]]
158
+ return o["qty"] * (p["unit_price_usd"] - p["unit_cogs_usd"])
159
+
160
+
161
+ def refund_usd(order_id: int) -> int:
162
+ o = ORDERS[order_id]
163
+ p = PRODUCTS[o["product_id"]]
164
+ qty = sum(r["returned_qty"] for r in DATA["returns"] if r["order_id"] == order_id)
165
+ qty = min(qty, o["qty"])
166
+ return qty * p["unit_price_usd"]
167
+
168
+
169
+ def customer_tier(order_id: int) -> str:
170
+ o = ORDERS[order_id]
171
+ return CUSTOMERS[o["customer_id"]]["tier"]
172
+
173
+
174
+ def apply_discount(amount_usd: int, tier: str) -> int:
175
+ return amount_usd * (100 - DISCOUNT_PCT[tier]) // 100
176
+
177
+
178
+ def net_revenue_usd(order_id: int) -> int:
179
+ gross = apply_discount(order_gross_usd(order_id), customer_tier(order_id))
180
+ return max(0, gross - refund_usd(order_id))
181
+
182
+
183
+ def to_local(amount_usd: int, currency: str) -> int:
184
+ return amount_usd * 10000 // FX_TO_USD_BP[currency]
185
+
186
+
187
+ def inventory_position(product_id: int, region: str) -> int:
188
+ row = next(x for x in DATA["inventory"]
189
+ if x["product_id"] == product_id and x["region"] == region)
190
+ return row["on_hand"] - row["reserved"] + row["inbound"]
191
+
192
+
193
+ def product_lead_time(product_id: int) -> int:
194
+ return PRODUCTS[product_id]["lead_time_days"]
195
+
196
+
197
+ def product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int:
198
+ totals = {}
199
+ for oid in get_orders(region, category, month_start, month_end):
200
+ o = ORDERS[oid]
201
+ totals[o["product_id"]] = totals.get(o["product_id"], 0) + o["qty"]
202
+ if not totals:
203
+ return -1
204
+ return min((-qty, pid) for pid, qty in totals.items())[1]
205
+
206
+
207
+ def units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int:
208
+ total = 0
209
+ for o in DATA["orders"]:
210
+ if o["product_id"] != product_id or o["status"] not in ("paid", "refunded"):
211
+ continue
212
+ c = CUSTOMERS[o["customer_id"]]
213
+ if c["region"] == region and month_start <= o["month"] <= month_end:
214
+ total += o["qty"]
215
+ return total
216
+
217
+
218
+ def tickets_for_orders(order_ids: list, severity: str) -> list:
219
+ s = set(order_ids)
220
+ return sorted(t["ticket_id"] for t in DATA["tickets"]
221
+ if t["order_id"] in s and t["severity"] == severity)
222
+
223
+
224
+ def ticket_order_id(ticket_id: int) -> int:
225
+ return next(t["order_id"] for t in DATA["tickets"] if t["ticket_id"] == ticket_id)
226
+
227
+
228
+ def sla_breached(ticket_id: int, first_response_limit_hours: int,
229
+ resolution_limit_hours: int) -> bool:
230
+ t = next(x for x in DATA["tickets"] if x["ticket_id"] == ticket_id)
231
+ return (t["first_response_hours"] > first_response_limit_hours or
232
+ t["resolution_hours"] > resolution_limit_hours)
233
+
234
+
235
+ def delayed_orders(order_ids: list) -> list:
236
+ s = set(order_ids)
237
+ return sorted(o["order_id"] for o in DATA["orders"]
238
+ if o["order_id"] in s and o["ship_days"] > o["promised_days"])
239
+
240
+
241
+ def unique_customers(order_ids: list) -> list:
242
+ return sorted({ORDERS[oid]["customer_id"] for oid in order_ids})
243
+
244
+
245
+ def count_items(values: list) -> int:
246
+ return len(values)
247
+
248
+
249
+ def sum_values(values: list) -> int:
250
+ return sum(values)
251
+
252
+
253
+ def count_true(values: list) -> int:
254
+ return sum(1 for v in values if bool(v))
255
+
256
+
257
+ def count_below(values: list, threshold: int) -> int:
258
+ return sum(1 for v in values if v < threshold)
259
+
260
+
261
+ TOOLS = {
262
+ "region_currency": ("region_currency(region: str) -> str",
263
+ "ISO currency code for a region.", region_currency),
264
+ "get_orders": ("get_orders(region: str, category: str, month_start: int, month_end: int) -> list[int]",
265
+ "Paid/refunded order ids for a region, product category, and inclusive month window.",
266
+ get_orders),
267
+ "order_gross_usd": ("order_gross_usd(order_id: int) -> int",
268
+ "Gross order revenue in USD before discounts/refunds.", order_gross_usd),
269
+ "order_margin_usd": ("order_margin_usd(order_id: int) -> int",
270
+ "Gross order margin in USD before discounts/refunds.", order_margin_usd),
271
+ "refund_usd": ("refund_usd(order_id: int) -> int",
272
+ "Refund amount in USD for returned quantity on an order.", refund_usd),
273
+ "customer_tier": ("customer_tier(order_id: int) -> str",
274
+ "Customer loyalty tier for an order.", customer_tier),
275
+ "apply_discount": ("apply_discount(amount_usd: int, tier: str) -> int",
276
+ "Apply the order customer's loyalty discount to a USD amount.", apply_discount),
277
+ "net_revenue_usd": ("net_revenue_usd(order_id: int) -> int",
278
+ "Net USD revenue after loyalty discount and refunds.", net_revenue_usd),
279
+ "to_local": ("to_local(amount_usd: int, currency: str) -> int",
280
+ "Convert a USD integer amount to a local-currency integer.", to_local),
281
+ "inventory_position": ("inventory_position(product_id: int, region: str) -> int",
282
+ "Available inventory position: on_hand - reserved + inbound.",
283
+ inventory_position),
284
+ "product_lead_time": ("product_lead_time(product_id: int) -> int",
285
+ "Supplier lead time in days for a product.", product_lead_time),
286
+ "product_id_for_top_seller": (
287
+ "product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int",
288
+ "Product id with the highest units sold in a region/category/month window.",
289
+ product_id_for_top_seller),
290
+ "units_sold": ("units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int",
291
+ "Units sold for one product in a region and month window.", units_sold),
292
+ "tickets_for_orders": ("tickets_for_orders(order_ids: list[int], severity: str) -> list[int]",
293
+ "Support ticket ids for given orders and severity.", tickets_for_orders),
294
+ "ticket_order_id": ("ticket_order_id(ticket_id: int) -> int",
295
+ "Order id associated with a support ticket.", ticket_order_id),
296
+ "sla_breached": (
297
+ "sla_breached(ticket_id: int, first_response_limit_hours: int, resolution_limit_hours: int) -> bool",
298
+ "Whether a support ticket breaches first-response or resolution SLA.",
299
+ sla_breached),
300
+ "delayed_orders": ("delayed_orders(order_ids: list[int]) -> list[int]",
301
+ "Subset of order ids whose ship_days exceeded promised_days.", delayed_orders),
302
+ "unique_customers": ("unique_customers(order_ids: list[int]) -> list[int]",
303
+ "Unique customer ids among the given orders.", unique_customers),
304
+ "count_items": ("count_items(values: list) -> int", "Length of a list.", count_items),
305
+ "sum_values": ("sum_values(values: list[int]) -> int", "Sum a list of integers.", sum_values),
306
+ "count_true": ("count_true(values: list[bool]) -> int", "Count true values.", count_true),
307
+ "count_below": ("count_below(values: list[int], threshold: int) -> int",
308
+ "Count values below a threshold.", count_below),
309
+ }
310
+
311
+ __all__ = [name for name in TOOLS.keys()] + ['TOOLS']
harbor/tasks/v3_depth1_currency_lookup_t13/environment/task.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "v3_depth1_currency_lookup_t13",
3
+ "depth": 1,
4
+ "family": "currency_lookup",
5
+ "params": {
6
+ "region": "EU",
7
+ "category": "B",
8
+ "month_start": 202601,
9
+ "month_end": 202603
10
+ },
11
+ "question": "What ISO currency code is used for the EU region? Report only the code.",
12
+ "answer_format": "exact code"
13
+ }
harbor/tasks/v3_depth1_currency_lookup_t13/instruction.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FlowBench v3 Public Task
2
+
3
+ You are in `/app`. The file `/app/flowbench_tools.py` contains deterministic
4
+ Python tools over a synthetic business-operations dataset. Use those tools
5
+ to compute the requested value, then write the final output to
6
+ `/app/answer.txt`.
7
+
8
+ Required output:
9
+ - `/app/answer.txt` must contain only the exact code.
10
+ - Use integer arithmetic for currency and counts. Do not use floating point
11
+ arithmetic.
12
+
13
+ Task:
14
+ What ISO currency code is used for the EU region? Report only the code.
15
+
16
+ Available tools:
17
+ - `region_currency(region: str) -> str`: ISO currency code for a region.
18
+ - `get_orders(region: str, category: str, month_start: int, month_end: int) -> list[int]`: Paid/refunded order ids for a region, product category, and inclusive month window.
19
+ - `order_gross_usd(order_id: int) -> int`: Gross order revenue in USD before discounts/refunds.
20
+ - `order_margin_usd(order_id: int) -> int`: Gross order margin in USD before discounts/refunds.
21
+ - `refund_usd(order_id: int) -> int`: Refund amount in USD for returned quantity on an order.
22
+ - `customer_tier(order_id: int) -> str`: Customer loyalty tier for an order.
23
+ - `apply_discount(amount_usd: int, tier: str) -> int`: Apply the order customer's loyalty discount to a USD amount.
24
+ - `net_revenue_usd(order_id: int) -> int`: Net USD revenue after loyalty discount and refunds.
25
+ - `to_local(amount_usd: int, currency: str) -> int`: Convert a USD integer amount to a local-currency integer.
26
+ - `inventory_position(product_id: int, region: str) -> int`: Available inventory position: on_hand - reserved + inbound.
27
+ - `product_lead_time(product_id: int) -> int`: Supplier lead time in days for a product.
28
+ - `product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int`: Product id with the highest units sold in a region/category/month window.
29
+ - `units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int`: Units sold for one product in a region and month window.
30
+ - `tickets_for_orders(order_ids: list[int], severity: str) -> list[int]`: Support ticket ids for given orders and severity.
31
+ - `ticket_order_id(ticket_id: int) -> int`: Order id associated with a support ticket.
32
+ - `sla_breached(ticket_id: int, first_response_limit_hours: int, resolution_limit_hours: int) -> bool`: Whether a support ticket breaches first-response or resolution SLA.
33
+ - `delayed_orders(order_ids: list[int]) -> list[int]`: Subset of order ids whose ship_days exceeded promised_days.
34
+ - `unique_customers(order_ids: list[int]) -> list[int]`: Unique customer ids among the given orders.
35
+ - `count_items(values: list) -> int`: Length of a list.
36
+ - `sum_values(values: list[int]) -> int`: Sum a list of integers.
37
+ - `count_true(values: list[bool]) -> int`: Count true values.
38
+ - `count_below(values: list[int], threshold: int) -> int`: Count values below a threshold.
harbor/tasks/v3_depth1_currency_lookup_t13/task.toml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+
3
+ [task]
4
+ name = "mindlab/v3_depth1_currency_lookup_t13"
5
+ description = "FlowBench v3 public task metadata. Public verifier is smoke-only."
6
+ authors = [{ name = "Mind Lab", email = "contact@mindlab.ltd" }]
7
+ keywords = ["flowbench", "tool-use", "data-orchestration", "operations"]
8
+
9
+ [metadata]
10
+ benchmark = "FlowBench-v3"
11
+ split = "public-task-only"
12
+ category = "data-processing"
13
+ depth = 1
14
+
15
+ [verifier]
16
+ timeout_sec = 120.0
17
+
18
+ [agent]
19
+ timeout_sec = 900.0
20
+
21
+ [environment]
22
+ network_mode = "no-network"
23
+ build_timeout_sec = 600.0
24
+ os = "linux"
25
+ cpus = 1
26
+ memory_mb = 2048
27
+ storage_mb = 2048
28
+ gpus = 0
harbor/tasks/v3_depth1_currency_lookup_t13/tests/check_output_shape.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import json
5
+ import os
6
+ import re
7
+ from pathlib import Path
8
+
9
+
10
+ def write_reward(score: float, diagnostic: str) -> None:
11
+ log_dir = Path(os.environ.get("LOG_DIR", "/logs/verifier"))
12
+ log_dir.mkdir(parents=True, exist_ok=True)
13
+ (log_dir / "reward.txt").write_text(f"{score:.6g}\n")
14
+ (log_dir / "reward.json").write_text(
15
+ json.dumps({"reward": score, "smoke_only": True}, indent=2) + "\n"
16
+ )
17
+ (log_dir / "diagnostic.txt").write_text(diagnostic + "\n")
18
+
19
+
20
+ def main() -> int:
21
+ app_dir = Path(os.environ.get("APP_DIR", "/app"))
22
+ task = json.loads((app_dir / "task.json").read_text())
23
+ answer_path = app_dir / "answer.txt"
24
+ if not answer_path.exists():
25
+ write_reward(0.0, "missing /app/answer.txt")
26
+ return 1
27
+
28
+ got = answer_path.read_text().strip()
29
+ if task["answer_format"] == "exact integer":
30
+ ok = bool(re.fullmatch(r"-?\d+", got))
31
+ diagnostic = "valid integer smoke output" if ok else f"not an exact integer: {got!r}"
32
+ else:
33
+ ok = bool(re.fullmatch(r"[A-Za-z]+", got))
34
+ diagnostic = "valid code smoke output" if ok else f"not an exact code: {got!r}"
35
+
36
+ # This is intentionally not official scoring; it only verifies I/O shape.
37
+ write_reward(1.0 if ok else 0.0, diagnostic)
38
+ return 0 if ok else 1
39
+
40
+
41
+ if __name__ == "__main__":
42
+ raise SystemExit(main())
harbor/tasks/v3_depth1_currency_lookup_t13/tests/test.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -u
3
+ python /tests/check_output_shape.py
harbor/tasks/v3_depth1_currency_lookup_t14/environment/Dockerfile ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+ WORKDIR /app
3
+ COPY flowbench_tools.py /app/flowbench_tools.py
4
+ COPY task.json /app/task.json
harbor/tasks/v3_depth1_currency_lookup_t14/environment/flowbench_tools.py ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Deterministic FlowBench v3 tools. This file contains no task answers."""
2
+
3
+
4
+ REGIONS = ["NA", "EU", "APAC", "LATAM"]
5
+ CATEGORIES = ["A", "B", "C", "D"]
6
+ CURRENCIES = {"NA": "USD", "EU": "EUR", "APAC": "JPY", "LATAM": "BRL"}
7
+ FX_TO_USD_BP = {"USD": 10000, "EUR": 10900, "JPY": 67, "BRL": 1850}
8
+ TIERS = ["std", "gold", "plat"]
9
+ DISCOUNT_PCT = {"std": 0, "gold": 10, "plat": 20}
10
+ CHANNELS = ["web", "store", "partner"]
11
+ MONTHS = [202601, 202602, 202603, 202604, 202605, 202606]
12
+
13
+ N_CUSTOMERS = 72
14
+ N_PRODUCTS = 48
15
+ N_ORDERS = 720
16
+ N_TICKETS = 260
17
+ N_RETURNS = 180
18
+
19
+
20
+ def _h(*xs):
21
+ import hashlib
22
+ s = "|".join(str(x) for x in xs).encode()
23
+ return int.from_bytes(hashlib.sha256(s).digest()[:8], "big") & 0x7FFFFFFF
24
+
25
+
26
+ def build_data():
27
+ customers = []
28
+ for cid in range(N_CUSTOMERS):
29
+ region = REGIONS[_h("region", cid) % len(REGIONS)]
30
+ customers.append({
31
+ "customer_id": cid,
32
+ "region": region,
33
+ "tier": TIERS[_h("tier", cid) % len(TIERS)],
34
+ "segment": ["consumer", "smb", "enterprise"][_h("segment", cid) % 3],
35
+ })
36
+
37
+ products = []
38
+ for pid in range(N_PRODUCTS):
39
+ cat = CATEGORIES[_h("cat", pid) % len(CATEGORIES)]
40
+ unit_price = 12 + _h("price", pid) % 240
41
+ cogs = unit_price * (45 + _h("margin", pid) % 35) // 100
42
+ products.append({
43
+ "product_id": pid,
44
+ "category": cat,
45
+ "unit_price_usd": unit_price,
46
+ "unit_cogs_usd": cogs,
47
+ "lead_time_days": 3 + _h("lead", pid) % 18,
48
+ })
49
+
50
+ inventory = []
51
+ for pid in range(N_PRODUCTS):
52
+ for region in REGIONS:
53
+ inventory.append({
54
+ "product_id": pid,
55
+ "region": region,
56
+ "on_hand": 10 + _h("onhand", pid, region) % 140,
57
+ "reserved": _h("reserved", pid, region) % 28,
58
+ "inbound": _h("inbound", pid, region) % 85,
59
+ })
60
+
61
+ orders = []
62
+ for oid in range(N_ORDERS):
63
+ customer_id = _h("ocust", oid) % N_CUSTOMERS
64
+ product_id = _h("oprod", oid) % N_PRODUCTS
65
+ month = MONTHS[_h("month", oid) % len(MONTHS)]
66
+ qty = 1 + _h("qty", oid) % 9
67
+ ship_days = 1 + _h("shipdays", oid) % 16
68
+ promised_days = 3 + _h("promise", oid) % 9
69
+ status = ["paid", "paid", "paid", "paid", "cancelled", "refunded"][
70
+ _h("status", oid) % 6]
71
+ orders.append({
72
+ "order_id": oid,
73
+ "customer_id": customer_id,
74
+ "product_id": product_id,
75
+ "month": month,
76
+ "qty": qty,
77
+ "status": status,
78
+ "channel": CHANNELS[_h("channel", oid) % len(CHANNELS)],
79
+ "ship_days": ship_days,
80
+ "promised_days": promised_days,
81
+ })
82
+
83
+ returns = []
84
+ for rid in range(N_RETURNS):
85
+ oid = _h("roid", rid) % N_ORDERS
86
+ order = orders[oid]
87
+ if order["status"] == "cancelled":
88
+ continue
89
+ returned_qty = 1 + _h("rqty", rid) % max(1, order["qty"])
90
+ reason = ["defect", "late", "changed_mind", "wrong_item"][_h("reason", rid) % 4]
91
+ returns.append({
92
+ "return_id": rid,
93
+ "order_id": oid,
94
+ "month": MONTHS[_h("rmonth", rid) % len(MONTHS)],
95
+ "returned_qty": returned_qty,
96
+ "reason": reason,
97
+ })
98
+
99
+ tickets = []
100
+ for tid in range(N_TICKETS):
101
+ oid = _h("toid", tid) % N_ORDERS
102
+ severity = ["low", "medium", "high", "critical"][_h("sev", tid) % 4]
103
+ opened = MONTHS[_h("tmonth", tid) % len(MONTHS)]
104
+ first_response_hours = 1 + _h("resp", tid) % 96
105
+ resolution_hours = first_response_hours + _h("res", tid) % 240
106
+ tickets.append({
107
+ "ticket_id": tid,
108
+ "order_id": oid,
109
+ "opened_month": opened,
110
+ "severity": severity,
111
+ "first_response_hours": first_response_hours,
112
+ "resolution_hours": resolution_hours,
113
+ })
114
+
115
+ return {
116
+ "customers": customers,
117
+ "products": products,
118
+ "inventory": inventory,
119
+ "orders": orders,
120
+ "returns": returns,
121
+ "tickets": tickets,
122
+ "fx_to_usd_bp": FX_TO_USD_BP,
123
+ }
124
+
125
+
126
+ DATA = build_data()
127
+ CUSTOMERS = {c["customer_id"]: c for c in DATA["customers"]}
128
+ PRODUCTS = {p["product_id"]: p for p in DATA["products"]}
129
+ ORDERS = {o["order_id"]: o for o in DATA["orders"]}
130
+
131
+
132
+ def region_currency(region: str) -> str:
133
+ return CURRENCIES[region]
134
+
135
+
136
+ def get_orders(region: str, category: str, month_start: int, month_end: int) -> list:
137
+ """Paid/refunded order ids in a region/category/month window."""
138
+ out = []
139
+ for o in DATA["orders"]:
140
+ if o["status"] not in ("paid", "refunded"):
141
+ continue
142
+ c = CUSTOMERS[o["customer_id"]]
143
+ p = PRODUCTS[o["product_id"]]
144
+ if c["region"] == region and p["category"] == category and month_start <= o["month"] <= month_end:
145
+ out.append(o["order_id"])
146
+ return sorted(out)
147
+
148
+
149
+ def order_gross_usd(order_id: int) -> int:
150
+ o = ORDERS[order_id]
151
+ p = PRODUCTS[o["product_id"]]
152
+ return o["qty"] * p["unit_price_usd"]
153
+
154
+
155
+ def order_margin_usd(order_id: int) -> int:
156
+ o = ORDERS[order_id]
157
+ p = PRODUCTS[o["product_id"]]
158
+ return o["qty"] * (p["unit_price_usd"] - p["unit_cogs_usd"])
159
+
160
+
161
+ def refund_usd(order_id: int) -> int:
162
+ o = ORDERS[order_id]
163
+ p = PRODUCTS[o["product_id"]]
164
+ qty = sum(r["returned_qty"] for r in DATA["returns"] if r["order_id"] == order_id)
165
+ qty = min(qty, o["qty"])
166
+ return qty * p["unit_price_usd"]
167
+
168
+
169
+ def customer_tier(order_id: int) -> str:
170
+ o = ORDERS[order_id]
171
+ return CUSTOMERS[o["customer_id"]]["tier"]
172
+
173
+
174
+ def apply_discount(amount_usd: int, tier: str) -> int:
175
+ return amount_usd * (100 - DISCOUNT_PCT[tier]) // 100
176
+
177
+
178
+ def net_revenue_usd(order_id: int) -> int:
179
+ gross = apply_discount(order_gross_usd(order_id), customer_tier(order_id))
180
+ return max(0, gross - refund_usd(order_id))
181
+
182
+
183
+ def to_local(amount_usd: int, currency: str) -> int:
184
+ return amount_usd * 10000 // FX_TO_USD_BP[currency]
185
+
186
+
187
+ def inventory_position(product_id: int, region: str) -> int:
188
+ row = next(x for x in DATA["inventory"]
189
+ if x["product_id"] == product_id and x["region"] == region)
190
+ return row["on_hand"] - row["reserved"] + row["inbound"]
191
+
192
+
193
+ def product_lead_time(product_id: int) -> int:
194
+ return PRODUCTS[product_id]["lead_time_days"]
195
+
196
+
197
+ def product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int:
198
+ totals = {}
199
+ for oid in get_orders(region, category, month_start, month_end):
200
+ o = ORDERS[oid]
201
+ totals[o["product_id"]] = totals.get(o["product_id"], 0) + o["qty"]
202
+ if not totals:
203
+ return -1
204
+ return min((-qty, pid) for pid, qty in totals.items())[1]
205
+
206
+
207
+ def units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int:
208
+ total = 0
209
+ for o in DATA["orders"]:
210
+ if o["product_id"] != product_id or o["status"] not in ("paid", "refunded"):
211
+ continue
212
+ c = CUSTOMERS[o["customer_id"]]
213
+ if c["region"] == region and month_start <= o["month"] <= month_end:
214
+ total += o["qty"]
215
+ return total
216
+
217
+
218
+ def tickets_for_orders(order_ids: list, severity: str) -> list:
219
+ s = set(order_ids)
220
+ return sorted(t["ticket_id"] for t in DATA["tickets"]
221
+ if t["order_id"] in s and t["severity"] == severity)
222
+
223
+
224
+ def ticket_order_id(ticket_id: int) -> int:
225
+ return next(t["order_id"] for t in DATA["tickets"] if t["ticket_id"] == ticket_id)
226
+
227
+
228
+ def sla_breached(ticket_id: int, first_response_limit_hours: int,
229
+ resolution_limit_hours: int) -> bool:
230
+ t = next(x for x in DATA["tickets"] if x["ticket_id"] == ticket_id)
231
+ return (t["first_response_hours"] > first_response_limit_hours or
232
+ t["resolution_hours"] > resolution_limit_hours)
233
+
234
+
235
+ def delayed_orders(order_ids: list) -> list:
236
+ s = set(order_ids)
237
+ return sorted(o["order_id"] for o in DATA["orders"]
238
+ if o["order_id"] in s and o["ship_days"] > o["promised_days"])
239
+
240
+
241
+ def unique_customers(order_ids: list) -> list:
242
+ return sorted({ORDERS[oid]["customer_id"] for oid in order_ids})
243
+
244
+
245
+ def count_items(values: list) -> int:
246
+ return len(values)
247
+
248
+
249
+ def sum_values(values: list) -> int:
250
+ return sum(values)
251
+
252
+
253
+ def count_true(values: list) -> int:
254
+ return sum(1 for v in values if bool(v))
255
+
256
+
257
+ def count_below(values: list, threshold: int) -> int:
258
+ return sum(1 for v in values if v < threshold)
259
+
260
+
261
+ TOOLS = {
262
+ "region_currency": ("region_currency(region: str) -> str",
263
+ "ISO currency code for a region.", region_currency),
264
+ "get_orders": ("get_orders(region: str, category: str, month_start: int, month_end: int) -> list[int]",
265
+ "Paid/refunded order ids for a region, product category, and inclusive month window.",
266
+ get_orders),
267
+ "order_gross_usd": ("order_gross_usd(order_id: int) -> int",
268
+ "Gross order revenue in USD before discounts/refunds.", order_gross_usd),
269
+ "order_margin_usd": ("order_margin_usd(order_id: int) -> int",
270
+ "Gross order margin in USD before discounts/refunds.", order_margin_usd),
271
+ "refund_usd": ("refund_usd(order_id: int) -> int",
272
+ "Refund amount in USD for returned quantity on an order.", refund_usd),
273
+ "customer_tier": ("customer_tier(order_id: int) -> str",
274
+ "Customer loyalty tier for an order.", customer_tier),
275
+ "apply_discount": ("apply_discount(amount_usd: int, tier: str) -> int",
276
+ "Apply the order customer's loyalty discount to a USD amount.", apply_discount),
277
+ "net_revenue_usd": ("net_revenue_usd(order_id: int) -> int",
278
+ "Net USD revenue after loyalty discount and refunds.", net_revenue_usd),
279
+ "to_local": ("to_local(amount_usd: int, currency: str) -> int",
280
+ "Convert a USD integer amount to a local-currency integer.", to_local),
281
+ "inventory_position": ("inventory_position(product_id: int, region: str) -> int",
282
+ "Available inventory position: on_hand - reserved + inbound.",
283
+ inventory_position),
284
+ "product_lead_time": ("product_lead_time(product_id: int) -> int",
285
+ "Supplier lead time in days for a product.", product_lead_time),
286
+ "product_id_for_top_seller": (
287
+ "product_id_for_top_seller(region: str, category: str, month_start: int, month_end: int) -> int",
288
+ "Product id with the highest units sold in a region/category/month window.",
289
+ product_id_for_top_seller),
290
+ "units_sold": ("units_sold(product_id: int, region: str, month_start: int, month_end: int) -> int",
291
+ "Units sold for one product in a region and month window.", units_sold),
292
+ "tickets_for_orders": ("tickets_for_orders(order_ids: list[int], severity: str) -> list[int]",
293
+ "Support ticket ids for given orders and severity.", tickets_for_orders),
294
+ "ticket_order_id": ("ticket_order_id(ticket_id: int) -> int",
295
+ "Order id associated with a support ticket.", ticket_order_id),
296
+ "sla_breached": (
297
+ "sla_breached(ticket_id: int, first_response_limit_hours: int, resolution_limit_hours: int) -> bool",
298
+ "Whether a support ticket breaches first-response or resolution SLA.",
299
+ sla_breached),
300
+ "delayed_orders": ("delayed_orders(order_ids: list[int]) -> list[int]",
301
+ "Subset of order ids whose ship_days exceeded promised_days.", delayed_orders),
302
+ "unique_customers": ("unique_customers(order_ids: list[int]) -> list[int]",
303
+ "Unique customer ids among the given orders.", unique_customers),
304
+ "count_items": ("count_items(values: list) -> int", "Length of a list.", count_items),
305
+ "sum_values": ("sum_values(values: list[int]) -> int", "Sum a list of integers.", sum_values),
306
+ "count_true": ("count_true(values: list[bool]) -> int", "Count true values.", count_true),
307
+ "count_below": ("count_below(values: list[int], threshold: int) -> int",
308
+ "Count values below a threshold.", count_below),
309
+ }
310
+
311
+ __all__ = [name for name in TOOLS.keys()] + ['TOOLS']