AdithyaSK HF Staff commited on
Commit
8344c43
·
verified ·
1 Parent(s): 04a5745

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. LICENSE +202 -0
  2. LICENSE-mimoagent.md +22 -0
  3. NOTICE +31 -0
  4. README.md +121 -0
  5. agents/mimo_opencode.py +71 -0
  6. data/tasks.jsonl +0 -0
  7. jobs/code.yaml +57 -0
  8. manifest.json +0 -0
  9. registry.json +0 -0
  10. tasks/format-code-task-000020/instruction.md +16 -0
  11. tasks/format-code-task-000020/task.toml +40 -0
  12. tasks/format-code-task-000212/instruction.md +20 -0
  13. tasks/format-code-task-000212/task.toml +40 -0
  14. tasks/format-code-task-000444/instruction.md +17 -0
  15. tasks/format-code-task-000444/task.toml +40 -0
  16. tasks/format-code-task-000682/instruction.md +25 -0
  17. tasks/format-code-task-000682/task.toml +40 -0
  18. tasks/format-code-task-000823/instruction.md +47 -0
  19. tasks/format-code-task-000823/task.toml +40 -0
  20. tasks/format-code-task-001106/instruction.md +9 -0
  21. tasks/format-code-task-001106/task.toml +40 -0
  22. tasks/format-code-task-001139/instruction.md +9 -0
  23. tasks/format-code-task-001139/task.toml +40 -0
  24. tasks/format-code-task-001334/instruction.md +36 -0
  25. tasks/format-code-task-001334/task.toml +40 -0
  26. tasks/format-code-task-001562/instruction.md +31 -0
  27. tasks/format-code-task-001562/task.toml +40 -0
  28. tasks/format-code-task-001596/instruction.md +43 -0
  29. tasks/format-code-task-001596/task.toml +40 -0
  30. tasks/format-code-task-001750/instruction.md +6 -0
  31. tasks/format-code-task-001750/task.toml +40 -0
  32. tasks/format-code-task-001905/instruction.md +7 -0
  33. tasks/format-code-task-001905/task.toml +40 -0
  34. tasks/format-code-task-002121/instruction.md +45 -0
  35. tasks/format-code-task-002121/task.toml +40 -0
  36. tasks/format-code-task-002313/instruction.md +20 -0
  37. tasks/format-code-task-002545/instruction.md +16 -0
  38. tasks/format-code-task-002545/task.toml +40 -0
  39. tasks/format-code-task-002748/instruction.md +54 -0
  40. tasks/format-code-task-002748/task.toml +40 -0
  41. tasks/format-code-task-002777/instruction.md +14 -0
  42. tasks/format-code-task-002777/task.toml +40 -0
  43. tasks/format-code-task-002783/instruction.md +71 -0
  44. tasks/format-code-task-002783/task.toml +40 -0
  45. tasks/format-code-task-002922/instruction.md +27 -0
  46. tasks/format-code-task-002922/task.toml +40 -0
  47. tasks/format-code-task-003007/instruction.md +40 -0
  48. tasks/format-code-task-003007/task.toml +40 -0
  49. tasks/format-code-task-003038/instruction.md +5 -0
  50. tasks/format-code-task-003038/task.toml +40 -0
LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
LICENSE-mimoagent.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Xiaomi Corporation
4
+ Copyright (c) 2025 Kilian A. Lieret and Carlos E. Jimenez (mini-swe-agent)
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
NOTICE ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MiMo-V2.6-RL in Harbor format
2
+ Converted by Hugging Face and the FineEnvs team. Not affiliated with or endorsed by Xiaomi.
3
+
4
+ This work is derived from, and redistributes material of:
5
+
6
+ MiMo-V2.6-RL-oss (https://huggingface.co/datasets/XiaomiMiMo/MiMo-V2.6-RL-oss, revision 639865fd3374018d6cb29b9fb82dd531406fcf5f)
7
+ Copyright Xiaomi Corporation. Licensed under the Apache License, Version 2.0 (LICENSE).
8
+ The task prompts, test patches, test commands, Terminal-Bench test files, General-domain verifier files,
9
+ and the Docker images referenced by digest (docker.io/xiaomimimo/mimo-v2.6-rl-oss) are Xiaomi's.
10
+
11
+ XiaomiMiMo/verl (https://github.com/XiaomiMiMo/verl, commit a2ad9f6), Apache License 2.0 (LICENSE):
12
+ tests/music_scorer/ (recipes/design/music/scorer), tests/webdev/shot.py, tests/webdev/eval_rubric.py,
13
+ tests/webdev/verdict.py (parse_verdict from eval_mode.py), the Webdev agent prompt, and the step limits.
14
+
15
+ XiaomiMiMo/mimoagent (https://github.com/XiaomiMiMo/mimoagent, commit 467f0a1), MIT License
16
+ (LICENSE-mimoagent.md; Copyright (c) 2026 Xiaomi Corporation, Copyright (c) 2025 Kilian A. Lieret and
17
+ Carlos E. Jimenez (mini-swe-agent)): tests/server_arvo.py, and the Code-domain residue scrub, cache scrub,
18
+ git-clean keep list, test-file reset and ARVO description parsing, ported into the setup and test scripts.
19
+
20
+ Vendored files are unmodified. Changes made in this conversion (Apache-2.0 section 4(b)):
21
+ - Each environment is repackaged as a Harbor task: task.toml, instruction.md, environment/, tests/.
22
+ - Setup that Xiaomi's harness runs before the agent is written as environment/setup/setup.sh and run from
23
+ the task's healthcheck. In the Code residue scrub, /logs is emptied rather than deleted (Harbor owns it).
24
+ - Grading entry points (tests/test.sh, grade.py, verify.py) wrap the original graders. Cyber re-runs the
25
+ last submitted PoC with server_arvo.py's own logic; General redacts judge-key echoes from its output.
26
+ - Music: "Write your complete reply to /app/answer.md." is appended to each prompt, because a Harbor task
27
+ is an agent session rather than a single completion.
28
+ - Images are referenced by digest instead of by tag; the MCP sidecar pins mcp==1.26.0.
29
+ - agents/mimo_opencode.py extends Harbor's OpenCode agent (Apache-2.0, harbor-framework/harbor).
30
+
31
+ Harbor (https://github.com/harbor-framework/harbor) is the task format and runner; it is not redistributed here.
README.md ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ - zh
6
+ task_categories:
7
+ - other
8
+ tags:
9
+ - rl-environment
10
+ - reinforcement-learning
11
+ - harbor
12
+ - agent
13
+ - mimo
14
+ - mimo-v2.6-rl
15
+ - code
16
+ - code
17
+ - swe
18
+ - software-engineering
19
+ size_categories:
20
+ - 1K<n<10K
21
+ viewer: false
22
+ ---
23
+
24
+ [![View tasks in Harbor Visualiser](https://img.shields.io/badge/%F0%9F%A4%97%20Harbor%20Visualiser-View%20tasks-FFD21F?style=for-the-badge)](https://huggingface.co/spaces/HuggingFaceH4/harbor-visualiser?dataset=FineEnvs/MiMo-V2.6-RL-harbor-code)
25
+ [![MiMo RL Environment Explorer](https://img.shields.io/badge/%F0%9F%A4%97%20Explorer-Run%20a%20rollout-FFD21F?style=for-the-badge)](https://huggingface.co/spaces/FineEnvs/MiMo-RL-Envs-Explorer)
26
+
27
+ # MiMo-V2.6-RL Code (Harbor)
28
+
29
+ **Fix a real issue in a real repository.** 2,698 Harbor tasks from the Code domain of Xiaomi's
30
+ [MiMo-V2.6-RL-oss](https://huggingface.co/datasets/XiaomiMiMo/MiMo-V2.6-RL-oss), the RL environments MiMo-V2.6 was trained
31
+ on, converted so every one runs as a standard Harbor task.
32
+
33
+ The agent gets an issue and the repository at its base commit. After it finishes, the files the hidden test patch touches are reset, the patch is applied, and the task's own test command decides the reward: 1 when it passes, 0 when it doesn't.
34
+
35
+ | | |
36
+ |---|---|
37
+ | Tasks | 2,698 |
38
+ | Graded by | hidden tests (deterministic) |
39
+ | Reference step limit | 500 |
40
+ | Source | [`XiaomiMiMo/MiMo-V2.6-RL-oss`](https://huggingface.co/datasets/XiaomiMiMo/MiMo-V2.6-RL-oss) at `639865fd3374` |
41
+ | Reference harness | XiaomiMiMo/verl `a2ad9f6` + XiaomiMiMo/mimoagent `467f0a1` |
42
+
43
+ Part of a set of six: [code](https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-code), [cyber](https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-cyber), [general](https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-general), [terminal](https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-terminal), [webdev](https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-webdev), [music](https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-music).
44
+
45
+ ## Layout
46
+
47
+ ```text
48
+ tasks/<task_id>/
49
+ ├── task.toml # image pinned by digest, one-time setup (healthcheck), judge settings, provenance
50
+ ├── instruction.md # the prompt the agent sees, word for word what Xiaomi's harness gives it
51
+ ├── environment/ # Dockerfile (FROM the same digest) and setup/, a readable copy of the setup
52
+ └── tests/ # test.sh and everything grading needs; uploaded only after the agent finishes
53
+ registry.json # Harbor registry entry
54
+ data/tasks.jsonl # one metadata row per task, for filtering without walking the tree
55
+ manifest.json # sha256 of every task directory
56
+ jobs/code.yaml # the reference agent settings
57
+ agents/mimo_opencode.py
58
+ ```
59
+
60
+ Example: [task.toml](https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/blob/main/tasks/format-code-task-000001/task.toml) ·
61
+ [instruction](https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/blob/main/tasks/format-code-task-000001/instruction.md) ·
62
+ [verifier](https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/blob/main/tasks/format-code-task-000001/tests/test.sh).
63
+
64
+ ## Run
65
+
66
+ ```bash
67
+ hf download FineEnvs/MiMo-V2.6-RL-harbor-code --repo-type dataset --local-dir mimo-code
68
+ cd mimo-code
69
+ PYTHONPATH=agents HF_TOKEN=hf_... harbor run -y -c jobs/code.yaml
70
+ ```
71
+
72
+ The job runs `agents/mimo_opencode.py` (OpenCode 1.18.32) on HF Sandbox with the reference settings: the step
73
+ limit above, replies of up to 65,536 tokens, thinking low, no web fetch or search.
74
+ Change `model_name` and the provider block for another model. Any Harbor agent can run these tasks; this one
75
+ also applies two steps of Xiaomi's harness a task file can't express: the answer-leak blocklist after install,
76
+ and the unprivileged `agent` user on sandboxes that run everything as root.
77
+
78
+ Serving them to a trainer works like any Harbor dataset, for example with OpenEnv:
79
+
80
+ ```bash
81
+ openenv harbor serve --dataset FineEnvs/MiMo-V2.6-RL-harbor-code --llm-url http://127.0.0.1:8000/v1 --model <your-model>
82
+ ```
83
+
84
+ ## How it was converted
85
+
86
+ With the [mimo_harbor adapter](https://github.com/adithya-s-k/FineEnvs/tree/mimo-explorer-rollouts/mimo-explorer/mimo_harbor). It reads the source at one pinned revision and every image through
87
+ a digest lock, so a rerun produces byte-identical tasks (`manifest.json`). Setup and grading follow Xiaomi's
88
+ harness step by step, as the explorer's runner does, using the same vendored graders:
89
+
90
+ - Nothing that grades a task (hidden tests, rubrics, verifier scripts) is reachable while the agent works.
91
+ - A testbed failure (a patch that won't apply, a system that died, a judge that never answered) writes no reward,
92
+ so Harbor records an error rather than a 0.
93
+ - Images are pinned by digest; HF Sandbox and other prebuilt-image backends run them without a build step.
94
+
95
+ Deviations from the reference, and why, are listed in the adapter's README.
96
+
97
+ ## Validation
98
+
99
+ - All 7,780 tasks across the six datasets load with Harbor's task loader and pass the adapter's static checks
100
+ (digest-pinned images, setup payload equal to its readable copy, rubrics only under `tests/`).
101
+ - With Harbor's no-op agent every dataset scores 0 and every verifier runs to completion: no free rewards.
102
+ - One task per dataset was run end to end with GLM-5.3 both in Harbor and in the
103
+ [explorer](https://huggingface.co/spaces/FineEnvs/MiMo-RL-Envs-Explorer), which runs Xiaomi's harness; the results match (see the adapter's `parity.md`).
104
+ A full parity study over repeated runs has not been done yet.
105
+
106
+ ## Credits
107
+
108
+ The environments, their prompts, tests, verifiers, images and graders are the work of the
109
+ [Xiaomi MiMo](https://huggingface.co/XiaomiMiMo) team, released as
110
+ [XiaomiMiMo/MiMo-V2.6-RL-oss](https://huggingface.co/datasets/XiaomiMiMo/MiMo-V2.6-RL-oss) together with their training code
111
+ [XiaomiMiMo/verl](https://github.com/XiaomiMiMo/verl) and agent harness
112
+ [XiaomiMiMo/mimoagent](https://github.com/XiaomiMiMo/mimoagent). mimoagent builds on
113
+ [mini-swe-agent](https://github.com/SWE-agent/mini-swe-agent) (Kilian A. Lieret and Carlos E. Jimenez).
114
+ The task format and runner are [Harbor](https://github.com/harbor-framework/harbor).
115
+ This conversion is by Hugging Face and the FineEnvs team, and is not affiliated with or endorsed by Xiaomi.
116
+
117
+ ## License
118
+
119
+ Apache-2.0, as the source dataset (`LICENSE`). Files vendored from XiaomiMiMo/mimoagent (`tests/server_arvo.py`
120
+ in Cyber tasks, and the ported setup commands) are MIT (`LICENSE-mimoagent.md`). `NOTICE` lists every source,
121
+ its license, and the changes this conversion made. Vendored grader files are unmodified.
agents/mimo_opencode.py ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """OpenCode for MiMo tasks: Harbor's OpenCode agent plus two steps of Xiaomi's harness that a task can't express.
2
+
3
+ 1. The answer-leak blocklist. mimoagent appends it to /etc/hosts after the agent is installed (the install itself
4
+ needs github.com). Task setup leaves the list in /var/lib/mimo/blocklist; this agent applies it right after
5
+ install and fails closed, as mimoagent does.
6
+ 2. The unprivileged agent user. Cyber and General run the agent as `agent`, so the verify server and the systems'
7
+ data stay out of its reach. Tasks say so in [agent].user; on environments that cannot switch users (HF Sandbox
8
+ runs everything as root), this agent drops to that user itself with runuser.
9
+
10
+ 3. The output ceiling. OpenCode caps a reply at 32,000 tokens unless OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX says
11
+ otherwise; it is set here from the configured model limit (65,536, mimoagent's opencode.yaml) rather than in the
12
+ job's env, because Harbor treats any env var named *TOKEN* as a secret and blanks its value in every output.
13
+
14
+ Use it with `import_path: mimo_opencode:MimoOpenCode` (see jobs/*.yaml).
15
+ """
16
+
17
+ from __future__ import annotations
18
+
19
+ import shlex
20
+ from typing import Any
21
+
22
+ from harbor.agents.installed.opencode import OpenCode
23
+ from harbor.environments.base import BaseEnvironment
24
+
25
+ MIMO = "/var/lib/mimo"
26
+
27
+
28
+ class MimoOpenCode(OpenCode):
29
+ @staticmethod
30
+ def name() -> str:
31
+ return "mimo-opencode"
32
+
33
+ def __init__(self, *args, **kwargs):
34
+ super().__init__(*args, **kwargs)
35
+ self._drop_to: str | None | bool = False # False: not checked yet
36
+ limits = [m.get("limit", {}).get("output") for p in (self._opencode_config.get("provider") or {}).values()
37
+ for m in (p.get("models") or {}).values()]
38
+ top = max([x for x in limits if isinstance(x, int)] or [0])
39
+ self._mimo_env = {"OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX": str(top)} if top > 32000 else {}
40
+
41
+ async def _target_user(self, environment: BaseEnvironment) -> str | None:
42
+ """The user the task wants the agent to run as, if the environment would otherwise run it as root."""
43
+ if self._drop_to is False:
44
+ want = await environment.exec(f"cat {MIMO}/agent_user 2>/dev/null", user="root")
45
+ user = (want.stdout or "").strip() or None
46
+ if user:
47
+ who = await super().exec_as_agent(environment, "id -un")
48
+ user = user if (who.stdout or "").strip() == "root" else None
49
+ self._drop_to = user
50
+ return self._drop_to
51
+
52
+ async def exec_as_agent(self, environment: BaseEnvironment, command: str, env: dict[str, str] | None = None,
53
+ cwd: str | None = None, timeout_sec: int | None = None) -> Any:
54
+ env = {**(env or {}), **self._mimo_env}
55
+ user = await self._target_user(environment)
56
+ if user:
57
+ home = f"/home/{user}"
58
+ exports = " ".join(f"{k}={shlex.quote(v)}" for k, v in (env or {}).items())
59
+ command = (f"runuser -u {user} -- env HOME={home} USER={user} {exports} "
60
+ f"bash -c {shlex.quote(('cd ' + shlex.quote(cwd) + ' && ' if cwd else '') + command)}")
61
+ return await super().exec_as_agent(environment, command, env=env, cwd=cwd, timeout_sec=timeout_sec)
62
+
63
+ async def install(self, environment: BaseEnvironment) -> None:
64
+ await super().install(environment)
65
+ res = await environment.exec(
66
+ f"if [ -f {MIMO}/blocklist ]; then cat {MIMO}/blocklist >> /etc/hosts && grep -c '^0.0.0.0' /etc/hosts; "
67
+ f"else echo none; fi", user="root")
68
+ if res.return_code != 0:
69
+ raise RuntimeError("could not install the answer-leak blocklist in /etc/hosts: " + (res.stderr or res.stdout or "")[-300:])
70
+ out = (res.stdout or "").strip()
71
+ self.logger.info("answer-leak blocklist: " + ("none for this task" if out == "none" else f"{out} hosts blocked in /etc/hosts"))
data/tasks.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
jobs/code.yaml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MiMo-V2.6-RL code on Harbor with the reference agent settings.
2
+ # From the repo root: PYTHONPATH=agents HF_TOKEN=... harbor run -y -c jobs/code.yaml
3
+ jobs_dir: jobs/code
4
+ n_attempts: 1
5
+ timeout_multiplier: 1.0
6
+ orchestrator:
7
+ type: local
8
+ n_concurrent_trials: 4
9
+ environment:
10
+ type: hf-sandbox
11
+ delete: true
12
+ kwargs:
13
+ flavor: cpu-basic
14
+ job_timeout: 1h
15
+ agents:
16
+ - import_path: mimo_opencode:MimoOpenCode
17
+ model_name: hf/zai-org/GLM-5.3:deepinfra
18
+ kwargs:
19
+ version: 1.18.32
20
+ opencode_config:
21
+ autoupdate: false
22
+ share: disabled
23
+ provider:
24
+ hf:
25
+ npm: '@ai-sdk/openai-compatible'
26
+ name: Hugging Face Inference Providers
27
+ options:
28
+ baseURL: https://router.huggingface.co/v1
29
+ apiKey: '{env:HF_TOKEN}'
30
+ models:
31
+ zai-org/GLM-5.3:deepinfra:
32
+ name: zai-org/GLM-5.3
33
+ tool_call: true
34
+ limit:
35
+ context: 1000000
36
+ output: 65536
37
+ options:
38
+ reasoningEffort: low
39
+ agent:
40
+ build:
41
+ steps: 500
42
+ snapshot: true
43
+ lsp: true
44
+ formatter: true
45
+ permission:
46
+ webfetch: deny
47
+ websearch: deny
48
+ bash: allow
49
+ edit: allow
50
+ env:
51
+ HF_TOKEN: ${HF_TOKEN}
52
+ OPENCODE_DISABLE_MODELS_FETCH: '1'
53
+ OPENCODE_DISABLE_AUTOUPDATE: '1'
54
+ OPENCODE_DISABLE_LSP_DOWNLOAD: '1'
55
+ OPENCODE_DISABLE_SHARE: '1'
56
+ datasets:
57
+ - path: tasks
manifest.json ADDED
The diff for this file is too large to render. See raw diff
 
registry.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/format-code-task-000020/instruction.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## Problem Statement
4
+
5
+ I'm working with a custom ACSet implementation, and `elements(mySet)` immediately throws a MethodError; I hit the same kind of MethodError when passing one of these ACSet instances as the sample `typ` to `inverse_elements` for both an Elements object and an Elements morphism.
6
+
7
+ ## Expected Outcomes
8
+
9
+ - `elements` should work for ACSet instances beyond the built-in struct-backed cases, producing an `Elements` value that reflects the input instance instead of failing during method lookup.
10
+ - `inverse_elements` should accept an ACSet instance as the sample `typ` when converting an `AbstractElements` value back, and should return the corresponding ACSet result rather than a method-dispatch failure.
11
+ - `inverse_elements` should also accept an ACSet instance as the sample `typ` when converting an Elements morphism back, and should return the corresponding ACSet transformation rather than a method-dispatch failure.
12
+ - Existing behavior for struct-backed ACSets should remain compatible.
13
+
14
+ ## Implementation Notes
15
+
16
+ The concrete data structures, validation locations, and code organization are up to the implementer. The fix should be driven by the public behavior of ACSet values participating in the category-of-elements round trip, not by special-casing only one test fixture.
tasks/format-code-task-000020/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000020"
5
+ description = "I'm working with a custom ACSet implementation, and `elements(mySet)` immediately throws a MethodError; I…"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Unknown"
11
+ domain = "code"
12
+ keywords = ["code", "Unknown"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-000020"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "I'm working with a custom ACSet implementation, and `elements(mySet)` immediately throws a MethodError; I…"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:e8f805c67ada7162c7dfea3a3d48857b90ac0c5376b4822500c9053bf1987127"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2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zGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-000212/instruction.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## Docker agent fails to deploy a flow run when a container with the same name already exists
4
+
5
+ I'm running flows via the Prefect Docker Agent. The container name is derived from the flow run name (slugified), which is fine — but if there's *already* a container with that name on the host (e.g. a stopped container left over from a previous run, or two flow runs that happen to slug to the same name), the agent fails to deploy the flow run.
6
+
7
+ ### What I see
8
+
9
+ 1. Start a flow that produces some container name (whatever the slug of the flow run name ends up being).
10
+ 2. The flow run finishes and the container is left around (stopped, not removed).
11
+ 3. Trigger another run of the same flow.
12
+ 4. The agent logs an error from the Docker daemon complaining that the container name is already in use, and the flow run never starts. The agent does not retry with a different name.
13
+
14
+ The same thing happens if I happen to have an unrelated container on the host that just happens to share the name.
15
+
16
+ ### What I expected
17
+
18
+ The agent already tries to pick a unique container name — there's logic that's supposed to detect a collision and append `-1`, `-2`, etc. to the slug. But in practice that logic doesn't seem to be doing anything: the conflict still slips through and `create_container` blows up. From a user's point of view, a name collision shouldn't be fatal — the agent should just pick the next free name and carry on deploying the flow run.
19
+
20
+ It would also help debugging a lot if the "starting container" log line included the actual container name that ended up being used, not just the container ID, so I can correlate agent logs with `docker ps` output when names get suffixed.
tasks/format-code-task-000212/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000212"
5
+ description = "Docker agent fails to deploy a flow run when a container with the same name already exists"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Python"
11
+ domain = "code"
12
+ keywords = ["code", "Python"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-000212"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Docker agent fails to deploy a flow run when a container with the same name already exists"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:0af42fef65891372abbeea8cddcf11bc2c4f3f8a436b338777dc7877988d37bc"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1ze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cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-000444/instruction.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## Time to refresh the CI setup
4
+
5
+ The `.github/workflows/pre-commit.yml` workflow and the pre-commit config are starting to feel out of date and the test suite is needlessly slow / network-dependent. Filing this so we don't lose track. Concretely:
6
+
7
+ **Stale CI dependencies.** The workflow is still pinned to old major versions of the standard GitHub Actions (checkout etc.), and the pre-commit hook revs (black, isort, the built-in hooks repo) have all gone through several releases since the versions we have committed. We should bump them and re-run the formatters, which will probably cause a small amount of churn in the codebase as the newer black makes slightly different formatting choices.
8
+
9
+ **Python version matrix.** We're still testing against 3.9 in the matrix even though it's basically at end of life, and we're not testing against 3.12 at all. Time to drop the old one and add the new one. The package metadata should also be updated to reflect the minimum supported Python.
10
+
11
+ **Tests reach out to the network.** Several tests load `gpt2` from HuggingFace as a small "real" model to exercise the merging machinery. This has two annoying consequences:
12
+ - CI runs spend non-trivial time downloading the weights on every fresh runner.
13
+ - On a developer machine without network access (planes, locked-down corp networks, etc.) the test suite just fails to start.
14
+
15
+ Since these tests don't actually care about the *values* in the weights — they only care that the architecture is exercised end-to-end — we don't need the real pretrained checkpoint. They should be reworked to use a small in-process model with the same architecture so no network is required to run `pytest`.
16
+
17
+ While doing the above we may also want to clean up a couple of harmless warnings that show up in the test output and add a couple of additional sanity-check pre-commit hooks for the non-Python config files we have in the repo.
tasks/format-code-task-000444/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000444"
5
+ description = "Time to refresh the CI setup"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Python"
11
+ domain = "code"
12
+ keywords = ["code", "Python"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-000444"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Time to refresh the CI setup"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:ec78a7603e31c2bf6ea67ce2a1a269dadbe68143ba3af09af29b19c3941f752f"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA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7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-000682/instruction.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## Feature request: KMS encryption filter and action for SNS topics
4
+
5
+ SNS now supports server-side encryption with KMS, and I'd like to manage it with Cloud Custodian, but the SNS resource doesn't seem to expose anything for it.
6
+
7
+ My use cases:
8
+
9
+ 1. **Audit which SNS topics are encrypted and with which key.** I want to write a policy that selects SNS topics whose KMS master key is (or isn't) one of our approved CMKs — same kind of filtering that other resources support against a KMS key (matching by id / arn / alias). Right now I can only get at it by writing a raw `value` filter against `KmsMasterKeyId`, which doesn't help me match against alias names or filter through KMS key attributes.
10
+
11
+ 2. **Remediate unencrypted topics.** Once I've found topics that aren't encrypted (or are encrypted with the wrong key), I want an action that flips encryption on for them, ideally letting me pick the KMS key. I'd also like to be able to turn encryption back off on a topic if needed.
12
+
13
+ A rough example of the kind of policy I'd like to be able to write:
14
+
15
+ ```yaml
16
+ policies:
17
+ - name: sns-encrypt-with-approved-cmk
18
+ resource: sns
19
+ filters:
20
+ - <something that matches topics not encrypted with our CMK>
21
+ actions:
22
+ - <something that enables SNS encryption with our CMK>
23
+ ```
24
+
25
+ Would it be possible to add KMS-aware filtering and an encryption-management action to the `sns` resource?
tasks/format-code-task-000682/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000682"
5
+ description = "Feature request: KMS encryption filter and action for SNS topics"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Python"
11
+ domain = "code"
12
+ keywords = ["code", "Python"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-000682"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Feature request: KMS encryption filter and action for SNS topics"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:841295b1106d2046ba7c991b2942bbb464308aaddd35de60fd3eef2a715617c7"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3E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 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-000823/instruction.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ docker-compose fails if using secrets file
4
+ ## Environment
5
+
6
+ ```
7
+ $ docker --version
8
+ Docker version 1.13.1, build 092cba3
9
+ $ docker-compose --version
10
+ docker-compose version 1.11.1, build 7c5d5e4
11
+ ```
12
+
13
+ ## Steps to reproduce
14
+ ```
15
+ $ ls
16
+ docker-compose.yml my_file_secret.txt
17
+ $ cat my_file_secret.txt
18
+ This is a file secret.
19
+ $ cat docker-compose.yml
20
+ version: '3.1'
21
+
22
+ services:
23
+ a:
24
+ image: tutum/hello-world
25
+ b:
26
+ image: tutum/hello-world
27
+ secrets:
28
+ - my_file_secret
29
+
30
+ secrets:
31
+ my_file_secret:
32
+ file: my_file_secret.txt
33
+ ```
34
+
35
+ ```
36
+ $ docker-compose up
37
+ Traceback (most recent call last):
38
+ File "docker-compose", line 3, in <module>
39
+ File "compose/cli/main.py", line 88, in main
40
+ File "compose/cli/main.py", line 137, in perform_command
41
+ File "compose/cli/command.py", line 36, in project_from_options
42
+ File "compose/cli/command.py", line 115, in get_project
43
+ File "compose/project.py", line 110, in from_config
44
+ File "compose/project.py", line 566, in get_secrets
45
+ AttributeError: 'str' object has no attribute 'source'
46
+ Failed to execute script docker-compose
47
+ ```
tasks/format-code-task-000823/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000823"
5
+ description = "docker-compose fails if using secrets file"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Python"
11
+ domain = "code"
12
+ keywords = ["code", "Python"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-000823"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "docker-compose fails if using secrets file"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:7baf4e2e8984c68e9c3a9945228ed96ee99507cfbbde1e66fb406a20d3b203c4"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLg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.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-001106/instruction.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ The optional wrappers are intended to model a value that may be absent, but their current lifecycle is unsafe and inconsistent: calling Get on a zero-value wrapper can panic, Set does not reliably change the wrapper because it is a value-receiver mutation, and generated wrappers do not offer a way to clear a value after it has been set. Make the public lifecycle consistent for every checked-in primitive wrapper (including Error) and for wrappers emitted by cmd/optional.
4
+
5
+ A zero-value wrapper must be absent. Calling Get while absent must return that type's zero value and a non-nil error whose message is exactly "value not present"; it must never dereference or panic. Set must persistently mark the addressable wrapper present and Get must then return exactly the value supplied, including false, empty strings, and other zero values, with a nil error. Present must track that state.
6
+
7
+ Add a public Unset operation to every wrapper. Unset must clear presence, be safe to call repeatedly, and restore the absent behavior of Get, OrElse, and If: OrElse returns its fallback and If does not invoke its callback while absent. If invokes its callback when a value is present. Existing constructors and the behavior of already-present values must remain compatible.
8
+
9
+ These state transitions (safe absent Get, persistent Set/Get, Present, and Unset) must be emitted by the generator for a user-defined type, so a newly generated exported wrapper can be used through that lifecycle without hand edits. Keep the existing public type and constructor naming conventions intact.
tasks/format-code-task-001106/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-001106"
5
+ description = "The optional wrappers are intended to model a value that may be absent, but their current lifecycle is…"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Go"
11
+ domain = "code"
12
+ keywords = ["code", "Go"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-001106"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "The optional wrappers are intended to model a value that may be absent, but their current lifecycle is…"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:60b89715a75d6c19a479e3daccf55cb834c9b13a35f305f382b4029513105c8a"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW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ihLPO9Bk0iz8cTLZTblQoee/JIPiWWdMZ6Y7IlCyBnG/PN6Jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-001139/instruction.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ Moto currently exposes EC2 network interfaces through create, modify, attach, and detach calls, but a boto3 client cannot inspect one attribute at a time because `DescribeNetworkInterfaceAttribute` raises `NotImplementedError`. Implement that public operation and make its results agree with the existing network-interface state transitions.
4
+
5
+ Support the service model attributes `description`, `groupSet`, `sourceDestCheck`, `associatePublicIpAddress`, and `attachment`. Every successful response must identify the requested network interface. `description` must return the value supplied at creation and every subsequent description update, including an explicit empty value used to clear a description. `groupSet` must return the current security groups with their IDs and names after a group update.
6
+
7
+ The boolean attributes must use the boto3 response shapes: `SourceDestCheck` is a `{ "Value": bool }` structure and `AssociatePublicIpAddress` is a boolean. A newly created standalone ENI starts with source/destination checking enabled and public-IP association disabled. Changes through `ModifyNetworkInterfaceAttribute` must be visible to this API, including changing either setting to `False`; do not conflate an explicit false value with an omitted update.
8
+
9
+ For `attachment`, an unattached ENI must not expose an `Attachment` result. Once attached, the result must report the attachment ID, device index, instance ID, instance owner ID, and `attached` status. `DeleteOnTermination` defaults to `False` for this attachment and must reflect a later attachment modification. After detaching, the attachment result must disappear rather than returning stale data. A request for an ENI that does not exist must raise the normal EC2 `InvalidNetworkInterfaceID.NotFound` client error with HTTP 400.
tasks/format-code-task-001139/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-001139"
5
+ description = "Moto currently exposes EC2 network interfaces through create, modify, attach, and detach calls, but a boto3…"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Python"
11
+ domain = "code"
12
+ keywords = ["code", "Python"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-001139"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Moto currently exposes EC2 network interfaces through create, modify, attach, and detach calls, but a boto3…"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:f62da1421dca5207ae414ab63a8a4a37833a27718363790dc20c0b2f687f3d90"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZI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jom9FnwSbE8J3p7mq5iTCz8p5CUq+36Iyoh6tbWLnzJxsF9YpHkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-001334/instruction.md ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## `tff.program` managers are awkward to use from a non-async script
4
+
5
+ I'm running a fairly standard FL simulation. A simplified version of my main loop looks like this:
6
+
7
+ ```python
8
+ import tensorflow_federated as tff
9
+
10
+ state_manager = tff.program.FileProgramStateManager(root_dir='/tmp/run1')
11
+ metrics_manager = tff.program.CSVFileReleaseManager(file_path='/tmp/run1/metrics.csv')
12
+
13
+ state = training_process.initialize()
14
+ for round_num in range(1, total_rounds + 1):
15
+ state, metrics = training_process.next(state, sample_clients(round_num))
16
+ metrics_manager.release(metrics, round_num)
17
+ state_manager.save(state, round_num)
18
+ ```
19
+
20
+ The script is a plain top-level Python program — no async framework, no `asyncio.run` wrapper around `main`, just a loop. After upgrading TFF, this stopped working the way it used to. The `release(...)` and `save(...)` calls don't actually do anything on disk anymore — I just get `RuntimeWarning: coroutine '...release' was never awaited` and no files show up. Same story for `FileProgramStateManager.load(...)` / `.versions()` / `.load_latest(...)`, and for the other release managers (`SavedModelFileReleaseManager`, `TensorBoardReleaseManager`, `MemoryReleaseManager`, `LoggingReleaseManager`).
21
+
22
+ To make my loop work again I now have to wrap every single call:
23
+
24
+ ```python
25
+ import asyncio
26
+
27
+ loop = asyncio.new_event_loop()
28
+ for round_num in range(1, total_rounds + 1):
29
+ state, metrics = training_process.next(state, sample_clients(round_num))
30
+ loop.run_until_complete(metrics_manager.release(metrics, round_num))
31
+ loop.run_until_complete(state_manager.save(state, round_num))
32
+ ```
33
+
34
+ This is a lot of boilerplate for what conceptually is "write this value to a file", and it's easy to get wrong — reusing the wrong loop, nested-loop errors when something else in the stack also wants an event loop, etc. It also makes the public surface of `tff.program` much harder to teach to people who are just writing a normal simulation script. The same pain shows up inside `tff.simulation.run_training_process`, which similarly has to juggle an event loop just to call into these managers.
35
+
36
+ For my use case (and I suspect most simulation users) I don't actually need any concurrency from these methods — I want to save state, I want to release metrics, I want to know what versions exist on disk. These are simple, blocking, filesystem-y operations. Could the `ProgramStateManager` / `ReleaseManager` interfaces (and their shipped implementations) expose these operations as ordinary synchronous methods, so calling `manager.save(state, round_num)` or `manager.release(metrics, round_num)` from a regular script just works?
tasks/format-code-task-001334/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-001334"
5
+ description = "`tff.program` managers are awkward to use from a non-async script"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Python"
11
+ domain = "code"
12
+ keywords = ["code", "Python"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-001334"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "`tff.program` managers are awkward to use from a non-async script"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:d5d3cb16605eee965b470d0afcd7c6e7c3da3f66f5b76ef3a30891877d5146f0"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9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dZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-001562/instruction.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ Right now there are four ways to construct an `IPPrefix`:
4
+
5
+ 1. Parsing an string with an IP represented in CIDR notation: `netaddr.ParseIPPrefix("127.0.0.1/8")`
6
+ 2. Providing the significant bits to an `IP` struct: `netaddr.IPv4(127, 0, 0, 1).Prefix(8)`
7
+ 3. Working with `IPRange`: `netaddr.ParseRange("127.0.0.0-127.0.0.255").Prefix()` (ignoring error returns)
8
+ 4. Working with `IPSet`: `ipset.Prefixes()`
9
+
10
+ I'm working with a kernel API that returns the IP mask itself[^1]. I can turn this into an IPPrefix by first using `net.IPMask` and calling `Size`.
11
+
12
+ ```go
13
+ func main() {
14
+ var mask [4]byte
15
+ netmask := make(net.IPMask, net.IPv4len)
16
+
17
+ mask = getKernelMask()
18
+ copy(netmask, mask[:])
19
+
20
+ bits, _ := netmask.Size()
21
+ ip, _ := netaddr.IPv4(127, 0, 0, 1).Prefix(uint8(bits))
22
+
23
+ fmt.Printf("IPPrefix: %s\n", ip)
24
+ }
25
+ ```
26
+
27
+ Would there be any interest in allowing an `IPPrefix` to be constructed either directly from a netmask representation, or alternatively from a `net.IPMask`?
28
+
29
+ [^1]: The kernel API returns the netmask for IPv4. For IPv6 they switched to returning the significant bits instead.
30
+
31
+ I'd expect something like a new `Netmask` method on `IP` taking the raw mask bytes, e.g. `ip.Netmask(maskBytes)`.
tasks/format-code-task-001562/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-001562"
5
+ description = "Right now there are four ways to construct an `IPPrefix`:"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Go"
11
+ domain = "code"
12
+ keywords = ["code", "Go"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-001562"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Right now there are four ways to construct an `IPPrefix`:"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:302e98092d16ef60ddd6763ec54ab9d68e5f91cb9a170207492c1293c40a5f1d"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8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9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-001596/instruction.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ### Bug: ServiceEntries labeled for a different revision are still processed by this istiod
4
+
5
+ I'm running a canary upgrade with two control planes: `istio.io/rev=stable` and `istio.io/rev=canary`. I expect each istiod to only act on configuration that matches its own revision (which is what `Get`/`List` on the config store already do).
6
+
7
+ But for event-driven config (ServiceEntry, VirtualService, etc.), this doesn't seem to hold:
8
+
9
+ 1. If I create a `ServiceEntry` with `istio.io/rev: canary`, the **stable** istiod still picks it up — workloads attached to the stable revision end up with endpoints/clusters from that ServiceEntry, even though the resource is clearly tagged for the other revision.
10
+
11
+ 2. If I take a `ServiceEntry` that previously had `istio.io/rev: stable` (or no rev label, defaulting to stable) and edit its label to `istio.io/rev: canary`, the stable istiod still keeps the old config around. From the stable revision's point of view, that resource is no longer ours, so workloads on the stable revision shouldn't see it anymore — but they do.
12
+
13
+ Listing the configs directly through the store does respect the revision, so this seems specific to the live event path (add / update / delete callbacks coming off the informers, plus whatever runs during the initial sync at startup). Both the steady-state event flow and the bootstrap sync need to honor the revision the same way `List` already does.
14
+
15
+ Repro is roughly:
16
+
17
+ ```
18
+ # two istiods, revisions "stable" and "canary"
19
+ kubectl apply -f - <<EOF
20
+ apiVersion: networking.istio.io/v1beta1
21
+ kind: ServiceEntry
22
+ metadata:
23
+ name: example
24
+ namespace: default
25
+ labels:
26
+ istio.io/rev: canary
27
+ spec:
28
+ hosts: [example.com]
29
+ ports:
30
+ - number: 80
31
+ name: http
32
+ protocol: HTTP
33
+ resolution: DNS
34
+ EOF
35
+
36
+ # Then inspect a sidecar attached to the *stable* revision:
37
+ istioctl proxy-config clusters <pod-on-stable> | grep example.com
38
+ # -> shows the cluster, but it shouldn't
39
+ ```
40
+
41
+ And for the "moved between revisions" case: start with the label set to stable, let things settle, then patch the label to canary. The stable istiod's view of that workload still contains the entry.
42
+
43
+ Expected: a control plane should completely ignore resources whose `istio.io/rev` doesn't match it, including resources that *used to* match and have since been re-tagged for a different revision.
tasks/format-code-task-001596/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-001596"
5
+ description = "Bug: ServiceEntries labeled for a different revision are still processed by this istiod"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Go"
11
+ domain = "code"
12
+ keywords = ["code", "Go"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-001596"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Bug: ServiceEntries labeled for a different revision are still processed by this istiod"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:f3c52650b1f3e6d7c97f01b8f080ca731058081ba3b7367be9e365ce45129419"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTU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FyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-001750/instruction.md ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ CUDA<->CPU interface for 3D
4
+ Continuation of the discussion from #122. It would be good to have a way to set the `Scattering3D` object to CPU or CUDA modes, just like the 1D and 3D codes with `cpu()` and `cuda()` functions that mutate the object. Note that calling `cuda()` doesn't have to make the object move its filters to GPU (like the 1D and 2D code currently does), but simply gives it the option to. This may be better in 3D due to the memory constraints.
5
+
6
+ Right now, all this could do is throw and error if the input to `forward()` is not compatible (i.e., sending a CPU tensor to a `Scattering3D` object that is in CUDA mode, or vice versa), but it unifies the interfaces and allows for more complex behavior in the future.
tasks/format-code-task-001750/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-001750"
5
+ description = "CUDA<->CPU interface for 3D"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Python"
11
+ domain = "code"
12
+ keywords = ["code", "Python"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-001750"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "CUDA<->CPU interface for 3D"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:b0fbf189b611643e1074d5f764564f4015bbb19df67c5eefecdfed7f9968aa8b"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqU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3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-001905/instruction.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ I want `@microlink/mql` to expose an async `fetchFromApi(apiUrl: string, opts?: object): Promise<object>` function for executing an already-built Microlink API URL and normalizing the response shape.
4
+
5
+ When I call `await fetchFromApi('http://localhost:3000/?url=https%3A%2F%2Fexample.com', { responseType: 'json', retry: 0 })` and the server returns HTTP 200 with JSON `{"status":"success","data":{"title":"Example"}}`, it should resolve to the parsed payload with a `response` property containing the final response URL, parsed body, response headers, and numeric status code. When I call it with `{ responseType: 'arrayBuffer', retry: 0 }` and the server returns binary content, it should resolve to the raw response metadata object `{ url, body, headers, statusCode }` where `body` is the `ArrayBuffer`.
6
+
7
+ The function should pass through request options supported by the HTTP client, including hooks and retry configuration, and should default `timeout` to disabled when the caller does not provide one. For non-2xx API responses with a JSON error body, it should reject with `MicrolinkError` while preserving fields such as `status`, `data`, `code`, `message`, `more`, the final URL, headers, and HTTP status code. For plain-text, empty, unreadable, or transport-level failures, it should reject with `MicrolinkError` using `code: 'EFATALCLIENT'`, `status: 'error'`, a useful message in `data.url`, the failing URL, available headers, and the HTTP status code when one exists.
tasks/format-code-task-001905/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-001905"
5
+ description = "I want `@microlink/mql` to expose an async `fetchFromApi(apiUrl: string, opts?: object): Promise<object>`…"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "JavaScript"
11
+ domain = "code"
12
+ keywords = ["code", "JavaScript"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-001905"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "I want `@microlink/mql` to expose an async `fetchFromApi(apiUrl: string, opts?: object): Promise<object>`…"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:dac43db36708111981ff9441b0804306cbf186638459697d77b65acefe0b1bfc"
29
+ workdir = "/workspace/repo"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+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kdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-002121/instruction.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ # Make trace IDs parseable from hex and span contexts JSON-friendly
4
+
5
+ Our tracing core can already render a `TraceID` to its 32-character hex string
6
+ (via `SpanContext.TraceIDString()`), but there's no way to go the other
7
+ direction, and dumping a `SpanContext` to JSON produces something unreadable.
8
+
9
+ Please add two things to the tracing core.
10
+
11
+ ## 1. Construct a `TraceID` from a hex string
12
+
13
+ Add an exported constructor in the core tracing package with the signature:
14
+
15
+ ```go
16
+ func TraceIDFromHex(h string) (TraceID, error)
17
+ ```
18
+
19
+ It parses a [W3C trace-context](https://www.w3.org/TR/trace-context/#trace-id)
20
+ compliant trace-id. A string is accepted **only** when all of the following
21
+ hold; otherwise it returns a non-nil error:
22
+
23
+ - it is exactly 32 characters long;
24
+ - every character is in `[0-9a-f]` — digits and **lowercase** hex letters only
25
+ (uppercase `A`–`F` is rejected);
26
+ - it is not the all-zero id (`"00000000000000000000000000000000"`).
27
+
28
+ When the input is valid, the returned `TraceID` must be the inverse of the
29
+ existing hex formatting: putting it into a span context and calling
30
+ `TraceIDString()` must reproduce the original input string exactly. Parsing the
31
+ same hex string twice yields equal trace ids, and distinct hex strings yield
32
+ distinct trace ids. A freshly parsed (valid) trace id makes
33
+ `SpanContext.HasTraceID()` report `true`.
34
+
35
+ ## 2. Human-readable JSON for `SpanContext`
36
+
37
+ Marshaling a `SpanContext` with `encoding/json` should produce a JSON object
38
+ whose trace id and span id appear as their hex string forms rather than as raw
39
+ numeric fields. Specifically the object must contain:
40
+
41
+ - `"TraceID"`: the trace id as its 32-character hex string (same value as
42
+ `TraceIDString()`);
43
+ - `"SpanID"`: the span id as its 16-character hex string (same value as
44
+ `SpanIDString()`);
45
+ - `"TraceFlags"`: the trace flags as their numeric byte value.
tasks/format-code-task-002121/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-002121"
5
+ description = "Make trace IDs parseable from hex and span contexts JSON-friendly"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Go"
11
+ domain = "code"
12
+ keywords = ["code", "Go"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-002121"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Make trace IDs parseable from hex and span contexts JSON-friendly"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:a0183ec3a47f7aa60978a667d3cf06a8715a8a55312b77895cde073d3efbe43e"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/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4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-002313/instruction.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## Confusing error when clicking "+" on a cart line that used a voucher
4
+
5
+ I'm a customer of a pretix shop. The flow I hit:
6
+
7
+ 1. The shop has a product that requires a voucher (it's hidden until you redeem one). I get a voucher link, open it, and add one ticket to my cart. Cart line shows up with the voucher code under it — fine.
8
+ 2. The voucher in this case has only one redemption left (let's say `max_usages=1`, so after my first ticket the voucher is fully redeemed).
9
+ 3. I now want to buy a second ticket for a friend. The voucher itself is single-use, so I'm fine paying the regular price for the second one. I click the "+" button next to the line in the cart.
10
+
11
+ What happens: I get an error, but it's the wrong / confusing one. For a `require_voucher` (or `hide_without_voucher`) product I get something like *"You need a valid voucher code to order this product"*, which makes no sense — I just used a voucher to add the first one, and the message has nothing to do with the actual situation, which is that the voucher is already fully redeemed. For a regular product I just get refused outright instead of getting a second ticket at the normal price.
12
+
13
+ What I'd expect when clicking "+" on a cart line that has a voucher attached:
14
+
15
+ - If the voucher still has redemptions left, sure, use it again (current behavior is fine).
16
+ - If the voucher is already at its usage limit, the "+" button shouldn't be a dead end. For a normal product, just add another one at the standard price — I'm clearly trying to buy one more. For a product that genuinely can't be sold without a voucher, the error I see should match reality ("this voucher code has already been used the maximum number of times allowed") rather than telling me I need a voucher.
17
+
18
+ The "+" UI implies "give me one more of this", and it currently breaks in a non-obvious way precisely in the voucher case where users are most likely to click it.
19
+
20
+ (Implementation hint for whoever picks this up: the cart-add endpoint will probably need to accept a new opt-in flag alongside the existing `_voucher_code` field — something like `_voucher_ignore_if_redeemed=on` — so the "+" button can say "try this voucher, but silently fall back to no-voucher if it's already fully redeemed" instead of the normal hard-fail-on-exhausted-voucher behavior.)
tasks/format-code-task-002545/instruction.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## Reaper silently does nothing when `source_for_total_space` / `source_for_used_space` is misconfigured
4
+
5
+ We configure some of our RSEs to compute free space from a non-default source by setting the RSE attributes `source_for_total_space` and `source_for_used_space` (instead of the default `storage`). This works fine when the source name actually matches one of the usage entries reported for the RSE.
6
+
7
+ The problem: if the configured source name doesn't exist in that RSE's usage (typo, source not yet publishing, source got renamed, etc.), the reaper just... does nothing on that RSE. No replicas get deleted, free space never recovers, and **there is nothing in the reaper log to tell us why**. From the operator's point of view the RSE looks healthy, reaper appears to be running normally on it, but space keeps filling up.
8
+
9
+ To reproduce:
10
+ 1. Pick an RSE whose usage table only reports one source, e.g. `storage`.
11
+ 2. Set `source_for_total_space=foo` on it (where `foo` is anything not in its usage entries).
12
+ 3. Run the reaper against that RSE with replicas that have tombstones and should be reaped.
13
+
14
+ Expected: at minimum a clear log message saying that the requested source can't be found on this RSE, so an operator can immediately tell it's a configuration issue. Ideally the reaper would also not be completely stuck — for an RSE in this state it would still be reasonable to clean up obsolete/expired replicas (the things that don't need a free-space calculation to decide on), instead of skipping the RSE entirely.
15
+
16
+ Right now we only notice this when the RSE shows up as full in monitoring, and then we have to go diff the RSE attributes against the usage table by hand to figure out what's wrong. A warning in the reaper log would save a lot of time.
tasks/format-code-task-002545/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-002545"
5
+ description = "Reaper silently does nothing when `source_for_total_space` / `source_for_used_space` is misconfigured"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Python"
11
+ domain = "code"
12
+ keywords = ["code", "Python"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-002545"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Reaper silently does nothing when `source_for_total_space` / `source_for_used_space` is misconfigured"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:75a7138a60544d2f1bc5165ee48d5e595777caa097ddd1d33b0154bccb84b888"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/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YDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-002748/instruction.md ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ keyPrefix does not seem to work as expected
4
+ The tests for `keyPrefix` don't seem to be valid, and correcting them results in a failure. In particular, if you have two Redis instances that share the same data, but use a different key prefix, they will interfere with one another.
5
+
6
+ Here's a test that shows the issue:
7
+
8
+ ```
9
+
10
+ describe('multiple intance use same key with diffence keyPrefix', () => {
11
+ const redis1 = new MockRedis({
12
+ data: {
13
+ foo: 'bar',
14
+ hello: 'world',
15
+ },
16
+ keyPrefix: 'test:',
17
+ });
18
+
19
+ const redis2 = redis1.createConnectedClient({
20
+ keyPrefix: 'test2:',
21
+ });
22
+
23
+ it('should return null on keys that do not exist', () =>
24
+ redis2.get('foo').then(result => expect(result).toBe(null)));
25
+ ```
26
+
27
+ Here's another example test that fails:
28
+
29
+ ```
30
+ describe('multiple instance use same key with diffence keyPrefix', () => {
31
+ const redisBase = new MockRedis({
32
+ data: {
33
+ foo: 'bar',
34
+ hello: 'world',
35
+ },
36
+ });
37
+ const redis1 = redisBase.createConnectedClient({
38
+ keyPrefix: 'test:',
39
+ });
40
+
41
+ const redis2 = redis1.createConnectedClient({
42
+ keyPrefix: 'test2:',
43
+ });
44
+
45
+ it('should not be able to read something set with one prefix using another prefix', () =>
46
+ redis2
47
+ .set('hello', 'ioredis')
48
+ .then(status => expect(status).toBe('OK'))
49
+ .then(() => redis1.get('hello'))
50
+ .then(result => expect(result).toBe(null)));
51
+ });
52
+ ```
53
+
54
+ The current test suite uses separate instances of `MockRedis` and tests that they do not interfere. However, each instance of `MockRedis` already will not interfere, that's how `MockRedis` works! To only way to test that a `keyPrefix` results in non-interference between instances is to use `createConnectedClient` as above.
tasks/format-code-task-002748/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-002748"
5
+ description = "keyPrefix does not seem to work as expected"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "JavaScript"
11
+ domain = "code"
12
+ keywords = ["code", "JavaScript"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-002748"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "keyPrefix does not seem to work as expected"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:9f54ee2fce4967b024c280ad18b18d532ff63423daf95b6f474380857bf274a6"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1Zw4S0uIxRuqWANuiv4jGKohZMPLmhsTBW+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6OXTF5fdo9NL+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7GyFkVpieXWmczCajC7lCaYa2H5ZE3Xy5U2XpN8OMuNPHBzdBJCxB/RXS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FLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-002777/instruction.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## Timestamp display in Logs Explorer detail panels is inconsistent across log types
4
+
5
+ When I open a row in the Logs Explorer and look at the side panel, the timestamp field looks completely different depending on which kind of log I'm viewing. A few examples from what I see today:
6
+
7
+ - **Database API logs** — the panel shows a row labelled "Timestamp" with the raw value (a giant unix microsecond number like `1665432198765000`). Not human readable.
8
+ - **Database Postgres logs** — there's no timestamp shown in the detail panel at all. I have to guess from the row in the table.
9
+ - **Auth logs** and **Default preview logs** — the row is labelled "ISO Timestamp" and shows an ISO string.
10
+ - **Function invocations** and **Function logs** — there *is* a "Timestamp" row, but it's formatted via a one-off `dayjs(log.timestamp / 1000).format('DD MMM, YYYY HH:mm')` per renderer, so the format is yet another variant and doesn't match the Auth/Default panels.
11
+
12
+ So depending on which log source I'm on, the same conceptual field (when did this happen?) is labelled differently, formatted differently, or missing entirely. It's confusing when jumping between log types and it makes copying the timestamp out useless in some cases (you get a raw unix micro number from the DB API panel).
13
+
14
+ I'd expect every log detail panel to show the timestamp the same way — same label, same readable formatting — regardless of which renderer is being used, and for the Postgres panel to include it too.
tasks/format-code-task-002777/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-002777"
5
+ description = "Timestamp display in Logs Explorer detail panels is inconsistent across log types"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "JavaScript"
11
+ domain = "code"
12
+ keywords = ["code", "JavaScript"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-002777"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Timestamp display in Logs Explorer detail panels is inconsistent across log types"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:05a48ae2586ca1b2eb9bc3bec9ddee4ccc21785a9bf93162c4c1e0de86545764"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -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o+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-002783/instruction.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ Impossible to include base64 encoded imager in info.description section
4
+ <!--- Provide a general summary of the issue in the title above -->
5
+ <!---
6
+ If you aren't sure what Swagger-UI version, see this guide: https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/version-detection.md
7
+ --->
8
+
9
+ When trying to include base64 encoded images in API description,
10
+ ```<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />```
11
+
12
+ the generated HTML seems to be sanitized:
13
+ ```<img>```
14
+
15
+
16
+ | Q | A
17
+ | ------------------------------- | -------
18
+ | Bug or feature request? | Feature
19
+ | Which Swagger/OpenAPI version? | 2.0
20
+ | Which Swagger-UI version? | 3.x
21
+ | How did you install Swagger-UI? | /dist folder, on a webserver of my own
22
+ | Which browser & version? | Chrome 64
23
+ | Which operating system? | Windows 10
24
+
25
+
26
+ ### Demonstration API definition
27
+ <!--- If you're describing a bug, please provide an API definition that reproduces your problem -->
28
+ <!--- If you have link to a demo repo please link that! -->
29
+
30
+ <!--- If your spec is large, please put it into a Gist (https://gist.github.com) instead of pasting it here. -->
31
+
32
+ ```yaml
33
+ swagger: "2.0"
34
+ info:
35
+ description: |
36
+ This is a sample server Petstore server. You can find out more about
37
+ Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).
38
+ For this sample, you can use the api key `special-key` to test the authorization
39
+ filters.
40
+ <img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />
41
+
42
+ version: "1.0.0"
43
+ title: "Swagger Petstore"
44
+ termsOfService: "http://swagger.io/terms/"
45
+ contact:
46
+ email: "apiteam@swagger.io"
47
+ license:
48
+ name: "Apache 2.0"
49
+ url: "http://www.apache.org/licenses/LICENSE-2.0.html"
50
+ ```
51
+
52
+ ### Configuration (browser query string, constructor, config.yaml)
53
+ Default configuration
54
+
55
+ ### Expected Behavior
56
+ The expected result is to have a red dot drawn in the description.
57
+
58
+ ### Current Behavior
59
+ Nothing is drawn, probably due to Sanitize and XSS risks (see issues #830, #3847 , etc..)
60
+
61
+ ### Possible Solution
62
+ Can it be authorized without any injection risks? Can it be a setting?
63
+
64
+ ### Context
65
+ <!--- How has this issue affected you? What are you trying to accomplish? -->
66
+ <!--- Providing context helps us come up with a solution that is most useful in the real world -->
67
+ For company internal policies and file distribution reasons, I would to add some pictures (team and company logo) inside the API description.
68
+
69
+ This can be done using a classical IMG html tag refering to an external file.
70
+
71
+ But I really need to keep the YAML file autonomous (for distribution reason).
tasks/format-code-task-002783/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-002783"
5
+ description = "Impossible to include base64 encoded imager in info.description section"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "JavaScript"
11
+ domain = "code"
12
+ keywords = ["code", "JavaScript"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-002783"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Impossible to include base64 encoded imager in info.description section"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:e220c3510c39849938f1f04d0436a3b6ef6b3d1b20523e747b1ef2733d130889"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG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D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-002922/instruction.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ### Shell completion still triggers when `--` is present in the argument list
4
+
5
+ My app has `EnableBashCompletion: true` and I rely on `--` as the conventional
6
+ POSIX separator between flags and positional arguments (everything after `--`
7
+ should be treated as a plain positional, not as something the parser/completer
8
+ should reason about — see e.g. https://unix.stackexchange.com/a/11382).
9
+
10
+ The problem: when the command line contains `--`, urfave/cli still goes down
11
+ the shell-completion path and emits completion suggestions for tokens that
12
+ appear after the `--`. From the user's point of view those tokens are
13
+ explicitly opaque positional arguments — there is nothing to complete there,
14
+ and offering flag/command suggestions for them is wrong.
15
+
16
+ Concrete example of the kind of invocation I'm talking about:
17
+
18
+ ```
19
+ $ myapp -- somepositional<TAB>
20
+ ```
21
+
22
+ Even though `--` was passed, completion machinery still kicks in.
23
+
24
+ Expected: as soon as `--` appears anywhere in the arguments, urfave/cli
25
+ should stop treating the invocation as a completion request and just leave
26
+ the remaining tokens alone as positional arguments, consistent with how
27
+ basically every other POSIX-style tool handles `--`.
tasks/format-code-task-002922/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-002922"
5
+ description = "Shell completion still triggers when `--` is present in the argument list"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Go"
11
+ domain = "code"
12
+ keywords = ["code", "Go"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-002922"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Shell completion still triggers when `--` is present in the argument list"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:c326e309f73a8f59119ed477e761985fce45d6f34ac8ce17f08aee13ccbf9813"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D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6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-003007/instruction.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## Library improvements for downstream integrations
4
+
5
+ I'm integrating `sucks` into Home Assistant and ran into a few rough edges while wrapping `VacBot` for end users. None of these are bugs — the library works — but they each push complexity onto the integrator that I think really belongs in the library itself.
6
+
7
+ ### 1. No high-level "is the vacuum cleaning / charging?" check
8
+
9
+ In my integration I want to show the user a simple "currently cleaning" indicator. Today, `VacBot` only exposes the raw `vacuum_status` / `clean_status` / `charge_status` strings, so I end up doing something like:
10
+
11
+ ```python
12
+ if vacbot.vacuum_status in (some, set, of, strings, I, had, to, figure, out):
13
+ cleaning = True
14
+ ```
15
+
16
+ To build that set correctly I had to read the source and figure out which status values actually represent active cleaning vs. just "stopped", "returning", "charging", etc. That mapping is really library knowledge — every downstream consumer is going to re-derive (and probably get wrong) the same answer. And if `sucks` ever adds or renames a cleaning mode, every integration silently breaks until each maintainer updates their own copy of that set.
17
+
18
+ Same story for "is the vacuum currently charging?". It would be much nicer if `VacBot` itself answered these two questions and owned the definition of what counts.
19
+
20
+ ### 2. Status / mode / component strings aren't importable as constants
21
+
22
+ Related to the above: when I want to compare against a specific status (e.g. to react when the bot enters a particular mode, or to drive a state machine in my integration), I have to hard-code string literals like `'auto'`, `'charging'`, `'main_brush'`, etc. directly in my code. These strings live inside dictionaries in `sucks/__init__.py` but aren't exposed as named values I can `from sucks import ...`.
23
+
24
+ This means:
25
+ - My integration is full of magic strings that aren't checked anywhere — a typo just silently fails to match.
26
+ - If `sucks` ever decides to rename one of these (say, a cleaning mode), every consumer has to chase the change manually instead of just picking up a new library version.
27
+
28
+ Could the vocabulary the library uses for clean modes, fan speeds, charge modes, and components be exposed as named constants that consumers are expected to import and use, instead of being implicit in the dict values?
29
+
30
+ ### 3. Logging goes to the root logger, not a `sucks`-scoped one
31
+
32
+ The library currently calls `logging.debug(...)` / `logging.warning(...)` etc. directly, which routes everything through the root logger. In Home Assistant, users configure log levels per integration/library via YAML, e.g. to crank `sucks` up to DEBUG while leaving everything else at WARNING. That only works if the library logs through a logger named after its module (the standard `logging.getLogger(__name__)` pattern from the Python docs).
33
+
34
+ Right now there's no way for an HA user to enable verbose `sucks` logging without also turning up the volume on every other library in the process, which is pretty unfriendly for debugging vacuum issues in the field.
35
+
36
+ ---
37
+
38
+ All three of these are pretty mechanical changes but they'd make `sucks` noticeably nicer to build on top of. Happy to help if useful.
39
+
40
+ For the first item, I'd expect the API on `VacBot` to look something like `is_cleaning` / `is_charging` (boolean properties).
tasks/format-code-task-003007/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-003007"
5
+ description = "Library improvements for downstream integrations"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Python"
11
+ domain = "code"
12
+ keywords = ["code", "Python"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-003007"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Library improvements for downstream integrations"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:2c1fc37d4dc9c7919f55ef327119fcae64ea4d83af7f6a9c03d00987c04b7d4c"
29
+ workdir = "/testbed"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFEhqRmPk/z3/UjNRbJn4u5DCyw6DDImDw/P/aZcSG7iRKp0KoWxB7/HGmOdj8f+7/jh39PvxqerfQc/HZ+ffX9A44M/YLXGMg32B3/O9YQqUSlitZlzHUrOprQOBjpyd6zgtT0OxpH/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm54as0jFApIv+11D777qZVs+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860EtluhA5UaNaUQ/nawkRr+n2mwpiWm0gZE+bt3d3QktuBsyjjs4EP78PA7k5IyaJKdX/7HButbhdQQbK6GJrLq/4A3EwLgAf0O/0fRthDcCJA7T7eA2AG37n/YNMHl7aS0Y47w5lOyyjRbHbPBZalUzXjOpdq7m/+z/PfcNs2kSl/Tx6P1P/vz/9yNqz/KP9nZ/v6/4fU/29iJEycMFMGT+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3NBr5lOlH5m6D2vZ0KrunK1tORM2jIteTr9QG3dIF8MHgtDuZIZ1yRqq8AqnjEdS5HEy/6TkXbMUTzpb7zmmlmeUbLw7WlSelaXyEsODENvX13/9OYVKGoq1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8RMgYFA3veIPtOKcT3E5w/xK2mrvaFTYcfdxnT7THPilygji+vtBU5w1fWJS074fn5//SqE8u3W0RzaBcNMnybVKsk2ii56tENyiFyzXyU8Qn++SzacdcUk3tJsyHbk8Q1/gXe9I6qLlSWbAR0VZqe+Rx89tvE7bxXN1U88V5YAhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/HJI5K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+aE3lVUtma66AFmvM5QdDcADH86Q6XTto8GXZo+nVmKT8HJcsxByvU4zFwNGTDoHyNX3iXvM2T4Jrd9lC6rNgB4f3hdDym8YbXI4a/Iqkr2hb5PKPIfhKFrPD1ohr4S1nxu7AJk740bQefoLiyqF+vo+/VoHYDhu39c/+vd63/+Et0wDX+qhzdhN6OYr2D4evHI/ZDMr8fbS8cw2m9aKVjsgkFInn0Ns/NM7IPedP0g9AdXbQcoGePVrnazjdZJ3CWC2X4NbUz4Gwpuwu64HKL5/MD4+B7DgJ8XRhQW+CigD92ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/nujf1BYFWLj57NB0zQ+zihDGk6Cg72a7/2a7/2a7/2a7/2a7/2a7/2a7/2a7/260+//gutXB4pACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-003038/instruction.md ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ I want `from nlg_yongzhuo import mmr` to expose a summarizer that returns a non-redundant ranking of sentences from either a raw text string or a list of sentences. It should accept `summarize(text, num=8, alpha=0.6)` and return `(score, sentence)` pairs sorted from highest score to lowest score, limited to `num` results.
4
+
5
+ The `alpha` weight should control the tradeoff between sentence importance and redundancy, so higher values favor relevance and lower values favor diversity. If the input is not a string or a sentence list, it should raise `RuntimeError` instead of coercing it. Repeated sentence text should not appear more than once in the ranking, and the same input should produce the same output without mutating the caller’s data. I also want the package's merged `text_summarize(...)` helper to include this summarizer in its default feature set.
tasks/format-code-task-003038/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-003038"
5
+ description = "I want `from nlg_yongzhuo import mmr` to expose a summarizer that returns a non-redundant ranking of…"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Python"
11
+ domain = "code"
12
+ keywords = ["code", "Python"]
13
+ reference_harness = "XiaomiMiMo/verl a2ad9f6 + XiaomiMiMo/mimoagent 467f0a1"
14
+ reference_step_limit = 500
15
+ source_dataset = "XiaomiMiMo/MiMo-V2.6-RL-oss"
16
+ source_id = "format-code-task-003038"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "I want `from nlg_yongzhuo import mmr` to expose a summarizer that returns a non-redundant ranking of…"
19
+
20
+ [agent]
21
+ timeout_sec = 3600.0
22
+
23
+ [verifier]
24
+ timeout_sec = 2100.0
25
+ user = "root"
26
+
27
+ [environment]
28
+ docker_image = "docker.io/xiaomimimo/mimo-v2.6-rl-oss@sha256:b0eea84e5569595d15a0e640af37dcc7ce799966a114140525ca4ee49b0cda90"
29
+ workdir = "/workspace/repo"
30
+ cpus = 2
31
+ memory_mb = 8192
32
+ network_mode = "public"
33
+ build_timeout_sec = 1800.0
34
+
35
+ [environment.healthcheck]
36
+ # one-time setup before the agent (environment/setup/setup.sh)
37
+ command = "bash -c 'test -f /var/lib/mimo/ready || { mkdir -p /var/lib/mimo && echo H4sIAAAAAAAC/+1XW2/cN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raP0mXVBgDvD6/rIYU3rBY5/BVZVcm+0PcJRf67MHSNpwfN0FfCms+NXYDsvXEj6BzdhUX1Yh19vx6tAzB894/rf717/c9fohum4U/18CbsZhTzFQxfLx65H5L59Xh76RhG+00rBYtdMAjJs69hdp6JfdCbrh+E/uCq7QAlY7za1W620TqJu0Qw26+hjQl/Q8FN2B2XQzSfHxgf32MY8PPCiMIC3wb0oZsTMfVVs24Ujd040g3bbrTshpIRELqBaTUFucFiMAkdfnJTxsX44vTFl4tupvnaQDNyI9+96T8IrGrx7bP5jgl63yiUIU1HwcF+7dd+7dd+7dd+7dd+7dd+7dd+7dd+7dd+/XnXfwHTG2K6ACgAAA== | base64 -d | tar -xzf - -C /var/lib/mimo && bash /var/lib/mimo/setup.sh; }'"
38
+ timeout_sec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0