Odysseusqsl commited on
Commit
f1720ff
·
0 Parent(s):

Initial release

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +6 -0
  2. BENCHMARK.yaml +130 -0
  3. LICENSE +360 -0
  4. README.md +208 -0
  5. ad_placement_optimization.json +32 -0
  6. anchorhead_text_adventure.json +29 -0
  7. ann_vector_search_qps.json +30 -0
  8. apple_incremental_game.json +32 -0
  9. arc_compiler_runtime.json +39 -0
  10. assets/edgebench_taxonomy.png +3 -0
  11. assets/fig_dual_loop.png +3 -0
  12. assets/fig_full_136_curve_fit_side_by_side.png +3 -0
  13. assets/fig_rank_paper_panel.png +3 -0
  14. assets/logo-dark.png +0 -0
  15. assets/logo.jpg +3 -0
  16. assets/time_area_log2_curve.png +3 -0
  17. assets/title-dark.svg +5 -0
  18. assets/title.svg +5 -0
  19. bipedalwalker_locomotion_rl.json +40 -0
  20. capecod_plume_reconstruction.json +40 -0
  21. carleson_formalization.json +31 -0
  22. college_english_exam_bank.json +51 -0
  23. combinatorial_games_formalization.json +31 -0
  24. cta_risk_budget_optimization.json +57 -0
  25. dabic_gravity_inversion.json +32 -0
  26. dcss_dungeon_ai.json +34 -0
  27. equivalence_class_divide_and_conquer.json +35 -0
  28. exchange_core_throughput.json +35 -0
  29. ffmpeg_swscale_reimplementation.json +36 -0
  30. flt_regular_formalization.json +31 -0
  31. git_rewrite_in_zig.json +39 -0
  32. graph_node_classification.json +35 -0
  33. grid_turing_robot.json +32 -0
  34. integer_compression_codec.json +38 -0
  35. jagua_nesting_optimization.json +34 -0
  36. juliet_vulnerability_analyzer.json +37 -0
  37. k12_math_recommendation.json +38 -0
  38. lean_analysis_proofs.json +31 -0
  39. molecular_self_assembly.json +32 -0
  40. nethack_dungeon_agent.json +30 -0
  41. new_foundations_consistency.json +31 -0
  42. openrct2_theme_park_ai.json +30 -0
  43. openttd_transport_ai.json +30 -0
  44. order_addition_permutation_optimization.json +33 -0
  45. ordinal_notation_well_foundedness.json +53 -0
  46. pfr_formalization.json +31 -0
  47. portfolio_risk_calibration.json +35 -0
  48. rust_multicrate_reconstruction.json +40 -0
  49. schemathesis_config_modernization.json +38 -0
  50. schemathesis_datagen_pipeline.json +38 -0
.gitattributes ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ assets/edgebench_taxonomy.png filter=lfs diff=lfs merge=lfs -text
2
+ assets/fig_dual_loop.png filter=lfs diff=lfs merge=lfs -text
3
+ assets/fig_full_136_curve_fit_side_by_side.png filter=lfs diff=lfs merge=lfs -text
4
+ assets/fig_rank_paper_panel.png filter=lfs diff=lfs merge=lfs -text
5
+ assets/logo.jpg filter=lfs diff=lfs merge=lfs -text
6
+ assets/time_area_log2_curve.png filter=lfs diff=lfs merge=lfs -text
BENCHMARK.yaml ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: edgebench
2
+ base_images:
3
+ java:
4
+ official_image: maven:3.9-eclipse-temurin-17
5
+ extra_packages:
6
+ - git
7
+ - curl
8
+ - jq
9
+ - build-essential
10
+ - ant
11
+ - unzip
12
+ - python3
13
+ rust:
14
+ official_image: rust:1.78
15
+ extra_packages:
16
+ - git
17
+ - curl
18
+ - jq
19
+ - build-essential
20
+ python:
21
+ official_image: python:3.11
22
+ extra_packages:
23
+ - git
24
+ - curl
25
+ - jq
26
+ - build-essential
27
+ python310:
28
+ official_image: python:3.10
29
+ extra_packages:
30
+ - git
31
+ - curl
32
+ - jq
33
+ - build-essential
34
+ cpp:
35
+ official_image: ubuntu:22.04
36
+ extra_packages:
37
+ - git
38
+ - curl
39
+ - jq
40
+ - build-essential
41
+ - cmake
42
+ - gcc
43
+ - g++
44
+ - libffi-dev
45
+ - pkg-config
46
+ - ca-certificates
47
+ coq:
48
+ official_image: coqorg/coq:8.20
49
+ extra_packages:
50
+ - git
51
+ - curl
52
+ - jq
53
+ - build-essential
54
+ - gcc
55
+ - g++
56
+ - python3
57
+ - make
58
+ - procps
59
+ user_directive: 'USER root
60
+
61
+ '
62
+ post_install_directive: 'ENV PATH="/home/coq/.opam/${COMPILER}/bin:${PATH}"
63
+
64
+ RUN chmod -R a+rX /home/coq/.opam
65
+
66
+ ENTRYPOINT []
67
+
68
+ '
69
+ lean_4_28_0_main:
70
+ official_image: ubuntu:22.04
71
+ extra_packages:
72
+ - git
73
+ - curl
74
+ - jq
75
+ - build-essential
76
+ - gcc
77
+ - g++
78
+ - python3
79
+ - make
80
+ - procps
81
+ - ca-certificates
82
+ user_directive: 'USER root
83
+
84
+ '
85
+ post_install_directive: 'ENV ELAN_HOME=/opt/elan
86
+
87
+ ENV PATH="/opt/elan/bin:${PATH}"
88
+
89
+ RUN mkdir -p /opt/elan && chown -R agent:agent /opt/elan
90
+
91
+ RUN curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh
92
+ -sSf | env ELAN_HOME=/opt/elan sh -s -- -y --default-toolchain none
93
+
94
+ WORKDIR /home/workspace
95
+
96
+ RUN lake +leanprover/lean4:v4.28.0 new baseline math
97
+
98
+ ENTRYPOINT []
99
+
100
+ '
101
+ lean_4:
102
+ official_image: ubuntu:22.04
103
+ extra_packages:
104
+ - git
105
+ - curl
106
+ - jq
107
+ - build-essential
108
+ - gcc
109
+ - g++
110
+ - python3
111
+ - make
112
+ - procps
113
+ - ca-certificates
114
+ user_directive: 'USER root
115
+
116
+ '
117
+ post_install_directive: 'ENV ELAN_HOME=/opt/elan
118
+
119
+ ENV PATH="/opt/elan/bin:${PATH}"
120
+
121
+ RUN mkdir -p /opt/elan && chown -R agent:agent /opt/elan
122
+
123
+ RUN curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh
124
+ -sSf | env ELAN_HOME=/opt/elan sh -s -- -y --default-toolchain none
125
+
126
+ WORKDIR /home/workspace
127
+
128
+ ENTRYPOINT []
129
+
130
+ '
LICENSE ADDED
@@ -0,0 +1,360 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Attribution 4.0 International
2
+
3
+ =======================================================================
4
+
5
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
6
+ does not provide legal services or legal advice. Distribution of Creative
7
+ Commons public licenses does not create a lawyer-client or other
8
+ relationship. Creative Commons makes its licenses and related information
9
+ available on an "as-is" basis. Creative Commons gives no warranties
10
+ regarding its licenses, any material licensed under their terms and
11
+ conditions, or any related information. Creative Commons disclaims all
12
+ liability for damages resulting from their use to the fullest extent
13
+ possible.
14
+
15
+ Using Creative Commons Public Licenses
16
+
17
+ Creative Commons public licenses provide a standard set of terms and
18
+ conditions that creators and other rights holders may use to share
19
+ original works of authorship and other material subject to copyright and
20
+ certain other rights specified in the public license below. The following
21
+ considerations are for informational purposes only, are not exhaustive,
22
+ and do not form part of our licenses.
23
+
24
+ Considerations for licensors: Our public licenses are intended for
25
+ use by those authorized to give the public permission to use material
26
+ in ways otherwise restricted by copyright and certain other rights.
27
+ Our licenses are irrevocable. Licensors should read and understand
28
+ the terms and conditions of the license they choose before applying
29
+ it. Licensors should also secure all rights necessary before applying
30
+ our licenses so that the public can reuse the material as expected.
31
+ Licensors should clearly mark any material not subject to the license.
32
+ This includes other CC-licensed material, or material used under an
33
+ exception or limitation to copyright. More considerations for
34
+ licensors:
35
+ wiki.creativecommons.org/Considerations_for_licensors
36
+
37
+ Considerations for the public: By using one of our public licenses,
38
+ a licensor grants the public permission to use the licensed material
39
+ under specified terms and conditions. If the licensor's permission is
40
+ not necessary for any reason--for example, because of any applicable
41
+ exception or limitation to copyright--then that use is not regulated
42
+ by the license. Our licenses grant only permissions under copyright
43
+ and certain other rights that a licensor has authority to grant. Use
44
+ of the licensed material may still be restricted for other reasons,
45
+ including because others have copyright or other rights in the
46
+ material. A licensor may make special requests, such as asking that
47
+ all changes be marked or described. Although not required by our
48
+ licenses, you are encouraged to respect those requests where
49
+ reasonable. More considerations for the public:
50
+ wiki.creativecommons.org/Considerations_for_licensees
51
+
52
+ =======================================================================
53
+
54
+ Creative Commons Attribution 4.0 International Public License
55
+
56
+ By exercising the Licensed Rights (defined below), You accept and agree
57
+ to be bound by the terms and conditions of this Creative Commons
58
+ Attribution 4.0 International Public License ("Public License"). To the
59
+ extent this Public License may be interpreted as a contract, You are
60
+ granted the Licensed Rights in consideration of Your acceptance of these
61
+ terms and conditions, and the Licensor grants You such rights in
62
+ consideration of benefits the Licensor receives from making the Licensed
63
+ Material available under these terms and conditions.
64
+
65
+ Section 1 -- Definitions.
66
+
67
+ a. Adapted Material means material subject to Copyright and Similar Rights
68
+ that is derived from or based upon the Licensed Material and in which
69
+ the Licensed Material is translated, altered, arranged, transformed, or
70
+ otherwise modified in a manner requiring permission under the Copyright
71
+ and Similar Rights held by the Licensor. For purposes of this Public
72
+ License, where the Licensed Material is a musical work, performance, or
73
+ sound recording, Adapted Material is always produced where the Licensed
74
+ Material is synched in timed relation with a moving image.
75
+
76
+ b. Adapter's License means the license You apply to Your Copyright and
77
+ Similar Rights in Your contributions to Adapted Material in accordance
78
+ with the terms and conditions of this Public License.
79
+
80
+ c. Copyright and Similar Rights means copyright and/or similar rights
81
+ closely related to copyright including, without limitation, performance,
82
+ broadcast, sound recording, and Sui Generis Database Rights, without
83
+ regard to how the rights are labeled or categorized. For purposes of
84
+ this Public License, the rights specified in Section 2(b)(1)-(2) are
85
+ not Copyright and Similar Rights.
86
+
87
+ d. Effective Technological Measures means those measures that, in the
88
+ absence of proper authority, may not be circumvented under laws
89
+ fulfilling obligations under Article 11 of the WIPO Copyright Treaty
90
+ adopted on December 20, 1996, and/or similar international agreements.
91
+
92
+ e. Exceptions and Limitations means fair use, fair dealing, and/or any
93
+ other exception or limitation to Copyright and Similar Rights that
94
+ applies to Your use of the Licensed Material.
95
+
96
+ f. Licensed Material means the artistic or literary work, database, or
97
+ other material to which the Licensor applied this Public License.
98
+
99
+ g. Licensed Rights means the rights granted to You subject to the terms
100
+ and conditions of this Public License, which are limited to all
101
+ Copyright and Similar Rights that apply to Your use of the Licensed
102
+ Material and that the Licensor has authority to license.
103
+
104
+ h. Licensor means the individual(s) or entity(ies) granting rights under
105
+ this Public License.
106
+
107
+ i. Share means to provide material to the public by any means or process
108
+ that requires permission under the Licensed Rights, such as reproduction,
109
+ public display, public performance, distribution, dissemination,
110
+ communication, or importation, and to make material available to the
111
+ public including in ways that members of the public may access the
112
+ material from a place and at a time individually chosen by them.
113
+
114
+ j. Sui Generis Database Rights means rights other than copyright resulting
115
+ from Directive 96/9/EC of the European Parliament and of the Council of
116
+ 11 March 1996 on the legal protection of databases, as amended and/or
117
+ succeeded, as well as other essentially equivalent rights anywhere in
118
+ the world.
119
+
120
+ k. You means the individual or entity exercising the Licensed Rights under
121
+ this Public License. Your has a corresponding meaning.
122
+
123
+ Section 2 -- Scope.
124
+
125
+ a. License grant.
126
+
127
+ 1. Subject to the terms and conditions of this Public License, the
128
+ Licensor hereby grants You a worldwide, royalty-free,
129
+ non-sublicensable, non-exclusive, irrevocable license to exercise
130
+ the Licensed Rights in the Licensed Material to:
131
+
132
+ A. reproduce and Share the Licensed Material, in whole or in part;
133
+ and
134
+
135
+ B. produce, reproduce, and Share Adapted Material.
136
+
137
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
138
+ Exceptions and Limitations apply to Your use, this Public License
139
+ does not apply, and You do not need to comply with its terms and
140
+ conditions.
141
+
142
+ 3. Term. The term of this Public License is specified in Section 6(a).
143
+
144
+ 4. Media and formats; technical modifications allowed. The Licensor
145
+ authorizes You to exercise the Licensed Rights in all media and
146
+ formats whether now known or hereafter created, and to make technical
147
+ modifications necessary to do so. The Licensor waives and/or agrees
148
+ not to assert any right or authority to forbid You from making
149
+ technical modifications necessary to exercise the Licensed Rights,
150
+ including technical modifications necessary to circumvent Effective
151
+ Technological Measures. For purposes of this Public License, simply
152
+ making modifications authorized by this Section 2(a)(4) never
153
+ produces Adapted Material.
154
+
155
+ 5. Downstream recipients.
156
+
157
+ A. Offer from the Licensor -- Licensed Material. Every recipient of
158
+ the Licensed Material automatically receives an offer from the
159
+ Licensor to exercise the Licensed Rights under the terms and
160
+ conditions of this Public License.
161
+
162
+ B. No downstream restrictions. You may not offer or impose any
163
+ additional or different terms or conditions on, or apply any
164
+ Effective Technological Measures to, the Licensed Material if doing
165
+ so restricts exercise of the Licensed Rights by any recipient of
166
+ the Licensed Material.
167
+
168
+ 6. No endorsement. Nothing in this Public License constitutes or may be
169
+ construed as permission to assert or imply that You are, or that Your
170
+ use of the Licensed Material is, connected with, or sponsored,
171
+ endorsed, or granted official status by, the Licensor or others
172
+ designated to receive attribution as provided in Section 3(a)(1)(A)(i).
173
+
174
+ b. Other rights.
175
+
176
+ 1. Moral rights, such as the right of integrity, are not licensed under
177
+ this Public License, nor are publicity, privacy, and/or other similar
178
+ personality rights; however, to the extent possible, the Licensor
179
+ waives and/or agrees not to assert any such rights held by the
180
+ Licensor to the limited extent necessary to allow You to exercise the
181
+ Licensed Rights, but not otherwise.
182
+
183
+ 2. Patent and trademark rights are not licensed under this Public
184
+ License.
185
+
186
+ 3. To the extent possible, the Licensor waives any right to collect
187
+ royalties from You for the exercise of the Licensed Rights, whether
188
+ directly or through a collecting society under any voluntary or
189
+ waivable statutory or compulsory licensing scheme. In all other cases
190
+ the Licensor expressly reserves any right to collect such royalties.
191
+
192
+ Section 3 -- License Conditions.
193
+
194
+ Your exercise of the Licensed Rights is expressly made subject to the
195
+ following conditions.
196
+
197
+ a. Attribution.
198
+
199
+ 1. If You Share the Licensed Material (including in modified form), You
200
+ must:
201
+
202
+ A. retain the following if it is supplied by the Licensor with the
203
+ Licensed Material:
204
+
205
+ i. identification of the creator(s) of the Licensed Material and
206
+ any others designated to receive attribution, in any reasonable
207
+ manner requested by the Licensor (including by pseudonym if
208
+ designated);
209
+
210
+ ii. a copyright notice;
211
+
212
+ iii. a notice that refers to this Public License;
213
+
214
+ iv. a notice that refers to the disclaimer of warranties;
215
+
216
+ v. a URI or hyperlink to the Licensed Material to the extent
217
+ reasonably practicable;
218
+
219
+ B. indicate if You modified the Licensed Material and retain an
220
+ indication of any previous modifications; and
221
+
222
+ C. indicate the Licensed Material is licensed under this Public
223
+ License, and include the text of, or the URI or hyperlink to, this
224
+ Public License.
225
+
226
+ 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable
227
+ manner based on the medium, means, and context in which You Share the
228
+ Licensed Material. For example, it may be reasonable to satisfy the
229
+ conditions by providing a URI or hyperlink to a resource that includes
230
+ the required information.
231
+
232
+ 3. If requested by the Licensor, You must remove any of the information
233
+ required by Section 3(a)(1)(A) to the extent reasonably practicable.
234
+
235
+ 4. If You Share Adapted Material You produce, the Adapter's License You
236
+ apply must not prevent recipients of the Adapted Material from
237
+ complying with this Public License.
238
+
239
+ Section 4 -- Sui Generis Database Rights.
240
+
241
+ Where the Licensed Rights include Sui Generis Database Rights that apply
242
+ to Your use of the Licensed Material:
243
+
244
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right to
245
+ extract, reuse, reproduce, and Share all or a substantial portion of the
246
+ contents of the database;
247
+
248
+ b. if You include all or a substantial portion of the database contents in
249
+ a database in which You have Sui Generis Database Rights, then the
250
+ database in which You have Sui Generis Database Rights (but not its
251
+ individual contents) is Adapted Material; and
252
+
253
+ c. You must comply with the conditions in Section 3(a) if You Share all or
254
+ a substantial portion of the contents of the database.
255
+
256
+ For the avoidance of doubt, this Section 4 supplements and does not replace
257
+ Your obligations under this Public License where the Licensed Rights include
258
+ other Copyright and Similar Rights.
259
+
260
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
261
+
262
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE EXTENT
263
+ POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS AND
264
+ AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND
265
+ CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, IMPLIED, STATUTORY,
266
+ OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, WARRANTIES OF TITLE,
267
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT,
268
+ ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OR
269
+ ABSENCE OF ERRORS, WHETHER OR NOT KNOWN OR DISCOVERABLE. WHERE
270
+ DISCLAIMERS OF WARRANTIES ARE NOT ALLOWED IN FULL OR IN PART, THIS
271
+ DISCLAIMER MAY NOT APPLY TO YOU.
272
+
273
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE TO YOU
274
+ ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, NEGLIGENCE) OR
275
+ OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, INCIDENTAL, CONSEQUENTIAL,
276
+ PUNITIVE, EXEMPLARY, OR OTHER LOSSES, COSTS, EXPENSES, OR DAMAGES
277
+ ARISING OUT OF THIS PUBLIC LICENSE OR USE OF THE LICENSED MATERIAL,
278
+ EVEN IF THE LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
279
+ LOSSES, COSTS, EXPENSES, OR DAMAGES. WHERE A LIMITATION OF LIABILITY IS
280
+ NOT ALLOWED IN FULL OR IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
281
+
282
+ c. The disclaimer of warranties and limitation of liability provided above
283
+ shall be interpreted in a manner that, to the extent possible, most
284
+ closely approximates an absolute disclaimer and waiver of all liability.
285
+
286
+ Section 6 -- Term and Termination.
287
+
288
+ a. This Public License applies for the term of the Copyright and Similar
289
+ Rights licensed here. However, if You fail to comply with this Public
290
+ License, then Your rights under this Public License terminate
291
+ automatically.
292
+
293
+ b. Where Your right to use the Licensed Material has terminated under
294
+ Section 6(a), it reinstates:
295
+
296
+ 1. automatically as of the date the violation is cured, provided it is
297
+ cured within 30 days of Your discovery of the violation; or
298
+
299
+ 2. upon express reinstatement by the Licensor.
300
+
301
+ For the avoidance of doubt, this Section 6(b) does not affect any right
302
+ the Licensor may have to seek remedies for Your violations of this Public
303
+ License.
304
+
305
+ c. For the avoidance of doubt, the Licensor may also offer the Licensed
306
+ Material under separate terms or conditions or stop distributing the
307
+ Licensed Material at any time; however, doing so will not terminate this
308
+ Public License.
309
+
310
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
311
+
312
+ Section 7 -- Other Terms and Conditions.
313
+
314
+ a. The Licensor shall not be bound by any additional or different terms or
315
+ conditions communicated by You unless expressly agreed.
316
+
317
+ b. Any arrangements, understandings, or agreements regarding the Licensed
318
+ Material not stated herein are separate from and independent of the
319
+ terms and conditions of this Public License.
320
+
321
+ Section 8 -- Interpretation.
322
+
323
+ a. For the avoidance of doubt, this Public License does not, and shall not
324
+ be interpreted to, reduce, limit, restrict, or impose conditions on any
325
+ use of the Licensed Material that could lawfully be made without
326
+ permission under this Public License.
327
+
328
+ b. To the extent possible, if any provision of this Public License is deemed
329
+ unenforceable, it shall be automatically reformed to the minimum extent
330
+ necessary to make it enforceable. If the provision cannot be reformed,
331
+ it shall be severed from this Public License without affecting the
332
+ enforceability of the remaining terms and conditions.
333
+
334
+ c. No term or condition of this Public License will be waived and no failure
335
+ to comply consented to unless expressly agreed to by the Licensor.
336
+
337
+ d. Nothing in this Public License constitutes or may be interpreted as a
338
+ limitation upon, or waiver of, any privileges and immunities that apply
339
+ to the Licensor or You, including from the legal processes of any
340
+ jurisdiction or authority.
341
+
342
+ =======================================================================
343
+
344
+ Creative Commons is not a party to its public licenses.
345
+ Notwithstanding, Creative Commons may elect to apply one of its public
346
+ licenses to material it publishes and in those instances will be considered
347
+ the "Licensor." The text of the Creative Commons public licenses is
348
+ dedicated to the public domain under the CC0 Public Domain Dedication.
349
+ Except for the limited purpose of indicating that material is shared under
350
+ a Creative Commons public license or as otherwise permitted by the Creative
351
+ Commons policies published at creativecommons.org/policies, Creative
352
+ Commons does not authorize the use of the trademark "Creative Commons" or
353
+ any other trademark or logo of Creative Commons without its prior written
354
+ consent including, without limitation, in connection with any unauthorized
355
+ modifications to any of its public licenses or any other arrangements,
356
+ understandings, or agreements concerning use of licensed material. For the
357
+ avoidance of doubt, this paragraph does not form part of the public
358
+ licenses.
359
+
360
+ Creative Commons may be contacted at creativecommons.org.
README.md ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ pretty_name: EdgeBench
8
+ size_categories:
9
+ - n<1K
10
+ tags:
11
+ - benchmark
12
+ - code-agents
13
+ - evaluation
14
+ - long-horizon
15
+ viewer: false
16
+ ---
17
+
18
+ <p align="center">
19
+ <picture>
20
+ <source media="(prefers-color-scheme: dark)" srcset="assets/logo-dark.png">
21
+ <img src="assets/logo.jpg" alt="ByteDance Seed" width="420">
22
+ </picture>
23
+ </p>
24
+
25
+ <p align="center">
26
+ <picture>
27
+ <source media="(prefers-color-scheme: dark)" srcset="assets/title-dark.svg">
28
+ <img src="assets/title.svg" alt="EdgeBench" width="280">
29
+ </picture>
30
+ </p>
31
+
32
+ <!-- <p align="center">
33
+ <strong>Measuring How AI Agents Learn from Real-World Environments</strong>
34
+ </p>
35
+
36
+ <p align="center">
37
+ 134 real-world tasks &nbsp;|&nbsp; 51 open-source &nbsp;|&nbsp; 6 capability categories &nbsp;|&nbsp; 38,000+ hours of agent interaction
38
+ </p> -->
39
+
40
+ <p align="center">
41
+ <a href="https://edge-bench.org/"><img src="https://img.shields.io/badge/Project-edge--bench.org-blue" alt="Project"></a>
42
+ <a href="https://edge-bench.org/paper.pdf"><img src="https://img.shields.io/badge/Tech%20Report-PDF-red?logo=adobeacrobatreader" alt="Tech Report"></a>
43
+ <a href="https://github.com/ByteDance-Seed/EdgeBench"><img src="https://img.shields.io/badge/GitHub-EdgeBench-green?logo=github" alt="GitHub"></a>
44
+ <a href="https://bytedance-seed.github.io/EdgeBench/"><img src="https://img.shields.io/badge/Docs-SForge%20Harness-purple" alt="Docs"></a>
45
+ </p>
46
+
47
+ ---
48
+
49
+ ## Overview
50
+
51
+ **EdgeBench** is a benchmark of **134 real-world tasks** for evaluating how autonomous AI agents *learn from real-world environments*. Instead of measuring one-shot performance, EdgeBench places agents in executable task environments with realistic, multi-level feedback and lets them iterate for **12+ hours** per task — tracking the full trajectory of improvement, not just the final score. We publicly release **51 tasks** along with the full evaluation framework.
52
+
53
+ Analyzing ~38,000 hours of agent interaction on all 134 tasks, we find that **performance follows a log-sigmoid scaling law as a function of interaction time** ($R^2 = 0.998$). See the [tech report](https://edge-bench.org/paper.pdf) for details.
54
+
55
+ <p align="center">
56
+ <img src="assets/fig_full_136_curve_fit_side_by_side.png" alt="Log-sigmoid scaling fit across 134 tasks" width="800">
57
+ </p>
58
+
59
+ ## Leaderboard
60
+
61
+ ### Full Benchmark (134 tasks)
62
+
63
+ | Model | @2h | @4h | @6h | @8h | @10h | **@12h** |
64
+ |:------|:---:|:---:|:---:|:---:|:----:|:--------:|
65
+ | **Claude Opus 4.8** | **39.0** | **45.7** | **48.1** | **49.8** | **50.9** | **51.3** |
66
+ | GPT-5.5 | 36.8 | 42.1 | 44.5 | 46.3 | 47.6 | 48.4 |
67
+ | GPT-5.4 | 29.7 | 34.0 | 36.5 | 38.0 | 38.9 | 39.3 |
68
+ | GLM-5.1 | 26.0 | 30.4 | 32.9 | 34.9 | 36.5 | 37.4 |
69
+ | DS-V4-Pro | 23.3 | 27.1 | 29.0 | 29.9 | 30.9 | 31.0 |
70
+
71
+ <details>
72
+ <summary><b>Category Scores @12h (134 tasks)</b></summary>
73
+
74
+ | Model | Scientific & ML | Systems & SE | Optimization | Knowledge | Formal | Games |
75
+ |:------|:-------:|:----:|:------------:|:---------:|:----:|:-----:|
76
+ | **Claude Opus 4.8** | **48.5** | **67.4** | **36.5** | **47.0** | **55.0** | **39.3** |
77
+ | GPT-5.5 | 44.3 | 65.0 | 33.6 | 45.7 | 50.0 | 39.1 |
78
+ | GPT-5.4 | 33.5 | 54.1 | 27.9 | 38.8 | 40.8 | 29.0 |
79
+ | GLM-5.1 | 33.8 | 50.9 | 26.4 | 43.5 | 24.6 | 29.3 |
80
+ | DS-V4-Pro | 30.0 | 43.0 | 21.5 | 37.0 | 14.1 | 16.9 |
81
+
82
+ </details>
83
+
84
+ ### Open-Source Subset (51 tasks)
85
+
86
+ | Model | @2h | @4h | @6h | @8h | @10h | **@12h** |
87
+ |:------|:---:|:---:|:---:|:---:|:----:|:--------:|
88
+ | **Claude Opus 4.8** | **33.2** | **38.4** | **40.6** | **41.9** | **42.9** | **43.6** |
89
+ | GPT-5.5 | 31.0 | 35.7 | 37.9 | 39.9 | 41.7 | 42.7 |
90
+ | GPT-5.4 | 25.1 | 28.3 | 30.4 | 32.2 | 33.4 | 34.3 |
91
+ | GLM-5.1 | 21.4 | 24.2 | 26.7 | 28.2 | 29.1 | 30.3 |
92
+ | DS-V4-Pro | 17.1 | 21.0 | 22.8 | 23.5 | 24.6 | 25.1 |
93
+
94
+ <details>
95
+ <summary><b>Category Scores @12h (51 tasks)</b></summary>
96
+
97
+ | Model | Scientific & ML | Systems & SE | Optimization | Knowledge | Formal | Games |
98
+ |:------|:-------:|:----:|:------------:|:---------:|:----:|:-----:|
99
+ | **Claude Opus 4.8** | **31.8** | **62.0** | **38.2** | **38.7** | 40.9 | **39.3** |
100
+ | GPT-5.5 | 27.7 | 60.5 | 32.3 | 38.4 | **49.0** | 39.1 |
101
+ | GPT-5.4 | 25.7 | 50.1 | 29.9 | 31.6 | 30.2 | 29.0 |
102
+ | GLM-5.1 | 25.7 | 43.6 | 26.7 | 31.0 | 19.9 | 29.3 |
103
+ | DS-V4-Pro | 23.8 | 37.6 | 24.1 | 33.2 | 12.7 | 16.9 |
104
+
105
+ </details>
106
+
107
+ <details>
108
+ <summary><b>Per-Task Scores by Time Budget (51 tasks)</b></summary>
109
+
110
+ Each model cell reports scores at `@2h / @4h / @6h / @8h / @10h / @12h`. Missing valid results are shown as `—`.
111
+
112
+ | Task | Category | Opus 4.8 | GPT-5.5 | GPT-5.4 | GLM-5.1 | DS-V4-Pro |
113
+ |:-----|:-------|:---------|:--------|:--------|:--------|:----------|
114
+ | bipedalwalker_locomotion_rl | Scientific & ML | 16.7/20.8/22.4/23.3/23.3/23.3 | 14.7/14.9/15.2/15.2/16.0/21.0 | 13.9/13.9/13.9/14.5/14.5/17.5 | 13.9/20.3/21.5/22.5/22.5/22.5 | 8.9/14.8/17.6/20.4/20.4/20.6 |
115
+ | capecod_plume_reconstruction | Scientific & ML | 10.0/15.3/17.3/18.0/18.2/19.9 | 11.7/13.7/15.1/16.2/16.4/16.4 | 10.7/11.5/12.2/12.5/12.5/12.6 | 8.6/9.0/9.2/10.3/10.5/10.9 | 7.9/8.5/8.5/8.8/8.8/8.8 |
116
+ | dabic_gravity_inversion | Scientific & ML | 9.5/15.2/15.7/17.4/17.5/17.5 | 15.9/16.2/16.7/17.0/17.2/17.3 | 14.6/14.6/15.5/15.5/15.0/15.0 | 9.2/13.7/16.0/16.5/16.5/17.1 | —/12.7/12.7/12.7/13.0/13.8 |
117
+ | graph_node_classification | Scientific & ML | 59.4/62.7/65.0/65.6/66.5/66.6 | 54.7/55.1/55.1/55.3/55.9/56.0 | 54.9/56.2/56.5/56.9/57.5/57.6 | 49.4/52.3/52.3/52.3/52.3/52.3 | 46.0/48.2/49.2/51.3/51.7/51.8 |
118
+ | ann_vector_search_qps | Systems & SE | 26.2/57.0/58.6/58.7/59.4/59.7 | 22.3/34.3/35.1/36.0/40.0/40.7 | 27.5/30.2/44.5/45.2/49.7/50.2 | 6.7/24.4/25.6/25.6/26.1/38.3 | 9.4/19.6/22.4/22.8/23.8/23.8 |
119
+ | arc_compiler_runtime | Systems & SE | 49.3/52.0/52.0/52.0/52.0/52.0 | 55.5/56.5/60.9/70.3/71.0/72.4 | 45.1/46.5/49.8/49.8/50.0/50.0 | 47.7/48.0/48.4/48.7/48.7/48.7 | 40.3/41.7/44.2/44.2/44.2/44.2 |
120
+ | exchange_core_throughput | Systems & SE | 40.7/57.0/58.5/58.9/59.7/59.7 | 15.4/37.2/39.9/44.3/51.3/53.2 | 14.3/40.8/41.0/45.2/46.4/47.3 | 29.2/43.7/46.5/48.6/50.3/52.6 | 32.9/33.8/45.0/47.7/48.4/48.6 |
121
+ | ffmpeg_swscale_reimplementation | Systems & SE | 9.9/17.6/19.8/20.9/21.1/21.1 | 8.8/14.3/15.1/15.3/15.3/15.3 | 5.4/8.5/9.4/11.6/13.3/13.9 | 0.3/0.3/0.4/2.2/2.2/2.2 | 0.1/1.9/2.0/3.8/3.8/3.8 |
122
+ | git_rewrite_in_zig | Systems & SE | 22.0/22.8/22.8/22.8/23.1/23.1 | 16.1/16.9/17.7/18.2/18.2/18.4 | 9.6/13.8/14.0/14.2/14.2/15.4 | 12.0/20.2/23.3/23.4/23.4/23.5 | 8.5/13.5/16.0/17.6/17.8/17.9 |
123
+ | integer_compression_codec | Systems & SE | 69.4/69.7/74.8/74.9/75.2/75.3 | 61.1/67.6/73.9/73.9/74.3/74.4 | 38.6/40.9/41.2/42.2/42.2/42.3 | 23.5/27.3/28.5/28.7/28.9/28.9 | 15.9/16.0/16.2/16.2/16.2/16.2 |
124
+ | juliet_vulnerability_analyzer | Systems & SE | 71.9/74.9/75.4/75.6/75.6/75.6 | 81.0/83.2/85.4/86.8/87.4/89.8 | 52.9/66.1/74.3/76.0/76.8/77.2 | 59.3/60.7/62.8/63.5/63.5/63.5 | 46.8/63.1/66.1/66.2/66.2/66.2 |
125
+ | rust_multicrate_reconstruction | Systems & SE | —/—/—/—/—/— | 27.5/42.6/53.1/54.9/57.8/57.8 | 16.7/19.9/21.3/21.4/21.4/21.4 | 24.8/24.8/25.2/25.2/37.5/38.5 | 20.5/21.7/22.7/23.1/23.5/23.6 |
126
+ | schemathesis_config_modernization | Systems & SE | 82.5/85.0/86.1/87.4/87.4/87.7 | 79.1/82.2/82.9/83.2/83.6/84.0 | 67.2/68.8/68.8/71.7/71.7/71.9 | 58.3/59.7/60.4/61.2/61.7/61.7 | 54.3/54.3/55.3/55.3/55.3/55.6 |
127
+ | schemathesis_datagen_pipeline | Systems & SE | 68.0/70.2/70.2/70.2/70.2/70.2 | 54.6/54.6/56.7/56.7/56.7/56.7 | 56.6/56.6/56.6/56.6/56.6/56.6 | 62.1/64.2/64.2/67.0/67.0/67.0 | 47.9/50.1/52.3/52.3/52.3/52.3 |
128
+ | schemathesis_reporting_observability | Systems & SE | 73.9/75.6/76.2/76.2/76.2/76.2 | 76.6/76.6/76.6/76.6/77.1/77.1 | 70.0/73.7/74.7/75.7/76.2/76.2 | 61.9/61.9/61.9/61.9/61.9/61.9 | 59.4/62.4/63.0/63.0/65.0/65.0 |
129
+ | vliw_kernel_optimization | Systems & SE | 74.0/76.0/77.7/79.5/79.6/80.9 | 71.6/75.7/77.1/79.5/83.1/85.6 | 75.7/77.0/77.2/78.7/79.1/79.1 | 5.6/9.5/27.5/35.0/35.9/35.9 | 0.2/24.9/28.1/33.0/33.9/34.1 |
130
+ | ad_placement_optimization | Optimization | 65.2/66.1/66.9/67.1/67.4/67.7 | 44.0/53.3/59.5/61.6/62.9/62.9 | 41.8/42.4/43.1/47.7/47.9/48.1 | 48.7/52.7/53.3/56.5/58.5/58.8 | 25.5/28.5/35.2/35.8/36.2/36.2 |
131
+ | apple_incremental_game | Optimization | 42.7/44.9/45.9/48.6/49.9/50.6 | 26.6/29.8/30.6/32.7/33.1/33.6 | 28.3/30.3/32.0/33.3/33.9/34.9 | 19.0/19.0/19.1/19.1/19.1/19.1 | 19.6/19.7/19.7/19.7/19.7/19.7 |
132
+ | equivalence_class_divide_and_conquer | Optimization | 11.2/15.3/17.0/20.1/20.8/21.3 | 11.8/15.5/15.8/21.3/22.2/22.4 | 14.5/17.0/18.3/18.7/20.2/20.3 | 3.8/4.2/10.0/8.0/10.6/10.6 | 0.7/1.8/3.2/3.2/3.4/3.4 |
133
+ | grid_turing_robot | Optimization | 34.7/37.1/37.3/39.6/40.3/40.3 | 40.4/41.6/41.9/42.0/42.1/42.2 | 26.8/26.8/27.2/28.9/28.9/28.9 | 20.0/21.0/24.6/24.6/24.6/25.7 | 23.7/24.1/24.1/24.1/24.2/24.2 |
134
+ | jagua_nesting_optimization | Optimization | 11.2/17.8/24.5/31.4/41.0/44.2 | 15.9/19.4/20.0/20.6/21.3/21.6 | 22.4/23.0/23.9/24.0/24.1/24.1 | 8.9/9.0/10.0/12.2/12.3/12.4 | 10.7/20.2/23.7/26.7/28.1/28.4 |
135
+ | molecular_self_assembly | Optimization | 22.4/33.4/34.0/34.1/34.4/34.7 | 20.2/20.3/20.5/20.7/20.7/20.7 | 20.8/21.1/21.1/21.5/21.5/21.6 | 10.0/12.5/12.9/13.0/13.1/13.2 | 19.4/21.7/21.8/21.8/21.9/21.9 |
136
+ | order_addition_permutation_optimization | Optimization | 22.6/31.6/34.0/34.4/35.7/36.4 | 16.7/20.5/21.5/22.4/23.0/23.3 | 1.6/10.6/13.1/14.0/14.2/14.3 | 2.0/2.1/23.6/25.8/25.8/33.2 | 4.6/16.5/17.8/22.9/25.4/30.8 |
137
+ | smt_solver | Optimization | 10.3/17.4/19.0/23.1/23.3/23.9 | 7.2/7.8/8.4/8.6/8.6/8.6 | 6.7/7.9/8.9/9.1/9.1/9.2 | 2.7/2.7/2.7/2.7/2.7/3.6 | 1.4/2.8/3.3/3.3/3.3/3.3 |
138
+ | treant_forest | Optimization | 14.5/15.9/16.1/16.2/16.4/18.0 | 12.1/14.2/14.9/15.2/15.5/15.6 | 12.2/12.2/12.7/13.0/13.2/13.3 | 8.0/11.6/11.7/14.1/14.5/16.9 | 6.8/8.1/9.7/10.1/12.7/13.5 |
139
+ | tree_block_partitioning | Optimization | 21.5/30.1/32.4/36.8/37.7/37.7 | 28.8/31.1/33.0/33.0/35.0/36.4 | 23.1/26.8/28.8/32.9/34.3/34.3 | 12.1/15.4/17.1/19.3/20.3/23.4 | 11.2/11.8/11.9/11.9/14.6/16.1 |
140
+ | triangulation_coloring_optimization | Optimization | 70.8/71.4/71.9/73.2/73.3/73.4 | 73.7/74.3/74.5/75.0/75.1/75.2 | 74.1/74.2/74.3/74.3/74.3/74.3 | 68.8/71.2/71.6/72.0/72.7/73.0 | 56.1/58.0/59.0/59.1/59.1/59.3 |
141
+ | vehicle_routing_time_windows | Optimization | 72.5/72.6/72.9/73.6/73.7/74.0 | 88.7/89.0/89.4/89.7/89.7/90.8 | 85.3/88.6/88.7/89.5/89.5/89.6 | 76.6/76.6/76.6/76.6/76.6/77.9 | 54.7/76.8/81.9/82.2/82.9/83.1 |
142
+ | vibrating_path_graph_coloring | Optimization | 19.7/21.1/21.4/22.5/24.5/25.3 | 10.1/10.5/10.6/10.7/10.7/11.4 | 18.1/19.4/19.8/23.4/23.6/24.1 | 9.6/18.3/20.3/22.9/22.9/22.9 | 12.4/14.4/19.3/19.4/21.8/22.1 |
143
+ | warehouse_forklift_routing | Optimization | 7.7/9.5/10.4/10.5/11.1/11.2 | 9.8/11.0/11.8/11.9/12.1/12.6 | 0.0/0.0/0.0/0.0/0.0/0.0 | —/0.0/0.0/0.6/0.7/0.5 | 0.0/0.0/0.0/0.0/0.0/0.0 |
144
+ | wireless_electricity_layout | Optimization | 6.5/13.7/14.4/14.5/14.5/14.5 | 6.2/6.9/7.1/7.1/7.1/7.2 | 10.9/11.1/11.1/11.1/11.1/11.1 | 7.2/9.4/6.6/8.1/9.4/9.5 | 0.0/0.0/0.0/0.0/0.0/0.0 |
145
+ | college_english_exam_bank | Knowledge | 24.8/28.3/34.8/35.5/35.8/39.8 | 24.5/35.5/35.5/35.5/37.8/37.8 | 30.7/30.7/31.3/34.0/34.0/34.5 | 22.2/26.0/29.3/30.0/32.3/32.5 | 19.2/21.7/22.5/22.7/29.2/34.7 |
146
+ | cta_risk_budget_optimization | Knowledge | 42.7/44.8/45.3/45.3/45.3/46.1 | 43.8/45.8/46.7/46.7/46.7/46.7 | 46.0/49.0/49.0/49.0/49.8/49.8 | 38.1/44.8/49.0/49.6/49.6/49.6 | 44.0/45.6/46.9/46.9/48.1/48.1 |
147
+ | k12_math_recommendation | Knowledge | 23.6/38.5/41.4/42.0/43.7/44.3 | 38.5/42.4/42.9/43.5/43.9/44.0 | 25.9/29.0/30.0/30.8/31.1/31.4 | 24.8/25.7/31.9/32.5/32.7/32.7 | 25.6/26.3/26.8/25.7/26.0/26.3 |
148
+ | portfolio_risk_calibration | Knowledge | 20.1/21.6/23.0/23.6/23.6/24.5 | 17.3/21.3/22.7/23.5/24.4/25.0 | 6.0/9.6/10.7/10.7/10.7/10.7 | 0.0/8.4/8.5/8.9/9.2/9.4 | 10.4/16.3/16.6/16.7/23.7/23.7 |
149
+ | carleson_formalization | Formal | 4.3/7.7/11.0/12.7/15.0/16.8 | 6.0/9.5/13.2/16.5/25.3/26.5 | 1.8/3.5/4.6/5.4/6.3/7.1 | 1.0/1.7/2.0/2.2/2.2/2.2 | 0.8/1.3/2.0/2.0/2.3/2.5 |
150
+ | combinatorial_games_formalization | Formal | 14.5/23.2/27.6/32.1/34.5/35.5 | 12.0/18.8/24.6/27.2/33.4/38.2 | 5.9/8.3/11.5/13.5/16.3/17.8 | 6.7/9.8/14.3/14.9/16.2/16.2 | 4.3/6.7/7.3/7.4/7.7/7.8 |
151
+ | flt_regular_formalization | Formal | 31.0/41.8/50.6/50.6/50.6/50.6 | 43.7/48.3/50.6/66.7/75.1/75.1 | 1.5/19.5/28.4/41.8/46.0/48.3 | 14.4/13.4/16.5/18.8/18.8/38.7 | 5.7/11.9/14.6/14.9/17.2/17.6 |
152
+ | lean_analysis_proofs | Formal | 17.9/25.1/28.6/30.2/32.6/33.0 | 16.8/23.2/28.4/33.9/39.0/42.5 | 3.6/8.1/10.8/12.9/15.5/16.4 | 5.2/5.9/5.9/5.9/5.9/5.9 | 5.8/7.3/8.2/8.8/9.3/9.5 |
153
+ | new_foundations_consistency | Formal | 28.9/36.2/50.0/62.7/64.2/65.1 | 13.7/38.2/55.1/56.4/65.1/66.5 | 3.3/12.2/14.9/20.5/30.7/39.8 | 2.2/3.3/5.1/21.9/24.6/27.0 | 2.2/3.4/6.5/7.2/10.5/11.4 |
154
+ | ordinal_notation_well_foundedness | Formal | 10.6/18.4/24.7/24.7/24.7/24.7 | 13.7/24.7/24.7/24.7/24.7/24.7 | 1.2/5.5/13.7/15.3/18.4/21.6 | 2.0/3.5/5.1/5.9/5.9/5.9 | 3.5/3.5/4.7/4.7/4.7/4.7 |
155
+ | pfr_formalization | Formal | 32.4/36.9/38.8/40.2/45.6/46.3 | 30.7/38.3/41.9/47.6/52.7/60.0 | 10.2/13.7/27.1/34.0/35.9/38.9 | 8.3/14.9/22.5/26.5/31.3/33.5 | 9.9/14.7/16.5/17.8/18.5/19.1 |
156
+ | sphere_eversion_formalization | Formal | 41.7/47.4/49.1/50.4/54.1/55.4 | 45.0/51.1/55.0/55.9/56.9/58.5 | 13.3/20.2/32.7/43.7/50.4/51.4 | 15.5/24.2/26.7/28.7/30.2/30.2 | 2.9/14.1/22.3/24.9/28.6/29.3 |
157
+ | anchorhead_text_adventure | Games | 13.3/19.3/19.7/20.3/22.3/22.3 | 15.0/26.3/31.7/34.3/35.3/36.3 | 5.0/11.7/13.0/13.3/14.7/17.7 | 10.7/17.3/19.7/20.3/20.3/20.3 | 2.0/6.0/7.3/8.0/12.3/14.7 |
158
+ | dcss_dungeon_ai | Games | 4.2/4.9/5.9/6.3/6.3/8.3 | 8.9/9.7/10.0/10.0/13.3/13.4 | 2.6/5.6/5.6/5.6/6.1/6.1 | 2.8/3.0/3.3/3.3/5.1/7.6 | 2.8/3.6/4.4/4.5/5.1/5.7 |
159
+ | nethack_dungeon_agent | Games | 29.7/35.3/36.7/37.3/41.9/41.9 | 16.6/17.6/18.1/20.6/21.3/22.5 | 10.9/14.1/15.2/15.8/17.0/20.4 | 2.3/2.3/15.3/21.6/21.6/21.6 | 1.0/1.4/2.9/3.2/3.2/3.3 |
160
+ | openrct2_theme_park_ai | Games | 24.4/24.4/26.0/26.0/27.5/27.5 | 28.5/28.6/32.7/37.3/37.4/37.6 | 23.0/23.1/23.1/23.1/23.1/23.1 | 35.1/36.2/36.2/36.2/36.2/36.2 | 24.4/24.4/24.4/26.0/26.0/26.0 |
161
+ | openttd_transport_ai | Games | 50.0/50.4/50.6/51.7/51.8/52.0 | 10.1/11.6/13.2/21.9/25.6/28.1 | 10.8/11.4/11.6/11.9/11.9/11.9 | 0.0/0.0/0.0/0.0/0.0/0.0 | 4.8/9.2/9.3/12.3/15.2/15.2 |
162
+ | trinity_text_adventure | Games | 25.0/28.0/29.3/30.0/30.0/30.0 | 22.3/26.7/28.7/36.3/36.3/40.0 | 16.3/19.7/22.7/23.3/23.7/27.0 | 16.0/18.7/24.3/26.0/26.7/26.7 | 16.3/16.3/17.7/20.0/20.0/20.3 |
163
+ | tryst_text_adventure | Games | 18.1/33.8/36.7/40.0/40.0/44.3 | 32.1/42.4/44.3/48.6/55.2/55.7 | 19.5/20.0/20.0/31.0/38.6/44.3 | 18.6/28.6/36.2/40.5/42.9/43.3 | 8.6/11.4/11.4/11.4/11.4/13.8 |
164
+ | wesnoth_tactical_ai | Games | 84.0/85.3/87.7/87.7/87.7/88.0 | 64.7/73.0/76.3/78.0/78.3/79.3 | 79.7/79.7/80.3/80.3/81.3/81.3 | 75.7/78.3/78.3/78.3/78.3/78.3 | 17.0/36.3/36.3/36.3/36.3/36.3 |
165
+
166
+ </details>
167
+
168
+ ## Task Taxonomy
169
+
170
+ EdgeBench contains **134 realistic, diverse tasks** spanning six capability categories, of which **51 are publicly released**. Each task is designed as a day-scale challenge with a performance ceiling high enough that no current agent can saturate it. Recorded human expert effort averages **57.2 hours** per task (up to 320 hours).
171
+
172
+ <p align="center">
173
+ <img src="assets/edgebench_taxonomy.png" alt="EdgeBench Task Taxonomy" width="850">
174
+ </p>
175
+
176
+ ## Evaluation Harness: SForge
177
+
178
+ EdgeBench is powered by [**SForge**](https://github.com/ByteDance-Seed/EdgeBench), a two-container evaluation harness built for long-horizon agent evaluation. See the [SForge documentation](https://bytedance-seed.github.io/EdgeBench/) for setup and usage instructions.
179
+
180
+ ## Citation
181
+
182
+ If you find EdgeBench useful in your research, please cite our tech report:
183
+
184
+ ```bibtex
185
+ @misc{edgebench2026,
186
+ title = {EdgeBench: Unveiling Scaling Laws of Learning from Real-World Environments},
187
+ author = {Deyao Zhu and Xin Zhou and Shengling Qin and Xuekai Zhu and Hangliang Ding and Shu Zhong and others},
188
+ year = {2026},
189
+ url = {https://edge-bench.org/paper.pdf},
190
+ }
191
+ ```
192
+
193
+ ## License
194
+
195
+ EdgeBench task datasets are released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
196
+
197
+ ## Contact
198
+
199
+ > To evaluate on the full 134-task suite, please contact [zhongshu@bytedance.com](mailto:zhongshu@bytedance.com).
200
+
201
+ <p align="center">
202
+ <picture>
203
+ <source media="(prefers-color-scheme: dark)" srcset="assets/logo-dark.png">
204
+ <img src="assets/logo.jpg" alt="ByteDance Seed" width="200">
205
+ </picture>
206
+ <br>
207
+ <sub>Built by <a href="https://github.com/ByteDance-Seed">ByteDance Seed</a></sub>
208
+ </p>
ad_placement_optimization.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "ad_placement_optimization",
3
+ "name": "Ad Placement Optimization",
4
+ "category": "Combinatorial Optimization",
5
+ "base_image": "cpp",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/ad-placement",
9
+ "submit_paths": [
10
+ "solution.cpp"
11
+ ],
12
+ "work": {
13
+ "image_tag": "49747cad3ebd",
14
+ "specs_dir": "/home/workspace/ad-placement",
15
+ "agent_query": "## Ad Placement Optimization\n\nYou need to place rectangular ads for n companies on a 10000x10000 grid.\n\nEach company i wants an ad space containing point (x_i+0.5, y_i+0.5) with area as close to r_i as possible. Maximize the total satisfaction.\n\nFull problem description, constraints, scoring formula, and input/output format are in `README.md`.\n\n## Local Testing Tools\n\n`tools/` provides an input generator and scoring program. The generator reads a seed file and writes generated cases into a directory; it does not accept a raw seed directly.\n\n```bash\n# Generate one test input\nprintf '0\\n' > /tmp/seeds.txt\nrm -rf /tmp/ad_cases && mkdir -p /tmp/ad_cases\n./tools/bin/gen /tmp/seeds.txt -d /tmp/ad_cases\ncp /tmp/ad_cases/0000.txt input.txt\n\n# Run your solution\n./my_solution < input.txt > output.txt\n\n# Score it\n./tools/bin/tester input.txt output.txt\n# stderr: Score = <number>\n```\n\nFor multiple local cases, put one seed per line in the seed file, for example `seq 0 9 > /tmp/seeds.txt`, then run `./tools/bin/gen /tmp/seeds.txt -d /tmp/ad_cases`.\n\nYou can generate unlimited test data with any seed value. Use this extensively for local testing and optimization.\n\n## Compilation\n\nRecommended: C++17 with `g++ -std=c++17 -O2`.\n\nTime limit: 5 seconds per test case. Memory limit: 1 GB. No GPU.\n\n## Rules\n\n- Write your solution as a single C++ file in the project root directory\n- Do NOT modify files in `tools/`\n- Use `tools/bin/gen` with a seed file and `tools/bin/tester` for local testing\n- Your program should read from stdin and write to stdout\n- Run your solution to completion and verify with the tester before finishing"
16
+ },
17
+ "judge": {
18
+ "image_tag": "56cbfc81cfa1",
19
+ "eval_cmd": "cd /home/workspace/ad-placement && bash /tmp/eval_ahc.sh",
20
+ "eval_timeout": 600,
21
+ "parser": "score_sum",
22
+ "score_direction": "maximize",
23
+ "selection": "score_first",
24
+ "rescale": {
25
+ "kind": "piecewise_max",
26
+ "baseline": 0.0,
27
+ "rank30": 47169682940.0,
28
+ "rank1": 49702568341.0,
29
+ "super_anchor": 50000000000.0
30
+ }
31
+ }
32
+ }
anchorhead_text_adventure.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "anchorhead_text_adventure",
3
+ "name": "Anchorhead Text Adventure",
4
+ "category": "Interactive Games & Simulators",
5
+ "base_image": "python310",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "game_mode": true,
9
+ "cwd": "/home/jericho_agent",
10
+ "submit_paths": [],
11
+ "work": {
12
+ "image_tag": "61ded5caecc2",
13
+ "specs_dir": "/home/jericho_agent",
14
+ "agent_query": "## Anchorhead — Jericho Text Adventure\n\nPlay the interactive fiction game *Anchorhead* by sending commands via an HTTP API and maximize your score.\n"
15
+ },
16
+ "judge": {
17
+ "image_tag": "356542b1bce0",
18
+ "eval_cmd": "",
19
+ "eval_timeout": 600,
20
+ "parser": "",
21
+ "selection": "score_first",
22
+ "game_server_cmd": "python /tmp/game_server_app.py --rom /home/roms/anchor.z8",
23
+ "rescale": {
24
+ "kind": "linear",
25
+ "lower": 0.0,
26
+ "upper": 100.0
27
+ }
28
+ }
29
+ }
ann_vector_search_qps.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "ann_vector_search_qps",
3
+ "name": "Ann Vector Search Qps",
4
+ "category": "Systems & Software Engineering",
5
+ "base_image": "python310",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/ann-benchmarks",
9
+ "submit_paths": [
10
+ "ann_benchmarks/algorithms/custom/"
11
+ ],
12
+ "work": {
13
+ "image_tag": "74bf3ba9a919",
14
+ "specs_dir": "/home/workspace/ann-benchmarks",
15
+ "agent_query": "## Role\n\nYou are an expert in approximate nearest neighbor (ANN) search. Your job is to maximize **QPS** (queries per second) on the SIFT-1M dataset (1M × 128-d vectors, 10K queries) under the ann-benchmarks framework, while keeping **Recall@10 ≥ 0.95**.\n\n---\n\n## Repository Layout\n\n- `run.py` — evaluation driver (already present)\n- `ann_benchmarks/algorithms/` — algorithm plugins; each algorithm subclasses `BaseANN` and registers in its own `config.yml`\n- `ann_benchmarks/algorithms/custom/` — **your** slot; contains a baseline `module.py` (brute-force numpy) and a `config.yml` naming the algorithm `custom`\n- `data/sift-128-euclidean.hdf5` — dataset (pre-downloaded, contains `train` and `test` arrays)\n\n---\n\n## What To Do\n\n1. Read `README.md`, `ann_benchmarks/algorithms/README.md`, and look at existing algorithms (e.g. `ann_benchmarks/algorithms/faiss/`) for reference implementations.\n2. Improve `ann_benchmarks/algorithms/custom/module.py` — implement a faster `fit()` + `query()` using FAISS (`faiss-cpu` is pre-installed) or a custom implementation. Keep the class name `Custom` and the module path `ann_benchmarks.algorithms.custom`.\n3. You may tune hyperparameters via `ann_benchmarks/algorithms/custom/config.yml` (IVF nlist, HNSW M/efConstruction, PQ subquantizers, etc.).\n4. For local runs after each change:\n ```bash\n python run.py --local --algorithm custom --dataset sift-128-euclidean -k 10 --runs 1 --run-disabled\n ```\n The benchmark prints QPS and recall metrics to the console. Use these to track your progress.\n\n---\n\n## Optimization Directions (suggestions)\n\n- IVF bucketing (nlist, nprobe)\n- HNSW (M, ef, efConstruction)\n- Product Quantization (subquantizers, bits)\n- Two-level routing (IVF-HNSW, IVF-PQ)\n- Early termination on candidate scan\n- Multi-threaded search (omp_set_num_threads)\n\nGLM-5.1 reference: 3108 QPS → 21472 QPS (6.9×) over 655 iterations.\n\n---\n\n## Scoring Integrity (CRITICAL)\n\nThe evaluation system independently measures query latency and verifies search results against the ground truth. Your score is determined by the actual search performance of your algorithm.\n\nYou must NOT:\n- Read or access ground truth data (the `neighbors` dataset) during query execution\n- Override timing attributes or manipulate benchmark measurements (e.g., via `get_additional()`)\n- Monkey-patch the `time` module or any benchmark framework internals\n- Attempt to fabricate or inflate scores through any means other than legitimate algorithmic improvements\n\nAny attempt to manipulate scores will result in score=0 and the submission marked as hack.\n\n---\n\n## Rules\n\n- Keep the algorithm name `custom` and leave its config discoverable via `python run.py --list-algorithms`\n- Do NOT modify `run.py` or any file outside `ann_benchmarks/algorithms/custom/`\n- Recall@10 < 0.95 on a config makes that config invalid (score = 0)\n- Final score is the **highest QPS** among valid (recall-passing) configs\n"
16
+ },
17
+ "judge": {
18
+ "image_tag": "9171f6b6de41",
19
+ "eval_cmd": "cd /home/workspace/ann-benchmarks && python3 /tmp/eval_ann_search.py",
20
+ "eval_timeout": 7800,
21
+ "parser": "score_sum",
22
+ "score_direction": "maximize",
23
+ "selection": "score_first",
24
+ "rescale": {
25
+ "kind": "log_max",
26
+ "baseline": 3108.0,
27
+ "expert": 21472.0
28
+ }
29
+ }
30
+ }
apple_incremental_game.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "apple_incremental_game",
3
+ "name": "Apple Incremental Game",
4
+ "category": "Combinatorial Optimization",
5
+ "base_image": "python310",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/apple_incremental_game",
9
+ "submit_paths": [
10
+ "solution.py"
11
+ ],
12
+ "work": {
13
+ "image_tag": "d3c6ed381c59",
14
+ "specs_dir": "/home/workspace/apple_incremental_game",
15
+ "agent_query": "## Apple Incremental Game - Machine Production (AHC058)\n\nWrite `solution.py` in the project root that reads from stdin and writes to stdout.\n\n---\n\n## Problem Overview\n\nRead `README.md` and `tools/README.md` for full problem details. A baseline `solution.py` already exists (it produces syntactically valid but low-quality output). Your job is to improve it.\n\n---\n\n## Evaluation\n\nYour solution is scored on **50 fixed test cases**. Final score = sum of individual case scores. **Higher is better.**\n\n---\n\n## Local Testing\n\nGenerate local random tests with `./tools/bin/gen <seed>`, using seeds in the range **0..10000** only.\n\n```bash\n# Generate a random test case (seed-based, deterministic)\n./tools/bin/gen 0 > input.txt\n\n# Run your solution\npython3 solution.py < input.txt > output.txt\n\n# Score output (Higher is better)\n./tools/bin/tester input.txt output.txt\n# Outputs to stderr: Score = <N>\n```\n\n---\n\n## Rules\n\n- Write your solution as `solution.py` in the project root directory\n- Do NOT modify files in `tools/`\n- Use `tools/bin/gen` and `tools/bin/tester` for local testing\n- For local scoring, use only `./tools/bin/tester`; do not use `tools/src/verifier.py` for scores\n- Your program should read from stdin and write to stdout\n- Run your solution to completion and verify with the tester before finishing\n"
16
+ },
17
+ "judge": {
18
+ "image_tag": "16968d8ec7f2",
19
+ "eval_cmd": "cd /home/workspace/apple_incremental_game && python3 /tmp/eval_apple_incremental_game.py",
20
+ "eval_timeout": 600,
21
+ "parser": "score_sum",
22
+ "score_direction": "maximize",
23
+ "selection": "score_first",
24
+ "rescale": {
25
+ "kind": "piecewise_max",
26
+ "baseline": 45000000.0,
27
+ "rank30": 262328915.6667,
28
+ "rank1": 282791094.0,
29
+ "super_anchor": 289952856.4167
30
+ }
31
+ }
32
+ }
arc_compiler_runtime.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "arc_compiler_runtime",
3
+ "name": "Arc Compiler Runtime",
4
+ "category": "Systems & Software Engineering",
5
+ "base_image": "python",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/arc-compiler-runtime-implementation/agent-start",
9
+ "submit_paths": [
10
+ "compiler/src/"
11
+ ],
12
+ "submit_exclude": [
13
+ "compiler/dist/",
14
+ "tests/",
15
+ "node_modules/",
16
+ ".git/",
17
+ ".github/",
18
+ ".DS_Store",
19
+ "*.map"
20
+ ],
21
+ "work": {
22
+ "image_tag": "c92a7b116597",
23
+ "specs_dir": "/home/workspace/arc-compiler-runtime-implementation/agent-start",
24
+ "agent_query": "Implement the missing Arc compiler and runtime modules under compiler/src/. Use CHEATSHEET.md, TASK.md, and the public smoke tests as the language contract. Modify only files under compiler/src/. Do not modify tests, scoring scripts, task metadata, Dockerfiles, package files, node_modules, generated dist artifacts, source maps, or evaluator-owned files. Work offline and do not depend on hidden tests or hard-coded answers."
25
+ },
26
+ "judge": {
27
+ "image_tag": "200e176a8e30",
28
+ "eval_cmd": "cd /home/workspace/arc-compiler-runtime-implementation && python -c 'exec(\"import json\\nimport re\\nimport subprocess\\n\\nproc = subprocess.run(['\"'\"'bash'\"'\"', '\"'\"'evaluator-hidden/score_hidden.sh'\"'\"', '\"'\"'agent-start'\"'\"'], text=True, capture_output=True, timeout=1400)\\noutput = (proc.stdout or '\"'\"''\"'\"') + (proc.stderr or '\"'\"''\"'\"')\\nprint(output, end='\"'\"''\"'\"')\\nscore_match = re.search(r'\"'\"'^SCORE=([-+]?\\\\d+(?:\\\\.\\\\d+)?)$'\"'\"', output, re.MULTILINE)\\nraw_passed_match = re.search(r'\"'\"'^RAW_PASSED=(\\\\d+)$'\"'\"', output, re.MULTILINE)\\nraw_total_match = re.search(r'\"'\"'^RAW_TOTAL=(\\\\d+)$'\"'\"', output, re.MULTILINE)\\nweighted_passed_match = re.search(r'\"'\"'^WEIGHTED_PASSED=(\\\\d+)$'\"'\"', output, re.MULTILINE)\\nweighted_total_match = re.search(r'\"'\"'^WEIGHTED_TOTAL=(\\\\d+)$'\"'\"', output, re.MULTILINE)\\nscore = float(score_match.group(1)) if score_match else 0.0\\nraw_passed = int(raw_passed_match.group(1)) if raw_passed_match else 0\\nraw_total = int(raw_total_match.group(1)) if raw_total_match else 1\\nweighted_passed = int(weighted_passed_match.group(1)) if weighted_passed_match else 0\\nweighted_total = int(weighted_total_match.group(1)) if weighted_total_match else 1\\nvalid = proc.returncode == 0 and score_match is not None\\npass_rate = (raw_passed / raw_total) if raw_total else 0.0\\nprint('\"'\"'>>>>> Start Structured Result'\"'\"')\\nprint(json.dumps({\\n '\"'\"'valid'\"'\"': valid,\\n '\"'\"'score'\"'\"': score,\\n '\"'\"'pass_rate'\"'\"': pass_rate if valid else 0.0,\\n '\"'\"'total_tests'\"'\"': raw_total,\\n '\"'\"'passed'\"'\"': raw_passed if valid else 0,\\n '\"'\"'failed'\"'\"': max(raw_total - raw_passed, 0) if valid else raw_total,\\n '\"'\"'errors'\"'\"': 0 if valid else 1,\\n '\"'\"'summary'\"'\"': '\"'\"'Score: {:.2f}, raw: {}/{}, weighted: {}/{}'\"'\"'.format(score, raw_passed, raw_total, weighted_passed, weighted_total),\\n '\"'\"'details'\"'\"': [{\\n '\"'\"'name'\"'\"': '\"'\"'hidden_score'\"'\"',\\n '\"'\"'status'\"'\"': '\"'\"'PASSED'\"'\"' if valid and score > 0.0 else '\"'\"'FAILED'\"'\"',\\n '\"'\"'score'\"'\"': score,\\n '\"'\"'message'\"'\"': output[-2000:]\\n }],\\n '\"'\"'metrics'\"'\"': {\\n '\"'\"'score'\"'\"': score,\\n '\"'\"'raw_passed'\"'\"': raw_passed,\\n '\"'\"'raw_total'\"'\"': raw_total,\\n '\"'\"'weighted_passed'\"'\"': weighted_passed,\\n '\"'\"'weighted_total'\"'\"': weighted_total,\\n '\"'\"'runner_returncode'\"'\"': proc.returncode\\n }\\n}, ensure_ascii=False))\\nprint('\"'\"'>>>>> End Structured Result'\"'\"')\\n\")'",
29
+ "eval_timeout": 1500,
30
+ "parser": "structured_json",
31
+ "score_direction": "maximize",
32
+ "selection": "score_first",
33
+ "rescale": {
34
+ "kind": "linear",
35
+ "lower": 0.0,
36
+ "upper": 100.0
37
+ }
38
+ }
39
+ }
assets/edgebench_taxonomy.png ADDED

Git LFS Details

  • SHA256: 410389a02424d8ead0c6e3726fe32c136b1b0fedc6d46f4d443ecad57460b4a3
  • Pointer size: 132 Bytes
  • Size of remote file: 3.1 MB
assets/fig_dual_loop.png ADDED

Git LFS Details

  • SHA256: 029020dc8b878483e07e3404f30cff729fa046ca50ccae68de6e6dbafd39e7c2
  • Pointer size: 131 Bytes
  • Size of remote file: 203 kB
assets/fig_full_136_curve_fit_side_by_side.png ADDED

Git LFS Details

  • SHA256: 8783935cb9eb8f2ddb80e1e3c7c9d739bd096b7e3d10f01615112e547a6a108b
  • Pointer size: 131 Bytes
  • Size of remote file: 601 kB
assets/fig_rank_paper_panel.png ADDED

Git LFS Details

  • SHA256: f4ce03d135874d4348357e7da31466a448a3cd9735013e45fdd121d3be640f63
  • Pointer size: 131 Bytes
  • Size of remote file: 161 kB
assets/logo-dark.png ADDED
assets/logo.jpg ADDED

Git LFS Details

  • SHA256: 4350601f82da6e581fdd45f7f2c4744d2c5127b12f27cb952a99987b3e72142a
  • Pointer size: 131 Bytes
  • Size of remote file: 234 kB
assets/time_area_log2_curve.png ADDED

Git LFS Details

  • SHA256: 02488f90337ff13acd8f243ad27bcf0184633147103dacc90cfb7a6eb04ba781
  • Pointer size: 131 Bytes
  • Size of remote file: 455 kB
assets/title-dark.svg ADDED
assets/title.svg ADDED
bipedalwalker_locomotion_rl.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "bipedalwalker_locomotion_rl",
3
+ "name": "Bipedalwalker Locomotion Rl",
4
+ "category": "Scientific Problems & ML",
5
+ "base_image": "python",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/loco-rl",
9
+ "submit_paths": [
10
+ "submission/"
11
+ ],
12
+ "submit_exclude": [
13
+ "submission/eval_results.json",
14
+ "submission/checkpoints/",
15
+ "submission/*.log",
16
+ "submission/*.tmp",
17
+ "__pycache__/",
18
+ "eval/",
19
+ "sebench_eval.py",
20
+ ".git/"
21
+ ],
22
+ "work": {
23
+ "image_tag": "f9a2f8394c09",
24
+ "specs_dir": "/home/workspace/loco-rl",
25
+ "agent_query": "## Role\n\nYou are a Python and reinforcement-learning systems engineer optimizing a CPU-only locomotion agent.\n\n## Project\n\nRead `task_prompt.md`, `README.md`, `baseline/train_baseline.py`, and `envs/locomotion_env.py`. The editable submission area is `submission/`.\n\n## Objective\n\nTrain a BipedalWalker policy on CPU in this work container and save the final trained checkpoint as `submission/policy.pth`. The trusted judge does not run training; it only receives the submitted checkpoint and evaluates it on BipedalWalker-v3 and BipedalWalkerHardcore-v3.\n\n## Constraints\n\n- Keep your final implementation and checkpoint under `submission/`.\n- `submission/policy.pth` is submitted and required. Keep intermediate checkpoints outside `submission/` or under `submission/checkpoints/`.\n- You may provide `submission/policy.py` for custom PyTorch architectures; the judge supports `load_policy(path)`, `build_policy(checkpoint)`, or a `Policy` class.\n- Do not download or use pretrained policies, external RL libraries, or hidden evaluator files.\n- Use CPU only; CUDA is disabled during evaluation.\n- Hidden evaluator code is not present in this work container.\n- Trusted feedback is aggregate-only: reward summaries and scoring components are shown, but evaluator internals are not exposed.\n- Do not start with a long training run. First run smoke tests and short training loops; keep early iterations under 10 minutes, submit, then scale up once checkpoint loading works.\n- Submit whenever you have a candidate `submission/policy.pth` and want trusted feedback.\n\n## Time-Budget Workflow\n\nUse the available 2-hour agent window for active improvement. Do not stop after the first loadable checkpoint; submit within the first 30 minutes, then continue training, tuning, debugging, and submitting stronger checkpoints until you are close to the time limit. Do not idle or sleep just to consume wall-clock time.\n\n## Deliverable\n\nA final `submission/policy.pth`, plus any required `submission/policy.py`/`submission/train.py`, that the judge can load and evaluate."
26
+ },
27
+ "judge": {
28
+ "image_tag": "2db504ff563a",
29
+ "eval_cmd": "cd /home/workspace/loco-rl && SEBENCH_LOCO_EVAL_EPISODES=${SEBENCH_LOCO_EVAL_EPISODES:-10} python sebench_eval.py",
30
+ "eval_timeout": 900,
31
+ "parser": "structured_json",
32
+ "score_direction": "maximize",
33
+ "selection": "valid_then_score",
34
+ "rescale": {
35
+ "kind": "linear",
36
+ "lower": 0.0,
37
+ "upper": 100.0
38
+ }
39
+ }
40
+ }
capecod_plume_reconstruction.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "capecod_plume_reconstruction",
3
+ "name": "Capecod Plume Reconstruction",
4
+ "category": "Scientific Problems & ML",
5
+ "base_image": "python",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/capecod_plumebench",
9
+ "submit_paths": [
10
+ "model.py",
11
+ "predict.py",
12
+ "monitoring_plan.py",
13
+ "baseline_solver.py",
14
+ "predictions.csv",
15
+ "plume_metrics.json",
16
+ "monitoring_plan.json",
17
+ "answer.json",
18
+ "report.md"
19
+ ],
20
+ "submit_exclude": [
21
+ "data/",
22
+ "schemas/",
23
+ "hidden/",
24
+ "scoring/",
25
+ "__pycache__/"
26
+ ],
27
+ "work": {
28
+ "image_tag": "d051446beb3a",
29
+ "specs_dir": "/home/workspace/capecod_plumebench",
30
+ "agent_query": "# CapeCod-PlumeBench: Groundwater Plume Reconstruction and Monitoring Design\n\nYou are a groundwater remediation modeling engineer. The workspace contains partial public monitoring\ndata from an offline benchmark inspired by the USGS Cape Cod treated-wastewater groundwater plume.\n\nYour job is to replace the weak baseline with a better, defensible modeling workflow that:\n\n1. Cleans and interprets public well, chemistry, and site-configuration data.\n2. Predicts hidden well/year/analyte concentrations listed in `data/prediction_requests.csv`.\n3. Estimates plume metrics requested in `data/plume_metric_requests.csv`.\n4. Proposes up to 8 next monitoring wells under the budget in `data/public_site_config.json`.\n5. Writes a concise technical report explaining your model, assumptions, validation, and monitoring logic.\n\nRequired outputs:\n\n- `model.py`\n- `predict.py`\n- `monitoring_plan.py`\n- `predictions.csv`\n- `plume_metrics.json`\n- `monitoring_plan.json`\n- `answer.json`\n- `report.md`\n\nRun `python baseline_solver.py` to regenerate outputs before submitting. The current baseline is valid\nbut intentionally weak. Improve the model rather than only editing output files. Good solutions use\nspace-time structure, analyte-specific behavior, plume-front geometry, censored observations, and\nuncertainty-aware monitoring selection.\n\nRules:\n\n- Do not attempt to read hidden judge or scoring files.\n- Do not hard-code target truth values or hidden candidate utilities.\n- Keep all outputs finite, nonnegative, and schema-compliant.\n- Respect the monitoring budget and maximum number of wells.\n"
31
+ },
32
+ "judge": {
33
+ "image_tag": "f633dd04bd60",
34
+ "eval_cmd": "python /opt/capecod_scoring/evaluate.py",
35
+ "eval_timeout": 180,
36
+ "parser": "score_sum",
37
+ "score_direction": "maximize",
38
+ "selection": "score_first"
39
+ }
40
+ }
carleson_formalization.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "carleson_formalization",
3
+ "name": "Carleson Formalization",
4
+ "category": "Formal Math & Theorem Proving",
5
+ "base_image": "lean_4",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/",
9
+ "submit_paths": [
10
+ "se-bmk-intern/carleson"
11
+ ],
12
+ "submit_exclude": [
13
+ "se-bmk-intern/carleson/.lake"
14
+ ],
15
+ "work": {
16
+ "image_tag": "cde1812224f4",
17
+ "specs_dir": null,
18
+ "agent_query": "You are a lean4 expert, now your task is to finish **all** sorries in this folder. Pay no attention to anything outside this folder. There are many sorries but do not be afraid as we value minor progress and the time is abundant. Try to do some easy problems and accumulate scores each round. Before you submit, run a `lake build` to verify the changes locally - if the build failed, no score will be given. Also, do not modify the signature of existing lemma/theorem/def as these changes will not pass the judge evaluation. Finally, we check the axioms transitively, finishing a theorem without completeing precedent lemma will not count."
19
+ },
20
+ "judge": {
21
+ "image_tag": "77d26108339f",
22
+ "eval_cmd": "cd /home/workspace/se-bmk-intern/carleson && cp -r /home/workspace/judge/se-bmk-intern/carleson/.lake . && cp /home/workspace/judge/se-bmk-intern/carleson/lake-manifest.json . && lake build && cp /home/workspace/judge/se-bmk-intern/carleson/ListDeclAxiom.lean . && cd /home/workspace/judge/se-bmk-intern && python3 eval_lean.py --baseline-repo /home/workspace/judge/se-bmk-intern/carleson --current-repo /home/workspace/se-bmk-intern/carleson",
23
+ "eval_timeout": 2400,
24
+ "parser": "structured_json",
25
+ "rescale": {
26
+ "kind": "linear",
27
+ "lower": 0.0,
28
+ "upper": 1.0
29
+ }
30
+ }
31
+ }
college_english_exam_bank.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "college_english_exam_bank",
3
+ "name": "College English Exam Bank",
4
+ "category": "Professional Knowledge Work",
5
+ "base_image": "python",
6
+ "platform": "linux/amd64",
7
+ "internet": true,
8
+ "cwd": "/home/workspace",
9
+ "submit_paths": [
10
+ "A卷原卷.docx",
11
+ "A卷原卷.pdf",
12
+ "A卷答案和评分细则.docx",
13
+ "A卷答案和评分细则.pdf",
14
+ "B卷原卷.docx",
15
+ "B卷原卷.pdf",
16
+ "B卷答案和评分细则.docx",
17
+ "B卷答案和评分细则.pdf",
18
+ "C卷原卷.docx",
19
+ "C卷原卷.pdf",
20
+ "C卷答案和评分细则.docx",
21
+ "C卷答案和评分细则.pdf",
22
+ "D卷原卷.docx",
23
+ "D卷原卷.pdf",
24
+ "D卷答案和评分细则.docx",
25
+ "D卷答案和评分细则.pdf",
26
+ "E卷原卷.docx",
27
+ "E卷原卷.pdf",
28
+ "E卷答案和评分细则.docx",
29
+ "E卷答案和评分细则.pdf",
30
+ "五套组卷蓝图表.xlsx",
31
+ "套间重复率自检表.xlsx"
32
+ ],
33
+ "submit_exclude": [
34
+ ".git",
35
+ "__pycache__",
36
+ "*.pyc"
37
+ ],
38
+ "work": {
39
+ "image_tag": "9b1f87c2906b",
40
+ "specs_dir": null,
41
+ "agent_query": "Read the complete task instructions in `/home/workspace/task_instruction.md`, and complete the task according to those requirements. The final deliverables must be written to the file paths specified in `task_instruction.md`.\n"
42
+ },
43
+ "judge": {
44
+ "image_tag": "6628b6d3f834",
45
+ "eval_cmd": "cd /home/workspace && python3 scoring/grade_with_codex.py --report . --scoring-dir scoring --task-id college_english_exam_bank --input-dir input --timeout 900",
46
+ "eval_timeout": 900,
47
+ "parser": "structured_json",
48
+ "score_direction": "maximize",
49
+ "selection": "score_first"
50
+ }
51
+ }
combinatorial_games_formalization.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "combinatorial_games_formalization",
3
+ "name": "Combinatorial Games Formalization",
4
+ "category": "Formal Math & Theorem Proving",
5
+ "base_image": "lean_4_28_0_main",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/",
9
+ "submit_paths": [
10
+ "se-bmk-intern/combinatorial-games"
11
+ ],
12
+ "submit_exclude": [
13
+ "se-bmk-intern/combinatorial-games/.lake"
14
+ ],
15
+ "work": {
16
+ "image_tag": "b6f1b58f681e",
17
+ "specs_dir": null,
18
+ "agent_query": "You are a lean4 expert, now your task is to finish **all** sorries in this folder. Pay no attention to anything outside this folder. There are many sorries but do not be afraid as we value minor progress and the time is abundant. Try to do some easy problems and accumulate scores each round. Before you submit, run a `lake build` to verify the changes locally - if the build failed, no score will be given. Also, do not modify the signature of existing lemma/theorem/def as these changes will not pass the judge evaluation."
19
+ },
20
+ "judge": {
21
+ "image_tag": "e4e88a24e340",
22
+ "eval_cmd": "cd /home/workspace/se-bmk-intern/combinatorial-games && cp -r /home/workspace/baseline/.lake . && cp /home/workspace/baseline/lake-manifest.json . && lake build && cp /home/workspace/judge/se-bmk-intern/combinatorial-games/ListDeclAxiom.lean . && cd /home/workspace/judge/se-bmk-intern && python3 eval_lean.py --baseline-repo /home/workspace/judge/se-bmk-intern/combinatorial-games --current-repo /home/workspace/se-bmk-intern/combinatorial-games",
23
+ "eval_timeout": 2400,
24
+ "parser": "structured_json",
25
+ "rescale": {
26
+ "kind": "linear",
27
+ "lower": 0.0,
28
+ "upper": 1.0
29
+ }
30
+ }
31
+ }
cta_risk_budget_optimization.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "cta_risk_budget_optimization",
3
+ "name": "Cta Risk Budget Optimization",
4
+ "category": "Professional Knowledge Work",
5
+ "base_image": "python",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace",
9
+ "submit_paths": [
10
+ "run.py",
11
+ "main.py",
12
+ "config.json",
13
+ "config.yaml",
14
+ "nav_history.csv",
15
+ "signal_matrix.csv",
16
+ "positions.csv",
17
+ "trades.csv",
18
+ "risk_budget_allocation.csv",
19
+ "performance_report.md",
20
+ "performance_report.xlsx",
21
+ "stress_test_report.md",
22
+ "stress_test_results.xlsx",
23
+ "sensitivity_analysis_report.md",
24
+ "sensitivity_analysis.xlsx",
25
+ "diagnostics.json",
26
+ "outputs"
27
+ ],
28
+ "submit_exclude": [
29
+ ".git",
30
+ "__pycache__",
31
+ "*.pyc",
32
+ "node_modules",
33
+ "bin",
34
+ "obj",
35
+ "attachments",
36
+ "task_instruction.md",
37
+ "requirements.txt",
38
+ "futures_price_data.xlsx",
39
+ "futures_contract_specs.xlsx",
40
+ "macro_factors_data.xlsx",
41
+ "risk_policy_doc.docx",
42
+ "strategy_research_notes.docx"
43
+ ],
44
+ "work": {
45
+ "image_tag": "d799d7f632c3",
46
+ "specs_dir": null,
47
+ "agent_query": "Your complete task instructions are in `/home/workspace/task_instruction.md`.\n\nFirst run `cat /home/workspace/task_instruction.md` to read the full task requirements, then complete the task in whatever way you think is most appropriate.\n\nYou may freely decide how to work, including whether to make a plan, how many steps to use, and how to organize the deliverables. The only hard requirements are:\n1. The final deliverables must be written to the file paths specified in `task_instruction.md`.\n2. Periodically submit your current progress to obtain scoring feedback.\n3. Continuously improve your deliverables based on the scoring feedback.\n4. It is recommended that you create the deliverable files and write an initial draft skeleton within the first 15 minutes, then continue researching and improving them as you go, rather than waiting until all materials have been analyzed before writing anything.\n"
48
+ },
49
+ "judge": {
50
+ "image_tag": "a9651058ecef",
51
+ "eval_cmd": "cd /home/workspace && python3 scoring/score.py",
52
+ "eval_timeout": 600,
53
+ "parser": "structured_json",
54
+ "score_direction": "maximize",
55
+ "selection": "score_first"
56
+ }
57
+ }
dabic_gravity_inversion.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "dabic_gravity_inversion",
3
+ "name": "Dabic Gravity Inversion",
4
+ "category": "Scientific Problems & ML",
5
+ "base_image": "python",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/dabic_gravity_vinton",
9
+ "submit_paths": [
10
+ "outputs/"
11
+ ],
12
+ "submit_exclude": [
13
+ "tests/",
14
+ "__pycache__/",
15
+ "*.pyc",
16
+ "*.npy",
17
+ ".ipynb_checkpoints/"
18
+ ],
19
+ "work": {
20
+ "image_tag": "85db0aba8a5f",
21
+ "specs_dir": "/home/workspace/dabic_gravity_vinton/docs",
22
+ "agent_query": "Task objective: Port the D-ABIC method proposed by Song Han et al. in the 2025 Geophysics paper doi 10.1190/geo-2025-0233 to 3D gravity inversion, and validate it on the measured Vinton salt dome dataset. Read `starter/README.md` for detailed instructions.\n\nThe inversion must be completed separately under both L0 and L1 sparse regularization norms. For each norm, run a three-way comparison among D-ABIC, Cooling, and L-curve. Xu et al.'s 2025 Geophysical Prospecting paper doi 10.1111/1365-2478.70016 performed gravity inversion on the same Vinton dataset using an HMC method; use it as the comparison benchmark.\n\nFour stages:\n1. Algorithm implementation: read `docs/geo20250233.pdf` and implement a D-ABIC beta-adaptive directive. The suggested name is `class DABIC_Beta_Estimator(directives.InversionDirective)`, placed in a separate module `outputs/dabic_directive.py`. Decide for yourself whether to use the model-space or data-space form, how to compute determinants, and in which space to optimize beta. The directive must work under both the L0 and L1 norms.\n2. Synthetic validation: `starter/starter.py` provides the synthetic density model Model 3, survey points, noisy observed data, and forward simulation object, but does not include an inversion framework. Build the SimPEG inversion workflow yourself, and implement both Cooling and L-curve scan baselines. Run the three-way comparison for both L0 and L1.\n3. Field-data application: `data/saltdome_s7_100.grd` is the measured Vinton salt dome gravity-anomaly data, in Surfer 7 binary format. It can be parsed by `starter/explore_xu_data.py`. Refer to `docs/Xu2025_HMC.pdf` for the inversion mesh, depth range, density bounds, and related settings.\n4. Result comparison: compare quantitatively and qualitatively with the Xu 2025 HMC results, and write `outputs/report.md`, 800 to 1500 words/characters in length.\n\nDeliver to `outputs/`: dabic_directive.py, run_synthetic.py, run_vinton.py, results.json, report.md.\n\nAll dependencies are preinstalled; you do not need to and cannot install additional packages. The container has no network access and cannot access external resources.\n\nConstraints: beta must not be hard-coded as a constant; do not import any third-party ABIC package; do not use SimPEG's built-in high-level automatic beta directives; BetaEstimate_ByEig may only be used to set the initial beta_0 value; both L0 and L1 inversions must be fully completed; do not expand the work to other regularization strategies such as GCV or HMC; do not modify starter/explore_xu_data.py or starter/starter.py.\n"
23
+ },
24
+ "judge": {
25
+ "image_tag": "517eb738b87b",
26
+ "eval_cmd": "cd /home/workspace/dabic_gravity_vinton && PYTHONPATH=/opt/evaluator python /opt/evaluator/eval_dabic_v2.py /home/workspace/dabic_gravity_vinton/outputs/",
27
+ "eval_timeout": 21600,
28
+ "parser": "structured_json",
29
+ "score_direction": "maximize",
30
+ "selection": "valid_then_score"
31
+ }
32
+ }
dcss_dungeon_ai.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "dcss_dungeon_ai",
3
+ "name": "Dcss Dungeon Ai",
4
+ "category": "Interactive Games & Simulators",
5
+ "base_image": "python310",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/dcss_agent",
9
+ "submit_paths": [
10
+ "my_bot.rc",
11
+ "my_bot_include.rc"
12
+ ],
13
+ "submit_exclude": [
14
+ ".git"
15
+ ],
16
+ "work": {
17
+ "image_tag": "e3aadae6b2b3",
18
+ "specs_dir": "/home/dcss_agent",
19
+ "agent_query": "## DCSS Dungeon Crawl Stone Soup AI\n\nWrite a Lua bot for DCSS (Dungeon Crawl Stone Soup, version 0.28) that maximizes game score, playing a Minotaur Berserker.\n\n---\n\n## How you're scored\n\n- Holdout: 5 hidden seeds, **900s game budget per game**, mean score across all 5 games. The 5 games run **in parallel**, so a full submission is about 15-18min plus overhead, and may finish earlier if games die or quit early.\n- Start combo is fixed for determinism: Minotaur Berserker with `weapon=mace`. The evaluator forces this with Crawl `-extra-opt-last weapon=mace`, so repeated unchanged submissions are not supposed to sample a different starting weapon.\n- **There is no turn limit.** Wall-time is the only constraint.\n- **You don't need to design death/termination.** At the 900s game-budget deadline, the eval automatically sends `Ctrl+G` + `Esc`x2 + `Ctrl+Q` + `yes` + `Enter` via the screen session, which makes crawl write a morgue regardless of game state (it forces an interrupt + abandon-character prompt). Your character ends with whatever XP/depth/items they accumulated; that's your score. Just play to maximize what you get in 900s. `crawl.millis()` returns a monotonic millisecond timestamp; if you use it, compare `crawl.millis() - start_ms`. The evaluator already handles end-of-game termination, so use `you.turns()` for turn-based bot logic unless you specifically need wall-clock self-pacing.\n- A game's score = the integer on line 5 of `morgue-EvalN-*.txt`, which is DCSS's own score formula (XP + depth + items + kills + ...).\n- Total eval is roughly 15-18min/submission because the five 900s games run in parallel; it is not `5 games x 3min`.\n\n## Two levers, both matter\n\n```\nscore ≈ turn_count × score_per_turn\n = (turn_rate × 900s) × score_per_turn\n```\n\n- **turn_rate** = how many game-turns you advance per second of wall-time. Bounded by PTY/screen overhead and which keys you send.\n- **score_per_turn** = how much score each turn produces on average. Bounded by strategy: depth reached, monsters killed, items used, neutralized risks.\n\nNeither alone is enough. High turn-rate while resting safely on D:1 = score 0. Perfect combat at 0.5 turn/s = ~450 turns in 900s, still shallow.\n\n## High-turn-rate operations (free time-skipping)\n\nDCSS folds multiple game-turns into a single Lua hook invocation when you use batch commands:\n\n| Key / command | Game-turns per call | Use case |\n|---|---|---|\n| `crawl.sendkeys(\"h\")` | 1 | Single-step move (slow) |\n| `crawl.do_commands({\"CMD_WAIT\"})` | 1 | Skip 1 turn |\n| `crawl.sendkeys(\"o\")` | ~10-50 | Autoexplore current level |\n| `crawl.sendkeys(\"G>\")` | ~50-200 when it works | Autotravel toward deeper levels; in console it can leave a `Where to?` prompt if used from the wrong state |\n| `crawl.do_commands({\"CMD_REST\"})` or `crawl.sendkeys(\"5\")` | up to 100 | Long-rest until full HP/MP or interrupted |\n| `crawl.sendkeys(\"G7\")` etc. | hundreds | Autotravel to a specific level |\n\nStair handling is a common bottleneck. `view.feature_at(0, 0)` only describes the tile you are standing on; downstairs features are typically named like `stone_stairs_down_i`, `stone_stairs_down_ii`, `stone_stairs_down_iii`, or `escape_hatch_down`. When already on a downstairs tile, `crawl.do_commands({\"CMD_GO_DOWNSTAIRS\"})` or `crawl.sendkeys(\">\")` is usually the direct descent. When stairs are visible but not under you, walk onto them first or use carefully tested travel. If a morgue shows repeated `Where to?`, `What level of the Dungeon?`, `Okay, then`, or `You're already here!`, your travel command is stuck in a prompt loop and is not advancing gameplay.\n\nBaseline uses `o` + single-step combat → ~1-2 turn/s. A bot that chains autotravel + long-rest + autofight can hit 10-50 turn/s.\n\n## Files you edit in `/home/dcss_agent/`\n\n1. `my_bot.rc` — DCSS options + `include = my_bot_include.rc`.\n2. `my_bot_include.rc` — Lua block. Defines `ready()` (called every turn) and `c_message(text, channel)` (catches prompts).\n\nRC/Lua syntax pitfall: the outer `{ ... }` in `my_bot_include.rc` is a DCSS rc Lua block delimiter. Avoid putting a Lua table-constructor closing brace `}` alone on its own line inside that block; the rc parser can treat it as the end of the Lua block, causing confusing `near '<eof>'` Lua errors. Prefer compact table endings like `[\"foo\"] = 1 }` or otherwise keep nested table braces away from standalone `}` lines.\n\nBoth have a baseline committed to git. If you wreck things: `git checkout HEAD -- my_bot.rc my_bot_include.rc`.\n\nBefore holdout submissions, make sure the current bot still runs locally. If `dcss-eval` returns all-zero scores, a turn-1 quit, repeated `Unknown command` / `Where to?` / `Okay, then`, or Lua/RC errors, keep debugging locally before submitting.\n\n## Iteration loop\n\nRequired cadence for long runs:\n\n1. First, inspect the two bot files and run one short local `dcss-eval` sanity check with any timeout you choose.\n2. If the current files run without syntax errors or immediate turn-1 quit, start a holdout submission in the background early, even if it is only the baseline. Use a command like `sforge-submit --details > /tmp/holdout_round1.log 2>&1 &` and keep debugging locally while it runs. Do not spend 20+ minutes local-only without any holdout submission in flight.\n3. When the holdout result returns, inspect `/tmp/holdout_round1.log` or run `sforge-submit --list`, then decide whether the current local idea is actually better before submitting it. For the second and later holdout submissions, require a real gameplay change plus clear local evidence across several public/random seeds. If local score collapses, cases only quit on turn 1, or the morgue shows prompt loops / repeated unknown commands, keep debugging locally instead of submitting.\n\n- **`dcss-eval`** at `/usr/local/bin/dcss-eval` — local evaluator, your seeds, your params, same suicide-mechanism as the judge:\n ```bash\n dcss-eval --n 1 --timeout 30 # very short sanity check\n dcss-eval --n 5 --parallel 5 --timeout SECONDS # broader local check; choose any debug timeout\n dcss-eval --seeds 7,42,99\n dcss-eval --random --n 5 # 5 random seeds from 1..100\n dcss-eval --show-morgue # dump death cause + morgue tail\n ```\n Local seed pool is 1..100, disjoint from the holdout. The holdout seed set and start weapon are fixed but hidden/controlled; repeated unchanged submissions are broadly comparable and cannot sample new maps or weapons. Wall-clock/PTTY scheduling can still create small score noise, so use submissions to measure real gameplay changes, not to gamble on unchanged or comment-only reruns. The local `--timeout` value is arbitrary and only controls your debugging runtime; it can be short or long as needed and does not reveal hidden seeds or change the judge. The holdout evaluator uses 900s per game. Optimizing on a few specific seeds gives **no signal** about holdout — rotate seeds, target robustness.\n\n- **`sforge-submit`** — submit to the holdout. About 15-18min round-trip because 5 games run in parallel at 900s/game. Run it in the background when possible and keep using `dcss-eval` plus code edits while it runs; do not block the whole session on one holdout unless you specifically need that result before choosing the next change. The submit UI reports the current submission `Score`, `Pass rate`, `Passed`, and metrics with each hidden case's morgue score; `--details` also shows hidden case IDs (`case_0000`..`case_0004`), pass/fail status, and each hidden case's morgue score, but never seed values. `Pass rate`/`Passed` comes from the judge CASE OK count: it only means how many games produced accepted morgues, so for this score task it is a validity check, not the quality metric. Optimize `Score`, which comes from `TOTAL_SCORE`. Do not spend time resubmitting unchanged or comment-only code: the holdout is fixed, so identical gameplay should score nearly the same apart from small scheduling noise, and only DCSS's morgue score is counted. Comments, `crawl.mpr`/`crawl.take_note` notes, API probes, and textual claims do not add score. Remove temporary probe/debug code such as `INVPROBE` before submitting; it can only add noise or slow the bot down.\n\n## DCSS Lua API quick reference\n\n- `you.turns()`, `you.hp()`, `you.where()`, `you.xl()`, `you.god()`\n- `crawl.do_commands({\"CMD_AUTOFIGHT\", \"CMD_REST\", \"CMD_WAIT\", \"CMD_GO_DOWNSTAIRS\"})` — named commands\n- `crawl.sendkeys(\"o\")` — raw keys (`o`=autoexplore, `>`=descend when standing on downstairs, `<`=ascend, `5`=long-rest, `G>`/`G7`=autotravel but can enter travel prompts if misused, `Ctrl+F`=find)\n- `crawl.millis()` — monotonic millisecond timestamp; compare deltas from a captured value; not needed for termination\n- `view.feature_at(dx, dy)` — terrain string at offset\n- `monster.get_monster_at(x, y)` — adjacent/visible monster; `:is_firewood()`, `:attitude()`, and `:name()` are useful. Avoid assuming every apparent monster method exists; verify with `dcss-eval --show-morgue` because a missing Lua method stops progress.\n- Trog abilities can be driven with `crawl.do_commands({\"CMD_USE_ABILITY\"})` plus `chk_ability_choice = \"a\"` for the first ability, but ability-menu APIs vary in Crawl 0.28. Test any ability code with `dcss-eval --show-morgue`; a Lua error in the morgue means that game stopped making progress.\n- `crawl.mpr(\"msg\")` — log to messages, captured in morgue Notes\n\nDocs in container: `/usr/share/crawl/docs/options_guide.txt`, `/usr/share/crawl/docs/keybind.txt`, `/usr/share/crawl/dat/clua/*.lua`, `/usr/share/crawl/dat/dlua/*.lua`.\n\n## Banned (auto-zero)\n\n- **Wizard mode / explore mode**: pressing `&` or `Ctrl+X` opens god-mode. Judge greps morgue for `Entered (wizard|explore) mode|WIZARD|EX-WIZARD` and zeroes the game. Local dcss-eval enforces the same.\n- Modifying `crawl` binary or eval scripts (not in `submit_paths` anyway).\n\nDeath-by-monster is the intended risk, not a thing to engineer around."
20
+ },
21
+ "judge": {
22
+ "image_tag": "db79574e3c30",
23
+ "eval_cmd": "python3 /tmp/eval_dcss.py",
24
+ "eval_timeout": 1100,
25
+ "parser": "structured_json",
26
+ "score_direction": "maximize",
27
+ "selection": "score_first",
28
+ "rescale": {
29
+ "kind": "log1p_max",
30
+ "upper": 50000.0,
31
+ "baseline": 400.0
32
+ }
33
+ }
34
+ }
equivalence_class_divide_and_conquer.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "equivalence_class_divide_and_conquer",
3
+ "name": "Equivalence Class Divide And Conquer",
4
+ "category": "Combinatorial Optimization",
5
+ "base_image": "cpp",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/p2",
9
+ "submit_paths": [
10
+ "T1.cpp",
11
+ "T2.cpp",
12
+ "T3.cpp",
13
+ "T4.cpp",
14
+ "T5.cpp",
15
+ "T6.cpp"
16
+ ],
17
+ "submit_exclude": [],
18
+ "work": {
19
+ "image_tag": "7d6371e4948e",
20
+ "specs_dir": "/home/workspace/p2",
21
+ "agent_query": "You need to complete six problems, with a total score of 100 points. The six problems are worth 5, 5, 10, 15, 25, and 40 points respectively. Each problem has several groups of test data. If all test data for a problem pass, you receive the full score for that problem. If a problem does not pass all test data but does pass some subtasks/test points, each passed subtask/test point can receive only half of its original score. Please work on the problems in order, with the goal of solving them as much as possible. These problems are progressive; if you do not know how to solve a later problem, it is recommended that you review the methods used for earlier problems and look for ideas there.\nWhen submitting code, the code files for the six problems should be named T1.cpp T2.cpp T3.cpp T4.cpp T5.cpp T6.cpp.\n"
22
+ },
23
+ "judge": {
24
+ "image_tag": "de7206e7e06d",
25
+ "eval_cmd": "cd /home/workspace/p2 && python3 /opt/p2_judge/prob/P2/eval.py --source-root /home/workspace/p2 --time-factor 1 --time-grace 0 --score-sum",
26
+ "eval_timeout": 900,
27
+ "parser": "score_sum",
28
+ "score_direction": "maximize",
29
+ "rescale": {
30
+ "kind": "linear",
31
+ "lower": 0.0,
32
+ "upper": 100.0
33
+ }
34
+ }
35
+ }
exchange_core_throughput.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "exchange_core_throughput",
3
+ "name": "Exchange Core Throughput",
4
+ "category": "Systems & Software Engineering",
5
+ "base_image": "java",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/exchange-core",
9
+ "submit_paths": [
10
+ "src/main/",
11
+ "pom.xml",
12
+ ".mvn/"
13
+ ],
14
+ "submit_exclude": [
15
+ "src/test"
16
+ ],
17
+ "work": {
18
+ "image_tag": "cc0c0eabbf80",
19
+ "specs_dir": "/home/workspace/exchange-core",
20
+ "agent_query": "## Role\n\nYou are a performance engineer optimizing **exchange-core**, an LMAX Disruptor–based open-source financial matching engine (Java 8, Maven). Your goal is to maximize the throughput (MT/s — millions of transactions per second) of `PerfThroughput#testThroughputPeak`.\n\n---\n\n## Repository Layout\n\n- `src/main/java/...` — engine source (OrderBook, matching service, risk engine, Disruptor wiring, etc.)\n- `src/main/resources/` — logging etc.\n- `pom.xml` — Maven build (Java 1.8 source/target)\n- Tests have been removed from the work container — the judge will re-apply the official throughput test.\n\n---\n\n## Benchmark\n\nThe judge runs (with Java 17 runtime, compiled to 1.8 bytecode):\n\n```bash\nmvn -B test -Dtest=PerfThroughput#testThroughputPeak\n```\n\nThe test calls `PerformanceConfiguration.throughputPerformanceBuilder().ringBufferSize(32 * 1024).build()` — only ringBufferSize is overridden; ME/RE, msgsInGroupLimit and other parameters use the builder defaults (4ME+2RE, msgsInGroupLimit=4096, BUSY_SPIN wait, DirectImpl orderbook, AffinityThreadFactory). **You can change these defaults by editing `throughputPerformanceBuilder()` in `PerformanceConfiguration.java`.** The test uses 100 symbols, 10K accounts, 10K orders, 3M transactions — a multi-symbol peak throughput scenario where thread topology changes (e.g. 4ME+2RE → 2ME+1RE) can have dramatic impact.\n\nThe test prints rounds like `\"<i>. <X.XXX> MT/s\"` and a final `\"Average: <Z.ZZZ> MT/s\"`. Higher is better.\n\n---\n\n## Optimization Directions (suggestions)\n\n- Thread topology: matching engine (ME) / risk engine (RE) thread counts, pinning via `CoreWaitStrategy`\n- Disruptor wait strategy, ring-buffer size, producer type\n- OrderBook implementation (array-based, naive, direct)\n- Message grouping / batching (message-group parameters)\n- Java GC choice (G1 / ZGC) and heap sizing via `MAVEN_OPTS`\n- Reduce allocations in hot path\n\nKimi K2.6 reference: 0.43 → 1.24 MT/s (+185%) by dropping from 4ME+2RE to 2ME+1RE.\n\n---\n\n## Rules\n\n- Do NOT modify test files (the judge re-applies them)\n- Do NOT change behavior: `mvn test` must still pass functional assertions\n- You may freely edit `src/main/java/**`, `pom.xml`, and add `MAVEN_OPTS` via a `.mvn/jvm.config` or `.mvn/maven.config` file\n- The score is `int(round(Average_MT_s * 1000))` (e.g. 1.243 → 1243)\n- `CASES_OK = 1` only when `mvn test` exits 0 AND an MT/s line was parsed\n"
21
+ },
22
+ "judge": {
23
+ "image_tag": "2cbf65650b3c",
24
+ "eval_cmd": "cd /home/workspace/exchange-core && python3 /tmp/eval_exchange_core.py",
25
+ "eval_timeout": 2400,
26
+ "parser": "score_sum",
27
+ "score_direction": "maximize",
28
+ "selection": "score_first",
29
+ "rescale": {
30
+ "kind": "log_max",
31
+ "baseline": 2090.634594076933,
32
+ "expert": 6000.0
33
+ }
34
+ }
35
+ }
ffmpeg_swscale_reimplementation.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "ffmpeg_swscale_reimplementation",
3
+ "name": "Ffmpeg Swscale Reimplementation",
4
+ "category": "Systems & Software Engineering",
5
+ "base_image": "cpp",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/swscale-impl",
9
+ "submit_paths": [
10
+ "."
11
+ ],
12
+ "submit_exclude": [
13
+ ".git",
14
+ "zig-cache",
15
+ "zig-out",
16
+ "target"
17
+ ],
18
+ "work": {
19
+ "image_tag": "0557f5e37b71",
20
+ "specs_dir": "/home/workspace",
21
+ "agent_query": "# FFmpeg libswscale Re-implementation\n\nYou are a systems engineer. Your goal is to re-implement FFmpeg's **libswscale**\nimage scaling and pixel-format conversion library in **Zig or Rust**, producing\na C-compatible shared library that matches or exceeds FFmpeg's C scalar\nreference performance using portable SIMD.\n\n## Setup\n\n1. FFmpeg source (libswscale + libavutil) is at `/reference/ffmpeg-src/`.\n Study the scalar C implementation — this is what you are reimplementing.\n2. A full FFmpeg binary (with ASM optimisations) is at `/reference/ffmpeg`.\n Use it to generate test inputs/outputs and verify your understanding.\n3. The public performance baseline library is at `/home/workspace/libswscale_public_baseline.so`.\n This wraps FFmpeg's C-only code (compiled with `--disable-asm`). Your\n implementation is benchmarked against this baseline.\n4. Your workspace is `/home/workspace/swscale-impl/`. Scaffold templates for both Zig\n and Rust are provided — pick one and build from there.\n5. The C API you must implement is defined in `/home/workspace/swscale_api.h`.\n\n## Deliverable\n\nSource code at `/home/workspace/swscale-impl/` that compiles to a shared library named\n`libswscale_candidate.so`, exporting these three C-linkage functions:\n\n```c\nvoid *swscale_create(int src_w, int src_h, int src_fmt,\n int dst_w, int dst_h, int dst_fmt, int algo);\nint swscale_process(void *ctx,\n const uint8_t *const src[4], const int src_stride[4],\n uint8_t *const dst[4], const int dst_stride[4]);\nvoid swscale_destroy(void *ctx);\n```\n\nThe verifier will **rebuild your library from source** before testing.\nPre-built binaries without source will be rejected.\n\n### Build commands the verifier tries (in order):\n\n1. If `build.zig` exists: `zig build -Doptimize=ReleaseFast`\n2. If `Cargo.toml` exists: `cargo build --release`\n3. If `Makefile` exists: `make release`\n\nThe output library must be discoverable at one of:\n- `zig-out/lib/libswscale_candidate.so`\n- `target/release/libswscale_candidate.so`\n- `./libswscale_candidate.so`\n\n## Supported Pixel Formats\n\nYour library must handle conversions between any pair of these formats:\n\n| ID | Name | Layout |\n|----|----------|---------------------------------|\n| 0 | YUV420P | Planar YUV 4:2:0 (3 planes) |\n| 1 | YUV422P | Planar YUV 4:2:2 (3 planes) |\n| 2 | YUV444P | Planar YUV 4:4:4 (3 planes) |\n| 3 | NV12 | Semi-planar Y + UV (2 planes) |\n| 4 | NV21 | Semi-planar Y + VU (2 planes) |\n| 5 | RGB24 | Packed R,G,B (1 plane) |\n| 6 | BGR24 | Packed B,G,R (1 plane) |\n| 7 | RGBA | Packed R,G,B,A (1 plane) |\n| 8 | BGRA | Packed B,G,R,A (1 plane) |\n| 9 | GRAY8 | Single-plane grayscale |\n\n## Supported Scaling Algorithms\n\n| ID | Name | Description |\n|----|-----------|----------------------------|\n| 0 | Nearest | Nearest-neighbour sampling |\n| 1 | Bilinear | Bilinear interpolation |\n| 2 | Bicubic | Bicubic interpolation |\n\nWhen `src_w == dst_w` and `src_h == dst_h`, only pixel-format conversion is\nneeded (no scaling). This is the most common fast path.\n\n**Buffer alignment**: The verifier allocates all source and destination plane\nbuffers with 32-byte alignment. You may assume aligned loads/stores in your\nSIMD code. All dimensions for subsampled formats (YUV420P, YUV422P, NV12,\nNV21) will have even width and height.\n\n## What Has to Stay Correct\n\nThe verifier checks output quality on hidden workloads:\n\n- **Format-only conversion** (same dimensions): PSNR >= 60 dB per plane,\n or exact byte match for mathematically lossless paths (e.g. RGB<->BGR channel swap).\n- **Scaling conversion** (different dimensions): PSNR >= 40 dB per plane.\n- If correctness fails on any hidden workload, the score is **zero**.\n\n## Scoring\n\n```\nif not build_ok or not correctness_ok or anti_cheat_violated:\n reward = 0.0\nelse:\n reward = geometric_mean(baseline_time / candidate_time)\n```\n\nA reward of 1.0 means you match FFmpeg's C scalar speed exactly.\nAbove 1.0 means you are faster. The SIMD opportunity is significant —\nFFmpeg's own recent swscale rewrite achieved 2.6x overall speedup through\nx86 SIMD backends.\n\n## How to Work\n\n### Starting Codebase Guidance\n\nThe Rust scaffold is already pre-populated in `/home/workspace/swscale-impl/` with a working baseline implementation. It includes exact stride-safe copy paths, packed RGB/BGR/RGBA/BGRA conversion helpers with alpha preservation, GRAY8 replication, YUV420P<->NV12/NV21 split/interleave helpers, format metadata, and a generic conversion/scaling framework.\n\nDo not restart from the empty stub and do not switch to Zig. The Rust scaffold now starts from the verified best run-005 candidate, which reached 26/30 hidden correctness. It already fixes the broad conversion coverage: YUV420P/YUV422P/NV12/NV21 -> RGB/BGRA, RGB/RGBA/BGR -> YUV420P/YUV422P/NV12/NV21, YUV444P -> YUV420P, YUV420P -> GRAY8, bicubic upscale, RGBA bilinear resize, and exact copy/channel paths. Preserve those working paths unless a byte-level comparison proves a local change is safe.\n\nFocus only on these four remaining hidden failures from the 26/30 candidate:\n\n- `yuv444p -> rgb24 352x288` same-size conversion: current PSNR is about 31.86. YUV444P does not use the same unscaled fast path as YUV420P/YUV422P in FFmpeg; compare against the generic `output.c`/`yuv2rgb.c` path, including YUV table lookup, limited-range rounding, vertical filter selection, and RGB24 packed write behavior. Do not blindly add YUV444P to the YUV420P/YUV422P table fast path; that was tested and did not improve the failure.\n- `rgb24 -> rgb24 1280x720 -> 640x360 bilinear`: current PSNR is about 28.91. The remaining gap is FFmpeg's default `SWS_BILINEAR` downscale filter construction from `utils.c::initFilter`, not a naive center bilinear formula. Reproduce filter positions, filter size, coefficient normalization, and integer rounding for 2:1 downscale before optimizing.\n- `yuv420p -> rgb24 1280x720 -> 640x360 bilinear`: current PSNR is about 16.04. Do not convert each sampled YUV pixel directly to RGB and then scale with an RGB approximation. FFmpeg scales luma and chroma planes through separate horizontal/vertical filter chains and then performs YUV->RGB table output. Implement this as separate Y/U/V scaling to the destination geometry or a dedicated YUV420P-to-RGB24 downscale path.\n- `rgb24 -> rgb24 720x576 -> 360x288 nearest`: current PSNR is about 14.92. A coordinate-only encoded probe can match `(1,1),(3,1),...`, but random inputs still fail, so the issue is not just `floor(out*src/dst)`. Compare against FFmpeg's `SWS_POINT` path with real random data and preserve its internal pipeline/filter/rounding behavior.\n\nYour first action should be `cargo build --release && python3 /home/workspace/verify_correctness.py`, then inspect `/app/results/correctness.json` and fix one of the four workload families above at a time. Submit after a meaningful correctness improvement.\n\nImportant scaffold details already applied before you start:\n- `scale_nearest_pos` is center-positioned and matches a coordinate-encoded 2:1 probe; do not revert it to floor(out*src/dst) without real random-data evidence.\n- YUV420P/YUV422P/NV12/NV21 -> RGB uses a FFmpeg-like table path and currently passes hidden conversion checks exactly; avoid changing those paths globally.\n- YUV->GRAY8 uses limited-range luma expansion through `yuv_luma_to_gray`; do not copy raw Y for gray output.\n- RGB->YUV chroma handling has special cases that make hidden RGB/BGR/RGBA-to-YUV checks pass; validate U/V planes before changing it.\n\n### Correctness-first implementation plan\n\nCorrectness is the hard gate. If any verifier workload fails correctness, the final score is exactly zero no matter how fast the library is. Do not spend time on SIMD or benchmark tuning until `verify_correctness.py` is clean for all visible workloads and every failure has been reduced with byte/plane diffs.\n\nWork in this order:\n\n1. Keep the project buildable after every edit. Prefer the scaffold/language you can finish fastest.\n2. Implement exact lossless paths first:\n - same-format copy, plane by plane, respecting strides\n - RGB24<->BGR24 channel swap\n - RGB24/BGR24 to RGBA/BGRA with A=255 when alpha is introduced\n - RGBA<->BGRA and RGBA/BGRA to RGB24/BGR24 while preserving existing alpha when the destination has alpha\n - GRAY8 to RGB/BGR/RGBA/BGRA by byte replication\n - YUV420P<->NV12 and YUV420P<->NV21 split/interleave with exact UV/VU order\n3. Then make same-size YUV/RGB conversions match FFmpeg scalar behavior. Avoid broad approximate BT.601 formulas unless byte-level validation proves they meet PSNR >= 60 dB. Pay attention to limited-range coefficients, rounding, saturation, chroma sample position, and planar vs semi-planar chroma addressing.\n4. For RGB/RGBA/BGRA to YUV420P/YUV422P/NV12/NV21, validate chroma planes separately. Most near-miss failures come from U/V downsampling, not the Y plane. Do not use nearest chroma sampling when the reference averages or filters a block.\n5. For the remaining scaling failures, follow FFmpeg's actual filter generation. For `SWS_POINT`, verify random-data output, not only coordinate-coded probes. For `SWS_BILINEAR` 2:1 downscale, implement the `initFilter`-style wider downscale kernel and fixed-point normalization/rounding rather than a two-tap center bilinear approximation.\n6. For `yuv420p -> rgb24` downscale, keep color conversion and scaling isolated in the FFmpeg order: scale Y, U, and V planes with their own luma/chroma filters, then run the YUV->RGB table output.\n7. Only after correctness passes should you run `run_dev_bench.py` and optimize hot loops.\n\n### Debugging recipe for each failing workload\n\nUse the development tools to compare against the reference before changing formulas globally:\n\n```bash\ncd /home/workspace/swscale-impl\ncargo build --release || zig build -Doptimize=ReleaseFast\npython3 /home/workspace/verify_correctness.py\n```\n\nFor each failure, inspect `/app/results/correctness.json` and compare per-plane PSNR. A failure with Y high but U/V low means chroma subsampling/interleaving is wrong. A failure with packed RGB PSNR around 30-45 usually means range, matrix, channel order, or rounding is wrong. Scaling PSNR near 5-10 means the sampling coordinate map/filter is wrong, not just a coefficient off by one.\n\nPrefer tiny focused probes over guessing: generate a small raw frame with `/reference/ffmpeg`, run your candidate through `/home/workspace/pixel_formats.py`, and print first differing bytes plus per-plane max/mean error. Fix one workload class at a time and rerun correctness before adding performance code.\n\n### Build and test cycle:\n\n```bash\n# Pick your language and start from the scaffold\ncp -r /home/workspace/scaffold/zig/* /home/workspace/swscale-impl/ # or /home/workspace/scaffold/rust/*\n\n# Build\ncd /home/workspace/swscale-impl\nzig build -Doptimize=ReleaseFast # or: cargo build --release\n\n# Test correctness against FFmpeg reference\npython3 /home/workspace/verify_correctness.py\n\n# Benchmark against the public baseline\npython3 /home/workspace/run_dev_bench.py\n```\n\n### Pre-generated test media:\n\nTest images are pre-generated at `/home/workspace/media/` in various formats and sizes\n(gradients, colour bars, noise). Use these for quick iteration:\n\n```bash\nls /home/workspace/media/ # See available test images\ncat /home/workspace/media/manifest.json # Format, size, path metadata\n```\n\n### Use the reference FFmpeg binary for experiments:\n\n```bash\n# Generate a test pattern\n/reference/ffmpeg -f lavfi -i testsrc=duration=1:size=1920x1080:rate=1 \\\n -frames:v 1 -f rawvideo -pix_fmt yuv420p /tmp/test_yuv420p.raw\n\n# Convert between formats (use pre-generated media or your own)\n/reference/ffmpeg -f rawvideo -pix_fmt yuv420p -s 640x480 \\\n -i /home/workspace/media/gradient_640x480_yuv420p.raw \\\n -f rawvideo -pix_fmt rgb24 /tmp/gradient_rgb24.raw\n```\n\n**Note:** `verify_correctness.py` is a development-only tool that uses\n`/reference/ffmpeg` to generate golden outputs. The reference binary is\ndeleted before final scoring — the actual verifier compares your output\nagainst the baseline library instead.\n\n### Study the FFmpeg source:\n\n```bash\n# The scalar C implementation you are competing against\nls /reference/ffmpeg-src/libswscale/\n# Start with: swscale.c (entry point), swscale_internal.h (structures)\n# Look for the pixel conversion and scaling functions in the directory\n```\n\n### Key reference files:\n\n- `/home/workspace/swscale_api.h` — The C API your library must export\n- `/home/workspace/pixel_formats.py` — Pixel format metadata, plane geometry helpers,\n and the ctypes loading code the verifier uses to call your library\n\n## Constraints\n\nYou CAN:\n- Use Zig's `@Vector` SIMD or Rust's `std::simd` / `std::arch` intrinsics\n- Use any algorithm or data structure for the conversion\n- Create helper files and modules\n- Pre-compute lookup tables and filter coefficients in `swscale_create`\n\nYou CANNOT:\n- Wrap, exec, or dlopen the reference FFmpeg binary or its libraries\n (the reference is **deleted before verification**)\n- Access `/tests/` or any hidden verifier files\n- Use inline assembly (the task tests portable SIMD, not hand-tuned ASM)\n- Download external code (no internet access)\n\n### Suggested phases:\n- Study FFmpeg scalar source, understand YUV<->RGB maths and scaling filter\n generation, and set up your project scaffold.\n- Implement core format conversions (YUV420P<->RGB24 first) and get\n `verify_correctness.py` passing for basic cases.\n- Add scaling (bilinear at minimum), then SIMD optimisation of hot conversion\n loops.\n- Expand format coverage and benchmark against the baseline.\n- Finish with a final correctness sweep, edge cases, and cleanup.\n\nKeep a **building and working** library at all times. A library that handles\n60% of conversions correctly at 1.2x speed is much better than one that\ndoesn't compile.\n\n## Behavioral Rules\n\n- Never stop to ask. Work autonomously until interrupted.\n- Check time regularly before starting large refactors.\n- Keep your library buildable at all times.\n- Test against the reference FFmpeg frequently.\n- Optimise for breadth of format coverage first, then depth of SIMD optimisation.\n\n## Current Scaffold Baseline\n\nThe Rust scaffold already matches the hidden correctness suite at 30/30 when built and judged against the current verifier. It scored 0.506321 in local hidden-judge validation. Do not restart from scratch and do not replace the fixed-point compatibility paths unless you preserve their behavior.\n\nKnown correctness-critical paths already covered:\n- `yuv444p -> rgb24` same-size conversion uses FFmpeg's full-chroma `yuv2rgb_write_full` style fixed-point coefficients and signed 30-bit clipping behavior.\n- `rgb24 -> rgb24` 2:1 nearest and bilinear downscale use FFmpeg's internal RGB-to-Y/UV pipeline, including half-width RGB chroma input and the observed libswscale h/v filter coefficients.\n- `yuv420p -> rgb24` 2:1 bilinear downscale scales Y and chroma planes separately with the observed libswscale 4-tap filters before RGB output.\n\nYour priority is performance improvement while keeping all public and hidden correctness passing. Before optimizing a path, preserve the fixed-point rounding, border coefficients, chroma subsampling decisions, and full-chroma output behavior in the scaffold.\n"
22
+ },
23
+ "judge": {
24
+ "image_tag": "d3c0aa3fa987",
25
+ "eval_cmd": "mkdir -p /logs/verifier /tmp/verifier && ln -sfn /home/workspace /app && ln -sfn /opt/tests /tests && ln -sfn /tmp/verifier /logs/verifier 2>/dev/null; export APP_DIR=/home/workspace VERIFIER_DIR=/logs/verifier PYTHONPATH=/opt/tests:/tmp:${PYTHONPATH:-} PATH=/usr/local/cargo/bin:$PATH CARGO_HOME=/usr/local/cargo RUSTUP_HOME=/usr/local/rustup && bash /opt/tests/test.sh >/tmp/verifier.log 2>&1 || true; cat /tmp/verifier.log >&2; bash /opt/tests/pytest_shim.sh \"/logs/verifier/reward.json\"; python3 - \"/logs/verifier/reward.json\" <<'PY' >&2\nimport json\nimport re\nimport sys\n\ntry:\n data = json.load(open(sys.argv[1]))\nexcept Exception:\n sys.exit(0)\n\nscore = float(data.get(\"score\") or data.get(\"reward\") or 0.0)\nadditional = data.get(\"additional_data\") or {}\npassed = additional.get(\"correctness_passed\")\ntotal = additional.get(\"correctness_total\")\nresults = additional.get(\"correctness_results\") or []\n\ndef as_int(value):\n try:\n return int(value)\n except (TypeError, ValueError):\n return None\n\npassed = as_int(passed)\ntotal = as_int(total)\nif passed is None or total is None:\n for sub in data.get(\"subscores\") or []:\n text = f\"{sub.get('name', '')} {sub.get('subtask', '')} {sub.get('stdout', '')}\"\n if \"correct\" not in text.lower():\n continue\n match = re.search(r\"(\\d+)\\s*/\\s*(\\d+)\", text)\n if match:\n passed = int(match.group(1))\n total = int(match.group(2))\n break\n\nif passed is None or total is None or passed >= total or score > 0:\n sys.exit(0)\n\nyuv_formats = (\"yuv420p\", \"yuv422p\", \"yuv444p\", \"nv12\", \"nv21\")\nrgb_formats = (\"rgb24\", \"bgr24\", \"rgba\", \"bgra\")\n\ndef first(item, *keys):\n for key in keys:\n value = item.get(key)\n if value not in (None, \"\"):\n return str(value)\n return \"\"\n\ndef failed(item):\n if not isinstance(item, dict):\n return False\n for key in (\"passed\", \"pass\", \"ok\", \"success\"):\n if key in item:\n return item.get(key) is False\n status = str(item.get(\"status\", \"\")).lower()\n if status in (\"fail\", \"failed\", \"error\"):\n return True\n psnr = item.get(\"psnr\")\n threshold = item.get(\"threshold\")\n return isinstance(psnr, (int, float)) and isinstance(threshold, (int, float)) and psnr < threshold\n\ndef dim(item, *keys):\n for key in keys:\n value = as_int(item.get(key))\n if value is not None:\n return value\n return None\n\ndef category(item):\n src = first(item, \"src_fmt\", \"src_format\", \"src_pix_fmt\", \"source_format\").lower().replace(\"_\", \"\")\n dst = first(item, \"dst_fmt\", \"dst_format\", \"dst_pix_fmt\", \"dest_format\", \"destination_format\").lower().replace(\"_\", \"\")\n algo = first(item, \"algo\", \"algorithm\", \"scaler\", \"scale_algo\").lower().replace(\"_\", \"\")\n label = first(item, \"label\", \"workload\", \"name\", \"case\", \"description\").lower().replace(\"_\", \"\")\n text = \" \".join(part for part in (src, dst, algo, label) if part)\n\n src_w = dim(item, \"src_w\", \"source_w\", \"src_width\", \"source_width\")\n src_h = dim(item, \"src_h\", \"source_h\", \"src_height\", \"source_height\")\n dst_w = dim(item, \"dst_w\", \"dest_w\", \"dst_width\", \"dest_width\")\n dst_h = dim(item, \"dst_h\", \"dest_h\", \"dst_height\", \"dest_height\")\n same_size = src_w is not None and src_h is not None and dst_w is not None and dst_h is not None and src_w == dst_w and src_h == dst_h\n if not same_size and (\"same-size\" in text or \"samesize\" in text or \"same dimensions\" in text):\n same_size = True\n\n src_yuv = any(fmt in src for fmt in yuv_formats) or any(fmt in text for fmt in yuv_formats)\n dst_rgb = any(fmt in dst for fmt in rgb_formats) or any(fmt in text for fmt in rgb_formats)\n src_rgb = any(fmt in src for fmt in rgb_formats) or any(fmt in text for fmt in rgb_formats)\n dst_rgb_exact = any(fmt in dst for fmt in rgb_formats)\n bilinear = \"bilinear\" in algo or \"bilinear\" in text\n nearest = \"nearest\" in algo or \"point\" in algo or \"nearest\" in text or \"point\" in text\n\n if same_size and src_yuv and dst_rgb:\n return \"same-size YUV -> RGB conversion\"\n if src == \"yuv420p\" and dst == \"rgb24\" and bilinear:\n return \"YUV420P -> RGB24 bilinear downscale\"\n if src_rgb and (dst_rgb_exact or \"rgb24\" in text) and bilinear:\n return \"RGB bilinear downscale\"\n if src_rgb and (dst_rgb_exact or \"rgb24\" in text) and nearest:\n return \"RGB nearest downscale\"\n if src_yuv and dst_rgb and bilinear:\n return \"YUV -> RGB bilinear scaling\"\n if src_yuv and dst_rgb:\n return \"YUV -> RGB conversion\"\n if bilinear:\n return \"bilinear scaling\"\n if nearest:\n return \"nearest scaling\"\n if same_size:\n return \"format conversion\"\n return \"scaling\"\n\ncategories = []\nfor item in results:\n if failed(item):\n name = category(item)\n if name not in categories:\n categories.append(name)\n\nprint(\"\")\nprint(\"Submission failed correctness gate.\")\nprint(f\"Correctness: {passed}/{total} passed.\")\nif categories:\n print(\"Failed categories:\")\n for name in categories:\n print(f\"- {name}\")\nelse:\n print(\"Failed categories: unavailable from reward.json\")\nprint(\"Benchmark not run because correctness failed.\")\nPY",
26
+ "eval_timeout": 5400,
27
+ "parser": "pytest_v",
28
+ "score_direction": "maximize",
29
+ "selection": "score_first",
30
+ "rescale": {
31
+ "kind": "log_anchor",
32
+ "anchor_raw": 14.155,
33
+ "anchor_score": 43.0
34
+ }
35
+ }
36
+ }
flt_regular_formalization.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "flt_regular_formalization",
3
+ "name": "Flt Regular Formalization",
4
+ "category": "Formal Math & Theorem Proving",
5
+ "base_image": "lean_4_28_0_main",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/",
9
+ "submit_paths": [
10
+ "se-bmk-intern/FltRegular"
11
+ ],
12
+ "submit_exclude": [
13
+ "se-bmk-intern/FltRegular/.lake"
14
+ ],
15
+ "work": {
16
+ "image_tag": "9800b0787b20",
17
+ "specs_dir": null,
18
+ "agent_query": "You are a lean4 expert, now your task is to finish **all** sorries in this folder. Pay no attention to anything outside this folder. There are many sorries but do not be afraid as we value minor progress and the time is abundant. Try to do some easy problems and accumulate scores each round. Before you submit, run a `lake build` to verify the changes locally - if the build failed, no score will be given. Do not modify the signature of existing lemma/theorem/def as these changes will not pass the judge evaluation. Also, since we evaluate the score via checking axioms transitivly, finishing `fermatLastTheoremSeven` without completeing `isRegularPrime_seven` and `flt_regular` will not count."
19
+ },
20
+ "judge": {
21
+ "image_tag": "838e4d32e0bb",
22
+ "eval_cmd": "cd /home/workspace/se-bmk-intern/FltRegular && cp -r /home/workspace/baseline/.lake . && cp /home/workspace/baseline/lake-manifest.json . && lake build && cp /home/workspace/judge/se-bmk-intern/FltRegular/ListDeclAxiom.lean . && cd /home/workspace/judge/se-bmk-intern && python3 eval_lean.py --current-repo /home/workspace/se-bmk-intern/FltRegular --mode weighted --weights /home/workspace/judge/se-bmk-intern/task/FltRegular_weight.json",
23
+ "eval_timeout": 2400,
24
+ "parser": "structured_json",
25
+ "rescale": {
26
+ "kind": "linear",
27
+ "lower": 0.0,
28
+ "upper": 1.0
29
+ }
30
+ }
31
+ }
git_rewrite_in_zig.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "git_rewrite_in_zig",
3
+ "name": "Git Rewrite In Zig",
4
+ "category": "Systems & Software Engineering",
5
+ "base_image": "cpp",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/zig-port",
9
+ "submit_paths": [
10
+ "."
11
+ ],
12
+ "submit_exclude": [
13
+ ".git",
14
+ "zig-cache",
15
+ "zig-out",
16
+ ".zig-cache",
17
+ "zig-port/zig-cache",
18
+ "zig-port/zig-out",
19
+ "zig-port/.zig-cache"
20
+ ],
21
+ "work": {
22
+ "image_tag": "3e1aae9f830c",
23
+ "specs_dir": "/home/workspace",
24
+ "agent_query": "# Git to Zig\n\nReimplement git in Zig as a drop-in replacement for the `git` binary. The C\nsource for git v2.47.0 is at `/home/workspace/git-src/` — read it, understand it, and\nrewrite it. Your binary must behave identically to the real `git` — same CLI\ninterface, same output formats, same exit codes.\n\nYour workspace is `/home/workspace/zig-port/` with a build scaffold that already compiles\nand links zlib. `zig build` produces `zig-out/bin/git`. The system `git` is\ninstalled — use it to test your implementation as you go.\n\nNo internet. Do not compile or link the C source or wrap around the existing git binary — write Zig.\nWork autonomously, do not ask user for input.\n"
25
+ },
26
+ "judge": {
27
+ "image_tag": "0d404251e9c9",
28
+ "eval_cmd": "mkdir -p /logs/verifier /tmp/verifier && ln -sfn /home/workspace /app && ln -sfn /opt/tests /tests && ln -sfn /tmp/verifier /logs/verifier 2>/dev/null; export APP_DIR=/home/workspace VERIFIER_DIR=/logs/verifier && bash /opt/tests/test.sh >/tmp/verifier.log 2>&1 || true; cat /tmp/verifier.log >&2; bash /opt/tests/pytest_shim.sh \"/logs/verifier/reward.json\"",
29
+ "eval_timeout": 7200,
30
+ "parser": "pytest_v",
31
+ "score_direction": "maximize",
32
+ "selection": "score_first",
33
+ "rescale": {
34
+ "kind": "linear",
35
+ "lower": 0.0,
36
+ "upper": 1.0
37
+ }
38
+ }
39
+ }
graph_node_classification.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "graph_node_classification",
3
+ "name": "Graph Node Classification",
4
+ "category": "Scientific Problems & ML",
5
+ "base_image": "python",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/045_graph_node_classification",
9
+ "submit_paths": [
10
+ "solution/solution.py"
11
+ ],
12
+ "submit_exclude": [
13
+ "tests/",
14
+ "**/__pycache__/**",
15
+ "**/*.pyc"
16
+ ],
17
+ "work": {
18
+ "image_tag": "4d2c1f502d14",
19
+ "specs_dir": "/home/workspace/045_graph_node_classification",
20
+ "agent_query": "Solve the graph node classification task described in `README.md` and `solution/problem.md`."
21
+ },
22
+ "judge": {
23
+ "image_tag": "f2ddd52992ae",
24
+ "eval_cmd": "cd /home/workspace/045_graph_node_classification && CUDA_VISIBLE_DEVICES= NVIDIA_VISIBLE_DEVICES=none python judge_eval.py",
25
+ "eval_timeout": 1800,
26
+ "parser": "structured_json",
27
+ "score_direction": "maximize",
28
+ "selection": "valid_then_score",
29
+ "rescale": {
30
+ "kind": "linear",
31
+ "lower": 0.0,
32
+ "upper": 1.0
33
+ }
34
+ }
35
+ }
grid_turing_robot.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "grid_turing_robot",
3
+ "name": "Grid Turing Robot",
4
+ "category": "Combinatorial Optimization",
5
+ "base_image": "python310",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/grid_turing_robot",
9
+ "submit_paths": [
10
+ "solution.py"
11
+ ],
12
+ "work": {
13
+ "image_tag": "ac7ea62005f7",
14
+ "specs_dir": "/home/workspace/grid_turing_robot",
15
+ "agent_query": "## Grid Turing Robot - Transition Rule Design (AHC056)\n\nWrite `solution.py` in the project root that reads from stdin and writes to stdout.\n\n---\n\n## Problem Overview\n\nRead `README.md` and `tools/README.md` for full problem details. A baseline `solution.py` already exists (it produces syntactically valid but low-quality output). Your job is to improve it.\n\n---\n\n## Evaluation\n\nYour solution is scored on **50 fixed test cases**. Final score = sum of individual case scores. **Lower is better.**\n\n---\n\n## Local Testing\n\nGenerate local random tests with `./tools/bin/gen <seed>`, using seeds in the range **0..10000** only.\n\n```bash\n# Generate a random test case (seed-based, deterministic)\n./tools/bin/gen 0 > input.txt\n\n# Run your solution\npython3 solution.py < input.txt > output.txt\n\n# Score output (Lower is better)\n./tools/bin/tester input.txt output.txt\n# Outputs to stderr: Score = <N>\n```\n\n---\n\n## Rules\n\n- Write your solution as `solution.py` in the project root directory\n- Do NOT modify files in `tools/`\n- Use `tools/bin/gen` and `tools/bin/tester` for local testing\n- For local scoring, use only `./tools/bin/tester`; do not use `tools/src/verifier.py` for scores\n- Your program should read from stdin and write to stdout\n- Run your solution to completion and verify with the tester before finishing\n"
16
+ },
17
+ "judge": {
18
+ "image_tag": "3c6f50ac4fe0",
19
+ "eval_cmd": "cd /home/workspace/grid_turing_robot && python3 /tmp/eval_grid_turing_robot.py",
20
+ "eval_timeout": 600,
21
+ "parser": "score_sum",
22
+ "score_direction": "minimize",
23
+ "selection": "score_first",
24
+ "rescale": {
25
+ "kind": "piecewise_min",
26
+ "baseline": 9025986.0,
27
+ "rank30": 4490.0,
28
+ "rank1": 1575.0,
29
+ "super_anchor": 554.75
30
+ }
31
+ }
32
+ }
integer_compression_codec.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "integer_compression_codec",
3
+ "name": "Integer Compression Codec",
4
+ "category": "Systems & Software Engineering",
5
+ "base_image": "cpp",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/integer-compression-codec",
9
+ "submit_paths": [
10
+ "include/",
11
+ "src/",
12
+ "Makefile"
13
+ ],
14
+ "submit_exclude": [
15
+ "**/__pycache__/",
16
+ "outputs/",
17
+ "data/",
18
+ ".judge-bin/"
19
+ ],
20
+ "work": {
21
+ "image_tag": "fa3895856662",
22
+ "specs_dir": "/home/workspace/integer-compression-codec",
23
+ "agent_query": "## Role\\n\\nYou are an expert systems and performance engineer improving a uint32 integer compression codec.\\n\\n## Task\\n\\nImplement a stronger `libintcompress.so` by editing the C++ code in `src/` while preserving the ABI in `include/intcompress.h`. Your goal is to improve both compression ratio and decode throughput on the provided datasets.\\n\\n## Files\\n\\n- `problem.md`: task description and constraints\\n- `task_input.md`: input / output contract\\n- `scoring_scheme.md`: public scoring rules\\n- `soft_environment.md`: environment description\\n- `include/intcompress.h`: fixed ABI\\n- `src/codec.cpp`: baseline implementation\\n- `tools/verify.cpp`: local correctness check\\n- `tools/bench.cpp`: local benchmarking tool\\n\\n## Working Strategy\\n\\n1. Read the docs first.\\n2. Keep `include/intcompress.h` unchanged.\\n3. Improve `src/` with better block encoding, delta transforms, bit-packing, SIMD, or adaptive strategies.\\n4. Use `make`, `./tools/verify`, and `./tools/bench --all ./libintcompress.so` for local iteration.\\n5. Submit intermediate versions frequently.\\n\\n## Rules\\n\\n- Do not use network access, subprocess tricks, or external services.\\n- Do not depend on third-party compression libraries.\\n- Keep the exported `ic_*` symbols intact.\\n- Correctness matters: `decode(encode(X))` must exactly recover `X`."
24
+ },
25
+ "judge": {
26
+ "image_tag": "27063396e02a",
27
+ "eval_cmd": "cd /home/workspace/integer-compression-codec && python3 runner_judge.py",
28
+ "eval_timeout": 2400,
29
+ "parser": "structured_json",
30
+ "score_direction": "maximize",
31
+ "selection": "score_first",
32
+ "rescale": {
33
+ "kind": "linear",
34
+ "lower": 0.0,
35
+ "upper": 100.0
36
+ }
37
+ }
38
+ }
jagua_nesting_optimization.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "jagua_nesting_optimization",
3
+ "name": "Jagua Nesting Optimization",
4
+ "category": "Combinatorial Optimization",
5
+ "base_image": "rust",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/jagua-rs",
9
+ "submit_paths": [
10
+ "lbf/src/",
11
+ "jagua-rs/src/",
12
+ "lbf/Cargo.toml",
13
+ "jagua-rs/Cargo.toml",
14
+ "Cargo.toml"
15
+ ],
16
+ "submit_exclude": [
17
+ "target/",
18
+ ".git/",
19
+ "assets/"
20
+ ],
21
+ "work": {
22
+ "image_tag": "992b06cb3f8e",
23
+ "specs_dir": "/home/workspace/jagua-rs",
24
+ "agent_query": "## Role\n\nYou are an expert Rust optimization engineer working on a 2D irregular nesting solver built on top of jagua-rs.\n\n## Task\n\nRead `SEBENCH_TASK.md`, inspect the real `jagua-rs` / `lbf` codebase, and improve the `lbf` optimizer. Your goal is to beat the frozen original LBF reference on hidden strip-packing benchmark instances.\n\n## Rules\n\n- Preserve the existing `cargo run --release --bin lbf -- -i ... -p spp -c ... -s ...` CLI behavior.\n- Keep outputs geometrically valid; the judge independently checks all placements.\n- Do not depend on GPU, network access, external services, or manual intervention.\n- Prefer robust deterministic improvements over overfitting public `assets/`.\n- Submit after meaningful changes so you can use iterative feedback.\n"
25
+ },
26
+ "judge": {
27
+ "image_tag": "bba393b2dd53",
28
+ "eval_cmd": "cd /home/workspace/jagua-rs && JAGUA_EVAL_CASES=16 JAGUA_EVAL_SAMPLES=900 JAGUA_CASE_TIMEOUT=20 JAGUA_BUILD_TIMEOUT=300 CANDIDATE_ROOT=/home/workspace/jagua-rs REFERENCE_ROOT=/home/workspace/jagua-rs-ref bash /home/workspace/jagua_task_scorer/score.sh",
29
+ "eval_timeout": 1200,
30
+ "parser": "score_sum",
31
+ "score_direction": "maximize",
32
+ "selection": "score_first"
33
+ }
34
+ }
juliet_vulnerability_analyzer.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "juliet_vulnerability_analyzer",
3
+ "name": "Juliet Vulnerability Analyzer",
4
+ "category": "Systems & Software Engineering",
5
+ "base_image": "python",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/juliet-static-analyzer/agent-start",
9
+ "submit_paths": [
10
+ "."
11
+ ],
12
+ "submit_exclude": [
13
+ "out/",
14
+ "__pycache__/",
15
+ ".pytest_cache/",
16
+ "*.pyc",
17
+ ".DS_Store"
18
+ ],
19
+ "work": {
20
+ "image_tag": "bae3ab85c5f5",
21
+ "specs_dir": "/home/workspace/juliet-static-analyzer",
22
+ "agent_query": "Implement a deterministic static analyzer in agent-start/analyzer.py for the provided Juliet facts schema. Report findings for CWE-121, CWE-122, CWE-190, CWE-476, CWE-416, and CWE-78. Modify analyzer.py and files you create under agent-start only. Do not use prohibited external analyzers, network access, hidden evaluator files, or hard-coded answers."
23
+ },
24
+ "judge": {
25
+ "image_tag": "0c4f2c0057c2",
26
+ "eval_cmd": "python -c 'import json,subprocess; proc=subprocess.run([\"bash\",\"/root/sebench_private/juliet-static-analyzer-evaluator-v3/evaluator-hidden/score_hidden.sh\",\"/home/workspace/juliet-static-analyzer/agent-start\"], text=True, capture_output=True, timeout=120); output=(proc.stdout or \"\")+(proc.stderr or \"\"); print(output,end=\"\"); lines=output.splitlines(); score=float(next((x.split(\"=\",1)[1] for x in lines if x.startswith(\"SCORE=\")),\"0\")); status=next((x.split(\"=\",1)[1] for x in lines if x.startswith(\"SCORE_STATUS=\")),\"\"); valid=(status==\"OK\"); passed=1 if valid and score>0.0 else 0; print(\">>>>> Start Structured Result\"); print(json.dumps({\"valid\":valid,\"score\":score,\"pass_rate\":1.0 if passed else 0.0,\"total_tests\":1,\"passed\":passed,\"failed\":0 if passed else 1,\"errors\":0 if valid else 1,\"summary\":\"Score: {:.2f}\".format(score),\"details\":[{\"name\":\"hidden_score\",\"status\":\"PASSED\" if passed else \"FAILED\",\"score\":score,\"message\":output[-2000:]}],\"metrics\":{\"score\":score,\"runner_returncode\":proc.returncode}}, ensure_ascii=False)); print(\">>>>> End Structured Result\")'",
27
+ "eval_timeout": 180,
28
+ "parser": "structured_json",
29
+ "score_direction": "maximize",
30
+ "selection": "score_first",
31
+ "rescale": {
32
+ "kind": "linear",
33
+ "lower": 0.0,
34
+ "upper": 100.0
35
+ }
36
+ }
37
+ }
k12_math_recommendation.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "k12_math_recommendation",
3
+ "name": "K12 Math Recommendation",
4
+ "category": "Professional Knowledge Work",
5
+ "base_image": "python",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace",
9
+ "submit_paths": [
10
+ "train.py",
11
+ "infer.py",
12
+ "models",
13
+ "submission.json",
14
+ "requirements.txt",
15
+ "README.md"
16
+ ],
17
+ "submit_exclude": [
18
+ ".git",
19
+ "__pycache__",
20
+ "*.pyc",
21
+ "node_modules",
22
+ "bin",
23
+ "obj"
24
+ ],
25
+ "work": {
26
+ "image_tag": "fecdcfb17904",
27
+ "specs_dir": null,
28
+ "agent_query": "Read the complete task instructions in `/home/workspace/task_instruction.md`, and complete the task according to those requirements. The final deliverables must be written to the file paths specified in `task_instruction.md`.\n"
29
+ },
30
+ "judge": {
31
+ "image_tag": "1faabfecdb8e",
32
+ "eval_cmd": "cd /home/workspace && python3 scoring/score.py",
33
+ "eval_timeout": 900,
34
+ "parser": "structured_json",
35
+ "score_direction": "maximize",
36
+ "selection": "score_first"
37
+ }
38
+ }
lean_analysis_proofs.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "lean_analysis_proofs",
3
+ "name": "Lean Analysis Proofs",
4
+ "category": "Formal Math & Theorem Proving",
5
+ "base_image": "lean_4_28_0_main",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/",
9
+ "submit_paths": [
10
+ "se-bmk-intern/analysis"
11
+ ],
12
+ "submit_exclude": [
13
+ "se-bmk-intern/analysis/.lake"
14
+ ],
15
+ "work": {
16
+ "image_tag": "7a7b0144d6c2",
17
+ "specs_dir": null,
18
+ "agent_query": "You are a lean4 expert, now your task is to finish **all** sorries in this folder. Pay no attention to anything outside this folder. There are many sorries but do not be afraid as we value minor progress and the time is abundant. Try to do some easy problems and accumulate scores each round. Before you submit, run a `lake build` to verify the changes locally - if the build failed, no score will be given. Also, do not modify the signature of existing lemma/theorem/def as these changes will not pass the judge evaluation."
19
+ },
20
+ "judge": {
21
+ "image_tag": "5d6061092ab6",
22
+ "eval_cmd": "cd /home/workspace/se-bmk-intern/analysis && cp -r /home/workspace/baseline/.lake . && cp /home/workspace/baseline/lake-manifest.json . && lake build && cp /home/workspace/judge/se-bmk-intern/analysis/ListDeclAxiom.lean . && cd /home/workspace/judge/se-bmk-intern && python3 eval_lean.py --baseline-repo /home/workspace/judge/se-bmk-intern/analysis --current-repo /home/workspace/se-bmk-intern/analysis",
23
+ "eval_timeout": 2400,
24
+ "parser": "structured_json",
25
+ "rescale": {
26
+ "kind": "linear",
27
+ "lower": 0.0,
28
+ "upper": 1.0
29
+ }
30
+ }
31
+ }
molecular_self_assembly.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "molecular_self_assembly",
3
+ "name": "Molecular Self Assembly",
4
+ "category": "Combinatorial Optimization",
5
+ "base_image": "python310",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/molecules",
9
+ "submit_paths": [
10
+ "solution.py"
11
+ ],
12
+ "work": {
13
+ "image_tag": "6459dea01a82",
14
+ "specs_dir": "/home/workspace/molecules",
15
+ "agent_query": "## Molecules - Atom Bonding Optimization (AHC057)\n\nWrite `solution.py` in the project root that reads from stdin and writes to stdout.\n\n---\n\n## Problem Overview\n\nRead `README.md` and `tools/README.md` for full problem details. A baseline `solution.py` already exists (it produces syntactically valid but low-quality output). Your job is to improve it.\n\n---\n\n## Evaluation\n\nYour solution is scored on **50 fixed test cases**. Final score = sum of individual case scores. **Higher is better.**\n\n---\n\n## Local Testing\n\nGenerate local random tests with `./tools/bin/gen <seed>`, using seeds in the range **0..10000** only.\n\n```bash\n# Generate a random test case (seed-based, deterministic)\n./tools/bin/gen 0 > input.txt\n\n# Run your solution\npython3 solution.py < input.txt > output.txt\n\n# Score output (Higher is better)\n./tools/bin/tester input.txt output.txt\n# Outputs to stderr: Score = <N>\n```\n\n---\n\n## Rules\n\n- Write your solution as `solution.py` in the project root directory\n- Do NOT modify files in `tools/`\n- Use `tools/bin/gen` and `tools/bin/tester` for local testing\n- For local scoring, use only `./tools/bin/tester`; do not use `tools/src/verifier.py` for scores\n- Your program should read from stdin and write to stdout\n- Run your solution to completion and verify with the tester before finishing\n"
16
+ },
17
+ "judge": {
18
+ "image_tag": "96df6463f5e6",
19
+ "eval_cmd": "cd /home/workspace/molecules && python3 /tmp/eval_molecules.py",
20
+ "eval_timeout": 600,
21
+ "parser": "score_sum",
22
+ "score_direction": "maximize",
23
+ "selection": "score_first",
24
+ "rescale": {
25
+ "kind": "piecewise_max",
26
+ "baseline": 69170000.0,
27
+ "rank30": 235032102.6667,
28
+ "rank1": 300187365.6667,
29
+ "super_anchor": 322991707.7167
30
+ }
31
+ }
32
+ }
nethack_dungeon_agent.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "nethack_dungeon_agent",
3
+ "name": "Nethack Dungeon Agent",
4
+ "category": "Interactive Games & Simulators",
5
+ "base_image": "python310",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/nethack_agent",
9
+ "submit_paths": [
10
+ "agent.py"
11
+ ],
12
+ "work": {
13
+ "image_tag": "eda9da70e2cc",
14
+ "specs_dir": "/home/nethack_agent",
15
+ "agent_query": "## NetHack Dungeon Adventure Agent\n\nWrite `agent.py` in `/home/nethack_agent/` that plays NetHack via the NLE Python environment and maximizes game score.\n\n---\n\n## Problem\n\nNetHack is a classic hardcore Roguelike dungeon crawler (1987). You play an adventurer descending randomly-generated dungeon levels, fighting monsters, collecting items, and ultimately retrieving the Amulet of Yendor (Ascension). Every death permanently ends the game.\n\n**Goal:** play effectively by surviving, exploring, fighting monsters, collecting useful items, and descending deeper into the dungeon.\n\n---\n\n## Interface\n\nYour `agent.py` **must** export a function:\n\n```python\ndef get_action(obs: dict, info: dict, step: int) -> int:\n \"\"\"Return an integer action for the current game state.\"\"\"\n ...\n```\n\nThe evaluation system calls `get_action(obs, info, step)` each step and feeds the returned action into the NLE environment. **Do NOT** create the environment yourself in `get_action` — the evaluation system controls the game loop.\n\nYou may also include an `if __name__ == \"__main__\":` block for local testing (see skeleton below).\n\n---\n\n## Environment\n\n- Python 3.10\n- `nle==1.2.0` (NetHack Learning Environment, Gymnasium-style)\n- `gymnasium`\n- **Note:** `nle-language-wrapper` is NOT available. Use the `nle` native API with integer actions and numeric observations.\n\n### Observation Space\n\n`obs` is a dict with the following keys (all numpy arrays):\n- `glyphs` — (21, 79) integer array of tile glyph IDs (0–5991)\n- `chars` — (21, 79) byte array of ASCII characters displayed on screen\n- `colors` — (21, 79) integer array of colors (0–15)\n- `specials` — (21, 79) integer array of highlight flags\n- `blstats` — (27,) integer array of bottom-line stats such as position, attributes, health, energy, armor, experience, dungeon depth, inventory load, hunger, alignment, and conditions.\n- `message` — (256,) byte array of the last game message\n- `inv_glyphs`, `inv_strs`, `inv_letters`, `inv_oclasses` — inventory info\n\n### Action Space\n\nActions are integers in [0, 120]. The NLE action space maps action indices to NetHack key codes. **Use the `nle.nethack` constants** to get correct action indices — do NOT hardcode them, as the mapping is non-obvious.\n\n```python\nfrom nle.nethack import (\n ACTIONS, CompassDirection, CompassDirectionLonger,\n MiscDirection, MiscAction, Command,\n)\n\nACTIONS_LIST = list(ACTIONS)\ndef action_index(key_code):\n return ACTIONS_LIST.index(key_code)\n```\n\nCommon action indices (verified for nle==1.2.0):\n\n| Action | Constant | Index |\n|--------|----------|-------|\n| north | CompassDirection.N | 0 |\n| east | CompassDirection.E | 1 |\n| south | CompassDirection.S | 2 |\n| west | CompassDirection.W | 3 |\n| northeast | CompassDirection.NE | 4 |\n| southeast | CompassDirection.SE | 5 |\n| southwest | CompassDirection.SW | 6 |\n| northwest | CompassDirection.NW | 7 |\n| run north | CompassDirectionLonger.N | 8 |\n| run east | CompassDirectionLonger.E | 9 |\n| run south | CompassDirectionLonger.S | 10 |\n| run west | CompassDirectionLonger.W | 11 |\n| go up stairs | MiscDirection.UP | 16 |\n| go down stairs | MiscDirection.DOWN | 17 |\n| wait | MiscDirection.WAIT | 18 |\n| more/continue | MiscAction.MORE | 19 |\n| kick | Command.KICK | 48 |\n| pickup | Command.PICKUP | 61 |\n| open | Command.OPEN | 57 |\n| close | Command.CLOSE | 30 |\n| eat | Command.EAT | 35 |\n| search | Command.SEARCH | 75 |\n| pray | Command.PRAY | 62 |\n| apply | Command.APPLY | 24 |\n| zap | Command.ZAP | 104 |\n| throw | Command.THROW | 91 |\n| fire | Command.FIRE | 40 |\n| drop | Command.DROP | 33 |\n| wield | Command.WIELD | 102 |\n| wear | Command.WEAR | 99 |\n| read | Command.READ | 67 |\n| quaff | Command.QUAFF | 64 |\n| esc | Command.ESC | 38 |\n\n**Important:** The action indices are NOT sequential or intuitive. Always use `action_index(Command.XXX)` to get the correct index.\n\n### Skeleton Code\n\n```python\nfrom nle.nethack import (\n ACTIONS, CompassDirection, CompassDirectionLonger,\n MiscDirection, MiscAction, Command,\n)\n\nACTIONS_LIST = list(ACTIONS)\ndef action_index(key_code):\n return ACTIONS_LIST.index(key_code)\n\nN = action_index(CompassDirection.N)\nE = action_index(CompassDirection.E)\nS = action_index(CompassDirection.S)\nW = action_index(CompassDirection.W)\nWAIT = action_index(MiscDirection.WAIT)\nMORE = action_index(MiscAction.MORE)\nUP = action_index(MiscDirection.UP)\nDOWN = action_index(MiscDirection.DOWN)\nPICKUP = action_index(Command.PICKUP)\nOPEN = action_index(Command.OPEN)\nCLOSE = action_index(Command.CLOSE)\nEAT = action_index(Command.EAT)\nSEARCH = action_index(Command.SEARCH)\nPRAY = action_index(Command.PRAY)\n\ndef get_action(obs, info, step):\n return WAIT\n\nif __name__ == \"__main__\":\n import argparse, gymnasium as gym, nle, numpy as np\n parser = argparse.ArgumentParser()\n parser.add_argument(\"--seed\", type=int, default=0)\n parser.add_argument(\"--max-steps\", type=int, default=5000)\n args = parser.parse_args()\n env = gym.make(\"NetHackChallenge-v0\")\n try:\n env.seed(args.seed)\n except Exception:\n pass\n obs, info = env.reset(), {}\n if isinstance(obs, tuple):\n obs, info = obs[0], obs[1] if len(obs) > 1 else {}\n for step in range(args.max_steps):\n action = get_action(obs, info, step)\n result = env.step(action)\n if len(result) == 5:\n obs, reward, terminated, truncated, info = result\n done = terminated or truncated\n else:\n obs, reward, done, info = result\n if done:\n break\n env.close()\n```\n\n---\n\n## Evaluation\n\nYour agent is evaluated by running it over multiple NetHack games under the official judge. Focus on legitimate gameplay; do not tamper with the runtime, evaluation files, or external state.\n\n---\n\n## Tips\n\n- Start simple: random walk → explore aggressively → fight monsters → manage inventory\n- Use `blstats`, `chars`, `message`, and inventory observations to infer the game state.\n- `chars` array gives you the ASCII screen — parse it for terrain and monster info\n- `message` tells you what just happened (e.g., \"You kill the jackal!\")\n- Common strategy: explore rooms, pick up items, descend stairs to go deeper\n- The game is extremely punishing — a simple survival strategy already scores well\n- **Always use `nle.nethack` constants** for action indices, never hardcode them\n"
16
+ },
17
+ "judge": {
18
+ "image_tag": "ed44ea63c5cd",
19
+ "eval_cmd": "python3 /tmp/eval_nethack.py",
20
+ "eval_timeout": 3600,
21
+ "parser": "score_sum",
22
+ "score_direction": "maximize",
23
+ "selection": "score_first",
24
+ "rescale": {
25
+ "kind": "linear",
26
+ "lower": 0.0,
27
+ "upper": 1000.0
28
+ }
29
+ }
30
+ }
new_foundations_consistency.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "new_foundations_consistency",
3
+ "name": "New Foundations Consistency",
4
+ "category": "Formal Math & Theorem Proving",
5
+ "base_image": "lean_4",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/",
9
+ "submit_paths": [
10
+ "se-bmk-intern/con-nf"
11
+ ],
12
+ "submit_exclude": [
13
+ "se-bmk-intern/con-nf/.lake"
14
+ ],
15
+ "work": {
16
+ "image_tag": "9fdeea94c0b5",
17
+ "specs_dir": null,
18
+ "agent_query": "You are a lean4 expert, now your task is to finish **all** sorries in this folder. Pay no attention to anything outside this folder. There are many sorries but do not be afraid as we value minor progress and the time is abundant. Try to do some easy problems and accumulate scores each round. Before you submit, run a `lake build` to verify the changes locally - if the build failed, no score will be given. Also, do not modify the signature of existing lemma/theorem/def as these changes will not pass the judge evaluation. Finally, we check the axioms transitively, finishing a theorem without completeing precedent lemma will not count."
19
+ },
20
+ "judge": {
21
+ "image_tag": "37cebea253f9",
22
+ "eval_cmd": "cd /home/workspace/se-bmk-intern/con-nf && cp -r /home/workspace/judge/se-bmk-intern/con-nf/.lake . && cp /home/workspace/judge/se-bmk-intern/con-nf/lake-manifest.json . && lake build && cp /home/workspace/judge/se-bmk-intern/con-nf/ListDeclAxiom.lean . && cd /home/workspace/judge/se-bmk-intern && python3 eval_lean.py --baseline-repo /home/workspace/judge/se-bmk-intern/con-nf --current-repo /home/workspace/se-bmk-intern/con-nf",
23
+ "eval_timeout": 2400,
24
+ "parser": "structured_json",
25
+ "rescale": {
26
+ "kind": "linear",
27
+ "lower": 0.0,
28
+ "upper": 1.0
29
+ }
30
+ }
31
+ }
openrct2_theme_park_ai.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "openrct2_theme_park_ai",
3
+ "name": "Openrct2 Theme Park Ai",
4
+ "category": "Interactive Games & Simulators",
5
+ "base_image": "python310",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/openrct2",
9
+ "submit_paths": [
10
+ "my_plugin.js"
11
+ ],
12
+ "work": {
13
+ "image_tag": "7283790ee698",
14
+ "specs_dir": "/home/workspace/openrct2",
15
+ "agent_query": "## Role\n\nYou are an expert OpenRCT2 plugin developer. Write a single **JavaScript (ES5)** plugin file `my_plugin.js` that automates park management and maximizes **normalized company value** across 3 scenarios (small / medium / large).\n\n---\n\n## Files\n\n- `my_plugin.js` — your plugin (a baseline no-op is pre-placed)\n- `openrct2.d.ts` — OpenRCT2 v0.5.0 plugin API types (5782 lines)\n- `samples/` — 4 reference plugins: park_info, staff_manager, ride_builder, finance_manager\n\n## Key APIs\n\n- `park.cash`, `park.companyValue`, `park.rating`, `park.guests`, `park.bankLoan`\n- `park.entranceFee` (read-only for strategy; set it with `context.executeAction('parksetentrancefee', {value: ...})`)\n- `park.getMonthlyExpenditure(type)` — monthly financials history\n- `context.executeAction('ridecreate', {...})` — build a ride\n- `context.executeAction('staffhire', {staffType: N, ...})` — hire staff (staffType is numeric 0-3)\n- `context.executeAction('ridesetprice', {...})`, `parksetentrancefee`, `parksetloan`, `parkmarketing`, `parksetresearchfunding` — normal management actions\n- `context.executeAction('gamesetspeed', {speed: 4})` — max speed (host mode cap is 4)\n- `context.subscribe('interval.tick', fn)`, `context.subscribe('interval.day', fn)`\n\n## Plugin Skeleton\n\n```javascript\nvar main = function() {\n if (context.mode !== 'normal') return;\n context.executeAction('gamesetspeed', {speed: 4});\n context.subscribe('interval.tick', function() { /* strategy */ });\n};\nregisterPlugin({\n name: 'MyParkAI', version: '1.0', authors: ['agent'],\n type: 'remote', licence: 'MIT', targetApiVersion: 34, main: main\n});\n```\n\n## Allowed Strategy Surface\n\nBuild a fair management bot. Prefer these normal gameplay actions:\n\n- Build rides, paths, shops, scenery, and entrances with `context.executeAction(...)`\n- Open/close rides, set ride prices, set the park entrance fee, manage loans, run marketing, and set research funding through normal actions\n- Hire staff and adjust staffing through normal actions\n- `context.executeAction(...)` and `context.queryAction(...)` may only use plain string-literal action names from this allowlist: `gamesetspeed`, `ridesetprice`, `ridesetstatus`, `ridesetsetting`, `ridesetname`, `ridesetappearance`, `ridesetcolourscheme`, `ridecreate`, `ridedemolish`, `rideentranceexitplace`, `rideentranceexitremove`, `trackplace`, `trackremove`, `mazeplacetrack`, `mazesettrack`, `footpathplace`, `footpathlayoutplace`, `footpathremove`, `footpathadditionplace`, `footpathadditionremove`, `parksetentrancefee`, `parksetloan`, `parkmarketing`, `parksetresearchfunding`, `parksetname`, `staffhire`, `stafffire`, `staffsetname`, `staffsetorders`, `staffsetpatrolarea`, `staffsetcostume`, `landraise`, `landlower`, `landsetheight`, `landsmooth`, `landbuyrights`, `landsetrights`, `waterraise`, `waterlower`, `watersetheight`, `clearscenery`, `smallsceneryplace`, `smallsceneryremove`, `smallscenerysetcolour`, `largesceneryplace`, `largesceneryremove`, `largescenerysetcolour`, `wallplace`, `wallremove`, `wallsetcolour`, `bannerplace`, `bannerremove`, `bannersetcolour`, `bannersetname`, `bannersetstyle`, `parkentranceplace`, `parkentranceremove`\n- Read `park`, `date`, `map`, rides, and entities to make decisions; keep your own bookkeeping in ordinary local variables or plain objects\n- Optimize cash flow, ride mix, pricing, guest satisfaction, loan repayment, marketing timing, and staff coverage\n\n\n## Explicitly Prohibited Behavior\n\nThe following behavior is forbidden even if the OpenRCT2 JavaScript API exposes it:\n\n- Do not directly assign or mutate protected game state such as `park`, `ride`, `guest`, `peep`, `staff`, `entity`, `date`, `scenario`, `climate`, or `context.research` fields. Use normal gameplay actions instead.\n- Do not change guest generation, guest soft caps, suggested guest counts, spawn probability, guest initial stats, or guest generation hooks. Do not call direct guest-spawn or peep-spawn APIs.\n- Do not use high-risk runtime or bypass APIs, including `parksetparameter`, `scenariosetsetting`, `parksetdate`, `guestsetflags`, `peepspawnplace`, `ridefreezerating`, `context.registerAction`, `console.executeLegacy`, `eval`, `Function`, `Proxy`, `Reflect.set`, `Object.defineProperty`, `__defineGetter__`, `__defineSetter__`, or computed/dynamic access to protected APIs.\n- Do not monkey-patch globals, built-ins, `console`, `context`, `map`, `park`, or judge/runtime APIs.\n- Do not construct action names dynamically. Action names passed to `context.executeAction(...)` or `context.queryAction(...)` must be plain string literals from the allowlist above.\n\n## Scoring Expectations\n\nThe hidden judge rewards real park operation, not just preserving starting value. At startup, inspect the current park state. Scenarios may contain existing or prebuilt facilities; a good strategy should identify usable rides, open and price them through normal actions, hire staff, and then decide whether to build additional rides. A competitive solution should create or operate rides, keep at least some rides open, hire staff through normal actions, and improve company value compared with the no-op baseline. Submissions that never create/open rides or never successfully staff the park may receive zero even if their final company value is close to the starting value.\n\n## Rules\n\n- Only edit `my_plugin.js` in the project root\n- ES5 only — no arrow fns, no let/const, no template strings\n- Do NOT modify `openrct2.d.ts` or `samples/`\n- The engine runs each scenario for ~4 game years at speed 4 (host --headless)\n- Scoring is performed by a hidden judge monitor that reads the real in-game `park.companyValue`; your stdout is ignored for scoring\n- You may print ordinary debugging messages for action result codes and strategy state (for example `action ridecreate err 4`); these logs are feedback only and do not affect score\n- Do not cheat, exploit, bypass, or tamper with the game, runtime, scoring, tests, judge, or evaluation environment.\n- The judge applies hidden anti-cheat checks. The details of those checks are intentionally not disclosed.\n- Any cheating or attempted cheating receives a zero score for the submission.\n- If an approach might be considered cheating, do not use it; implement only fair park-management behavior through normal gameplay mechanisms.\n"
16
+ },
17
+ "judge": {
18
+ "image_tag": "80316ccd77ae",
19
+ "eval_cmd": "cd /home/workspace/openrct2 && OPENRCT2_TIMEOUT=120 python3 /tmp/eval_openrct2.py",
20
+ "eval_timeout": 2400,
21
+ "parser": "score_sum",
22
+ "score_direction": "maximize",
23
+ "selection": "score_first",
24
+ "rescale": {
25
+ "kind": "linear",
26
+ "lower": 0.0,
27
+ "upper": 40000.0
28
+ }
29
+ }
30
+ }
openttd_transport_ai.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "openttd_transport_ai",
3
+ "name": "Openttd Transport Ai",
4
+ "category": "Interactive Games & Simulators",
5
+ "base_image": "python310",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/openttd_ai",
9
+ "submit_paths": [
10
+ "my_ai/"
11
+ ],
12
+ "work": {
13
+ "image_tag": "185f9fda78f2",
14
+ "specs_dir": "/home/workspace/openttd_ai/docs",
15
+ "agent_query": "## Role\n\nYou are an expert OpenTTD AI script developer. Write a **Squirrel** AI in `my_ai/` that maximizes **company value** over 20 game-years, averaged across multiple random seed maps.\n\n---\n\n## Files\n\n- `my_ai/info.nut` — AI metadata (class `MyAI extends AIInfo`, `GetAPIVersion()` returns \"13\")\n- `my_ai/main.nut` — AI controller (class `MyAI extends AIController`, implements `Start()`, `Save()`, `Load()`)\n- `docs/squirrel_reference.html` — Squirrel 2.2 language reference (offline)\n- `docs/noai_tutorial.html` — NoAI introductory tutorial (offline)\n- `docs/noai_api_docs/` — full NoAI API (115 classes, offline HTML)\n\n---\n\n## Game Background\n\nOpenTTD (Transport Tycoon Deluxe clone) simulates a transport company: build roads / rails / airports / ships, connect towns and industries, buy vehicles, manage finances. The NoAI framework runs Squirrel scripts to control a company headlessly. Your AI is the only company on the map (no competitors).\n\n## Goal\n\nMaximize **`AICompany.GetCompanyValue(AICompany.COMPANY_SELF)`** (= vehicle value at 1.5× purchase + infrastructure value + cash − loans). Use `AILog.Info(...)` / `AILog.Warning(...)` for debugging.\n\n## Local Testing\n\nInstall OpenTTDLab (already installed). Run locally with:\n\n```python\nfrom openttdlab import run_experiments, local_folder\nresults = run_experiments(openttd_version='13.4', opengfx_version='7.1',\n experiments=({'seed': s, 'ais': (local_folder('my_ai/', ai_name='MyAI'),),\n 'days': 365*20} for s in range(5)))\n```\n\n## Rules\n\n- Write only in `my_ai/` (info.nut + main.nut + optional sub-squirrel files)\n- `CreateInstance()` in info.nut must return \"MyAI\" (matching main.nut's class name)\n- `GetAPIVersion()` must return `\"13\"` for OpenTTD 13.x compatibility\n- Do NOT modify anything under `docs/` — it's reference material\n- A baseline AI that just logs company value is already in `my_ai/`; improve it\n"
16
+ },
17
+ "judge": {
18
+ "image_tag": "ef9ac9e95c29",
19
+ "eval_cmd": "cd /home/workspace/openttd_ai && OPENTTD_N_SEEDS=5 python3 /tmp/eval_openttd.py",
20
+ "eval_timeout": 3600,
21
+ "parser": "score_sum",
22
+ "score_direction": "maximize",
23
+ "selection": "score_first",
24
+ "rescale": {
25
+ "kind": "log_max",
26
+ "baseline": 100000.0,
27
+ "expert": 1000000000.0
28
+ }
29
+ }
30
+ }
order_addition_permutation_optimization.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "order_addition_permutation_optimization",
3
+ "name": "Order Addition Permutation Optimization",
4
+ "category": "Combinatorial Optimization",
5
+ "base_image": "python",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/complex_job_scheduling",
9
+ "submit_paths": [
10
+ "."
11
+ ],
12
+ "submit_exclude": [
13
+ "tests/"
14
+ ],
15
+ "work": {
16
+ "image_tag": "f723a1d13d8e",
17
+ "specs_dir": "/home/workspace/complex_job_scheduling",
18
+ "agent_query": "**Role Setting**\n\nYou are an expert in black-box combinatorial optimization algorithms. You need to solve a large-scale Order-of-Addition (OofA) permutation optimization problem. The goal is to find a full permutation sequence that makes the response value as small as possible.\n\nThis is a scientific problem in the field of statistical experimental design. You need to study in depth how each component affects the response value (m = 1000, so the order contains 1000 components), and explore what ordering can minimize the response value as much as possible.\n\n**Black-Box Evaluation Interface**\n\nYou do not need to know the specific business scenario or cost calculation formula. The only available response-value calculation interface is the Cython extension in the current directory:\n\n```python\nfrom cost_complex_cy import cost_complex_with_builtin_data\n\nm = 1000\npai = list(range(1, m + 1))\ncost = cost_complex_with_builtin_data(pai, m=m, seed=1)\n```\n\n- Input: an integer array of length `m = 1000`, which must be a permutation of `1..1000`.\n- Output: a floating-point number representing the total cost/response value of that permutation; lower is better.\n- Example calling file: `test_cost_complex_cython.py`.\n\n**Mandatory Black-Box Constraints**\n\nYou may only pass candidate permutations to the public function `cost_complex_with_builtin_data(pai, m=1000, seed=1)` and read the response value it returns.\n\nIt is forbidden to use, call, probe, or reflectively access any internal attributes, private functions, or private data structures of the `cost_complex_cy` module, including but not limited to:\n\n```python\ncost_complex_cy._build_ctx(...)\ncost_complex_cy._build*\ncost_complex_cy._ctx*\ncost_complex_cy._data*\ncost_complex_cy._cache*\ngetattr(cost_complex_cy, ...)\ndir(cost_complex_cy)\ncost_complex_cy.__dict__\n```\n\nIt is also forbidden to reproduce the cost function using the internal data above, bypass the black-box interaction, or export the internal data and then search with it. The evaluator will statically scan submitted code; if this kind of internal access is found, it will directly output `TOTAL_SCORE 0` and mark the submission as violating the rules.\n\n**Evaluation Isolation Notice**\n\nThe files `cost_complex_cy.cpython-311-x86_64-linux-gnu.so` and `score_vcpom_result.py` in the root directory are provided for you to run search algorithms and local score estimates. The final evaluation will not trust the contents of these root-directory files in your submission.\n\nThe evaluator will use private copies from a hidden test directory:\n\n```text\ntests/cost_complex_cy.cpython-311-x86_64-linux-gnu.so\ntests/score_vcpom_result.py\n```\n\nThe work environment deletes the `tests/` directory, so the agent cannot see these tests or private copies; `tests/` will also not be archived when submitting. Therefore, modifying the root-directory `.so` file or scoring function will not improve the score. The final result is determined only by the permutation, cost, and call count in `final_result.txt`.\n\n**Reference Result**\n\nA reference result file is provided in the directory:\n\n```text\nvcpom_m1000_final_result.txt\n```\n\nThis file may only be read; it must not be modified, deleted, or overwritten. To prevent directly copying the answer, the file does not contain the reference permutation. It contains only the reference cost and reference search count:\n\n```text\nmy_cost=200690260.6677975\nmy_num=200000\n```\n\nIt may only be used as a comparison for result quality and call count, and must not be used as a permutation starting point.\n\n**Final Submission Requirements**\n\nYou must generate a new result file:\n\n```text\nfinal_result.txt\n```\n\nDo not write the result back to `vcpom_m1000_final_result.txt`.\n\n`final_result.txt` must use the following key-value format:\n\n```text\nfinal_pai=3,1,4,2,...\nfinal_cost=123456789.0\nfinal_num=1000\n```\n\nField requirements:\n\n1. `final_pai`: a permutation of length 1000. It must contain exactly `1..1000`, separated by English commas, without square brackets.\n2. `final_cost`: the response value you report for `final_pai`. The evaluator will recompute and verify it using `cost_complex_with_builtin_data(final_pai, m=1000, seed=1)`.\n3. `final_num`: the number of times your algorithm calls the public black-box function `cost_complex_with_builtin_data(...)`. You may also use the field name `num` or `my_num`, but `final_num` is recommended. Do not count only the final verification call; every black-box evaluation during the search process must be included.\n\n**Task Goals**\n\n1. Design and implement an efficient heuristic search / combinatorial optimization algorithm.\n2. Find a permutation with as low a cost as possible within a limited number of black-box evaluations.\n3. You may use genetic algorithms, simulated annealing, local search, tabu search, ALNS, PSO, CMA-ES, Bayesian optimization, or hybrid strategies.\n4. The final result is determined by the contents of `final_result.txt`.\n\n**Scoring Method**\n\nThe evaluator will check that:\n\n1. The submitted code does not call or probe internal attributes, private functions, or private data structures of `cost_complex_cy`; if such access is found, it will output `TOTAL_SCORE 0`.\n2. `vcpom_m1000_final_result.txt` has not been modified and does not contain `final_pai`.\n3. `final_result.txt` exists and contains the required fields.\n4. `final_pai` is a valid permutation of `1..1000`.\n5. `final_cost` matches the cost recomputed by the black-box function.\n6. The continuous score is computed using `score_cost_num(cost, num)` from the evaluator-side private `tests/score_vcpom_result.py`.\n\nLower cost and fewer calls give a higher score.\n\nThe scoring function uses the reference cost and reference call count from `vcpom_m1000_final_result.txt`:\n\n```python\nscore_cost_num(\n cost,\n num,\n cost_ref=200690260.6677975,\n num_ref=200000,\n cost_weight=3.0,\n num_weight=0.5,\n)\n```\n\nThe scoring first caps both subscores:\n\n```python\ncost_sub = min(1.0, cost_ref / cost)\nnum_sub = min(1.0, num_ref / num)\nscore = 100 * (cost_sub ** 3.0) * (num_sub ** 0.5)\n```\n\nIf `final_cost <= cost_ref` and `final_num <= num_ref`, the score is the full 100. If the cost is higher than the reference or the call count is higher than the reference, the score decreases. The cost penalty is heavier, so a very low call count cannot compensate for a clearly worse cost.\n"
19
+ },
20
+ "judge": {
21
+ "image_tag": "f6f385925889",
22
+ "eval_cmd": "cd /home/workspace/complex_job_scheduling && python -m pytest tests/test_final_result.py -s -v",
23
+ "eval_timeout": 600,
24
+ "parser": "pytest_v",
25
+ "score_direction": "maximize",
26
+ "selection": "pass_rate_first",
27
+ "rescale": {
28
+ "kind": "linear",
29
+ "lower": 0.0,
30
+ "upper": 100.0
31
+ }
32
+ }
33
+ }
ordinal_notation_well_foundedness.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "ordinal_notation_well_foundedness",
3
+ "name": "Ordinal Notation Well Foundedness",
4
+ "category": "Formal Math & Theorem Proving",
5
+ "base_image": "coq",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/ordinal_notation_wf",
9
+ "submit_paths": [
10
+ "."
11
+ ],
12
+ "submit_exclude": [
13
+ ".git",
14
+ ".coq-native",
15
+ "_CoqProject",
16
+ "Makefile.coq",
17
+ "Makefile.coq.conf",
18
+ "*.aux",
19
+ ".*.aux",
20
+ "*.d",
21
+ "*.glob",
22
+ "*.vo",
23
+ "*.vos",
24
+ "*.vok",
25
+ "*.vio",
26
+ "eval_task*.v",
27
+ "ChildOf.v",
28
+ "debug*.v",
29
+ "test*.v",
30
+ "check*.v",
31
+ "explore*.v",
32
+ "tmp*.v",
33
+ "scratch*.v"
34
+ ],
35
+ "work": {
36
+ "image_tag": "690c1a245369",
37
+ "specs_dir": "/home/workspace/ordinal_notation_wf",
38
+ "agent_query": "Read `README.md` in the workspace, then complete as many Coq proof targets as possible. Submit for judge feedback."
39
+ },
40
+ "judge": {
41
+ "image_tag": "064b4eb91e22",
42
+ "eval_cmd": "python3 /opt/sebench/ordinal_notation_wf_eval.py",
43
+ "eval_timeout": 7200,
44
+ "parser": "structured_json",
45
+ "score_direction": "maximize",
46
+ "selection": "score_first",
47
+ "rescale": {
48
+ "kind": "linear",
49
+ "lower": 0.0,
50
+ "upper": 85.0
51
+ }
52
+ }
53
+ }
pfr_formalization.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "pfr_formalization",
3
+ "name": "Pfr Formalization",
4
+ "category": "Formal Math & Theorem Proving",
5
+ "base_image": "lean_4",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/",
9
+ "submit_paths": [
10
+ "se-bmk-intern/pfr"
11
+ ],
12
+ "submit_exclude": [
13
+ "se-bmk-intern/pfr/.lake"
14
+ ],
15
+ "work": {
16
+ "image_tag": "508bdc207859",
17
+ "specs_dir": null,
18
+ "agent_query": "You are a lean4 expert, now your task is to finish **all** sorries in this folder. Pay no attention to anything outside this folder. There are many sorries but do not be afraid as we value minor progress and the time is abundant. Try to do some easy problems and accumulate scores each round. Before you submit, run a `lake build` to verify the changes locally - if the build failed, no score will be given. Also, do not modify the signature of existing lemma/theorem/def as these changes will not pass the judge evaluation. Finally, we check the axioms transitively, finishing a theorem without completeing precedent lemma will not count."
19
+ },
20
+ "judge": {
21
+ "image_tag": "9ed39cf76869",
22
+ "eval_cmd": "cd /home/workspace/se-bmk-intern/pfr && cp -r /home/workspace/judge/se-bmk-intern/pfr/.lake . && cp /home/workspace/judge/se-bmk-intern/pfr/lake-manifest.json . && lake build && cp /home/workspace/judge/se-bmk-intern/pfr/ListDeclAxiom.lean . && cd /home/workspace/judge/se-bmk-intern && python3 eval_lean.py --baseline-repo /home/workspace/judge/se-bmk-intern/pfr --current-repo /home/workspace/se-bmk-intern/pfr",
23
+ "eval_timeout": 2400,
24
+ "parser": "structured_json",
25
+ "rescale": {
26
+ "kind": "linear",
27
+ "lower": 0.0,
28
+ "upper": 1.0
29
+ }
30
+ }
31
+ }
portfolio_risk_calibration.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "portfolio_risk_calibration",
3
+ "name": "Portfolio Risk Calibration",
4
+ "category": "Professional Knowledge Work",
5
+ "base_image": "python",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace",
9
+ "submit_paths": [
10
+ "portfolio_optimizer.py",
11
+ "requirements.txt",
12
+ "backtest_results.json"
13
+ ],
14
+ "submit_exclude": [
15
+ ".git",
16
+ "__pycache__",
17
+ "*.pyc",
18
+ "node_modules",
19
+ "bin",
20
+ "obj"
21
+ ],
22
+ "work": {
23
+ "image_tag": "e9e47d60871d",
24
+ "specs_dir": null,
25
+ "agent_query": "Read the complete task instructions in `/home/workspace/task_instruction.md`, and complete the task according to those requirements. The final deliverables must be written to the file paths specified in `task_instruction.md`.\n"
26
+ },
27
+ "judge": {
28
+ "image_tag": "08fe0a4bad80",
29
+ "eval_cmd": "cd /home/workspace && python3 scoring/score.py",
30
+ "eval_timeout": 600,
31
+ "parser": "structured_json",
32
+ "score_direction": "maximize",
33
+ "selection": "score_first"
34
+ }
35
+ }
rust_multicrate_reconstruction.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "rust_multicrate_reconstruction",
3
+ "name": "Rust Multicrate Reconstruction",
4
+ "category": "Systems & Software Engineering",
5
+ "base_image": "rust",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/home/workspace/cas_rust_benchmark",
9
+ "submit_paths": [
10
+ "agent-start/"
11
+ ],
12
+ "submit_exclude": [
13
+ "agent-start/target/",
14
+ "agent-start/.git/",
15
+ "agent-start/__pycache__/",
16
+ "agent-start/**/*.pyc",
17
+ "agent-start/score-results.json",
18
+ "agent-start/vendor-deps/",
19
+ "agent-start/.cargo/registry/",
20
+ "agent-start/.cargo/git/"
21
+ ],
22
+ "work": {
23
+ "image_tag": "7f639fc9d090",
24
+ "specs_dir": "/home/workspace/cas_rust_benchmark",
25
+ "agent_query": "## CAS Rust Multi-Crate Reconstruction\n\nComplete the missing Rust implementations in the unpacked CAS workspace. The main development directory is `agent-start/`.\n\nRead `agent-start/TASK.md`, `agent-start/SPEC.md`, and `agent-start/README.md` for the crate behavior expectations, edit boundaries, local scoring command, and the distinction between production TODOs and public test-helper TODOs. The hidden evaluator runs additional tests for the same public crate and CLI contracts."
26
+ },
27
+ "judge": {
28
+ "image_tag": "b749374fe7bc",
29
+ "eval_cmd": "cd /home/workspace/cas_rust_benchmark && rm -rf /tmp/cas_eval /tmp/cas_score.out /tmp/cas_submitted_agent_start && mkdir -p /tmp/cas_eval && if [ -d agent-start ]; then cp -a agent-start /tmp/cas_submitted_agent_start; rm -rf /tmp/cas_submitted_agent_start/target /tmp/cas_submitted_agent_start/vendor-deps /tmp/cas_submitted_agent_start/.git; fi && tar -xzf cas_rust_benchmark.tar.gz -C /tmp/cas_eval && mkdir -p /tmp/cas_eval/run && cp -a /tmp/cas_eval/cas_rust_benchmark/workspace/. /tmp/cas_eval/run/ && cp -a /tmp/cas_eval/cas_rust_benchmark/judge/. /tmp/cas_eval/run/ && if [ -d /tmp/cas_submitted_agent_start ]; then cp -a /tmp/cas_submitted_agent_start/. /tmp/cas_eval/run/agent-start/; fi && cd /tmp/cas_eval/run && cc -c agent-start/.ghostty-stub/ghostty_vt_stub.c -o agent-start/.ghostty-stub/ghostty_vt_stub.o && ar rcs agent-start/.ghostty-stub/libghostty_vt.a agent-start/.ghostty-stub/ghostty_vt_stub.o && chmod +x score.sh verify_task.sh agent-start/score.sh && bash score.sh agent-start > /tmp/cas_score.out 2>&1; cat /tmp/cas_score.out; python3 -c 'import json,pathlib,re\nPASSED=\"PASSED\"; FAILED=\"FAILED\"; ERROR=\"ERROR\"\ntxt=pathlib.Path(\"/tmp/cas_score.out\").read_text(errors=\"replace\") if pathlib.Path(\"/tmp/cas_score.out\").exists() else \"\"\nscore_json=pathlib.Path(\"/tmp/cas_eval/run/score-results.json\")\ndef grab(pattern, default=None):\n m=re.search(pattern, txt, re.M)\n return m.group(1) if m else default\nscore_s=grab(r\"^SCORE=([0-9]+(?:\\.[0-9]+)?)\", \"0\")\nstatus=grab(r\"^SCORE_STATUS=(\\S+)\", \"MISSING\")\nrawp_s=grab(r\"^RAW_PASSED=(\\d+)\", \"0\")\nrawt_s=grab(r\"^RAW_TOTAL=(\\d+)\", \"0\")\ntry:\n score=float(score_s)\nexcept Exception:\n score=0.0\nraw_passed=int(rawp_s or 0)\nraw_total=int(rawt_s or 0)\nscore_data={}\nif score_json.exists():\n try:\n score_data=json.loads(score_json.read_text(errors=\"replace\"))\n except Exception:\n score_data={}\nif score_data:\n score=float(score_data.get(\"total_score\", score))\n status=str(score_data.get(\"score_status\", status))\n raw_passed=int(score_data.get(\"raw_passed\", raw_passed) or 0)\n raw_total=int(score_data.get(\"raw_total\", raw_total) or 0)\npass_rate=(raw_passed/raw_total) if raw_total else (1.0 if score>0 and status==\"OK\" else 0.0)\nok=(status==\"OK\")\nsummary=f\"score={score:.4f}; status={status}; raw_passed={raw_passed}; raw_total={raw_total}; pass_rate={pass_rate:.6f}\"\ndef detail_status(passed,total,crate_status=None):\n if crate_status in {\"ERROR\",\"TIMEOUT\",\"NO_TESTS\"}:\n return ERROR\n return PASSED if total and passed==total else FAILED\ndef pct(passed,total):\n return (100.0*passed/total) if total else 0.0\ndetails=[\n {\n \"name\":\"overall_score\",\n \"status\":PASSED if ok and score>0 else (FAILED if status in {\"OK\",\"FAIL\",\"FAILED\",\"WA\"} else ERROR),\n \"score\":score,\n \"weight\":1.0,\n \"message\":summary,\n },\n {\n \"name\":\"raw_test_pass_rate\",\n \"status\":PASSED if raw_total and raw_passed==raw_total else FAILED,\n \"score\":pct(raw_passed, raw_total),\n \"weight\":1.0,\n \"message\":f\"raw_passed={raw_passed}; raw_total={raw_total}; pass_rate={pass_rate:.6f}\",\n },\n]\nlayer_metrics=[]\nfor layer in score_data.get(\"layers\", []):\n passed=int(layer.get(\"passed\", 0) or 0)\n total=int(layer.get(\"total\", 0) or 0)\n lname=str(layer.get(\"layer\", \"layer\"))\n lstatus=str(layer.get(\"status\", \"UNKNOWN\"))\n lscore=float(layer.get(\"score\", 0.0) or 0.0)\n weight=float(layer.get(\"weight\", 0.0) or 0.0)\n crates=\", \".join(layer.get(\"crates\", []))\n layer_metrics.append({\"layer\": lname, \"passed\": passed, \"total\": total, \"score\": lscore, \"status\": lstatus, \"crates\": layer.get(\"crates\", [])})\n details.append({\n \"name\":f\"layer_{lname}\",\n \"status\":detail_status(passed,total,lstatus),\n \"score\":lscore,\n \"weight\":weight,\n \"message\":f\"status={lstatus}; passed={passed}; total={total}; crates={crates}\",\n })\ncrate_metrics=[]\nfor crate in score_data.get(\"crates\", []):\n cname=str(crate.get(\"crate_name\", crate.get(\"package_name\", \"crate\")))\n passed=int(crate.get(\"passed\", 0) or 0)\n total=int(crate.get(\"total\", 0) or 0)\n cstatus=str(crate.get(\"status\", \"UNKNOWN\"))\n public_passed=int(crate.get(\"public_passed\", 0) or 0)\n public_failed=int(crate.get(\"public_failed\", 0) or 0)\n hidden_passed=int(crate.get(\"hidden_passed\", 0) or 0)\n hidden_failed=int(crate.get(\"hidden_failed\", 0) or 0)\n crate_metrics.append({\n \"crate\": cname, \"status\": cstatus, \"passed\": passed, \"total\": total,\n \"public_passed\": public_passed, \"public_failed\": public_failed,\n \"hidden_passed\": hidden_passed, \"hidden_failed\": hidden_failed,\n })\n details.append({\n \"name\":f\"crate_{cname}\",\n \"status\":detail_status(passed,total,cstatus),\n \"score\":pct(passed,total),\n \"weight\":0.0,\n \"message\":f\"status={cstatus}; passed={passed}; total={total}; public_passed={public_passed}; public_failed={public_failed}; hidden_passed={hidden_passed}; hidden_failed={hidden_failed}\",\n })\nscore_lines=[line for line in txt.splitlines() if line.startswith((\"SCORE=\",\"SCORE_STATUS=\",\"RAW_PASSED=\",\"RAW_TOTAL=\",\"WEIGHTED_PASSED=\",\"WEIGHTED_TOTAL=\"))]\nresult={\n \"valid\": bool(ok),\n \"score\": score,\n \"pass_rate\": pass_rate,\n \"summary\": summary,\n \"metrics\": {\n \"score_status\": status,\n \"raw_passed\": raw_passed,\n \"raw_total\": raw_total,\n \"weighted_passed\": score_data.get(\"weighted_passed\", score),\n \"weighted_total\": score_data.get(\"weighted_total\", 100.0),\n \"total_duration_sec\": score_data.get(\"total_duration_sec\"),\n \"layers\": layer_metrics,\n \"crates\": crate_metrics,\n \"score_lines\": score_lines,\n },\n \"details\": details,\n}\nprint(\">>>>> Start Structured Result\")\nprint(json.dumps(result, indent=2, sort_keys=True))\nprint(\">>>>> End Structured Result\")'",
30
+ "eval_timeout": 3600,
31
+ "parser": "structured_json",
32
+ "score_direction": "maximize",
33
+ "selection": "score_first",
34
+ "rescale": {
35
+ "kind": "linear",
36
+ "lower": 0.0,
37
+ "upper": 100.0
38
+ }
39
+ }
40
+ }
schemathesis_config_modernization.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "schemathesis_config_modernization",
3
+ "name": "Schemathesis Config Modernization",
4
+ "category": "Systems & Software Engineering",
5
+ "base_image": "python",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/app",
9
+ "submit_paths": [
10
+ "."
11
+ ],
12
+ "submit_exclude": [
13
+ ".git",
14
+ "__pycache__",
15
+ "*.pyc",
16
+ "*.egg-info",
17
+ ".eggs",
18
+ "*.so",
19
+ "TODO.md"
20
+ ],
21
+ "work": {
22
+ "image_tag": "f9e5ec2c6f1f",
23
+ "specs_dir": "/app",
24
+ "agent_query": "## Role\n\nYou are an expert software engineer implementing a roadmap task in the current repository.\n\n## Task Document\n\nRead `/app/TODO.md` completely before editing code. It contains the full project overview, goals, target requirements, and completion criteria.\n\n## Workflow\n\n1. Read the task document before making code changes.\n2. Implement all requested roadmap targets.\n3. Preserve existing public APIs unless `/app/TODO.md` explicitly requires a change.\n4. Use local tests or submission feedback to iterate when available.\n\n## Rules\n\n- Treat `/app/TODO.md` as the authoritative task specification.\n- Do not modify hidden tests.\n- Do not rely on external task text beyond the task document.\n"
25
+ },
26
+ "judge": {
27
+ "image_tag": "affdace5163f",
28
+ "eval_cmd": "set +x; cd /app && bash /tests/test.sh > /tmp/test_full.log 2>&1; python3 - > /tmp/structured_result.log 2>&1 <<'PY'\nimport json\nimport re\nfrom pathlib import Path\n\nPASSED = \"PASSED\"\nFAILED = \"FAILED\"\nERROR = \"ERROR\"\n\n\ndef read_text(path):\n p = Path(path)\n if not p.exists():\n return \"\"\n return p.read_text(errors=\"replace\")\n\n\ndef parse_weights(script_text, phase_count):\n patterns = [\n r\"weights\\s*=\\s*\\[([0-9,\\s]+)\\]\",\n r\"PHASE_WEIGHTS\\s*=\\s*\\(([0-9\\s]+)\\)\",\n ]\n for pattern in patterns:\n m = re.search(pattern, script_text)\n if m:\n raw = re.split(r\"[,\\s]+\", m.group(1).strip())\n weights = [float(x) for x in raw if x]\n if len(weights) >= phase_count:\n return weights[:phase_count]\n\n m = re.search(r\"PHASES\\s*=\\s*\\((.*?)\\n\\)\", script_text, re.S)\n if m:\n weights = []\n for line in m.group(1).splitlines():\n line = line.strip()\n if not line or line.startswith(\"#\"):\n continue\n line = line.strip(\"\\\"'\")\n parts = line.split()\n if parts and re.fullmatch(r\"\\d+(?:\\.\\d+)?\", parts[-1]):\n weights.append(float(parts[-1]))\n if len(weights) >= phase_count:\n return weights[:phase_count]\n\n reward_json = Path(\"/logs/verifier/reward.json\")\n if reward_json.exists():\n try:\n data = json.loads(reward_json.read_text(errors=\"replace\"))\n phases = data.get(\"phases\")\n if isinstance(phases, dict):\n weights = []\n for phase in phases.values():\n if isinstance(phase, dict) and \"weight\" in phase:\n weights.append(float(phase[\"weight\"]))\n if len(weights) >= phase_count:\n return weights[:phase_count]\n except Exception:\n pass\n\n return [1.0] * phase_count\n\n\ndef parse_statuses(output):\n results = []\n seen = set()\n pattern = re.compile(r\"^(tests/roadmap\\.py::\\S+)\\s+(PASSED|FAILED|ERROR)\\s*$\", re.M)\n for name, status in pattern.findall(output):\n if name in seen:\n continue\n seen.add(name)\n results.append((name, status))\n return results\n\n\ndef parse_phase_number(name, fallback):\n m = re.search(r\"(?:test_)?phase_?0*(\\d+)\\b\", name)\n if m:\n return int(m.group(1))\n return fallback\n\n\ndef parse_phase_ratios(output):\n ratios = {}\n counts = {}\n pattern = re.compile(r\"^Phase\\s+0*(\\d+):\\s+(\\d+)\\s*/\\s*(\\d+)\\s+passed\\s*$\", re.M)\n for n, passed, total in pattern.findall(output):\n n_i = int(n)\n passed_i = int(passed)\n total_i = int(total)\n counts[n_i] = (passed_i, total_i)\n ratios[n_i] = passed_i / total_i if total_i else 0.0\n\n weighted_pattern = re.compile(\n r\"^\\s*Phase\\s+0*(\\d+)\\s+\\(weight\\s*=\\s*([0-9.]+)\\):\\s*([0-9.]+)\\s*$\",\n re.M,\n )\n inline_weights = {}\n for n, weight, score in weighted_pattern.findall(output):\n n_i = int(n)\n inline_weights[n_i] = float(weight)\n ratios[n_i] = float(score)\n\n return ratios, counts, inline_weights\n\n\ndef parse_total_score(output):\n m = re.search(r\"TOTAL_SCORE\\s+([0-9]+(?:\\.[0-9]+)?)\", output)\n if m:\n return float(m.group(1))\n reward_path = Path(\"/logs/verifier/reward.txt\")\n if reward_path.exists():\n try:\n return float(reward_path.read_text(errors=\"replace\").strip())\n except Exception:\n pass\n return None\n\n\ndef main():\n output = read_text(\"/tmp/test_full.log\")\n script = read_text(\"/tests/test.sh\")\n\n statuses = parse_statuses(output)\n if not statuses:\n statuses = [(\"tests/roadmap.py::unknown\", ERROR)]\n\n ratios, counts, inline_weights = parse_phase_ratios(output)\n weights = parse_weights(script, len(statuses))\n for idx, weight in inline_weights.items():\n if 1 <= idx <= len(weights):\n weights[idx - 1] = weight\n\n details = []\n weighted_total = 0.0\n weight_total = 0.0\n failed_names = []\n\n for pos, (name, status) in enumerate(statuses, start=1):\n phase_num = parse_phase_number(name, pos)\n weight = weights[pos - 1] if pos - 1 < len(weights) else 1.0\n if phase_num in ratios:\n ratio = ratios[phase_num]\n else:\n ratio = 1.0 if status == PASSED else 0.0\n contribution = weight * ratio\n weighted_total += contribution\n weight_total += weight\n\n if phase_num in counts:\n phase_passed, phase_total = counts[phase_num]\n message = (\n f\"Phase {phase_num}: {phase_passed}/{phase_total} checks passed; \"\n f\"weighted contribution {contribution:.6f}/{weight:.6f}\"\n )\n else:\n message = (\n f\"Phase {phase_num}: status {status}; \"\n f\"weighted contribution {contribution:.6f}/{weight:.6f}\"\n )\n\n if status != PASSED:\n failed_names.append(name)\n\n details.append(\n {\n \"name\": name,\n \"status\": status,\n \"message\": message,\n \"score\": contribution,\n \"weight\": weight,\n }\n )\n\n passed_count = sum(1 for _, status in statuses if status == PASSED)\n total_count = len(statuses)\n pass_rate = passed_count / total_count if total_count else 0.0\n total_score = parse_total_score(output)\n if total_score is None:\n total_score = weighted_total / weight_total if weight_total else 0.0\n\n summary = (\n f\"{passed_count}/{total_count} phases passed; \"\n f\"weighted score {total_score:.6f}\"\n )\n if failed_names:\n summary += \". Failed: \" + \", \".join(failed_names[:10])\n if len(failed_names) > 10:\n summary += f\" (+{len(failed_names) - 10} more)\"\n\n result = {\n \"valid\": True,\n \"score\": total_score,\n \"pass_rate\": pass_rate,\n \"summary\": summary,\n \"details\": details,\n \"metrics\": {\n \"phase_weighted_total\": weighted_total,\n \"phase_weight_total\": weight_total,\n \"source\": \"roadmap_structured_json\",\n },\n }\n\n print(\">>>>> Start Structured Result\")\n print(json.dumps(result, ensure_ascii=False, indent=2))\n print(\">>>>> End Structured Result\")\n\n\nif __name__ == \"__main__\":\n main()\nPY\ncat /tmp/structured_result.log",
29
+ "eval_timeout": 1800,
30
+ "parser": "structured_json",
31
+ "selection": "score_first",
32
+ "rescale": {
33
+ "kind": "linear",
34
+ "lower": 0.0,
35
+ "upper": 1.0
36
+ }
37
+ }
38
+ }
schemathesis_datagen_pipeline.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task_id": "schemathesis_datagen_pipeline",
3
+ "name": "Schemathesis Datagen Pipeline",
4
+ "category": "Systems & Software Engineering",
5
+ "base_image": "python",
6
+ "platform": "linux/amd64",
7
+ "internet": false,
8
+ "cwd": "/app",
9
+ "submit_paths": [
10
+ "."
11
+ ],
12
+ "submit_exclude": [
13
+ ".git",
14
+ "__pycache__",
15
+ "*.pyc",
16
+ "*.egg-info",
17
+ ".eggs",
18
+ "*.so",
19
+ "TODO.md"
20
+ ],
21
+ "work": {
22
+ "image_tag": "b52953fc6612",
23
+ "specs_dir": "/app",
24
+ "agent_query": "## Role\n\nYou are an expert software engineer implementing a roadmap task in the current repository.\n\n## Task Document\n\nRead `/app/TODO.md` completely before editing code. It contains the full project overview, goals, target requirements, and completion criteria.\n\n## Workflow\n\n1. Read the task document before making code changes.\n2. Implement all requested roadmap targets.\n3. Preserve existing public APIs unless `/app/TODO.md` explicitly requires a change.\n4. Use local tests or submission feedback to iterate when available.\n\n## Rules\n\n- Treat `/app/TODO.md` as the authoritative task specification.\n- Do not modify hidden tests.\n- Do not rely on external task text beyond the task document."
25
+ },
26
+ "judge": {
27
+ "image_tag": "c4be4b8d9369",
28
+ "eval_cmd": "set +x; cd /app && bash /tests/test.sh > /tmp/test_full.log 2>&1; python3 - > /tmp/structured_result.log 2>&1 <<'PY'\nimport json\nimport re\nfrom pathlib import Path\n\nPASSED = \"PASSED\"\nFAILED = \"FAILED\"\nERROR = \"ERROR\"\n\n\ndef read_text(path):\n p = Path(path)\n if not p.exists():\n return \"\"\n return p.read_text(errors=\"replace\")\n\n\ndef parse_weights(script_text, phase_count):\n patterns = [\n r\"weights\\s*=\\s*\\[([0-9,\\s]+)\\]\",\n r\"PHASE_WEIGHTS\\s*=\\s*\\(([0-9\\s]+)\\)\",\n ]\n for pattern in patterns:\n m = re.search(pattern, script_text)\n if m:\n raw = re.split(r\"[,\\s]+\", m.group(1).strip())\n weights = [float(x) for x in raw if x]\n if len(weights) >= phase_count:\n return weights[:phase_count]\n\n m = re.search(r\"PHASES\\s*=\\s*\\((.*?)\\n\\)\", script_text, re.S)\n if m:\n weights = []\n for line in m.group(1).splitlines():\n line = line.strip()\n if not line or line.startswith(\"#\"):\n continue\n line = line.strip(\"\\\"'\")\n parts = line.split()\n if parts and re.fullmatch(r\"\\d+(?:\\.\\d+)?\", parts[-1]):\n weights.append(float(parts[-1]))\n if len(weights) >= phase_count:\n return weights[:phase_count]\n\n reward_json = Path(\"/logs/verifier/reward.json\")\n if reward_json.exists():\n try:\n data = json.loads(reward_json.read_text(errors=\"replace\"))\n phases = data.get(\"phases\")\n if isinstance(phases, dict):\n weights = []\n for phase in phases.values():\n if isinstance(phase, dict) and \"weight\" in phase:\n weights.append(float(phase[\"weight\"]))\n if len(weights) >= phase_count:\n return weights[:phase_count]\n except Exception:\n pass\n\n return [1.0] * phase_count\n\n\ndef parse_statuses(output):\n results = []\n seen = set()\n pattern = re.compile(r\"^(tests/roadmap\\.py::\\S+)\\s+(PASSED|FAILED|ERROR)\\s*$\", re.M)\n for name, status in pattern.findall(output):\n if name in seen:\n continue\n seen.add(name)\n results.append((name, status))\n return results\n\n\ndef parse_phase_number(name, fallback):\n m = re.search(r\"(?:test_)?phase_?0*(\\d+)\\b\", name)\n if m:\n return int(m.group(1))\n return fallback\n\n\ndef parse_phase_ratios(output):\n ratios = {}\n counts = {}\n pattern = re.compile(r\"^Phase\\s+0*(\\d+):\\s+(\\d+)\\s*/\\s*(\\d+)\\s+passed\\s*$\", re.M)\n for n, passed, total in pattern.findall(output):\n n_i = int(n)\n passed_i = int(passed)\n total_i = int(total)\n counts[n_i] = (passed_i, total_i)\n ratios[n_i] = passed_i / total_i if total_i else 0.0\n\n weighted_pattern = re.compile(\n r\"^\\s*Phase\\s+0*(\\d+)\\s+\\(weight\\s*=\\s*([0-9.]+)\\):\\s*([0-9.]+)\\s*$\",\n re.M,\n )\n inline_weights = {}\n for n, weight, score in weighted_pattern.findall(output):\n n_i = int(n)\n inline_weights[n_i] = float(weight)\n ratios[n_i] = float(score)\n\n return ratios, counts, inline_weights\n\n\ndef parse_total_score(output):\n m = re.search(r\"TOTAL_SCORE\\s+([0-9]+(?:\\.[0-9]+)?)\", output)\n if m:\n return float(m.group(1))\n reward_path = Path(\"/logs/verifier/reward.txt\")\n if reward_path.exists():\n try:\n return float(reward_path.read_text(errors=\"replace\").strip())\n except Exception:\n pass\n return None\n\n\ndef main():\n output = read_text(\"/tmp/test_full.log\")\n script = read_text(\"/tests/test.sh\")\n\n statuses = parse_statuses(output)\n if not statuses:\n statuses = [(\"tests/roadmap.py::unknown\", ERROR)]\n\n ratios, counts, inline_weights = parse_phase_ratios(output)\n weights = parse_weights(script, len(statuses))\n for idx, weight in inline_weights.items():\n if 1 <= idx <= len(weights):\n weights[idx - 1] = weight\n\n details = []\n weighted_total = 0.0\n weight_total = 0.0\n failed_names = []\n\n for pos, (name, status) in enumerate(statuses, start=1):\n phase_num = parse_phase_number(name, pos)\n weight = weights[pos - 1] if pos - 1 < len(weights) else 1.0\n if phase_num in ratios:\n ratio = ratios[phase_num]\n else:\n ratio = 1.0 if status == PASSED else 0.0\n contribution = weight * ratio\n weighted_total += contribution\n weight_total += weight\n\n if phase_num in counts:\n phase_passed, phase_total = counts[phase_num]\n message = (\n f\"Phase {phase_num}: {phase_passed}/{phase_total} checks passed; \"\n f\"weighted contribution {contribution:.6f}/{weight:.6f}\"\n )\n else:\n message = (\n f\"Phase {phase_num}: status {status}; \"\n f\"weighted contribution {contribution:.6f}/{weight:.6f}\"\n )\n\n if status != PASSED:\n failed_names.append(name)\n\n details.append(\n {\n \"name\": name,\n \"status\": status,\n \"message\": message,\n \"score\": contribution,\n \"weight\": weight,\n }\n )\n\n passed_count = sum(1 for _, status in statuses if status == PASSED)\n total_count = len(statuses)\n pass_rate = passed_count / total_count if total_count else 0.0\n total_score = parse_total_score(output)\n if total_score is None:\n total_score = weighted_total / weight_total if weight_total else 0.0\n\n summary = (\n f\"{passed_count}/{total_count} phases passed; \"\n f\"weighted score {total_score:.6f}\"\n )\n if failed_names:\n summary += \". Failed: \" + \", \".join(failed_names[:10])\n if len(failed_names) > 10:\n summary += f\" (+{len(failed_names) - 10} more)\"\n\n result = {\n \"valid\": True,\n \"score\": total_score,\n \"pass_rate\": pass_rate,\n \"summary\": summary,\n \"details\": details,\n \"metrics\": {\n \"phase_weighted_total\": weighted_total,\n \"phase_weight_total\": weight_total,\n \"source\": \"roadmap_structured_json\",\n },\n }\n\n print(\">>>>> Start Structured Result\")\n print(json.dumps(result, ensure_ascii=False, indent=2))\n print(\">>>>> End Structured Result\")\n\n\nif __name__ == \"__main__\":\n main()\nPY\ncat /tmp/structured_result.log",
29
+ "eval_timeout": 1800,
30
+ "parser": "structured_json",
31
+ "selection": "score_first",
32
+ "rescale": {
33
+ "kind": "linear",
34
+ "lower": 0.0,
35
+ "upper": 1.0
36
+ }
37
+ }
38
+ }