ilintar commited on
Commit
fec0c33
·
verified ·
1 Parent(s): 4f713aa

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +141 -35
README.md CHANGED
@@ -1,39 +1,18 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: task_id
5
- dtype: string
6
- - name: repo
7
- dtype: string
8
- - name: lang
9
- dtype: string
10
- - name: category
11
- dtype: string
12
- - name: difficulty
13
- dtype: int64
14
- - name: instruction
15
- dtype: string
16
- - name: files
17
- dtype: string
18
- - name: tests
19
- dtype: string
20
- - name: gold
21
- dtype: string
22
- - name: fail_to_pass
23
- list: string
24
- - name: pass_to_pass
25
- list: string
26
- - name: n_tests
27
- dtype: int64
28
- splits:
29
- - name: test
30
- num_bytes: 3973571
31
- num_examples: 60
32
- - name: extended
33
- num_bytes: 8414096
34
- num_examples: 129
35
- download_size: 1776200
36
- dataset_size: 12387667
37
  configs:
38
  - config_name: default
39
  data_files:
@@ -42,3 +21,130 @@ configs:
42
  - split: extended
43
  path: data/extended-*
44
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - code
9
+ - agent
10
+ - benchmark
11
+ - tool-use
12
+ - swe
13
+ pretty_name: SACB (Simple Agent Coding Benchmark)
14
+ size_categories:
15
+ - n<1K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  configs:
17
  - config_name: default
18
  data_files:
 
21
  - split: extended
22
  path: data/extended-*
23
  ---
24
+
25
+ # SACB — Simple Agent Coding Benchmark
26
+
27
+ A multi-turn agentic coding benchmark that needs **no Docker**. The model is
28
+ given a small but real repository, a deliberately narrow tool set, and a bug
29
+ report. It drives its own conversation until it declares itself finished, and is
30
+ then graded by running a test suite it was never allowed to see.
31
+
32
+ Built for [`llama-eval`](https://github.com/ggml-org/llama.cpp) (`--dataset agentic`),
33
+ but the records are self-contained and usable by any harness.
34
+
35
+ ## Why it exists
36
+
37
+ Most agentic coding benchmarks need a container per task, because each one drags
38
+ in a different framework and toolchain. SACB deliberately restricts itself to
39
+ two languages with lightweight native sandboxes and a tiny dependency set, so a
40
+ run needs a venv and, for the TypeScript half, node — nothing more.
41
+
42
+ ## Design
43
+
44
+ Three constraints, all deliberate:
45
+
46
+ **No shell, and no way to run the tests.** The only feedback channel is a
47
+ `lint` tool. A syntax or type error can be driven out mechanically; a logic
48
+ error has to be reasoned about. A harness that lets an agent iterate against the
49
+ test suite measures something closer to search than to understanding.
50
+
51
+ **Two edit tools**, one line-addressed and one content-addressed. Which one a
52
+ model reaches for, and whether it keeps line numbers straight after its own
53
+ earlier edit, is itself a signal.
54
+
55
+ **Tests never touch the working tree.** They are held outside it and copied into
56
+ a throwaway copy only after the agent stops, so they can be neither read nor
57
+ edited.
58
+
59
+ The expected tool set is `list_files`, `read_file` (with line-range narrowing),
60
+ `search`, `edit_lines`, `edit_replace`, `write_file`, `lint`, `finish`.
61
+
62
+ ## Splits
63
+
64
+ | split | tasks | contents |
65
+ |---|---|---|
66
+ | `test` | 60 | the default benchmark |
67
+ | `extended` | 129 | everything validated, including the easy `ledger` tier |
68
+
69
+ The `test` split is a deliberate selection, not a sample. Difficulty here is a
70
+ property of *composition*: it is 10 single-defect tasks plus 50 compound tasks,
71
+ which is what places a leading small model in the intended band.
72
+
73
+ ## Repositories
74
+
75
+ Every task is an overlay on one of three hand-written base repositories. The
76
+ base is the *correct* code, so the reference fix cannot fail to work.
77
+
78
+ | repo | language | size | role |
79
+ |---|---|---|---|
80
+ | `flow` | Python | 989 lines, 13 modules | workflow scheduler |
81
+ | `router` | TypeScript | 578 lines, 12 modules | HTTP router |
82
+ | `ledger` | Python | 417 lines, 6 modules | event-sourced inventory (easy tier, `extended` only) |
83
+
84
+ ## Fields
85
+
86
+ | field | meaning |
87
+ |---|---|
88
+ | `task_id` | unique id |
89
+ | `repo`, `lang`, `category`, `difficulty` | metadata |
90
+ | `instruction` | the bug report shown to the model |
91
+ | `files` | JSON object: path → contents. The starting tree |
92
+ | `tests` | JSON object: hidden tests, **never** placed in the agent's tree |
93
+ | `gold` | JSON object: the reference fix, for validation |
94
+ | `fail_to_pass` | tests that must go from failing to passing |
95
+ | `pass_to_pass` | tests that must stay passing |
96
+ | `n_tests` | total tests |
97
+
98
+ `files`, `tests` and `gold` are JSON strings; parse with `json.loads`.
99
+
100
+ ## Scoring
101
+
102
+ A task is **resolved** when every `fail_to_pass` test passes *and* no
103
+ `pass_to_pass` test broke. Report the fraction of `fail_to_pass` alongside:
104
+ many tasks carry several independent defects, and that fraction separates
105
+ "fixed two of the three faults" from "changed nothing".
106
+
107
+ `fail_to_pass` and `pass_to_pass` are **derived**, never hand-written — the
108
+ tests are run once against the defective tree and once against the reference,
109
+ and the sets fall out of the difference. A task whose defect no test exercises,
110
+ or whose reference fix does not itself pass, is rejected rather than shipped.
111
+
112
+ ## Calibration
113
+
114
+ Measured against **Qwen3.5-4B** (Q6_K), 19 episodes on the hard repositories:
115
+
116
+ | tier | resolved |
117
+ |---|---|
118
+ | single defect | 3/5 |
119
+ | compound (2–4 defects) | 1/14 |
120
+
121
+ The `test` split projects **~16%** on those rates. Typical episode: 4–12 turns,
122
+ 16–134k cumulative tokens (median ~40k), 4–11k peak context.
123
+
124
+ ### What actually controls difficulty
125
+
126
+ Measurement contradicted the obvious guesses, so they are worth recording:
127
+
128
+ * **Repository size dominates defect count.** A *single*-defect task on `flow`
129
+ went unresolved while a *three*-defect compound on `ledger` resolved
130
+ completely. What makes these tasks hard is orienting in a repository too large
131
+ to read at once. To make the benchmark harder, add a larger repository — not
132
+ more defects per task.
133
+ * **Sub-defect success is correlated, not independent.** Two-defect compounds
134
+ resolve near 50%, not the 25% that multiplying probabilities predicts: the
135
+ expensive part is orienting in the code, and that cost is paid once and shared
136
+ across every defect in the same task.
137
+ * **Instruction vagueness barely matters.** Rewriting reports from diagnosis to
138
+ bare symptom moved the number far less than expected.
139
+
140
+ ### A harness note worth heeding
141
+
142
+ If your harness ends an episode as soon as the model emits no tool call, you
143
+ will measure a **fake 0%**. Models routinely narrate their analysis in prose
144
+ mid-task; treating that as "done" ends the episode with no edits. Send a neutral
145
+ nudge and let it continue — roughly one episode in four exits that way.
146
+
147
+ ## License
148
+
149
+ MIT. All repositories, defects and tests are original work written for this
150
+ benchmark; no upstream code is redistributed.