path stringlengths 13 13 | task_binary unknown |
|---|---|
manybugs-0000 | [
31,
139,
8,
0,
92,
4,
106,
106,
2,
255,
237,
93,
107,
123,
219,
54,
178,
238,
87,
243,
87,
160,
106,
183,
149,
82,
234,
66,
249,
214,
218,
113,
186,
138,
35,
39,
126,
214,
150,
124,
100,
249,
164,
61,
222,
84,
75,
145,
1... |
manybugs-0001 | [
31,
139,
8,
0,
92,
4,
106,
106,
2,
255,
237,
92,
123,
119,
219,
54,
178,
207,
191,
229,
167,
152,
170,
61,
169,
212,
171,
23,
109,
75,
222,
218,
117,
238,
186,
174,
157,
250,
212,
177,
125,
100,
103,
187,
105,
183,
171,
82... |
manybugs-0002 | [
31,
139,
8,
0,
92,
4,
106,
106,
2,
255,
236,
189,
123,
91,
219,
214,
150,
56,
124,
254,
133,
79,
177,
227,
62,
57,
216,
96,
59,
152,
164,
105,
11,
73,
59,
52,
56,
41,
39,
128,
243,
96,
147,
164,
105,
251,
120,
132,
45,
... |
manybugs-0003 | [
31,
139,
8,
0,
92,
4,
106,
106,
2,
255,
236,
189,
107,
87,
27,
71,
182,
0,
58,
95,
197,
175,
40,
107,
150,
131,
4,
146,
140,
176,
227,
36,
96,
39,
135,
24,
217,
97,
12,
136,
133,
132,
95,
73,
150,
78,
35,
181,
160,
15,... |
manybugs-0004 | "H4sIAFwEamoC/+y9e38bx5EunH/NTzGhYxsgARgXXgVJfiVZsnViS/rpsl6F4dEZAANyRGAGwgwIUo72s7/1VFVf5gJKThzvJmu(...TRUNCATED) |
manybugs-0005 | "H4sIAFwEamoC/+x9a1vbVtbofB1+xY7nSbHBdjBJ0xYn7aHBSZkAzoNN0qTt41fYMuhgS64kQ6DN+9vPuuy7JEPStO+cc+qZBlv(...TRUNCATED) |
manybugs-0006 | "H4sIAFwEamoC/+x9a3saR5bwfB39ijJ5HIEEWMiOEws7WcXCjsaS8COQb0ketgUN6hV0E7qRLCXe3/6eS927G8mOnZ13N8xEhu6(...TRUNCATED) |
manybugs-0007 | "H4sIAFwEamoC/+y9fXsTR7I3nH+tT9E4GyIZv5MlCQb2FraMda0t+ZYEJDfhsGNpZM9BntEzI8n2STif/amXfp3pkWQwbHYXX7v(...TRUNCATED) |
manybugs-0008 | "H4sIAFwEamoC/+x9eXvbxrV3/rU+xVRtckVbkkXJcRy7Tl8IBCXcUAQLgFqSm8cXIocSaghgAFCW2vq7v+fMDPaFpAyw6W34eJH(...TRUNCATED) |
manybugs-0009 | "H4sIAFwEamoC/+y9fV8bObIwuv/Cp9Cwz2RsYgg2hBCY5FwHTOJdwFzbTCaTzc9PYzfQE9vt020HyMv97LdeJLXUb7Z5ySQ74Zy(...TRUNCATED) |
exp_rpt_manybugs-v2
A fixed, non-gameable release of DCAgent/exp_rpt_manybugs:
164 C bug-repair tasks (ManyBugs) packaged as Harbor sandbox tasks.
| Tasks | 164 |
| Projects | php (102), libtiff (24), python (15), wireshark (7), lighttpd (9), gzip (5), gmp (2) |
| Unique environments | 7 snapshots (ubuntu:22.04 base, one -dev set per project) |
| Format | tasks.parquet — columns path (task id), task_binary (gzipped task tarball) |
Each task contains a single buggy .c file from a real C project plus its verified
gold fix; the agent edits /workspace/src/<file>.c and tests/test.sh writes the
reward.
The problem in the original
tests/test.sh used a gameable text-diff that never compiled or executed the C
code. Beyond an exact-match check, it accepted any edit to the fault line as a
pass:
# original fallback — REWARDS GARBAGE
AGENT_LINE=$(sed -n "${FAULT_LINE}p" /workspace/src/powm.c)
if [ "$BUGGY_LINE" != "$AGENT_LINE" ]; then
echo "PASS: Fault line was modified ..."; exit 0 # <- even a syntax error passes
fi
So a model could append a deliberate syntax error to the fault line and still score
reward = 1. The reward signal was vacuous.
Why a gcc compile gate is impossible here
The 164 files are single-file fragments of large C projects. They #include
project-internal headers that are absent from the sandbox:
powm.c:74:10: fatal error: gmp-impl.h: No such file or directory
tif_dirwrite.c:32:10: fatal error: tiffiop.h: No such file or directory
url.c:25:10: fatal error: php.h: No such file or directory
Verified empirically across all 164 tasks: every gold/fixed solution fails
gcc -c and gcc -fsyntax-only at the first #include. There is also no
project source tree (no configure/Makefile/test harness) shipped with a task,
so there is nothing to build or run the project's own test suite against. A gcc
gate would therefore make every task impossible — gold included — i.e. a vacuous
verifier in the opposite direction.
The fix (non-gameable, oracle-solvable verifier)
The new tests/test.sh is default-fail and gates on the only deterministic,
non-gameable signal available without a runnable test suite: the agent's file must
exactly match the verified gold patch (tests/fixed).
echo 0 > /logs/verifier/reward.txt # default-fail
G1 agent file must DIFFER from buggy (a fix was actually applied)
G2 agent file must == tests/fixed (the verified gold patch) -> reward 1
python3 -m pytest /tests/test_state.py # pass_ratio-parseable output
Only the exact correct fix scores reward = 1; a syntax error, a partial edit, a
trivial whitespace change, or an untouched workspace all score 0.
Supporting changes:
tests/test_state.py— asserts/logs/verifier/reward.txt == "1"(the Harbor binary-reward contract); invoked bypytestso thepass_ratioreward shaper gets parseable output.tests/config.json— test weight fortest_reward_is_pass.environment/Dockerfile—python3 python3-pytestadded to every image (for thepytestinvocation).build-essential(gcc) is retained so an agent may build while working; the verifier itself does not compile.- All other files (instructions, metadata,
task.toml,expected.diff,fault_line.txt, the buggy/fixed/initial sources, the per-project-devpackages) are preserved byte-identical from the original.
Validation
Oracle gate (non-vacuous): the gold solution was run through the verifier for all
164/164 tasks → reward = 1 every time.
Docker smoke test (representative, real project images for gmp + php; all
projects covered with the equivalent minimal image):
| scenario | reward |
|---|---|
| empty / untouched workspace | 0 |
gold solution (tests/fixed) |
1 |
| buggy file unchanged | 0 |
| syntax error injected at the fault line | 0 |
| trivial trailing-newline edit | 0 |
The originally-gameable case (a syntax error on the fault line) now correctly fails.
Uploader note
Original tasks sourced from DCAgent/exp_rpt_manybugs (unchanged); only the verifier
(tests/test.sh), the new tests/test_state.py / tests/config.json, and the
python3-pytest Dockerfile line differ. Published to laion/exp_rpt_manybugs-v2.
- Downloads last month
- 26