Datasets:

Modalities:
Text
Languages:
English
Size:
< 1K
ArXiv:
Libraries:
Datasets
Harbor
License:
lewtun HF Staff commited on
Commit
6db0e7c
·
verified ·
1 Parent(s): d2835d5

One task per slot (agg-pPP-nNN-sKK) whose instruction states its number; no resources/ (Flock's selector gives each agent its own task)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +54 -66
  2. check.py +145 -193
  3. eval/metrics.py +1 -1
  4. flock/spec.template.yaml +4 -8
  5. flock/sweep/README.md +1 -1
  6. flock/team.py +9 -18
  7. generate.py +33 -40
  8. resources/message_board.py +0 -5
  9. resources/numbers.json +0 -162
  10. resources/private_number.py +0 -58
  11. tasks/{agg-p02-n01 → agg-p01-n01-s01}/instruction.md +3 -2
  12. tasks/{agg-p01-n01 → agg-p01-n01-s01}/solution/solve.sh +0 -0
  13. tasks/{agg-p01-n01 → agg-p01-n01-s01}/task.toml +4 -3
  14. tasks/{agg-p01-n01 → agg-p01-n01-s01}/tests/expected.json +0 -0
  15. tasks/{agg-p01-n01 → agg-p01-n01-s01}/tests/test.sh +0 -0
  16. tasks/agg-p01-n01/instruction.md +0 -8
  17. tasks/{agg-p03-n02 → agg-p01-n02-s01}/instruction.md +3 -2
  18. tasks/{agg-p01-n02 → agg-p01-n02-s01}/solution/solve.sh +0 -0
  19. tasks/{agg-p01-n02 → agg-p01-n02-s01}/task.toml +4 -3
  20. tasks/{agg-p01-n02 → agg-p01-n02-s01}/tests/expected.json +0 -0
  21. tasks/{agg-p01-n02 → agg-p01-n02-s01}/tests/test.sh +0 -0
  22. tasks/{agg-p01-n02 → agg-p01-n02-s02}/instruction.md +3 -2
  23. tasks/{agg-p03-n01 → agg-p01-n02-s02}/solution/solve.sh +1 -1
  24. tasks/{agg-p03-n02 → agg-p01-n02-s02}/task.toml +5 -4
  25. tasks/agg-p01-n02-s02/tests/expected.json +1 -0
  26. tasks/{agg-p01-n04 → agg-p01-n02-s02}/tests/test.sh +0 -0
  27. tasks/{agg-p01-n04 → agg-p01-n04-s01}/instruction.md +3 -2
  28. tasks/{agg-p01-n04 → agg-p01-n04-s01}/solution/solve.sh +0 -0
  29. tasks/{agg-p01-n04 → agg-p01-n04-s01}/task.toml +4 -3
  30. tasks/{agg-p01-n04 → agg-p01-n04-s01}/tests/expected.json +0 -0
  31. tasks/{agg-p01-n08 → agg-p01-n04-s01}/tests/test.sh +0 -0
  32. tasks/{agg-p02-n04 → agg-p01-n04-s02}/instruction.md +3 -2
  33. tasks/{agg-p03-n04 → agg-p01-n04-s02}/solution/solve.sh +1 -1
  34. tasks/{agg-p03-n04 → agg-p01-n04-s02}/task.toml +5 -4
  35. tasks/agg-p01-n04-s02/tests/expected.json +1 -0
  36. tasks/{agg-p01-n16 → agg-p01-n04-s02}/tests/test.sh +0 -0
  37. tasks/{agg-p03-n04 → agg-p01-n04-s03}/instruction.md +3 -2
  38. tasks/{agg-p04-n01 → agg-p01-n04-s03}/solution/solve.sh +1 -1
  39. tasks/{agg-p04-n04 → agg-p01-n04-s03}/task.toml +5 -4
  40. tasks/agg-p01-n04-s03/tests/expected.json +1 -0
  41. tasks/{agg-p02-n01 → agg-p01-n04-s03}/tests/test.sh +0 -0
  42. tasks/{agg-p04-n04 → agg-p01-n04-s04}/instruction.md +3 -2
  43. tasks/agg-p01-n04-s04/solution/solve.sh +5 -0
  44. tasks/agg-p01-n04-s04/task.toml +27 -0
  45. tasks/agg-p01-n04-s04/tests/expected.json +1 -0
  46. tasks/{agg-p02-n02 → agg-p01-n04-s04}/tests/test.sh +0 -0
  47. tasks/{agg-p02-n08 → agg-p01-n08-s01}/instruction.md +3 -2
  48. tasks/{agg-p01-n08 → agg-p01-n08-s01}/solution/solve.sh +0 -0
  49. tasks/{agg-p01-n08 → agg-p01-n08-s01}/task.toml +4 -3
  50. tasks/{agg-p01-n08 → agg-p01-n08-s01}/tests/expected.json +0 -0
README.md CHANGED
@@ -28,7 +28,7 @@ agents are Pi with Flock's board, and the board is what we measure.
28
 
29
  Each of the N agents holds one private integer from 1 to 99, written in English words
30
  ("seventy-three"). The team must list all N numbers in ascending order, keeping equal numbers
31
- from different agents as separate entries. Each agent reads its number from its environment,
32
  shares it on the board, reads the others', keeps one number per participant, writes
33
  `/app/answer.json` (a JSON array of N integers in ascending order) and stops. The team succeeds
34
  if any agent's answer is right. The instruction adapts the paper's (Appendix G) to the board and
@@ -37,40 +37,35 @@ prescribes no protocol beyond that.
37
  | | |
38
  | --- | --- |
39
  | Problems | 32 (the paper's held-out set size), each 16 integers drawn uniformly from 1 to 99, repeats allowed, from a fixed seed |
40
- | Tasks | 160: one per problem and team size N ∈ {1, 2, 4, 8, 16}, whose team holds the problem's first N numbers, e.g. `agg-p07-n08` |
 
41
  | Image | `python:3.12-slim`, prebuilt and public (no Dockerfile): HF Sandboxes, docker and podman |
42
  | Agent / verifier timeout | 1800 s / 60 s |
43
  | Resources | 1 CPU, 1 GB memory per agent |
44
 
45
  ```text
46
- tasks/agg-pPP-nNN/
47
- instruction.md the same for every problem of a team size: no number in it
48
  task.toml
49
- tests/test.sh the grader
50
- tests/expected.json the answer: copied in only after the agent is done
51
  solution/solve.sh an oracle with its own copy of the answer
52
- resources/ Flock's resources_dir for these tasks
53
- private_number.py puts each agent's own number in its environment (PRIVATE_NUMBER)
54
- numbers.json each task's agents (agent-001 ...) and their numbers, in words
55
- message_board.py Flock's own board, brought along (a resources_dir replaces Flock's)
56
  flock/
57
  spec.template.yaml what every team's Flock run shares: model, board rules, loop, limits
58
  team.py writes one team's spec (docker, HF Sandboxes or the HF cluster)
59
  sweep/ the scaling sweep on the HF cluster (flock/sweep/README.md)
60
  eval/metrics.py one row per team from Flock run directories
61
  problems.json the 32 problems
62
- generate.py writes problems.json, tasks/ and resources/numbers.json from its seed (115)
63
  check.py the checks that need no model
64
  ```
65
 
66
- **Private numbers** reach each agent only through its own environment. With the spec's
67
- `resources_dir` on `resources/` and `resources.private_number.team` naming the task, Flock's
68
- worker loads `private_number.py`, and its `bind(name)` gives agent `agent-00k`'s Trial
69
- `PRIVATE_NUMBER=<its number in words>` and nothing else. The module and `numbers.json` stay on
70
- the worker: they are not in Flock's tool bundle, the task folder or any container. A task folder
71
- puts nothing in the container while the agent works (no `environment/`; `tests/` arrives after
72
- the agent is done), and the instruction holds no number, so no agent can read another agent's
73
- number until that agent posts it.
74
 
75
  ## Reward
76
 
@@ -91,13 +86,9 @@ scored on its own answer; the team succeeds if any agent scores 1.
91
  ## Run it with Flock
92
 
93
  Flock's [`experiments/s3-aggregation/spec.yaml`](https://github.com/huggingface/flock/tree/main/experiments/s3-aggregation)
94
- runs `agg-p01-n04` in local docker with this dataset next to Flock's checkout (its
95
- `resources_dir` is `../s3-aggregation/resources` from there), at the revision it pins:
96
-
97
- ```sh
98
- hf download HuggingFaceSwarms/s3-aggregation --repo-type dataset --revision <the spec's> --local-dir ../s3-aggregation
99
- uv run flock launch experiments/s3-aggregation/spec.yaml
100
- ```
101
 
102
  For any other team or place, `flock/team.py` writes the spec from `flock/spec.template.yaml`,
103
  run from Flock's checkout. **Needs** `HF_TOKEN`, which reads the private dataset (and starts the
@@ -197,14 +188,15 @@ uv run check.py --env none # without the Trials
197
  uv run check.py --env none --run RUN_DIR # also a Flock run of a team (below)
198
  ```
199
 
200
- 1. **Generator:** `generate.py` reproduces `problems.json`, `tasks/` and
201
- `resources/numbers.json` byte for byte; another seed gives other problems; 32 problems of 16
202
- integers in 1..99; the words read back to their numbers; each task's team is its problem's
203
- first N numbers, and `numbers.json` gives agent `agent-00k` the k-th.
204
  2. **Graders**, run as Harbor runs them (`tests/` copied in after the agent is done, through
205
- any link the agent left): on all 160 tasks the oracle scores 1, and wrong, partial, padded,
206
- unsorted and duplicate-dropping answers score 0. On one task per team size, twelve kinds of
207
- malformed answer score 0, and so do sixteen cheats: the answer as a symlink to the tests'
 
208
  `expected.json` (dangling until the tests arrive; absolute or relative), a symlink or a
209
  hardlink to a right answer elsewhere, a hardlink to `expected.json`, a symlinked `/app` (to a
210
  right answer, or into the tests' folder), an `expected.json` planted as a link to the answer,
@@ -212,34 +204,30 @@ uv run check.py --env none --run RUN_DIR # also a Flock run of a team (below)
212
  to read any answer as right: a `json.py` in the grader's working directory or on
213
  `PYTHONPATH`, a `sitecustomize` on `PYTHONPATH`, a `usercustomize` or a `.pth` file in the user
214
  site, and a `dirname` shadowed on the `PATH` that points `expected.json` at the agent's file.
215
- 3. **No-cheat, in the files:** a task folder holds only its five files, its instruction is the
216
- same for every problem of its team size and holds no number, the answer is only in `tests/`
217
- and `solution/`, and `resources/` holds only the resource, its numbers and the board.
218
- 4. **No-cheat, the resource:** for every task and agent, `private_number`'s binding is that
219
- agent's own number in `PRIVATE_NUMBER` and nothing else (no other variable, mount, host or
220
- metadata, and no teammate's number anywhere in it); a team of the wrong size, an unknown
221
- task or agent, and unknown options are refused.
222
- 5. **No-cheat, from inside Trials** of `agg-p01-n16`, with probe agents (no model): sixteen
223
- probes, one per agent, each with exactly the environment `private_number` binds for it, look
224
- around the container while "the agent works": every file, every process's environment and
225
- command line, and the instruction. Each finds its own number only in its environment, and no
226
- teammate's number, no `tests/` or `solution/` and no file holding the answer anywhere; then it
227
- writes the answer, the same search finds it (a control), and the task's verifier scores it 1.
228
- Four more leave a cheat with a wrong answer, and the verifier scores each 0:
229
- `/app/answer.json` as a symlink to `/tests/expected.json`; `/app` as a symlink into a
230
- `/tests` they made; a `json.py` that reads any answer as right wherever the verifier may
231
- start; a `sitecustomize` in site-packages that does the same.
232
- 6. **No-cheat, a Flock run** (`--run RUN_DIR`, a local run's `.flock/<swarm>-<time>/`): each
233
- agent's first prompt (the task's instruction and Flock's) holds no number of the team; the
234
- first tool output in which an agent sees a teammate's number is a board read, after that
235
- teammate posted it; the first post holding each number is its owner's; and each agent read
236
- its own number from its environment. A number counts in words and in digits where they read
237
- as a held number: an array of the team's integers (the JSON answer, or part of it), an
238
- agent's number in a mapping (`"agent-002": 26`) or a stated number (`number is 26`); bare
239
- ids, counts and timestamps don't. The audit itself runs on synthetic runs every time: a
240
- clean one, and one whose ids and timestamps hold the team's numbers, pass; words, the JSON
241
- answer, a mapping or a stated number in the first prompt or in a non-board output before the
242
- board fail, and so does a number first posted by an agent that doesn't hold it.
243
 
244
  `--env` takes a Harbor environment type or an import path. Harbor 0.25.0's `hf-sandbox` uploads
245
  `tests/` with the host's file owner, which a sandbox can't take when the host's uid is over
@@ -252,8 +240,9 @@ To check the grader alone with Harbor: `harbor run --path tasks/agg-p07-n04 --ag
252
 
253
  - **Private for now**, so whatever resolves and downloads the task (Flock's worker, which then
254
  uploads it into the sandbox) needs a Hub token that can read it. The sandboxes never do.
255
- - **The numbers need Flock's resource.** Harbor alone has no per-agent environment: a task run
256
- without `resources/private_number.py` gives the agent no number to share.
 
257
  - **The grader can't see the board:** an agent could guess or copy a wrong number and still be
258
  scored only on its file. The board export in the run directory shows what was said.
259
  - **The verifier runs in the agent's container**, as in every Harbor task. The grader closes the
@@ -266,6 +255,5 @@ To check the grader alone with Harbor: `harbor run --path tasks/agg-p07-n04 --ag
266
  - **Board rules** are enforced only where Flock's rule proxy runs (docker, podman); on HF
267
  Sandboxes they are not.
268
  - **Not the paper's setup:** a message board instead of `message`/`read_messages` tools with
269
- notifications, the number in the environment instead of the prompt, an answer file instead of
270
- a `####` line, no example message, no token cost in the reward, and N = 1 is a solo control
271
- rather than a team.
 
28
 
29
  Each of the N agents holds one private integer from 1 to 99, written in English words
30
  ("seventy-three"). The team must list all N numbers in ascending order, keeping equal numbers
31
+ from different agents as separate entries. Each agent finds its number in its instruction,
32
  shares it on the board, reads the others', keeps one number per participant, writes
33
  `/app/answer.json` (a JSON array of N integers in ascending order) and stops. The team succeeds
34
  if any agent's answer is right. The instruction adapts the paper's (Appendix G) to the board and
 
37
  | | |
38
  | --- | --- |
39
  | Problems | 32 (the paper's held-out set size), each 16 integers drawn uniformly from 1 to 99, repeats allowed, from a fixed seed |
40
+ | Teams | 160: one per problem and team size N ∈ {1, 2, 4, 8, 16}, holding the problem's first N numbers, e.g. `agg-p07-n08` |
41
+ | Tasks | 992: one per slot of each team, `agg-p07-n08-s01` .. `-s08`, whose instruction states that slot's number |
42
  | Image | `python:3.12-slim`, prebuilt and public (no Dockerfile): HF Sandboxes, docker and podman |
43
  | Agent / verifier timeout | 1800 s / 60 s |
44
  | Resources | 1 CPU, 1 GB memory per agent |
45
 
46
  ```text
47
+ tasks/agg-pPP-nNN-sKK/ slot K of team agg-pPP-nNN (zero-padded: name order is slot order)
48
+ instruction.md "Your private number is ...": slot K's, and no other
49
  task.toml
50
+ tests/test.sh the grader, the same for every slot of the team
51
+ tests/expected.json the team's answer: copied in only after the agent is done
52
  solution/solve.sh an oracle with its own copy of the answer
 
 
 
 
53
  flock/
54
  spec.template.yaml what every team's Flock run shares: model, board rules, loop, limits
55
  team.py writes one team's spec (docker, HF Sandboxes or the HF cluster)
56
  sweep/ the scaling sweep on the HF cluster (flock/sweep/README.md)
57
  eval/metrics.py one row per team from Flock run directories
58
  problems.json the 32 problems
59
+ generate.py writes problems.json and tasks/ from its seed (115)
60
  check.py the checks that need no model
61
  ```
62
 
63
+ **Private numbers** reach each agent only through its own task. Flock runs a team with the
64
+ selector `agg-pPP-nNN-s*`, `agents.count: N` and `naming: consecutive-id`: the selector matches
65
+ the team's N slots, sorted by name, and `agent-00K` runs slot K's task, so its instruction
66
+ holds its own number and no one else's. A task folder puts nothing in the container while the
67
+ agent works (no `environment/`; `tests/` arrives after the agent is done), so no agent can read
68
+ another agent's number until that agent posts it.
 
 
69
 
70
  ## Reward
71
 
 
86
  ## Run it with Flock
87
 
88
  Flock's [`experiments/s3-aggregation/spec.yaml`](https://github.com/huggingface/flock/tree/main/experiments/s3-aggregation)
89
+ runs one team on HF Sandboxes (`TEAM`, default `agg-p01-n04`, with `N` its size) at the revision
90
+ it pins: `uv run flock launch experiments/s3-aggregation/spec.yaml`. Its board is a public Space
91
+ for the run: delete it afterwards.
 
 
 
 
92
 
93
  For any other team or place, `flock/team.py` writes the spec from `flock/spec.template.yaml`,
94
  run from Flock's checkout. **Needs** `HF_TOKEN`, which reads the private dataset (and starts the
 
188
  uv run check.py --env none --run RUN_DIR # also a Flock run of a team (below)
189
  ```
190
 
191
+ 1. **Generator:** `generate.py` reproduces `problems.json` and `tasks/` byte for byte; another
192
+ seed gives other problems; 32 problems of 16 integers in 1..99; the words read back to their
193
+ numbers; each team has one task per slot, whose answer is the problem's first N numbers
194
+ sorted and whose instruction states that slot's number, and name order is slot order.
195
  2. **Graders**, run as Harbor runs them (`tests/` copied in after the agent is done, through
196
+ any link the agent left), on slot 1 of each team (every slot's `tests/` and `solution/` are
197
+ the same, which this checks): on all 160 teams the oracle scores 1, and wrong, partial,
198
+ padded, unsorted and duplicate-dropping answers score 0. On one team per size, twelve kinds
199
+ of malformed answer score 0, and so do sixteen cheats: the answer as a symlink to the tests'
200
  `expected.json` (dangling until the tests arrive; absolute or relative), a symlink or a
201
  hardlink to a right answer elsewhere, a hardlink to `expected.json`, a symlinked `/app` (to a
202
  right answer, or into the tests' folder), an `expected.json` planted as a link to the answer,
 
204
  to read any answer as right: a `json.py` in the grader's working directory or on
205
  `PYTHONPATH`, a `sitecustomize` on `PYTHONPATH`, a `usercustomize` or a `.pth` file in the user
206
  site, and a `dirname` shadowed on the `PATH` that points `expected.json` at the agent's file.
207
+ 3. **No-cheat, in the files:** a task folder holds only its five files; its instruction states
208
+ its own slot's number on one line and is otherwise the same for every task of its team size,
209
+ so it holds no teammate's number; the answer is only in `tests/` and `solution/`; and no
210
+ folder beside `tasks/` holds numbers.
211
+ 4. **No-cheat, from inside Trials** of team `agg-p01-n16`, with probe agents (no model): sixteen
212
+ probes, one in each slot's task, look around the container while "the agent works": every
213
+ file, every process's environment and command line, and the instruction. Each finds its own
214
+ number only in its instruction, and no teammate's number, no `tests/` or `solution/` and no
215
+ file holding the answer anywhere; then it writes the answer, the same search finds it (a
216
+ control), and the task's verifier scores it 1. Four more leave a cheat with a wrong answer,
217
+ and the verifier scores each 0: `/app/answer.json` as a symlink to `/tests/expected.json`;
218
+ `/app` as a symlink into a `/tests` they made; a `json.py` that reads any answer as right
219
+ wherever the verifier may start; a `sitecustomize` in site-packages that does the same.
220
+ 5. **No-cheat, a Flock run** (`--run RUN_DIR`, a local run's `.flock/<swarm>-<time>/`): each
221
+ agent's first prompt (its task's instruction and Flock's) holds its own number and no
222
+ teammate's; the first tool output in which an agent sees a teammate's number is a board read,
223
+ after that teammate posted it; and the first post holding each number is its owner's. A
224
+ number counts in words and in digits where they read as a held number: an array of the
225
+ team's integers (the JSON answer, or part of it), an agent's number in a mapping
226
+ (`"agent-002": 26`) or a stated number (`number is 26`); bare ids, counts and timestamps
227
+ don't. The audit itself runs on synthetic runs every time: a clean one, and one whose ids
228
+ and timestamps hold the team's numbers, pass; a teammate's number in words, the JSON answer,
229
+ a mapping or a stated number in the first prompt or in a non-board output before the board
230
+ fail, and so does a number first posted by an agent that doesn't hold it.
 
 
 
 
231
 
232
  `--env` takes a Harbor environment type or an import path. Harbor 0.25.0's `hf-sandbox` uploads
233
  `tests/` with the host's file owner, which a sandbox can't take when the host's uid is over
 
240
 
241
  - **Private for now**, so whatever resolves and downloads the task (Flock's worker, which then
242
  uploads it into the sandbox) needs a Hub token that can read it. The sandboxes never do.
243
+ - **A team needs one agent per slot.** Each slot's task is one agent's view: run a team's N
244
+ slots together on one board (Flock's selector `agg-pPP-nNN-s*` with `agents.count: N`), or a
245
+ task alone is an agent whose teammates never post.
246
  - **The grader can't see the board:** an agent could guess or copy a wrong number and still be
247
  scored only on its file. The board export in the run directory shows what was said.
248
  - **The verifier runs in the agent's container**, as in every Harbor task. The grader closes the
 
255
  - **Board rules** are enforced only where Flock's rule proxy runs (docker, podman); on HF
256
  Sandboxes they are not.
257
  - **Not the paper's setup:** a message board instead of `message`/`read_messages` tools with
258
+ notifications, an answer file instead of a `####` line, no example message, no token cost in
259
+ the reward, and N = 1 is a solo control rather than a team.
 
check.py CHANGED
@@ -7,39 +7,35 @@
7
  uv run check.py # all of them; the Trials run on HF Sandboxes (HF_TOKEN)
8
  uv run check.py --env docker # the Trials in local docker instead
9
  uv run check.py --env none # skip the Trials
10
- uv run check.py --run RUN_DIR # also a Flock run of a team (group 6)
11
-
12
- 1. Generator: generate.py reproduces problems.json, tasks/ and resources/numbers.json byte for
13
- byte from its seed; another seed gives other problems; 32 problems of 16 integers in 1..99;
14
- the English words read back to their numbers; each task's team is its problem's first N
15
- numbers, and numbers.json gives agent-00k the k-th.
16
- 2. Graders, run as Harbor runs them (tests/ copied in after the agent is done): on every task,
17
- the oracle (solution/solve.sh) scores 1, and a wrong, partial, padded, unsorted or
18
- duplicate-dropping answer scores 0. On one task per team size, malformed answers (missing,
19
- empty, not JSON, NaN, an object, strings, words, floats, booleans, nested, a "####" prefix,
20
- invalid UTF-8) and cheats score 0: the answer as a symlink to the tests' expected.json
21
- (dangling until the tests arrive, absolute or relative), a symlink or a hardlink to a right
22
- answer elsewhere, a hardlink to expected.json, a symlinked /app (to a right answer, or to the
23
- tests' folder), an expected.json planted as a link to the answer before the tests arrive, a
24
- directory and a FIFO (which must not hang the grader); and a wrong answer with Python made to
25
- read any answer as right: a json.py in the grader's working directory or on PYTHONPATH, a
26
- sitecustomize on PYTHONPATH, a usercustomize or a .pth file in the user site
27
- (PYTHONUSERBASE), and a `dirname` shadowed on the PATH that points expected.json at the
28
- agent's own file.
29
  3. No-cheat, in the files: a task folder holds only instruction.md, task.toml, tests/ and
30
- solution/; its instruction is the same for every problem of its team size; the answer is only
31
- in tests/ and solution/; resources/ holds only private_number.py, numbers.json and the board.
32
- 4. No-cheat, the resource: for every task and agent, private_number binds that agent's own
33
- number as PRIVATE_NUMBER and nothing else, with no teammate's number in the binding or the
34
- metadata, and exports nothing; a team of the wrong size, an unknown or missing task, an
35
- unknown option and an agent off the team are refused.
36
- 5. No-cheat, from inside Trials (`--env`), on `agg-p01-n16`, with probe agents (no model):
37
- - one per agent, with exactly the environment private_number binds for it (as Flock's Pi
38
- runs with it), looks around the container while "the agent works": no tests/ or solution/,
39
- no file holding the answer or a teammate's hyphenated number word, no process whose
40
- environment or command line holds a teammate's number, no number in the instruction, and
41
- its own number in its environment (a control); then it writes the answer, the same search
42
- finds it (a control), and the task's own verifier scores it 1;
43
  - the others leave a cheat with a wrong answer: /app/answer.json as a symlink to
44
  /tests/expected.json; a symlinked /app into a /tests they made; a json.py that reads any
45
  answer as right wherever the verifier may start; a sitecustomize in site-packages that
@@ -47,18 +43,19 @@
47
  `--env` takes a Harbor environment type or an import path. Harbor 0.25.0's hf-sandbox
48
  uploads tests/ with the host's file owner, which a sandbox can't take when the host's uid is
49
  over 65535 (some clusters): use flock's `--env flock.harbor.envs:HFSandbox` there.
50
- 6. No-cheat, a Flock run (`--run`, a local run's directory with its agents' event streams and
51
- the board export): no system prompt or first prompt holds a number of the team; the first
52
- output in which an agent sees a teammate's number is a board read, or a later prompt (a
53
- wake-up quoting the board); the first post holding each number is its owner's; and each
54
- agent read its own number outside the board. A number counts in words ("twenty-six") and in
55
- digits where they read as a held number: an array of the team's integers (the JSON answer,
56
- or part of it), an agent's number in a mapping (`"agent-002": 26`) and a stated number
57
- (`number is 26`); bare ids, counts and timestamps don't. The audit itself is checked on
58
- synthetic runs, always: a clean one and one whose ids and timestamps hold the team's numbers
59
- pass, and each leak fails (words, the JSON answer, a mapping and a stated number, in the first
60
- prompt or in a non-board output before the board, and a number first posted by an agent that
61
- doesn't hold it).
 
62
  """
63
 
64
  import argparse
@@ -81,9 +78,8 @@ import generate as g # noqa: E402
81
 
82
  TASK_FILES = {"instruction.md", "task.toml", "tests/test.sh", "tests/expected.json",
83
  "solution/solve.sh"}
84
- NUMBERS_JSON = "resources/numbers.json"
85
- RESOURCE_FILES = {"private_number.py", "numbers.json", "message_board.py"}
86
- PROBE_TASK = "agg-p01-n16"
87
  failures: list[str] = []
88
 
89
 
@@ -95,7 +91,7 @@ def check(ok: bool, what: str) -> None:
95
  def files(root: Path) -> dict[str, bytes]:
96
  """Relative path -> bytes for the generated files under root (not their modes: a download
97
  from the Hub has none, and Harbor runs the scripts with bash)."""
98
- out = {name: (root / name).read_bytes() for name in ("problems.json", NUMBERS_JSON)}
99
  for path in sorted((root / "tasks").rglob("*")):
100
  if path.is_file():
101
  out[str(path.relative_to(root))] = path.read_bytes()
@@ -112,6 +108,19 @@ def read_words(text: str) -> int:
112
  return VALUES[head] + (VALUES[tail] if tail else 0)
113
 
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  def check_generator() -> None:
116
  with tempfile.TemporaryDirectory() as d:
117
  g.generate(Path(d))
@@ -124,23 +133,26 @@ def check_generator() -> None:
124
  "not 32 problems of 16 integers in 1..99")
125
  check(all(read_words(g.words(n)) == n for n in range(1, 100))
126
  and len({g.words(n) for n in range(1, 100)}) == 99, "the English words are wrong")
127
- names = set()
128
- held = json.loads((HERE / NUMBERS_JSON).read_text())
129
  for p, numbers in enumerate(drawn, 1):
130
  for n in g.SIZES:
131
- name = g.task_name(p, n)
132
- names.add(name)
133
  team = numbers[:n]
134
- expected = json.loads((HERE / "tasks" / name / "tests" / "expected.json").read_text())
135
- check(expected == sorted(team), f"{name}: expected.json is not the first {n} sorted")
136
- agents = held.get(name, {})
137
- check(list(agents) == [f"agent-{k:03d}" for k in range(1, n + 1)],
138
- f"{name}: numbers.json does not name agent-001 .. agent-{n:03d}")
139
- for slot, (agent, number) in enumerate(zip(agents, team, strict=False), 1):
140
- check(read_words(agents[agent]) == number,
141
- f"{name}: {agent} does not hold slot {slot}'s number")
142
- check({p.name for p in (HERE / "tasks").iterdir()} == names, "tasks/ has other folders")
143
- check(set(held) == names, "numbers.json has other teams")
 
 
 
 
 
 
144
 
145
 
146
  def grade(task: Path, answer: bytes | None = None, cheat=None) -> int:
@@ -303,7 +315,11 @@ def cheats(task: Path) -> dict:
303
 
304
  def check_graders() -> dict[str, int]:
305
  covered: dict[str, int] = {}
306
- for task in sorted((HERE / "tasks").iterdir()):
 
 
 
 
307
  team = json.loads((task / "tests" / "expected.json").read_text())
308
  check(oracle(task) == 1, f"{task.name}: the oracle does not score 1")
309
  cases = {k: (json.dumps(v).encode(), None) for k, v in wrong_answers(team).items()}
@@ -322,20 +338,25 @@ def check_files() -> None:
322
  for task in sorted((HERE / "tasks").iterdir()):
323
  listed = {str(p.relative_to(task)) for p in task.rglob("*") if p.is_file()}
324
  check(listed == TASK_FILES, f"{task.name}: holds {sorted(listed ^ TASK_FILES)}")
325
- n = int(task.name.split("-n")[1])
326
- problem = int(task.name.split("-p")[1][:2])
327
  toml = (task / "task.toml").read_text().replace(task.name, "TASK").replace(
328
- f"problem = {problem}\n", "problem = P\n")
329
- by_size.setdefault(n, set()).add(((task / "instruction.md").read_text(), toml))
 
 
 
 
330
  answer = (task / "tests" / "expected.json").read_text().strip()
331
  holders = {str(p.relative_to(task)) for p in task.rglob("*")
332
  if p.is_file() and answer in p.read_text()}
333
  check(holders == {"tests/expected.json", "solution/solve.sh"},
334
  f"{task.name}: the answer is in {sorted(holders)}")
335
  check(all(len(v) == 1 for v in by_size.values()),
336
- "an instruction or task.toml differs between problems of one team size")
337
- listed = {p.name for p in (HERE / "resources").iterdir() if p.name != "__pycache__"}
338
- check(listed == RESOURCE_FILES, f"resources/ holds {sorted(listed ^ RESOURCE_FILES)}")
 
339
 
340
 
341
  def holds(text: str, words) -> set[str]:
@@ -343,67 +364,6 @@ def holds(text: str, words) -> set[str]:
343
  return {w for w in words if re.search(rf"(?<![A-Za-z-]){re.escape(w)}(?![A-Za-z-])", text)}
344
 
345
 
346
- def private_number():
347
- """resources/private_number.py, as Flock's worker loads it (by path)."""
348
- import importlib.util
349
-
350
- spec = importlib.util.spec_from_file_location("_s3_private_number",
351
- HERE / "resources" / "private_number.py")
352
- module = importlib.util.module_from_spec(spec)
353
- spec.loader.exec_module(module)
354
- return module
355
-
356
-
357
- def check_resource() -> int:
358
- """private_number binds each agent's own number and nothing else, for every task and
359
- agent; returns how many bindings it checked."""
360
- module, held = private_number(), json.loads((HERE / NUMBERS_JSON).read_text())
361
- checked = 0
362
- with tempfile.TemporaryDirectory() as d:
363
- for task, agents in held.items():
364
- resource = module.Resource({"team": task}, state_dir=Path(d) / task,
365
- agents=list(agents), secrets=[])
366
-
367
- async def lifecycle(resource=resource, d=d, task=task):
368
- await resource.start()
369
- exported = await resource.export(Path(d))
370
- await resource.stop()
371
- return exported
372
-
373
- check(asyncio.run(lifecycle()) == {} and not any(Path(d).iterdir()),
374
- f"{task}: the resource exports something")
375
- check(not holds(json.dumps(resource.metadata), set(agents.values())),
376
- f"{task}: the resource's metadata holds a number")
377
- for agent, own in agents.items():
378
- binding = resource.bind(agent)
379
- checked += 1
380
- check(binding == {"env": {"PRIVATE_NUMBER": own}},
381
- f"{task}: {agent}'s binding is {binding}")
382
- others = {w for w in agents.values() if w != own}
383
- check(not holds(json.dumps(binding), others),
384
- f"{task}: {agent}'s binding holds a teammate's number")
385
- refused = {
386
- "a team of the wrong size": ({"team": "agg-p01-n08"}, [f"agent-{k:03d}" for k in (1, 2)]),
387
- "an unknown task": ({"team": "agg-p99-n04"}, ["agent-001"]),
388
- "no task": ({}, ["agent-001"]),
389
- "an unknown option": ({"team": "agg-p01-n01", "numbers": [1]}, ["agent-001"]),
390
- }
391
- for what, (options, agents) in refused.items():
392
- try:
393
- module.Resource(options, state_dir=None, agents=agents, secrets=[])
394
- check(False, f"the resource takes {what}")
395
- except ValueError:
396
- pass
397
- resource = module.Resource({"team": "agg-p01-n02"}, state_dir=None,
398
- agents=["agent-001", "agent-002"], secrets=[])
399
- try:
400
- resource.bind("agent-003")
401
- check(False, "the resource binds an agent that isn't on the team")
402
- except ValueError:
403
- pass
404
- return checked
405
-
406
-
407
  # Runs in the container as `python3 -c PROBE_PY <base64 config>`, so it holds no number word
408
  # itself: its own command line is searched too. In files it looks for the teammates' hyphenated
409
  # number words (a bare single-digit word is in many system files) and the answer.
@@ -488,15 +448,13 @@ try:
488
  from harbor.agents.base import BaseAgent
489
 
490
  class Probe(BaseAgent):
491
- """No model. `mode` answer: with exactly the environment `private_number` binds for
492
- its agent (`env`, as Flock's Pi runs with it), looks around the container as that agent
493
- could while it works, writes `probe.json` in its logs dir on the host, then the answer
494
- for the verifier. Any other mode: leaves that cheat (CHEATS) instead."""
495
 
496
- def __init__(self, *args, mode="answer", env=None, own="", others=(), answer="",
497
- **kwargs):
498
  super().__init__(*args, **kwargs)
499
- self.mode, self.bound, self.answer = mode, env or {}, answer
500
  self.own, self.others = own, list(others)
501
 
502
  @staticmethod
@@ -504,7 +462,7 @@ try:
504
  return "s3-aggregation-probe"
505
 
506
  def version(self) -> str:
507
- return "3"
508
 
509
  async def setup(self, environment) -> None:
510
  pass
@@ -520,7 +478,7 @@ try:
520
  encoded = base64.b64encode(json.dumps(
521
  {"own": self.own, "others": self.others, "answer": self.answer}).encode()).decode()
522
  result = await environment.exec(f"python3 -c {shlex.quote(PROBE_PY)} {encoded}",
523
- env=self.bound, timeout_sec=600)
524
  line = next((x for x in (result.stdout or "").splitlines()
525
  if x.startswith("PROBE ")), None)
526
  found = json.loads(line.removeprefix("PROBE ")) if line else {}
@@ -532,9 +490,9 @@ except ImportError: # `--env none` needs no Harbor
532
  Probe = None
533
 
534
 
535
- async def run_trial(env: str, jobs: Path, mode: str, kwargs: dict,
536
  name: str = "") -> tuple[dict | None, dict]:
537
- """One Trial of PROBE_TASK with the probe in `mode`: (its probe.json, rewards and error)."""
538
  from harbor.models.trial.config import (
539
  AgentConfig,
540
  EnvironmentConfig,
@@ -548,7 +506,7 @@ async def run_trial(env: str, jobs: Path, mode: str, kwargs: dict,
548
  if ":" in env else
549
  EnvironmentConfig(type=env, kwargs=sandbox if env == "hf-sandbox" else {}))
550
  config = TrialConfig(
551
- task=TaskConfig(path=HERE / "tasks" / PROBE_TASK), trial_name=f"probe-{name or mode}",
552
  trials_dir=jobs, environment=environment,
553
  agent=AgentConfig(import_path="__main__:Probe", kwargs={"mode": mode, **kwargs}))
554
  result = await (await Trial.create(config)).run()
@@ -560,26 +518,24 @@ async def run_trial(env: str, jobs: Path, mode: str, kwargs: dict,
560
 
561
 
562
  async def check_trials(env: str, jobs: Path) -> dict:
563
- task = HERE / "tasks" / PROBE_TASK
564
- team = json.loads((HERE / NUMBERS_JSON).read_text())[PROBE_TASK]
565
- answer = (task / "tests" / "expected.json").read_text().strip()
566
- resource = private_number().Resource({"team": PROBE_TASK}, state_dir=None,
567
- agents=list(team), secrets=[])
568
- probes = {agent: {"env": resource.bind(agent)["env"], "own": own, "answer": answer,
569
  "others": sorted({w for w in team.values() if w != own})}
570
  for agent, own in team.items()}
571
  gate = asyncio.Semaphore(10) # sandboxes at once
572
 
573
- async def one(mode, kwargs, name=""):
574
  async with gate:
575
- return await run_trial(env, jobs, mode, kwargs, name)
576
 
577
  runs = await asyncio.gather(
578
- *(one("answer", kwargs, agent) for agent, kwargs in probes.items()),
579
- *(one(mode, {}) for mode in CHEATS))
580
  report = {}
581
  for (agent, kwargs), (probe, graded) in zip(probes.items(), runs[:len(probes)], strict=True):
582
- what = f"Trial {agent}"
583
  ran = probe is not None and probe.get("return_code") == 0 and "files" in probe
584
  check(ran, f"{what}: the probe did not run ({graded['error']})")
585
  if ran:
@@ -591,17 +547,16 @@ async def check_trials(env: str, jobs: Path) -> dict:
591
  f"number: {probe['env']}")
592
  check(not probe["cmdline"], f"{what}: a command line holds a teammate's number: "
593
  f"{probe['cmdline']}")
594
- check(not probe["instruction_holds"],
595
- f"{what}: the instruction holds {probe['instruction_holds']}")
596
- check(any(x.endswith(":PRIVATE_NUMBER") for x in probe["own_env"]),
597
- f"{what}: its own number is not in its environment ({probe['own_env']})")
598
  check("/app/answer.json" in probe["control"],
599
  f"{what}: the search did not find the written answer ({probe['control']})")
600
  check(graded["rewards"] == {"reward": 1.0},
601
  f"{what}: the verifier gave the answer {graded['rewards']} ({graded['error']})")
602
- report[agent] = {"own_env": probe and probe.get("own_env"),
603
- "processes": probe and probe.get("processes"),
604
- "teammates": len(kwargs["others"]), **graded}
605
  for mode, (left, result) in zip(CHEATS, runs[len(probes):], strict=True):
606
  check(left is not None and left["return_code"] == 0, f"Trial: cheat {mode} not left")
607
  check(result["rewards"] == {"reward": 0.0},
@@ -641,16 +596,16 @@ def given_away(text: str, team: dict[str, str]) -> set[int]:
641
 
642
  def audit_run(run: Path) -> tuple[list[str], dict]:
643
  """(problems, report) for a Flock run of one team (a local run's `.flock/<swarm>-<time>/`):
644
- no prompt Flock gave an agent holds a number of the team; the first output in which an agent
645
- sees a teammate's number is a board read (or a wake-up that quotes the board), and the first
646
- post holding each number is its owner's; each agent read its own number from its
647
- environment. A number counts as words or as digits (given_away)."""
648
  problems = []
649
  spec = json.loads((run / "run.json").read_text())["spec"]
650
  harbor = next(t["harbor"] for t in spec["types"].values() if t.get("harbor"))
651
- task = harbor["config"]["task"]["selector"]
652
- team = json.loads((HERE / NUMBERS_JSON).read_text())[task]
653
- held = {agent: read_words(word) for agent, word in team.items()}
654
  boards = sorted(run.rglob("resources/message_board/board.jsonl"))
655
  if len(boards) != 1:
656
  problems.append(f"run {run.name}: {len(boards)} board exports")
@@ -662,7 +617,7 @@ def audit_run(run: Path) -> tuple[list[str], dict]:
662
  for number in given_away(post["body"], team):
663
  first.setdefault(number, post["sender"]["external_id"])
664
  for number, who in first.items():
665
- if held.get(who) != number:
666
  problems.append(f"run {run.name}: {number} was first posted by {who}")
667
  report = {"task": task, "posts": len(posts), "first_posts": first}
668
  for agent, own in team.items():
@@ -670,8 +625,8 @@ def audit_run(run: Path) -> tuple[list[str], dict]:
670
  if not path.is_file():
671
  problems.append(f"run {run.name}: no event stream for {agent}")
672
  continue
673
- others = set(held.values()) - {held[agent]}
674
- seen, calls, prompts, read_own = set(), {}, 0, False
675
  for line in path.read_text().splitlines():
676
  event = json.loads(line) if line.strip() else {}
677
  message = event.get("message") or {}
@@ -684,8 +639,9 @@ def audit_run(run: Path) -> tuple[list[str], dict]:
684
  calls[part.get("id")] = json.dumps(part.get("arguments") or {})
685
  elif role in ("system", "user"):
686
  if role == "system" or prompts == 0: # what Flock and the task tell the agent
687
- if given := given_away(text, team):
688
  problems.append(f"run {agent}: its {role} prompt holds {sorted(given)}")
 
689
  else: # a later prompt may quote the board (a wake-up on a mention)
690
  seen |= given_away(text, team) & others
691
  prompts += role == "user"
@@ -696,10 +652,9 @@ def audit_run(run: Path) -> tuple[list[str], dict]:
696
  problems.append(f"run {agent}: first saw {sorted(new)} in the output of "
697
  f"{command[:120]}")
698
  seen |= new
699
- read_own |= own in holds(text, {own}) and "message_board" not in command
700
- if not read_own:
701
- problems.append(f"run {agent}: never read its own number")
702
- report[agent] = {"saw": len(seen), "read_own": read_own}
703
  return problems, report
704
 
705
 
@@ -714,15 +669,16 @@ AUDIT_TEAM = "agg-p01-n04"
714
 
715
  def synthetic_run(root: Path, prompt: str = "", output: str = "",
716
  poster: dict | None = None) -> Path:
717
- """A local run directory of AUDIT_TEAM as Flock leaves it, whose agents behave: each reads
718
- its number, posts it, reads the board. `prompt` joins agent-001's first prompt, `output` is
719
  a non-board command's output it gets before it reads the board, and `poster` posts a number
720
- in another agent's name first (agent -> number)."""
721
- team = json.loads((HERE / NUMBERS_JSON).read_text())[AUDIT_TEAM]
 
722
  run = root / f"run-{len(list(root.iterdir()))}"
723
  (run / "agents" / "_sessions").mkdir(parents=True)
724
  (run / "run.json").write_text(json.dumps({"spec": {"types": {"agent": {"harbor": {
725
- "config": {"task": {"selector": AUDIT_TEAM}}}}}}}))
726
  board = run / "agents" / "_harbor" / "_worker" / "resources" / "message_board"
727
  board.mkdir(parents=True)
728
  lines = [f"{who}: my number is {g.words(number)} ({number})"
@@ -733,7 +689,6 @@ def synthetic_run(root: Path, prompt: str = "", output: str = "",
733
  "seq": k, "created_at": 1000.0 + k, "body": body, "sender": {"external_id": who}}})
734
  for k, (who, body) in enumerate(zip(senders, lines, strict=True), 1)]
735
  (board / "board.jsonl").write_text("\n".join(board_lines) + "\n")
736
- instruction = (HERE / "tasks" / AUDIT_TEAM / "instruction.md").read_text()
737
 
738
  def message(role, content, **extra):
739
  return json.dumps({"type": "message", "message": {"role": role, "content": content,
@@ -746,11 +701,11 @@ def synthetic_run(root: Path, prompt: str = "", output: str = "",
746
  def result(k, text):
747
  return message("toolResult", [{"type": "text", "text": text}], toolCallId=f"c{k}")
748
 
749
- for agent, word in team.items():
 
750
  events = [message("system", [{"type": "text", "text": "You are Pi."}]),
751
- message("user", [{"type": "text", "text": instruction + (
752
- prompt if agent == "agent-001" else "")}]),
753
- call(1, "echo $PRIVATE_NUMBER"), result(1, word)]
754
  if agent == "agent-001" and output:
755
  events += [call(2, "cat /tmp/notes.json"), result(2, output)]
756
  events += [call(3, "flock-tool message_board.read --json '{}'"),
@@ -764,7 +719,7 @@ def check_audit() -> int:
764
  the team's numbers pass, and each leak fails: words, the JSON answer, a mapping and a stated
765
  number, in the first prompt or a non-board output before the board; and a number first
766
  posted by an agent that doesn't hold it. Returns the cases checked."""
767
- team = json.loads((HERE / NUMBERS_JSON).read_text())[AUDIT_TEAM]
768
  numbers = [read_words(w) for w in team.values()] # agent-001's first
769
  answer = json.dumps(sorted(numbers))
770
  mapping = json.dumps({a: read_words(w) for a, w in team.items()})
@@ -807,25 +762,22 @@ def main() -> int:
807
  before = len(failures)
808
  check_files()
809
  print(f"3. no-cheat (files): {len(failures) - before} failures")
810
- before = len(failures)
811
- bindings = check_resource()
812
- print(f"4. no-cheat (resource): {len(failures) - before} failures; {bindings} bindings")
813
  if args.env != "none":
814
  before = len(failures)
815
  with tempfile.TemporaryDirectory() as d:
816
  jobs = args.jobs_dir or Path(d)
817
  jobs.mkdir(parents=True, exist_ok=True)
818
  report = asyncio.run(check_trials(args.env, jobs))
819
- print(f"5. no-cheat (Trials on {args.env}, {PROBE_TASK}): {len(failures) - before} "
820
  f"failures; {json.dumps(report)}")
821
  before = len(failures)
822
  cases = check_audit()
823
- print(f"6. no-cheat (the Flock-run audit on {cases} synthetic runs): "
824
  f"{len(failures) - before} failures")
825
  for run in args.run:
826
  before = len(failures)
827
  report = check_run(run)
828
- print(f"6. no-cheat (Flock run {run.name}): {len(failures) - before} failures; "
829
  f"{json.dumps(report)}")
830
  for failure in failures:
831
  print("FAIL:", failure)
 
7
  uv run check.py # all of them; the Trials run on HF Sandboxes (HF_TOKEN)
8
  uv run check.py --env docker # the Trials in local docker instead
9
  uv run check.py --env none # skip the Trials
10
+ uv run check.py --run RUN_DIR # also a Flock run of a team (group 5)
11
+
12
+ 1. Generator: generate.py reproduces problems.json and tasks/ byte for byte from its seed;
13
+ another seed gives other problems; 32 problems of 16 integers in 1..99; the English words
14
+ read back to their numbers; a team `agg-pPP-nNN` has one task per slot, `-sKK`, whose answer
15
+ is the problem's first N numbers sorted and whose instruction states slot K's number.
16
+ 2. Graders, run as Harbor runs them (tests/ copied in after the agent is done), on slot 1 of
17
+ every team (every slot's tests/ and solution/ are the same, which this checks): the oracle
18
+ (solution/solve.sh) scores 1, and a wrong, partial, padded, unsorted or duplicate-dropping
19
+ answer scores 0. On one team per size, malformed answers (missing, empty, not JSON, NaN, an
20
+ object, strings, words, floats, booleans, nested, a "####" prefix, invalid UTF-8) and cheats
21
+ score 0: the answer as a symlink to the tests' expected.json (dangling until the tests
22
+ arrive, absolute or relative), a symlink or a hardlink to a right answer elsewhere, a
23
+ hardlink to expected.json, a symlinked /app (to a right answer, or to the tests' folder), an
24
+ expected.json planted as a link to the answer before the tests arrive, a directory and a FIFO
25
+ (which must not hang the grader); and a wrong answer with Python made to read any answer as
26
+ right: a json.py in the grader's working directory or on PYTHONPATH, a sitecustomize on
27
+ PYTHONPATH, a usercustomize or a .pth file in the user site (PYTHONUSERBASE), and a
28
+ `dirname` shadowed on the PATH that points expected.json at the agent's own file.
29
  3. No-cheat, in the files: a task folder holds only instruction.md, task.toml, tests/ and
30
+ solution/; its instruction states its own slot's number on one line and is otherwise the same
31
+ for every task of its team size, so it holds no teammate's number; the answer is only in
32
+ tests/ and solution/; and there is no folder beside tasks/ that holds numbers.
33
+ 4. No-cheat, from inside Trials (`--env`), on team `agg-p01-n16`, with probe agents (no model):
34
+ - one per slot, each in its own slot's task, looks around the container while "the agent
35
+ works": no tests/ or solution/, no file holding the answer or a teammate's hyphenated number
36
+ word, no process whose environment or command line holds a teammate's number, and its
37
+ instruction holds its own number and no teammate's; then it writes the answer, the same
38
+ search finds it (a control), and the task's own verifier scores it 1;
 
 
 
 
39
  - the others leave a cheat with a wrong answer: /app/answer.json as a symlink to
40
  /tests/expected.json; a symlinked /app into a /tests they made; a json.py that reads any
41
  answer as right wherever the verifier may start; a sitecustomize in site-packages that
 
43
  `--env` takes a Harbor environment type or an import path. Harbor 0.25.0's hf-sandbox
44
  uploads tests/ with the host's file owner, which a sandbox can't take when the host's uid is
45
  over 65535 (some clusters): use flock's `--env flock.harbor.envs:HFSandbox` there.
46
+ 5. No-cheat, a Flock run (`--run`, a local run's directory with its agents' event streams and
47
+ the board export; the team is the selector's `agg-pPP-nNN`, agent K on slot K): no system
48
+ prompt or first prompt holds a teammate's number, and each agent's first prompt holds its
49
+ own; the first output in which an agent sees a teammate's number is a board read, or a later
50
+ prompt (a wake-up quoting the board); and the first post holding each number is its owner's.
51
+ A number counts in words ("twenty-six") and in digits where they read as a held number: an
52
+ array of the team's integers (the JSON answer, or part of it), an agent's number in a
53
+ mapping (`"agent-002": 26`) and a stated number (`number is 26`); bare ids, counts and
54
+ timestamps don't. The audit itself is checked on synthetic runs, always: a clean one and one
55
+ whose ids and timestamps hold the team's numbers pass, and each leak fails (a teammate's
56
+ number in words, the JSON answer, a mapping and a stated number, in the first prompt or in a
57
+ non-board output before the board, and a number first posted by an agent that doesn't hold
58
+ it).
59
  """
60
 
61
  import argparse
 
78
 
79
  TASK_FILES = {"instruction.md", "task.toml", "tests/test.sh", "tests/expected.json",
80
  "solution/solve.sh"}
81
+ PROBE_TEAM = "agg-p01-n16"
82
+ NUMBER_LINE = re.compile(r"^Your private number is ([a-z-]+)\.$", re.MULTILINE)
 
83
  failures: list[str] = []
84
 
85
 
 
91
  def files(root: Path) -> dict[str, bytes]:
92
  """Relative path -> bytes for the generated files under root (not their modes: a download
93
  from the Hub has none, and Harbor runs the scripts with bash)."""
94
+ out = {"problems.json": (root / "problems.json").read_bytes()}
95
  for path in sorted((root / "tasks").rglob("*")):
96
  if path.is_file():
97
  out[str(path.relative_to(root))] = path.read_bytes()
 
108
  return VALUES[head] + (VALUES[tail] if tail else 0)
109
 
110
 
111
+ def team_of(task: str) -> tuple[int, int]:
112
+ """(problem, N) of a task or team name, `agg-pPP-nNN[-sKK]`."""
113
+ m = re.match(r"agg-p(\d\d)-n(\d\d)", task)
114
+ return int(m[1]), int(m[2])
115
+
116
+
117
+ def held(team: str) -> dict[str, str]:
118
+ """A team's agents (Flock's consecutive names: agent K on slot K) and their numbers."""
119
+ problem, n = team_of(team)
120
+ numbers = json.loads((HERE / "problems.json").read_text())["problems"][f"p{problem:02d}"]
121
+ return {f"agent-{k:03d}": g.words(x) for k, x in enumerate(numbers[:n], 1)}
122
+
123
+
124
  def check_generator() -> None:
125
  with tempfile.TemporaryDirectory() as d:
126
  g.generate(Path(d))
 
133
  "not 32 problems of 16 integers in 1..99")
134
  check(all(read_words(g.words(n)) == n for n in range(1, 100))
135
  and len({g.words(n) for n in range(1, 100)}) == 99, "the English words are wrong")
136
+ names = []
 
137
  for p, numbers in enumerate(drawn, 1):
138
  for n in g.SIZES:
 
 
139
  team = numbers[:n]
140
+ for slot, number in enumerate(team, 1):
141
+ name = g.task_name(p, n, slot)
142
+ names.append(name)
143
+ task = HERE / "tasks" / name
144
+ expected = json.loads((task / "tests" / "expected.json").read_text())
145
+ check(expected == sorted(team), f"{name}: expected.json is not the first {n} sorted")
146
+ stated = NUMBER_LINE.findall((task / "instruction.md").read_text())
147
+ check(len(stated) == 1 and read_words(stated[0]) == number,
148
+ f"{name}: the instruction does not state slot {slot}'s number ({stated})")
149
+ check(sorted(p.name for p in (HERE / "tasks").iterdir()) == sorted(names),
150
+ "tasks/ has other folders")
151
+ for p, _ in enumerate(drawn, 1):
152
+ for n in g.SIZES:
153
+ slots = sorted(x for x in names if x.startswith(g.team_name(p, n) + "-"))
154
+ check(slots == [g.task_name(p, n, k) for k in range(1, n + 1)],
155
+ f"{g.team_name(p, n)}: its slots in name order are not slot order")
156
 
157
 
158
  def grade(task: Path, answer: bytes | None = None, cheat=None) -> int:
 
315
 
316
  def check_graders() -> dict[str, int]:
317
  covered: dict[str, int] = {}
318
+ for task in sorted((HERE / "tasks").glob("*-s01")): # slot 1 of every team
319
+ for other in sorted(task.parent.glob(task.name.removesuffix("-s01") + "-s*")):
320
+ check(all((other / f).read_bytes() == (task / f).read_bytes()
321
+ for f in ("tests/test.sh", "tests/expected.json", "solution/solve.sh")),
322
+ f"{other.name}: tests/ or solution/ differ from slot 1's")
323
  team = json.loads((task / "tests" / "expected.json").read_text())
324
  check(oracle(task) == 1, f"{task.name}: the oracle does not score 1")
325
  cases = {k: (json.dumps(v).encode(), None) for k, v in wrong_answers(team).items()}
 
338
  for task in sorted((HERE / "tasks").iterdir()):
339
  listed = {str(p.relative_to(task)) for p in task.rglob("*") if p.is_file()}
340
  check(listed == TASK_FILES, f"{task.name}: holds {sorted(listed ^ TASK_FILES)}")
341
+ problem, n = team_of(task.name)
342
+ slot = int(task.name.split("-s")[-1])
343
  toml = (task / "task.toml").read_text().replace(task.name, "TASK").replace(
344
+ f"problem = {problem}\n", "problem = P\n").replace(f"slot = {slot}\n", "slot = K\n")
345
+ text = (task / "instruction.md").read_text()
346
+ own = held(task.name)[f"agent-{slot:03d}"]
347
+ check(NUMBER_LINE.findall(text) == [own], f"{task.name}: its number line isn't its own")
348
+ generic = NUMBER_LINE.sub("Your private number is NUMBER.", text) # no other number
349
+ by_size.setdefault(n, set()).add((generic, toml))
350
  answer = (task / "tests" / "expected.json").read_text().strip()
351
  holders = {str(p.relative_to(task)) for p in task.rglob("*")
352
  if p.is_file() and answer in p.read_text()}
353
  check(holders == {"tests/expected.json", "solution/solve.sh"},
354
  f"{task.name}: the answer is in {sorted(holders)}")
355
  check(all(len(v) == 1 for v in by_size.values()),
356
+ "an instruction (but its number) or task.toml differs between tasks of one team size")
357
+ beside = {p.name for p in HERE.iterdir() if p.is_dir()} - {"tasks", "flock", "eval", ".cache",
358
+ "__pycache__", ".git"}
359
+ check(not beside, f"folders beside tasks/: {sorted(beside)}")
360
 
361
 
362
  def holds(text: str, words) -> set[str]:
 
364
  return {w for w in words if re.search(rf"(?<![A-Za-z-]){re.escape(w)}(?![A-Za-z-])", text)}
365
 
366
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
367
  # Runs in the container as `python3 -c PROBE_PY <base64 config>`, so it holds no number word
368
  # itself: its own command line is searched too. In files it looks for the teammates' hyphenated
369
  # number words (a bare single-digit word is in many system files) and the answer.
 
448
  from harbor.agents.base import BaseAgent
449
 
450
  class Probe(BaseAgent):
451
+ """No model. `mode` answer: in its slot's task, looks around the container as that
452
+ slot's agent could while it works, writes `probe.json` in its logs dir on the host, then
453
+ the answer for the verifier. Any other mode: leaves that cheat (CHEATS) instead."""
 
454
 
455
+ def __init__(self, *args, mode="answer", own="", others=(), answer="", **kwargs):
 
456
  super().__init__(*args, **kwargs)
457
+ self.mode, self.answer = mode, answer
458
  self.own, self.others = own, list(others)
459
 
460
  @staticmethod
 
462
  return "s3-aggregation-probe"
463
 
464
  def version(self) -> str:
465
+ return "4"
466
 
467
  async def setup(self, environment) -> None:
468
  pass
 
478
  encoded = base64.b64encode(json.dumps(
479
  {"own": self.own, "others": self.others, "answer": self.answer}).encode()).decode()
480
  result = await environment.exec(f"python3 -c {shlex.quote(PROBE_PY)} {encoded}",
481
+ timeout_sec=600)
482
  line = next((x for x in (result.stdout or "").splitlines()
483
  if x.startswith("PROBE ")), None)
484
  found = json.loads(line.removeprefix("PROBE ")) if line else {}
 
490
  Probe = None
491
 
492
 
493
+ async def run_trial(env: str, jobs: Path, mode: str, kwargs: dict, task: str,
494
  name: str = "") -> tuple[dict | None, dict]:
495
+ """One Trial of `task` with the probe in `mode`: (its probe.json, rewards and error)."""
496
  from harbor.models.trial.config import (
497
  AgentConfig,
498
  EnvironmentConfig,
 
506
  if ":" in env else
507
  EnvironmentConfig(type=env, kwargs=sandbox if env == "hf-sandbox" else {}))
508
  config = TrialConfig(
509
+ task=TaskConfig(path=HERE / "tasks" / task), trial_name=f"probe-{name or mode}",
510
  trials_dir=jobs, environment=environment,
511
  agent=AgentConfig(import_path="__main__:Probe", kwargs={"mode": mode, **kwargs}))
512
  result = await (await Trial.create(config)).run()
 
518
 
519
 
520
  async def check_trials(env: str, jobs: Path) -> dict:
521
+ team = held(PROBE_TEAM)
522
+ tasks = {agent: g.task_name(*team_of(PROBE_TEAM), int(agent[-3:])) for agent in team}
523
+ answer = (HERE / "tasks" / tasks["agent-001"] / "tests" / "expected.json").read_text().strip()
524
+ probes = {agent: {"own": own, "answer": answer,
 
 
525
  "others": sorted({w for w in team.values() if w != own})}
526
  for agent, own in team.items()}
527
  gate = asyncio.Semaphore(10) # sandboxes at once
528
 
529
+ async def one(mode, kwargs, task, name=""):
530
  async with gate:
531
+ return await run_trial(env, jobs, mode, kwargs, task, name)
532
 
533
  runs = await asyncio.gather(
534
+ *(one("answer", kwargs, tasks[agent], agent) for agent, kwargs in probes.items()),
535
+ *(one(mode, {}, tasks["agent-001"]) for mode in CHEATS))
536
  report = {}
537
  for (agent, kwargs), (probe, graded) in zip(probes.items(), runs[:len(probes)], strict=True):
538
+ what = f"Trial {tasks[agent]}"
539
  ran = probe is not None and probe.get("return_code") == 0 and "files" in probe
540
  check(ran, f"{what}: the probe did not run ({graded['error']})")
541
  if ran:
 
547
  f"number: {probe['env']}")
548
  check(not probe["cmdline"], f"{what}: a command line holds a teammate's number: "
549
  f"{probe['cmdline']}")
550
+ check(probe["instruction_holds"] == [kwargs["own"]],
551
+ f"{what}: the instruction holds {probe['instruction_holds']}, not just "
552
+ f"{kwargs['own']}")
 
553
  check("/app/answer.json" in probe["control"],
554
  f"{what}: the search did not find the written answer ({probe['control']})")
555
  check(graded["rewards"] == {"reward": 1.0},
556
  f"{what}: the verifier gave the answer {graded['rewards']} ({graded['error']})")
557
+ report[tasks[agent]] = {"instruction_holds": probe and probe.get("instruction_holds"),
558
+ "processes": probe and probe.get("processes"),
559
+ "teammates": len(kwargs["others"]), **graded}
560
  for mode, (left, result) in zip(CHEATS, runs[len(probes):], strict=True):
561
  check(left is not None and left["return_code"] == 0, f"Trial: cheat {mode} not left")
562
  check(result["rewards"] == {"reward": 0.0},
 
596
 
597
  def audit_run(run: Path) -> tuple[list[str], dict]:
598
  """(problems, report) for a Flock run of one team (a local run's `.flock/<swarm>-<time>/`):
599
+ no prompt Flock gave an agent holds a teammate's number, and its first prompt holds its own;
600
+ the first output in which an agent sees a teammate's number is a board read (or a wake-up
601
+ that quotes the board), and the first post holding each number is its owner's. A number
602
+ counts as words or as digits (given_away)."""
603
  problems = []
604
  spec = json.loads((run / "run.json").read_text())["spec"]
605
  harbor = next(t["harbor"] for t in spec["types"].values() if t.get("harbor"))
606
+ task = harbor["config"]["task"]["selector"] # agg-pPP-nNN-s*: agent K on slot K
607
+ team = held(task)
608
+ numbers = {agent: read_words(word) for agent, word in team.items()}
609
  boards = sorted(run.rglob("resources/message_board/board.jsonl"))
610
  if len(boards) != 1:
611
  problems.append(f"run {run.name}: {len(boards)} board exports")
 
617
  for number in given_away(post["body"], team):
618
  first.setdefault(number, post["sender"]["external_id"])
619
  for number, who in first.items():
620
+ if numbers.get(who) != number:
621
  problems.append(f"run {run.name}: {number} was first posted by {who}")
622
  report = {"task": task, "posts": len(posts), "first_posts": first}
623
  for agent, own in team.items():
 
625
  if not path.is_file():
626
  problems.append(f"run {run.name}: no event stream for {agent}")
627
  continue
628
+ others = set(numbers.values()) - {numbers[agent]}
629
+ seen, calls, prompts, got_own = set(), {}, 0, False
630
  for line in path.read_text().splitlines():
631
  event = json.loads(line) if line.strip() else {}
632
  message = event.get("message") or {}
 
639
  calls[part.get("id")] = json.dumps(part.get("arguments") or {})
640
  elif role in ("system", "user"):
641
  if role == "system" or prompts == 0: # what Flock and the task tell the agent
642
+ if given := given_away(text, team) & others:
643
  problems.append(f"run {agent}: its {role} prompt holds {sorted(given)}")
644
+ got_own |= role == "user" and own in holds(text, {own})
645
  else: # a later prompt may quote the board (a wake-up on a mention)
646
  seen |= given_away(text, team) & others
647
  prompts += role == "user"
 
652
  problems.append(f"run {agent}: first saw {sorted(new)} in the output of "
653
  f"{command[:120]}")
654
  seen |= new
655
+ if not got_own:
656
+ problems.append(f"run {agent}: its first prompt doesn't hold its own number")
657
+ report[agent] = {"saw": len(seen), "got_own": got_own}
 
658
  return problems, report
659
 
660
 
 
669
 
670
  def synthetic_run(root: Path, prompt: str = "", output: str = "",
671
  poster: dict | None = None) -> Path:
672
+ """A local run directory of AUDIT_TEAM as Flock leaves it, whose agents behave: each posts
673
+ its number and reads the board. `prompt` joins agent-001's first prompt, `output` is
674
  a non-board command's output it gets before it reads the board, and `poster` posts a number
675
+ in another agent's name first (agent -> number). Each agent's first prompt is its own slot's
676
+ instruction."""
677
+ team = held(AUDIT_TEAM)
678
  run = root / f"run-{len(list(root.iterdir()))}"
679
  (run / "agents" / "_sessions").mkdir(parents=True)
680
  (run / "run.json").write_text(json.dumps({"spec": {"types": {"agent": {"harbor": {
681
+ "config": {"task": {"selector": f"{AUDIT_TEAM}-s*"}}}}}}}))
682
  board = run / "agents" / "_harbor" / "_worker" / "resources" / "message_board"
683
  board.mkdir(parents=True)
684
  lines = [f"{who}: my number is {g.words(number)} ({number})"
 
689
  "seq": k, "created_at": 1000.0 + k, "body": body, "sender": {"external_id": who}}})
690
  for k, (who, body) in enumerate(zip(senders, lines, strict=True), 1)]
691
  (board / "board.jsonl").write_text("\n".join(board_lines) + "\n")
 
692
 
693
  def message(role, content, **extra):
694
  return json.dumps({"type": "message", "message": {"role": role, "content": content,
 
701
  def result(k, text):
702
  return message("toolResult", [{"type": "text", "text": text}], toolCallId=f"c{k}")
703
 
704
+ for agent in team:
705
+ own = HERE / "tasks" / f"{AUDIT_TEAM}-s{agent[-2:]}" / "instruction.md"
706
  events = [message("system", [{"type": "text", "text": "You are Pi."}]),
707
+ message("user", [{"type": "text", "text": own.read_text() + (
708
+ prompt if agent == "agent-001" else "")}])]
 
709
  if agent == "agent-001" and output:
710
  events += [call(2, "cat /tmp/notes.json"), result(2, output)]
711
  events += [call(3, "flock-tool message_board.read --json '{}'"),
 
719
  the team's numbers pass, and each leak fails: words, the JSON answer, a mapping and a stated
720
  number, in the first prompt or a non-board output before the board; and a number first
721
  posted by an agent that doesn't hold it. Returns the cases checked."""
722
+ team = held(AUDIT_TEAM)
723
  numbers = [read_words(w) for w in team.values()] # agent-001's first
724
  answer = json.dumps(sorted(numbers))
725
  mapping = json.dumps({a: read_words(w) for a, w in team.items()})
 
762
  before = len(failures)
763
  check_files()
764
  print(f"3. no-cheat (files): {len(failures) - before} failures")
 
 
 
765
  if args.env != "none":
766
  before = len(failures)
767
  with tempfile.TemporaryDirectory() as d:
768
  jobs = args.jobs_dir or Path(d)
769
  jobs.mkdir(parents=True, exist_ok=True)
770
  report = asyncio.run(check_trials(args.env, jobs))
771
+ print(f"4. no-cheat (Trials on {args.env}, {PROBE_TEAM}): {len(failures) - before} "
772
  f"failures; {json.dumps(report)}")
773
  before = len(failures)
774
  cases = check_audit()
775
+ print(f"5. no-cheat (the Flock-run audit on {cases} synthetic runs): "
776
  f"{len(failures) - before} failures")
777
  for run in args.run:
778
  before = len(failures)
779
  report = check_run(run)
780
+ print(f"5. no-cheat (Flock run {run.name}): {len(failures) - before} failures; "
781
  f"{json.dumps(report)}")
782
  for failure in failures:
783
  print("FAIL:", failure)
eval/metrics.py CHANGED
@@ -225,7 +225,7 @@ def row(run_dir: Path) -> dict:
225
  out = {
226
  "run": run_dir.name,
227
  "swarm": info["swarm"],
228
- "task": task.get("selector"),
229
  "dataset": task.get("repo"),
230
  "revision": task.get("revision"),
231
  "agents": len(team),
 
225
  out = {
226
  "run": run_dir.name,
227
  "swarm": info["swarm"],
228
+ "task": re.sub(r"-s\*$", "", task.get("selector") or "") or None, # a team's slots
229
  "dataset": task.get("repo"),
230
  "revision": task.get("revision"),
231
  "agents": len(team),
flock/spec.template.yaml CHANGED
@@ -1,25 +1,21 @@
1
  # s3-aggregation: N agents each hold a private number and list the team's numbers in ascending
2
- # order. The template of every team's spec: team.py fills in the team (TEAM), this dataset's
3
- # revision (REVISION) and resources folder (RESOURCES), and merges one of `where:` into it.
4
  # Don't launch this file; README.md.
5
  name: ${RUN_NAME:-TEAM} # team.py: the task's name
6
  model: Qwen/Qwen3.8-27B
7
- naming: consecutive-id # agent-001, ...: resources/numbers.json's names
8
  inference:
9
  hf_router:
10
  provider: deepinfra
11
  api_key_env: HF_INFERENCE_TOKEN # inference only: never the workers' HF_TOKEN
12
  task:
13
  repo: https://huggingface.co/datasets/HuggingFaceSwarms/s3-aggregation # private for now
14
- selector: TEAM # team.py: agg-pPP-nNN
15
  revision: REVISION # team.py: --revision, default the Hub's head
16
  agents:
17
  count: 1 # team.py: N
18
- resources_dir: RESOURCES # team.py: this checkout's resources/
19
  resources:
20
- # Each agent's own number in its environment (PRIVATE_NUMBER), and no one else's.
21
- private_number:
22
- team: TEAM
23
  # The board rules: identical for every eval run, since they shape how agents talk.
24
  # Enforced on docker and podman (each agent's rule proxy); on HF Sandboxes there is no proxy,
25
  # so they are not enforced and each Trial records a message_board.warning event.
 
1
  # s3-aggregation: N agents each hold a private number and list the team's numbers in ascending
2
+ # order. The template of every team's spec: team.py fills in the team (TEAM) and this dataset's
3
+ # revision (REVISION), and merges one of `where:` into it.
4
  # Don't launch this file; README.md.
5
  name: ${RUN_NAME:-TEAM} # team.py: the task's name
6
  model: Qwen/Qwen3.8-27B
7
+ naming: consecutive-id # agent-00K runs slot K's task (the K-th by name)
8
  inference:
9
  hf_router:
10
  provider: deepinfra
11
  api_key_env: HF_INFERENCE_TOKEN # inference only: never the workers' HF_TOKEN
12
  task:
13
  repo: https://huggingface.co/datasets/HuggingFaceSwarms/s3-aggregation # private for now
14
+ selector: TEAM-s* # one task per agent: agg-pPP-nNN-s01 ...
15
  revision: REVISION # team.py: --revision, default the Hub's head
16
  agents:
17
  count: 1 # team.py: N
 
18
  resources:
 
 
 
19
  # The board rules: identical for every eval run, since they shape how agents talk.
20
  # Enforced on docker and podman (each agent's rule proxy); on HF Sandboxes there is no proxy,
21
  # so they are not enforced and each Trial records a message_board.warning event.
flock/sweep/README.md CHANGED
@@ -72,7 +72,7 @@ is safe: in-flight teams keep running and are adopted.
72
  | Agents | Qwen3-0.6B trained with RL at N = 4, and its controls | `Qwen/Qwen3.5-27B` and `Qwen/Qwen3.5-2B`, not trained: one prompted condition each |
73
  | Harness | their asynchronous harness: `message(to, text)` and `read_messages()`, notifications that interrupt generation, idle until a message arrives | Pi in a container per agent, with flock's board tools (`flock-tool message_board.*`) through its shell; a shared `#general` channel, mentions and a long-poll `wait`; flock's loop prompts again at each turn's end |
74
  | Messages | to one teammate or broadcast | posts on a board every agent reads; private channels possible |
75
- | Private number | in the agent's prompt | in its environment (`PRIVATE_NUMBER`, from `resources/private_number.py`), read with a shell command |
76
  | Names | sampled from `agent_1`..`agent_64`, teammates in shuffled order | `agent-001`..`agent-00N`, in order |
77
  | Budget | 8,192 work tokens + 1,024 for the answer per agent; reward reduced by tokens used | no token allowance: 60 model calls per prompt, 4 loop rounds, 15 min, 10 min per turn, 262,144-token window |
78
  | Answer | `####` and a JSON array, from any agent active at the end | `/app/answer.json` per agent, graded after the run; the team succeeds if any agent's is right |
 
72
  | Agents | Qwen3-0.6B trained with RL at N = 4, and its controls | `Qwen/Qwen3.5-27B` and `Qwen/Qwen3.5-2B`, not trained: one prompted condition each |
73
  | Harness | their asynchronous harness: `message(to, text)` and `read_messages()`, notifications that interrupt generation, idle until a message arrives | Pi in a container per agent, with flock's board tools (`flock-tool message_board.*`) through its shell; a shared `#general` channel, mentions and a long-poll `wait`; flock's loop prompts again at each turn's end |
74
  | Messages | to one teammate or broadcast | posts on a board every agent reads; private channels possible |
75
+ | Private number | in the agent's prompt | in its own task's instruction (one task per slot) |
76
  | Names | sampled from `agent_1`..`agent_64`, teammates in shuffled order | `agent-001`..`agent-00N`, in order |
77
  | Budget | 8,192 work tokens + 1,024 for the answer per agent; reward reduced by tokens used | no token allowance: 60 model calls per prompt, 4 loop rounds, 15 min, 10 min per turn, 262,144-token window |
78
  | Answer | `####` and a JSON array, from any agent active at the end | `/app/answer.json` per agent, graded after the run; the team succeeds if any agent's is right |
flock/team.py CHANGED
@@ -3,12 +3,11 @@
3
  uv run python <this dataset>/flock/team.py --problem 7 --agents 4 [--where docker|sandbox|cluster]
4
 
5
  writes `out/agg-p07-n04/spec.yaml` next to this script (or `--out DIR`) from spec.template.yaml:
6
- the task `agg-p07-n04` at `--revision` (default: the dataset's head on the Hub), 4 agents
7
- (agent-001 .. agent-004, one worker and board), and this checkout's `resources/` as the spec's
8
- `resources_dir`, whose `private_number` gives each agent its own number. The local
9
- `resources/numbers.json` must be the revision's, which this checks. `--where` picks the
10
- template's `where:` block: local docker, HF Sandboxes with a Space board, or the HF cluster with
11
- a local board. The dataset is private for now: HF_TOKEN must read it.
12
  """
13
 
14
  import argparse
@@ -17,13 +16,12 @@ import sys
17
  from pathlib import Path
18
 
19
  import yaml
20
- from huggingface_hub import HfApi, hf_hub_download
21
 
22
  from flock.models import load_spec_yaml
23
 
24
  HERE = Path(__file__).resolve().parent
25
  DATASET = "HuggingFaceSwarms/s3-aggregation"
26
- RESOURCES = HERE.parent / "resources"
27
  PROBLEMS, SIZES = range(1, 33), (1, 2, 4, 8, 16)
28
 
29
 
@@ -52,22 +50,15 @@ def team_spec(template: dict, problem: int, agents: int, where: str,
52
  template = copy.deepcopy(template)
53
  places = template.pop("where")
54
  task = f"agg-p{problem:02d}-n{agents:02d}"
55
- spec = fill(merge(template, places[where]),
56
- {"TEAM": task, "REVISION": revision, "RESOURCES": str(RESOURCES)})
57
  spec["agents"] = {"count": agents}
58
  spec["workers"]["agents_per_worker"] = agents
59
  return task, spec
60
 
61
 
62
  def pinned(revision: str | None) -> str:
63
- """The revision as a commit, whose resources/numbers.json must be this checkout's."""
64
- sha = HfApi().dataset_info(DATASET, revision=revision).sha
65
- remote = Path(hf_hub_download(DATASET, "resources/numbers.json", repo_type="dataset",
66
- revision=sha))
67
- if remote.read_bytes() != (RESOURCES / "numbers.json").read_bytes():
68
- raise SystemExit(f"{RESOURCES / 'numbers.json'} is not {DATASET}@{sha[:7]}'s: download "
69
- "that revision, or pass the --revision of this checkout")
70
- return sha
71
 
72
 
73
  def main(argv=None) -> int:
 
3
  uv run python <this dataset>/flock/team.py --problem 7 --agents 4 [--where docker|sandbox|cluster]
4
 
5
  writes `out/agg-p07-n04/spec.yaml` next to this script (or `--out DIR`) from spec.template.yaml:
6
+ the team `agg-p07-n04` at `--revision` (default: the dataset's head on the Hub), its 4 agents
7
+ (agent-001 .. agent-004, one worker and board) on the selector `agg-p07-n04-s*`, so that agent K
8
+ runs slot K's task, the one that states its number. `--where` picks the template's `where:`
9
+ block: local docker, HF Sandboxes with a Space board, or the HF cluster with a local board. The
10
+ dataset is private for now: HF_TOKEN must read it.
 
11
  """
12
 
13
  import argparse
 
16
  from pathlib import Path
17
 
18
  import yaml
19
+ from huggingface_hub import HfApi
20
 
21
  from flock.models import load_spec_yaml
22
 
23
  HERE = Path(__file__).resolve().parent
24
  DATASET = "HuggingFaceSwarms/s3-aggregation"
 
25
  PROBLEMS, SIZES = range(1, 33), (1, 2, 4, 8, 16)
26
 
27
 
 
50
  template = copy.deepcopy(template)
51
  places = template.pop("where")
52
  task = f"agg-p{problem:02d}-n{agents:02d}"
53
+ spec = fill(merge(template, places[where]), {"TEAM": task, "REVISION": revision})
 
54
  spec["agents"] = {"count": agents}
55
  spec["workers"]["agents_per_worker"] = agents
56
  return task, spec
57
 
58
 
59
  def pinned(revision: str | None) -> str:
60
+ """The revision (default: the dataset's head) as a commit."""
61
+ return HfApi().dataset_info(DATASET, revision=revision).sha
 
 
 
 
 
 
62
 
63
 
64
  def main(argv=None) -> int:
generate.py CHANGED
@@ -1,14 +1,13 @@
1
  """Regenerate s3-aggregation from its seed: `python generate.py` (Python 3.10+, no dependencies).
2
 
3
- Writes `problems.json`, `tasks/` and `resources/numbers.json` next to this file, replacing what
4
- is there:
5
  - 32 problems, each 16 integers drawn uniformly from 1 to 99 (repeats allowed), from SEED;
6
- - one task per problem and team size N in SIZES, `agg-pPP-nNN`, whose team holds the problem's
7
- first N numbers;
8
- - `resources/numbers.json`: each task's agents (Flock's `naming: consecutive-id`, agent-001 ...)
9
- and the number each holds, in words. Flock's worker reads it through
10
- `resources/private_number.py`, which puts only an agent's own number in its environment, so
11
- no task folder, instruction or container holds another agent's number.
12
 
13
  check.py checks that this reproduces the committed files byte for byte.
14
  """
@@ -24,7 +23,6 @@ NUMBERS = 16 # per problem; a team of N holds the first N
24
  SIZES = (1, 2, 4, 8, 16)
25
  LOW, HIGH = 1, 99
26
  IMAGE = "python:3.12-slim" # public and prebuilt: HF Sandboxes need one, docker and podman too
27
- ENV = "PRIVATE_NUMBER" # where an agent finds its own number (resources/private_number.py)
28
 
29
  ONES = ["", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten",
30
  "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen",
@@ -48,23 +46,24 @@ def problems(seed: int = SEED) -> list[list[int]]:
48
  return [[rng.randint(LOW, HIGH) for _ in range(NUMBERS)] for _ in range(PROBLEMS)]
49
 
50
 
51
- def task_name(problem: int, n: int) -> str:
52
  """`problem` counts from 1."""
53
  return f"agg-p{problem:02d}-n{n:02d}"
54
 
55
 
56
- def agent_name(slot: int) -> str:
57
- """Flock's `naming: consecutive-id`: the slot's agent, from 1."""
58
- return f"agent-{slot:03d}"
59
 
60
 
61
- def instruction(n: int) -> str:
62
  if n == 1:
63
  return f"""# Sort the team's private numbers
64
 
65
  You are the only agent on this team, solving a private-information number sorting task. You
66
- hold one private integer from 1 to 99, written in English words. It is in your environment,
67
- in the variable `{ENV}`: run `echo ${ENV}` to read it.
 
68
 
69
  Write `/app/answer.json` (create `/app` if needed): a JSON array holding your number's numeric
70
  value, as digits. Then stop.
@@ -72,10 +71,11 @@ value, as digits. Then stop.
72
  return f"""# Sort the team's private numbers
73
 
74
  You are on a team of {n} agents solving a private-information number sorting task. Each agent
75
- holds one private integer from 1 to 99, written in English words. Yours is in your environment,
76
- in the variable `{ENV}`: run `echo ${ENV}` to read it. You know only your own
77
  number, and the others don't know it unless you tell them.
78
 
 
 
79
  The team must find all {n} numbers and list their numeric values in ascending order. Keep equal
80
  numbers from different agents as separate entries: each agent's number appears once in the list,
81
  even when another agent holds the same value.
@@ -92,11 +92,11 @@ correct. Your instructions name the other participants and explain the board's t
92
  """
93
 
94
 
95
- def task_toml(problem: int, n: int) -> str:
96
  return f"""schema_version = "1.4"
97
 
98
  [task]
99
- name = "HuggingFaceSwarms/{task_name(problem, n)}"
100
  version = "0.1.0"
101
  description = "s3-aggregation: {n} agents each hold a private number; the team lists them all in ascending order."
102
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
@@ -104,6 +104,7 @@ keywords = ["multi-agent", "message-board", "s3", "aggregation"]
104
  [metadata]
105
  problem = {problem}
106
  agents = {n}
 
107
  seed = {SEED}
108
 
109
  [agent]
@@ -111,8 +112,8 @@ timeout_sec = 1800
111
 
112
  [environment]
113
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
114
- # too. Nothing task-specific is in the container: each agent's number reaches it only through
115
- # its own environment (resources/private_number.py), and tests/ arrive only when the agent is done.
116
  docker_image = "{IMAGE}"
117
  cpus = 1
118
  memory_mb = 1024
@@ -229,14 +230,6 @@ def write(path: Path, text: str, mode: int = 0o644) -> None:
229
  path.chmod(mode)
230
 
231
 
232
- def numbers_json(drawn: list[list[int]]) -> str:
233
- """Each task's agents and their numbers in words: one line per task."""
234
- teams = {task_name(p, n): {agent_name(k): words(x) for k, x in enumerate(numbers[:n], 1)}
235
- for p, numbers in enumerate(drawn, 1) for n in SIZES}
236
- rows = ",\n".join(f" {json.dumps(task)}: {json.dumps(team)}" for task, team in teams.items())
237
- return f"{{\n{rows}\n}}\n"
238
-
239
-
240
  def generate(root: Path = HERE, seed: int = SEED) -> None:
241
  shutil.rmtree(root / "tasks", ignore_errors=True)
242
  drawn = problems(seed)
@@ -244,17 +237,17 @@ def generate(root: Path = HERE, seed: int = SEED) -> None:
244
  write(root / "problems.json", f'{{"seed": {seed}, "problems": {{\n{rows}\n}}}}\n')
245
  for p, numbers in enumerate(drawn, 1):
246
  for n in SIZES:
247
- team, name = numbers[:n], task_name(p, n)
248
- task = root / "tasks" / name
249
- write(task / "instruction.md", instruction(n))
250
- write(task / "task.toml", task_toml(p, n))
251
- write(task / "tests" / "test.sh", TEST_SH, 0o755)
252
- write(task / "tests" / "expected.json", json.dumps(sorted(team)) + "\n")
253
- write(task / "solution" / "solve.sh", solve_sh(sorted(team)), 0o755)
254
- write(root / "resources" / "numbers.json", numbers_json(drawn))
255
 
256
 
257
  if __name__ == "__main__":
258
  generate()
259
- print(f"{PROBLEMS} problems x {len(SIZES)} team sizes = {PROBLEMS * len(SIZES)} tasks "
260
- f"(seed {SEED})")
 
1
  """Regenerate s3-aggregation from its seed: `python generate.py` (Python 3.10+, no dependencies).
2
 
3
+ Writes `problems.json` and `tasks/` next to this file, replacing what is there:
 
4
  - 32 problems, each 16 integers drawn uniformly from 1 to 99 (repeats allowed), from SEED;
5
+ - per problem and team size N in SIZES, a team `agg-pPP-nNN` that holds the problem's first N
6
+ numbers, and one task per slot of it, `agg-pPP-nNN-sKK` (K = 1..N, zero-padded so that name
7
+ order is slot order): its instruction states that slot's number, and only that one. Every
8
+ slot of a team shares the grader and the answer. Flock runs a team with the selector
9
+ `agg-pPP-nNN-s*`, `agents.count: N` and `naming: consecutive-id`: agent K gets slot K's task,
10
+ and no other agent's.
11
 
12
  check.py checks that this reproduces the committed files byte for byte.
13
  """
 
23
  SIZES = (1, 2, 4, 8, 16)
24
  LOW, HIGH = 1, 99
25
  IMAGE = "python:3.12-slim" # public and prebuilt: HF Sandboxes need one, docker and podman too
 
26
 
27
  ONES = ["", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten",
28
  "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen",
 
46
  return [[rng.randint(LOW, HIGH) for _ in range(NUMBERS)] for _ in range(PROBLEMS)]
47
 
48
 
49
+ def team_name(problem: int, n: int) -> str:
50
  """`problem` counts from 1."""
51
  return f"agg-p{problem:02d}-n{n:02d}"
52
 
53
 
54
+ def task_name(problem: int, n: int, slot: int) -> str:
55
+ """Slot `slot` (from 1) of the team: Flock's agent `agent-00K` (naming: consecutive-id)."""
56
+ return f"{team_name(problem, n)}-s{slot:02d}"
57
 
58
 
59
+ def instruction(n: int, number: int) -> str:
60
  if n == 1:
61
  return f"""# Sort the team's private numbers
62
 
63
  You are the only agent on this team, solving a private-information number sorting task. You
64
+ hold one private integer from 1 to 99, written in English words.
65
+
66
+ Your private number is {words(number)}.
67
 
68
  Write `/app/answer.json` (create `/app` if needed): a JSON array holding your number's numeric
69
  value, as digits. Then stop.
 
71
  return f"""# Sort the team's private numbers
72
 
73
  You are on a team of {n} agents solving a private-information number sorting task. Each agent
74
+ holds one private integer from 1 to 99, written in English words. You know only your own
 
75
  number, and the others don't know it unless you tell them.
76
 
77
+ Your private number is {words(number)}.
78
+
79
  The team must find all {n} numbers and list their numeric values in ascending order. Keep equal
80
  numbers from different agents as separate entries: each agent's number appears once in the list,
81
  even when another agent holds the same value.
 
92
  """
93
 
94
 
95
+ def task_toml(problem: int, n: int, slot: int) -> str:
96
  return f"""schema_version = "1.4"
97
 
98
  [task]
99
+ name = "HuggingFaceSwarms/{task_name(problem, n, slot)}"
100
  version = "0.1.0"
101
  description = "s3-aggregation: {n} agents each hold a private number; the team lists them all in ascending order."
102
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
 
104
  [metadata]
105
  problem = {problem}
106
  agents = {n}
107
+ slot = {slot}
108
  seed = {SEED}
109
 
110
  [agent]
 
112
 
113
  [environment]
114
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
115
+ # too. Nothing task-specific is in the container: the slot's number is only in its instruction,
116
+ # and tests/ arrive only when the agent is done.
117
  docker_image = "{IMAGE}"
118
  cpus = 1
119
  memory_mb = 1024
 
230
  path.chmod(mode)
231
 
232
 
 
 
 
 
 
 
 
 
233
  def generate(root: Path = HERE, seed: int = SEED) -> None:
234
  shutil.rmtree(root / "tasks", ignore_errors=True)
235
  drawn = problems(seed)
 
237
  write(root / "problems.json", f'{{"seed": {seed}, "problems": {{\n{rows}\n}}}}\n')
238
  for p, numbers in enumerate(drawn, 1):
239
  for n in SIZES:
240
+ team = numbers[:n]
241
+ for slot, number in enumerate(team, 1):
242
+ task = root / "tasks" / task_name(p, n, slot)
243
+ write(task / "instruction.md", instruction(n, number))
244
+ write(task / "task.toml", task_toml(p, n, slot))
245
+ write(task / "tests" / "test.sh", TEST_SH, 0o755)
246
+ write(task / "tests" / "expected.json", json.dumps(sorted(team)) + "\n")
247
+ write(task / "solution" / "solve.sh", solve_sh(sorted(team)), 0o755)
248
 
249
 
250
  if __name__ == "__main__":
251
  generate()
252
+ print(f"{PROBLEMS} problems x {len(SIZES)} team sizes = {PROBLEMS * len(SIZES)} teams, "
253
+ f"{PROBLEMS * sum(SIZES)} tasks, one per slot (seed {SEED})")
resources/message_board.py DELETED
@@ -1,5 +0,0 @@
1
- """Flock's own message board, unchanged. A spec's `resources_dir` replaces Flock's built-in
2
- resources folder, so this folder brings the board along: the module Flock ships, imported from
3
- the Flock that runs the worker."""
4
-
5
- from flock.harbor.builtin.resources.message_board import Options, Resource # noqa: F401
 
 
 
 
 
 
resources/numbers.json DELETED
@@ -1,162 +0,0 @@
1
- {
2
- "agg-p01-n01": {"agent-001": "thirty-seven"},
3
- "agg-p01-n02": {"agent-001": "thirty-seven", "agent-002": "twenty-six"},
4
- "agg-p01-n04": {"agent-001": "thirty-seven", "agent-002": "twenty-six", "agent-003": "fifteen", "agent-004": "sixty-nine"},
5
- "agg-p01-n08": {"agent-001": "thirty-seven", "agent-002": "twenty-six", "agent-003": "fifteen", "agent-004": "sixty-nine", "agent-005": "fifteen", "agent-006": "forty-three", "agent-007": "ninety-seven", "agent-008": "seventy-one"},
6
- "agg-p01-n16": {"agent-001": "thirty-seven", "agent-002": "twenty-six", "agent-003": "fifteen", "agent-004": "sixty-nine", "agent-005": "fifteen", "agent-006": "forty-three", "agent-007": "ninety-seven", "agent-008": "seventy-one", "agent-009": "thirty-eight", "agent-010": "eighty-seven", "agent-011": "eighty-two", "agent-012": "thirty-seven", "agent-013": "eighty-eight", "agent-014": "forty-four", "agent-015": "sixty-two", "agent-016": "eight"},
7
- "agg-p02-n01": {"agent-001": "seventy-one"},
8
- "agg-p02-n02": {"agent-001": "seventy-one", "agent-002": "seventy-one"},
9
- "agg-p02-n04": {"agent-001": "seventy-one", "agent-002": "seventy-one", "agent-003": "nineteen", "agent-004": "twenty"},
10
- "agg-p02-n08": {"agent-001": "seventy-one", "agent-002": "seventy-one", "agent-003": "nineteen", "agent-004": "twenty", "agent-005": "six", "agent-006": "thirty-seven", "agent-007": "twenty-three", "agent-008": "sixty-three"},
11
- "agg-p02-n16": {"agent-001": "seventy-one", "agent-002": "seventy-one", "agent-003": "nineteen", "agent-004": "twenty", "agent-005": "six", "agent-006": "thirty-seven", "agent-007": "twenty-three", "agent-008": "sixty-three", "agent-009": "ninety-five", "agent-010": "seventy-six", "agent-011": "thirty-two", "agent-012": "twenty-two", "agent-013": "twenty-four", "agent-014": "nineteen", "agent-015": "sixty-eight", "agent-016": "twenty-eight"},
12
- "agg-p03-n01": {"agent-001": "nineteen"},
13
- "agg-p03-n02": {"agent-001": "nineteen", "agent-002": "eighty-one"},
14
- "agg-p03-n04": {"agent-001": "nineteen", "agent-002": "eighty-one", "agent-003": "eighty-nine", "agent-004": "fifty-five"},
15
- "agg-p03-n08": {"agent-001": "nineteen", "agent-002": "eighty-one", "agent-003": "eighty-nine", "agent-004": "fifty-five", "agent-005": "two", "agent-006": "ninety-two", "agent-007": "twenty-six", "agent-008": "sixty-eight"},
16
- "agg-p03-n16": {"agent-001": "nineteen", "agent-002": "eighty-one", "agent-003": "eighty-nine", "agent-004": "fifty-five", "agent-005": "two", "agent-006": "ninety-two", "agent-007": "twenty-six", "agent-008": "sixty-eight", "agent-009": "forty-three", "agent-010": "seventy-eight", "agent-011": "thirty-two", "agent-012": "eighty-three", "agent-013": "ninety-two", "agent-014": "thirty-six", "agent-015": "seventy-seven", "agent-016": "thirty"},
17
- "agg-p04-n01": {"agent-001": "thirty-three"},
18
- "agg-p04-n02": {"agent-001": "thirty-three", "agent-002": "fifty-three"},
19
- "agg-p04-n04": {"agent-001": "thirty-three", "agent-002": "fifty-three", "agent-003": "forty-eight", "agent-004": "seventy-one"},
20
- "agg-p04-n08": {"agent-001": "thirty-three", "agent-002": "fifty-three", "agent-003": "forty-eight", "agent-004": "seventy-one", "agent-005": "twenty-five", "agent-006": "sixty-two", "agent-007": "eighty-seven", "agent-008": "ninety"},
21
- "agg-p04-n16": {"agent-001": "thirty-three", "agent-002": "fifty-three", "agent-003": "forty-eight", "agent-004": "seventy-one", "agent-005": "twenty-five", "agent-006": "sixty-two", "agent-007": "eighty-seven", "agent-008": "ninety", "agent-009": "forty-four", "agent-010": "twenty-four", "agent-011": "ninety-seven", "agent-012": "seventy-seven", "agent-013": "seventy-nine", "agent-014": "fifty-two", "agent-015": "ninety-five", "agent-016": "seventy-four"},
22
- "agg-p05-n01": {"agent-001": "eighty-seven"},
23
- "agg-p05-n02": {"agent-001": "eighty-seven", "agent-002": "ninety-three"},
24
- "agg-p05-n04": {"agent-001": "eighty-seven", "agent-002": "ninety-three", "agent-003": "ninety-six", "agent-004": "fifty-seven"},
25
- "agg-p05-n08": {"agent-001": "eighty-seven", "agent-002": "ninety-three", "agent-003": "ninety-six", "agent-004": "fifty-seven", "agent-005": "forty", "agent-006": "twenty-five", "agent-007": "sixty-eight", "agent-008": "eighty-four"},
26
- "agg-p05-n16": {"agent-001": "eighty-seven", "agent-002": "ninety-three", "agent-003": "ninety-six", "agent-004": "fifty-seven", "agent-005": "forty", "agent-006": "twenty-five", "agent-007": "sixty-eight", "agent-008": "eighty-four", "agent-009": "eighteen", "agent-010": "seventy-nine", "agent-011": "forty-three", "agent-012": "sixty-six", "agent-013": "thirty-three", "agent-014": "seventy-one", "agent-015": "seventy", "agent-016": "eighty-two"},
27
- "agg-p06-n01": {"agent-001": "seventy-six"},
28
- "agg-p06-n02": {"agent-001": "seventy-six", "agent-002": "twenty-three"},
29
- "agg-p06-n04": {"agent-001": "seventy-six", "agent-002": "twenty-three", "agent-003": "eight", "agent-004": "eighty-five"},
30
- "agg-p06-n08": {"agent-001": "seventy-six", "agent-002": "twenty-three", "agent-003": "eight", "agent-004": "eighty-five", "agent-005": "eleven", "agent-006": "fifty-four", "agent-007": "seventy-eight", "agent-008": "thirty-five"},
31
- "agg-p06-n16": {"agent-001": "seventy-six", "agent-002": "twenty-three", "agent-003": "eight", "agent-004": "eighty-five", "agent-005": "eleven", "agent-006": "fifty-four", "agent-007": "seventy-eight", "agent-008": "thirty-five", "agent-009": "four", "agent-010": "five", "agent-011": "eighteen", "agent-012": "seven", "agent-013": "sixty-six", "agent-014": "thirty-eight", "agent-015": "fifty-four", "agent-016": "eighty-nine"},
32
- "agg-p07-n01": {"agent-001": "forty-nine"},
33
- "agg-p07-n02": {"agent-001": "forty-nine", "agent-002": "thirty-six"},
34
- "agg-p07-n04": {"agent-001": "forty-nine", "agent-002": "thirty-six", "agent-003": "thirty-eight", "agent-004": "forty-eight"},
35
- "agg-p07-n08": {"agent-001": "forty-nine", "agent-002": "thirty-six", "agent-003": "thirty-eight", "agent-004": "forty-eight", "agent-005": "fifty-four", "agent-006": "twenty-two", "agent-007": "eighty-eight", "agent-008": "eight"},
36
- "agg-p07-n16": {"agent-001": "forty-nine", "agent-002": "thirty-six", "agent-003": "thirty-eight", "agent-004": "forty-eight", "agent-005": "fifty-four", "agent-006": "twenty-two", "agent-007": "eighty-eight", "agent-008": "eight", "agent-009": "sixty-six", "agent-010": "twenty-five", "agent-011": "sixteen", "agent-012": "seventy-eight", "agent-013": "nine", "agent-014": "forty-two", "agent-015": "eighty-six", "agent-016": "two"},
37
- "agg-p08-n01": {"agent-001": "thirty-seven"},
38
- "agg-p08-n02": {"agent-001": "thirty-seven", "agent-002": "seventy-one"},
39
- "agg-p08-n04": {"agent-001": "thirty-seven", "agent-002": "seventy-one", "agent-003": "eighty-eight", "agent-004": "forty-four"},
40
- "agg-p08-n08": {"agent-001": "thirty-seven", "agent-002": "seventy-one", "agent-003": "eighty-eight", "agent-004": "forty-four", "agent-005": "sixty-six", "agent-006": "sixty-eight", "agent-007": "twenty-four", "agent-008": "thirty-five"},
41
- "agg-p08-n16": {"agent-001": "thirty-seven", "agent-002": "seventy-one", "agent-003": "eighty-eight", "agent-004": "forty-four", "agent-005": "sixty-six", "agent-006": "sixty-eight", "agent-007": "twenty-four", "agent-008": "thirty-five", "agent-009": "fifty-six", "agent-010": "seventy", "agent-011": "seventy-six", "agent-012": "seventy", "agent-013": "sixty-four", "agent-014": "ninety-two", "agent-015": "eighty-four", "agent-016": "twenty-three"},
42
- "agg-p09-n01": {"agent-001": "forty"},
43
- "agg-p09-n02": {"agent-001": "forty", "agent-002": "sixty-seven"},
44
- "agg-p09-n04": {"agent-001": "forty", "agent-002": "sixty-seven", "agent-003": "sixty-five", "agent-004": "forty-three"},
45
- "agg-p09-n08": {"agent-001": "forty", "agent-002": "sixty-seven", "agent-003": "sixty-five", "agent-004": "forty-three", "agent-005": "sixty", "agent-006": "sixty-six", "agent-007": "fourteen", "agent-008": "eighteen"},
46
- "agg-p09-n16": {"agent-001": "forty", "agent-002": "sixty-seven", "agent-003": "sixty-five", "agent-004": "forty-three", "agent-005": "sixty", "agent-006": "sixty-six", "agent-007": "fourteen", "agent-008": "eighteen", "agent-009": "eighty-eight", "agent-010": "eighty-one", "agent-011": "eight", "agent-012": "twenty", "agent-013": "fourteen", "agent-014": "sixty-eight", "agent-015": "thirty-one", "agent-016": "sixty-three"},
47
- "agg-p10-n01": {"agent-001": "sixty-nine"},
48
- "agg-p10-n02": {"agent-001": "sixty-nine", "agent-002": "five"},
49
- "agg-p10-n04": {"agent-001": "sixty-nine", "agent-002": "five", "agent-003": "nineteen", "agent-004": "twelve"},
50
- "agg-p10-n08": {"agent-001": "sixty-nine", "agent-002": "five", "agent-003": "nineteen", "agent-004": "twelve", "agent-005": "seventy-nine", "agent-006": "fifty-one", "agent-007": "sixty-three", "agent-008": "thirty-two"},
51
- "agg-p10-n16": {"agent-001": "sixty-nine", "agent-002": "five", "agent-003": "nineteen", "agent-004": "twelve", "agent-005": "seventy-nine", "agent-006": "fifty-one", "agent-007": "sixty-three", "agent-008": "thirty-two", "agent-009": "ninety-six", "agent-010": "twenty-five", "agent-011": "four", "agent-012": "fifty-six", "agent-013": "twelve", "agent-014": "eighty-six", "agent-015": "fifty-eight", "agent-016": "seventy-five"},
52
- "agg-p11-n01": {"agent-001": "twelve"},
53
- "agg-p11-n02": {"agent-001": "twelve", "agent-002": "ninety-eight"},
54
- "agg-p11-n04": {"agent-001": "twelve", "agent-002": "ninety-eight", "agent-003": "seventy-five", "agent-004": "seventy-eight"},
55
- "agg-p11-n08": {"agent-001": "twelve", "agent-002": "ninety-eight", "agent-003": "seventy-five", "agent-004": "seventy-eight", "agent-005": "sixty-seven", "agent-006": "eighty-four", "agent-007": "twenty-five", "agent-008": "eleven"},
56
- "agg-p11-n16": {"agent-001": "twelve", "agent-002": "ninety-eight", "agent-003": "seventy-five", "agent-004": "seventy-eight", "agent-005": "sixty-seven", "agent-006": "eighty-four", "agent-007": "twenty-five", "agent-008": "eleven", "agent-009": "forty", "agent-010": "twenty-three", "agent-011": "ninety-four", "agent-012": "seventy-four", "agent-013": "sixteen", "agent-014": "four", "agent-015": "seventy-four", "agent-016": "forty-two"},
57
- "agg-p12-n01": {"agent-001": "two"},
58
- "agg-p12-n02": {"agent-001": "two", "agent-002": "fifty"},
59
- "agg-p12-n04": {"agent-001": "two", "agent-002": "fifty", "agent-003": "ninety-five", "agent-004": "twelve"},
60
- "agg-p12-n08": {"agent-001": "two", "agent-002": "fifty", "agent-003": "ninety-five", "agent-004": "twelve", "agent-005": "ninety-nine", "agent-006": "thirty", "agent-007": "fifteen", "agent-008": "thirty-one"},
61
- "agg-p12-n16": {"agent-001": "two", "agent-002": "fifty", "agent-003": "ninety-five", "agent-004": "twelve", "agent-005": "ninety-nine", "agent-006": "thirty", "agent-007": "fifteen", "agent-008": "thirty-one", "agent-009": "forty-five", "agent-010": "forty-four", "agent-011": "thirty-one", "agent-012": "thirty-three", "agent-013": "twenty-four", "agent-014": "ninety-five", "agent-015": "seventy-nine", "agent-016": "eleven"},
62
- "agg-p13-n01": {"agent-001": "forty-two"},
63
- "agg-p13-n02": {"agent-001": "forty-two", "agent-002": "seventy-eight"},
64
- "agg-p13-n04": {"agent-001": "forty-two", "agent-002": "seventy-eight", "agent-003": "forty-eight", "agent-004": "sixty-one"},
65
- "agg-p13-n08": {"agent-001": "forty-two", "agent-002": "seventy-eight", "agent-003": "forty-eight", "agent-004": "sixty-one", "agent-005": "forty-seven", "agent-006": "fifty-six", "agent-007": "two", "agent-008": "two"},
66
- "agg-p13-n16": {"agent-001": "forty-two", "agent-002": "seventy-eight", "agent-003": "forty-eight", "agent-004": "sixty-one", "agent-005": "forty-seven", "agent-006": "fifty-six", "agent-007": "two", "agent-008": "two", "agent-009": "twenty-three", "agent-010": "eighty-two", "agent-011": "sixty-two", "agent-012": "twenty-five", "agent-013": "eighty-five", "agent-014": "sixty-eight", "agent-015": "sixty", "agent-016": "ninety-three"},
67
- "agg-p14-n01": {"agent-001": "eighty-four"},
68
- "agg-p14-n02": {"agent-001": "eighty-four", "agent-002": "twenty-nine"},
69
- "agg-p14-n04": {"agent-001": "eighty-four", "agent-002": "twenty-nine", "agent-003": "fifty-three", "agent-004": "forty-nine"},
70
- "agg-p14-n08": {"agent-001": "eighty-four", "agent-002": "twenty-nine", "agent-003": "fifty-three", "agent-004": "forty-nine", "agent-005": "forty-four", "agent-006": "twenty-five", "agent-007": "fifty-nine", "agent-008": "thirty-nine"},
71
- "agg-p14-n16": {"agent-001": "eighty-four", "agent-002": "twenty-nine", "agent-003": "fifty-three", "agent-004": "forty-nine", "agent-005": "forty-four", "agent-006": "twenty-five", "agent-007": "fifty-nine", "agent-008": "thirty-nine", "agent-009": "ninety-six", "agent-010": "seventy-two", "agent-011": "seventy-eight", "agent-012": "one", "agent-013": "thirty-seven", "agent-014": "fifty-one", "agent-015": "forty-five", "agent-016": "eleven"},
72
- "agg-p15-n01": {"agent-001": "thirty-seven"},
73
- "agg-p15-n02": {"agent-001": "thirty-seven", "agent-002": "twenty-nine"},
74
- "agg-p15-n04": {"agent-001": "thirty-seven", "agent-002": "twenty-nine", "agent-003": "fifty-seven", "agent-004": "eighteen"},
75
- "agg-p15-n08": {"agent-001": "thirty-seven", "agent-002": "twenty-nine", "agent-003": "fifty-seven", "agent-004": "eighteen", "agent-005": "forty-nine", "agent-006": "seventy-nine", "agent-007": "fifty", "agent-008": "sixty-two"},
76
- "agg-p15-n16": {"agent-001": "thirty-seven", "agent-002": "twenty-nine", "agent-003": "fifty-seven", "agent-004": "eighteen", "agent-005": "forty-nine", "agent-006": "seventy-nine", "agent-007": "fifty", "agent-008": "sixty-two", "agent-009": "fifty-three", "agent-010": "thirty", "agent-011": "forty-three", "agent-012": "thirty", "agent-013": "seventy-eight", "agent-014": "eighty-two", "agent-015": "twenty-seven", "agent-016": "forty"},
77
- "agg-p16-n01": {"agent-001": "thirty-eight"},
78
- "agg-p16-n02": {"agent-001": "thirty-eight", "agent-002": "sixty-three"},
79
- "agg-p16-n04": {"agent-001": "thirty-eight", "agent-002": "sixty-three", "agent-003": "thirty", "agent-004": "sixty-three"},
80
- "agg-p16-n08": {"agent-001": "thirty-eight", "agent-002": "sixty-three", "agent-003": "thirty", "agent-004": "sixty-three", "agent-005": "fifty-one", "agent-006": "seventy-eight", "agent-007": "fifty-eight", "agent-008": "eighty-one"},
81
- "agg-p16-n16": {"agent-001": "thirty-eight", "agent-002": "sixty-three", "agent-003": "thirty", "agent-004": "sixty-three", "agent-005": "fifty-one", "agent-006": "seventy-eight", "agent-007": "fifty-eight", "agent-008": "eighty-one", "agent-009": "two", "agent-010": "eighteen", "agent-011": "eighty-eight", "agent-012": "ten", "agent-013": "fifty-eight", "agent-014": "thirty-five", "agent-015": "ninety-two", "agent-016": "sixteen"},
82
- "agg-p17-n01": {"agent-001": "forty"},
83
- "agg-p17-n02": {"agent-001": "forty", "agent-002": "ten"},
84
- "agg-p17-n04": {"agent-001": "forty", "agent-002": "ten", "agent-003": "ninety-five", "agent-004": "thirty-one"},
85
- "agg-p17-n08": {"agent-001": "forty", "agent-002": "ten", "agent-003": "ninety-five", "agent-004": "thirty-one", "agent-005": "ninety-nine", "agent-006": "seventy-seven", "agent-007": "ninety", "agent-008": "seventy"},
86
- "agg-p17-n16": {"agent-001": "forty", "agent-002": "ten", "agent-003": "ninety-five", "agent-004": "thirty-one", "agent-005": "ninety-nine", "agent-006": "seventy-seven", "agent-007": "ninety", "agent-008": "seventy", "agent-009": "forty-three", "agent-010": "two", "agent-011": "seventy-eight", "agent-012": "thirty-four", "agent-013": "seventy-six", "agent-014": "thirty-eight", "agent-015": "seventy", "agent-016": "forty"},
87
- "agg-p18-n01": {"agent-001": "seventy-two"},
88
- "agg-p18-n02": {"agent-001": "seventy-two", "agent-002": "sixteen"},
89
- "agg-p18-n04": {"agent-001": "seventy-two", "agent-002": "sixteen", "agent-003": "eighty-four", "agent-004": "eighty-six"},
90
- "agg-p18-n08": {"agent-001": "seventy-two", "agent-002": "sixteen", "agent-003": "eighty-four", "agent-004": "eighty-six", "agent-005": "one", "agent-006": "fifty-nine", "agent-007": "two", "agent-008": "fifty-nine"},
91
- "agg-p18-n16": {"agent-001": "seventy-two", "agent-002": "sixteen", "agent-003": "eighty-four", "agent-004": "eighty-six", "agent-005": "one", "agent-006": "fifty-nine", "agent-007": "two", "agent-008": "fifty-nine", "agent-009": "forty-seven", "agent-010": "forty-three", "agent-011": "eighty-three", "agent-012": "sixty-six", "agent-013": "seven", "agent-014": "forty-two", "agent-015": "seventy-four", "agent-016": "seventy-nine"},
92
- "agg-p19-n01": {"agent-001": "thirty-seven"},
93
- "agg-p19-n02": {"agent-001": "thirty-seven", "agent-002": "forty-one"},
94
- "agg-p19-n04": {"agent-001": "thirty-seven", "agent-002": "forty-one", "agent-003": "sixty-two", "agent-004": "eighty-eight"},
95
- "agg-p19-n08": {"agent-001": "thirty-seven", "agent-002": "forty-one", "agent-003": "sixty-two", "agent-004": "eighty-eight", "agent-005": "thirty-four", "agent-006": "ten", "agent-007": "sixty-nine", "agent-008": "sixty-five"},
96
- "agg-p19-n16": {"agent-001": "thirty-seven", "agent-002": "forty-one", "agent-003": "sixty-two", "agent-004": "eighty-eight", "agent-005": "thirty-four", "agent-006": "ten", "agent-007": "sixty-nine", "agent-008": "sixty-five", "agent-009": "twenty-nine", "agent-010": "eighty-one", "agent-011": "thirty-five", "agent-012": "seventy-one", "agent-013": "eighty-seven", "agent-014": "ninety-eight", "agent-015": "twenty-two", "agent-016": "sixty-seven"},
97
- "agg-p20-n01": {"agent-001": "forty-four"},
98
- "agg-p20-n02": {"agent-001": "forty-four", "agent-002": "seventy-three"},
99
- "agg-p20-n04": {"agent-001": "forty-four", "agent-002": "seventy-three", "agent-003": "forty-five", "agent-004": "seventy-four"},
100
- "agg-p20-n08": {"agent-001": "forty-four", "agent-002": "seventy-three", "agent-003": "forty-five", "agent-004": "seventy-four", "agent-005": "ninety-seven", "agent-006": "eighty-one", "agent-007": "seventy-three", "agent-008": "fifty-eight"},
101
- "agg-p20-n16": {"agent-001": "forty-four", "agent-002": "seventy-three", "agent-003": "forty-five", "agent-004": "seventy-four", "agent-005": "ninety-seven", "agent-006": "eighty-one", "agent-007": "seventy-three", "agent-008": "fifty-eight", "agent-009": "sixty-five", "agent-010": "sixty-eight", "agent-011": "thirty-one", "agent-012": "five", "agent-013": "sixty-one", "agent-014": "forty-nine", "agent-015": "ninety-six", "agent-016": "twenty-nine"},
102
- "agg-p21-n01": {"agent-001": "fifty-seven"},
103
- "agg-p21-n02": {"agent-001": "fifty-seven", "agent-002": "thirty-four"},
104
- "agg-p21-n04": {"agent-001": "fifty-seven", "agent-002": "thirty-four", "agent-003": "seventy-one", "agent-004": "sixty-eight"},
105
- "agg-p21-n08": {"agent-001": "fifty-seven", "agent-002": "thirty-four", "agent-003": "seventy-one", "agent-004": "sixty-eight", "agent-005": "nineteen", "agent-006": "eighty-two", "agent-007": "seventy-three", "agent-008": "ninety-nine"},
106
- "agg-p21-n16": {"agent-001": "fifty-seven", "agent-002": "thirty-four", "agent-003": "seventy-one", "agent-004": "sixty-eight", "agent-005": "nineteen", "agent-006": "eighty-two", "agent-007": "seventy-three", "agent-008": "ninety-nine", "agent-009": "eighteen", "agent-010": "seventy-two", "agent-011": "thirty-nine", "agent-012": "sixteen", "agent-013": "seventy-six", "agent-014": "fifty", "agent-015": "sixty-four", "agent-016": "forty-three"},
107
- "agg-p22-n01": {"agent-001": "four"},
108
- "agg-p22-n02": {"agent-001": "four", "agent-002": "forty-one"},
109
- "agg-p22-n04": {"agent-001": "four", "agent-002": "forty-one", "agent-003": "eighty-nine", "agent-004": "seventy-one"},
110
- "agg-p22-n08": {"agent-001": "four", "agent-002": "forty-one", "agent-003": "eighty-nine", "agent-004": "seventy-one", "agent-005": "five", "agent-006": "twenty-three", "agent-007": "twenty-seven", "agent-008": "fifteen"},
111
- "agg-p22-n16": {"agent-001": "four", "agent-002": "forty-one", "agent-003": "eighty-nine", "agent-004": "seventy-one", "agent-005": "five", "agent-006": "twenty-three", "agent-007": "twenty-seven", "agent-008": "fifteen", "agent-009": "thirty-one", "agent-010": "seventy-four", "agent-011": "ten", "agent-012": "eight", "agent-013": "twenty-two", "agent-014": "eighty-eight", "agent-015": "seventy-six", "agent-016": "seventy-seven"},
112
- "agg-p23-n01": {"agent-001": "twenty"},
113
- "agg-p23-n02": {"agent-001": "twenty", "agent-002": "fifty-five"},
114
- "agg-p23-n04": {"agent-001": "twenty", "agent-002": "fifty-five", "agent-003": "forty-five", "agent-004": "one"},
115
- "agg-p23-n08": {"agent-001": "twenty", "agent-002": "fifty-five", "agent-003": "forty-five", "agent-004": "one", "agent-005": "eighty-four", "agent-006": "eighty-one", "agent-007": "thirty", "agent-008": "seventy-nine"},
116
- "agg-p23-n16": {"agent-001": "twenty", "agent-002": "fifty-five", "agent-003": "forty-five", "agent-004": "one", "agent-005": "eighty-four", "agent-006": "eighty-one", "agent-007": "thirty", "agent-008": "seventy-nine", "agent-009": "fifty-one", "agent-010": "seven", "agent-011": "sixteen", "agent-012": "sixty-nine", "agent-013": "fifty-two", "agent-014": "three", "agent-015": "ninety-six", "agent-016": "thirty-five"},
117
- "agg-p24-n01": {"agent-001": "ninety-five"},
118
- "agg-p24-n02": {"agent-001": "ninety-five", "agent-002": "eighty-two"},
119
- "agg-p24-n04": {"agent-001": "ninety-five", "agent-002": "eighty-two", "agent-003": "five", "agent-004": "fifty"},
120
- "agg-p24-n08": {"agent-001": "ninety-five", "agent-002": "eighty-two", "agent-003": "five", "agent-004": "fifty", "agent-005": "ninety-five", "agent-006": "thirty-eight", "agent-007": "eighty-seven", "agent-008": "eighty-nine"},
121
- "agg-p24-n16": {"agent-001": "ninety-five", "agent-002": "eighty-two", "agent-003": "five", "agent-004": "fifty", "agent-005": "ninety-five", "agent-006": "thirty-eight", "agent-007": "eighty-seven", "agent-008": "eighty-nine", "agent-009": "thirty-nine", "agent-010": "thirty-seven", "agent-011": "sixty-seven", "agent-012": "ten", "agent-013": "eighty-seven", "agent-014": "ninety-two", "agent-015": "thirty-nine", "agent-016": "ninety-two"},
122
- "agg-p25-n01": {"agent-001": "thirty-three"},
123
- "agg-p25-n02": {"agent-001": "thirty-three", "agent-002": "twenty-two"},
124
- "agg-p25-n04": {"agent-001": "thirty-three", "agent-002": "twenty-two", "agent-003": "eighteen", "agent-004": "eighty-eight"},
125
- "agg-p25-n08": {"agent-001": "thirty-three", "agent-002": "twenty-two", "agent-003": "eighteen", "agent-004": "eighty-eight", "agent-005": "forty-six", "agent-006": "seventy-three", "agent-007": "two", "agent-008": "six"},
126
- "agg-p25-n16": {"agent-001": "thirty-three", "agent-002": "twenty-two", "agent-003": "eighteen", "agent-004": "eighty-eight", "agent-005": "forty-six", "agent-006": "seventy-three", "agent-007": "two", "agent-008": "six", "agent-009": "twenty-one", "agent-010": "nineteen", "agent-011": "six", "agent-012": "three", "agent-013": "twenty-one", "agent-014": "seventy-three", "agent-015": "fifty-seven", "agent-016": "twenty-one"},
127
- "agg-p26-n01": {"agent-001": "twenty-one"},
128
- "agg-p26-n02": {"agent-001": "twenty-one", "agent-002": "twenty"},
129
- "agg-p26-n04": {"agent-001": "twenty-one", "agent-002": "twenty", "agent-003": "four", "agent-004": "one"},
130
- "agg-p26-n08": {"agent-001": "twenty-one", "agent-002": "twenty", "agent-003": "four", "agent-004": "one", "agent-005": "thirty-six", "agent-006": "twelve", "agent-007": "thirty-seven", "agent-008": "sixty-six"},
131
- "agg-p26-n16": {"agent-001": "twenty-one", "agent-002": "twenty", "agent-003": "four", "agent-004": "one", "agent-005": "thirty-six", "agent-006": "twelve", "agent-007": "thirty-seven", "agent-008": "sixty-six", "agent-009": "forty-seven", "agent-010": "two", "agent-011": "ninety-seven", "agent-012": "seventy-seven", "agent-013": "twenty-eight", "agent-014": "seventy-five", "agent-015": "twenty-two", "agent-016": "ninety-four"},
132
- "agg-p27-n01": {"agent-001": "ninety-nine"},
133
- "agg-p27-n02": {"agent-001": "ninety-nine", "agent-002": "seventy-four"},
134
- "agg-p27-n04": {"agent-001": "ninety-nine", "agent-002": "seventy-four", "agent-003": "eighty-six", "agent-004": "fifteen"},
135
- "agg-p27-n08": {"agent-001": "ninety-nine", "agent-002": "seventy-four", "agent-003": "eighty-six", "agent-004": "fifteen", "agent-005": "fourteen", "agent-006": "ninety-five", "agent-007": "eighty-three", "agent-008": "forty-seven"},
136
- "agg-p27-n16": {"agent-001": "ninety-nine", "agent-002": "seventy-four", "agent-003": "eighty-six", "agent-004": "fifteen", "agent-005": "fourteen", "agent-006": "ninety-five", "agent-007": "eighty-three", "agent-008": "forty-seven", "agent-009": "ninety-six", "agent-010": "fifty-six", "agent-011": "twelve", "agent-012": "eighty-eight", "agent-013": "sixty", "agent-014": "seven", "agent-015": "eighty-four", "agent-016": "six"},
137
- "agg-p28-n01": {"agent-001": "fifty-eight"},
138
- "agg-p28-n02": {"agent-001": "fifty-eight", "agent-002": "thirty-eight"},
139
- "agg-p28-n04": {"agent-001": "fifty-eight", "agent-002": "thirty-eight", "agent-003": "sixty-seven", "agent-004": "seventy"},
140
- "agg-p28-n08": {"agent-001": "fifty-eight", "agent-002": "thirty-eight", "agent-003": "sixty-seven", "agent-004": "seventy", "agent-005": "thirty-three", "agent-006": "twelve", "agent-007": "seventy-seven", "agent-008": "ninety-three"},
141
- "agg-p28-n16": {"agent-001": "fifty-eight", "agent-002": "thirty-eight", "agent-003": "sixty-seven", "agent-004": "seventy", "agent-005": "thirty-three", "agent-006": "twelve", "agent-007": "seventy-seven", "agent-008": "ninety-three", "agent-009": "seven", "agent-010": "twenty-four", "agent-011": "fifty-three", "agent-012": "ninety-four", "agent-013": "eight", "agent-014": "ninety-two", "agent-015": "fifteen", "agent-016": "sixty-three"},
142
- "agg-p29-n01": {"agent-001": "twenty-three"},
143
- "agg-p29-n02": {"agent-001": "twenty-three", "agent-002": "twenty-two"},
144
- "agg-p29-n04": {"agent-001": "twenty-three", "agent-002": "twenty-two", "agent-003": "forty-five", "agent-004": "eighty-two"},
145
- "agg-p29-n08": {"agent-001": "twenty-three", "agent-002": "twenty-two", "agent-003": "forty-five", "agent-004": "eighty-two", "agent-005": "ninety-two", "agent-006": "eighty-nine", "agent-007": "thirty-eight", "agent-008": "fifty-six"},
146
- "agg-p29-n16": {"agent-001": "twenty-three", "agent-002": "twenty-two", "agent-003": "forty-five", "agent-004": "eighty-two", "agent-005": "ninety-two", "agent-006": "eighty-nine", "agent-007": "thirty-eight", "agent-008": "fifty-six", "agent-009": "forty-three", "agent-010": "twelve", "agent-011": "sixty-three", "agent-012": "eighty-four", "agent-013": "seventy-six", "agent-014": "sixty-eight", "agent-015": "six", "agent-016": "twelve"},
147
- "agg-p30-n01": {"agent-001": "twenty-one"},
148
- "agg-p30-n02": {"agent-001": "twenty-one", "agent-002": "sixty-five"},
149
- "agg-p30-n04": {"agent-001": "twenty-one", "agent-002": "sixty-five", "agent-003": "seventy-four", "agent-004": "seventy-four"},
150
- "agg-p30-n08": {"agent-001": "twenty-one", "agent-002": "sixty-five", "agent-003": "seventy-four", "agent-004": "seventy-four", "agent-005": "forty-three", "agent-006": "forty-one", "agent-007": "fifty-three", "agent-008": "eighty-seven"},
151
- "agg-p30-n16": {"agent-001": "twenty-one", "agent-002": "sixty-five", "agent-003": "seventy-four", "agent-004": "seventy-four", "agent-005": "forty-three", "agent-006": "forty-one", "agent-007": "fifty-three", "agent-008": "eighty-seven", "agent-009": "forty-three", "agent-010": "eighty-nine", "agent-011": "forty-three", "agent-012": "sixty-one", "agent-013": "sixty-five", "agent-014": "three", "agent-015": "ninety-seven", "agent-016": "thirty-six"},
152
- "agg-p31-n01": {"agent-001": "twenty-five"},
153
- "agg-p31-n02": {"agent-001": "twenty-five", "agent-002": "twenty-three"},
154
- "agg-p31-n04": {"agent-001": "twenty-five", "agent-002": "twenty-three", "agent-003": "four", "agent-004": "thirty-six"},
155
- "agg-p31-n08": {"agent-001": "twenty-five", "agent-002": "twenty-three", "agent-003": "four", "agent-004": "thirty-six", "agent-005": "eighty-two", "agent-006": "twenty-eight", "agent-007": "fifty-one", "agent-008": "three"},
156
- "agg-p31-n16": {"agent-001": "twenty-five", "agent-002": "twenty-three", "agent-003": "four", "agent-004": "thirty-six", "agent-005": "eighty-two", "agent-006": "twenty-eight", "agent-007": "fifty-one", "agent-008": "three", "agent-009": "two", "agent-010": "thirty-nine", "agent-011": "twenty-seven", "agent-012": "fifty", "agent-013": "sixteen", "agent-014": "seventy-six", "agent-015": "sixty-three", "agent-016": "fourteen"},
157
- "agg-p32-n01": {"agent-001": "sixty-five"},
158
- "agg-p32-n02": {"agent-001": "sixty-five", "agent-002": "eighty"},
159
- "agg-p32-n04": {"agent-001": "sixty-five", "agent-002": "eighty", "agent-003": "eighty-five", "agent-004": "forty-three"},
160
- "agg-p32-n08": {"agent-001": "sixty-five", "agent-002": "eighty", "agent-003": "eighty-five", "agent-004": "forty-three", "agent-005": "eighty-six", "agent-006": "sixty-one", "agent-007": "fifty-eight", "agent-008": "eighty-nine"},
161
- "agg-p32-n16": {"agent-001": "sixty-five", "agent-002": "eighty", "agent-003": "eighty-five", "agent-004": "forty-three", "agent-005": "eighty-six", "agent-006": "sixty-one", "agent-007": "fifty-eight", "agent-008": "eighty-nine", "agent-009": "sixty-five", "agent-010": "seventy-six", "agent-011": "thirty-one", "agent-012": "sixty-seven", "agent-013": "eight", "agent-014": "ninety-one", "agent-015": "ninety-one", "agent-016": "forty-two"}
162
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
resources/private_number.py DELETED
@@ -1,58 +0,0 @@
1
- """Each agent's own private number, and only its own, in its environment as PRIVATE_NUMBER.
2
-
3
- A Flock resource (the `Resource` interface of flock/harbor/resources.py). Point the spec's
4
- `resources_dir` at this folder and name the team:
5
-
6
- resources_dir: <this dataset>/resources
7
- resources:
8
- private_number:
9
- team: agg-p01-n04
10
-
11
- Flock's worker loads this module and `numbers.json` next to it, and binds each agent's Trial:
12
- `bind("agent-002")` gives agent-002's container `PRIVATE_NUMBER=twenty-six` and nothing else.
13
- The module and the file stay on the worker: they are not in the tool bundle, the task folder or
14
- any container, so no agent can read another agent's number. The team's agents are Flock's
15
- `naming: consecutive-id` (agent-001 ...), `agents.count` of them.
16
- """
17
-
18
- import asyncio
19
- import json
20
- from pathlib import Path
21
-
22
- NUMBERS = Path(__file__).with_name("numbers.json")
23
- ENV = "PRIVATE_NUMBER"
24
-
25
-
26
- class Resource:
27
- def __init__(self, options, *, state_dir, agents, secrets):
28
- options = dict(options or {})
29
- team = options.pop("team", None)
30
- if options:
31
- raise ValueError(f"private_number: unknown options {sorted(options)} (only `team`)")
32
- teams = json.loads(NUMBERS.read_text(encoding="utf-8"))
33
- if team not in teams:
34
- raise ValueError(f"private_number.team: {team!r} is not a task of this dataset, "
35
- "e.g. agg-p01-n04")
36
- self.numbers = teams[team]
37
- if set(agents) != self.numbers.keys(): # the type's whole roster
38
- raise ValueError(f"private_number: {team}'s agents are {sorted(self.numbers)}, not "
39
- f"{sorted(agents)}: run it with naming: consecutive-id and "
40
- f"agents.count: {len(self.numbers)}")
41
- self.metadata = {"team": team}
42
-
43
- async def start(self):
44
- pass
45
-
46
- def bind(self, name):
47
- if name not in self.numbers:
48
- raise ValueError(f"private_number: no number for {name}")
49
- return {"env": {ENV: self.numbers[name]}}
50
-
51
- async def wait(self):
52
- await asyncio.Event().wait()
53
-
54
- async def export(self, directory):
55
- return {}
56
-
57
- async def stop(self):
58
- pass
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tasks/{agg-p02-n01 → agg-p01-n01-s01}/instruction.md RENAMED
@@ -1,8 +1,9 @@
1
  # Sort the team's private numbers
2
 
3
  You are the only agent on this team, solving a private-information number sorting task. You
4
- hold one private integer from 1 to 99, written in English words. It is in your environment,
5
- in the variable `PRIVATE_NUMBER`: run `echo $PRIVATE_NUMBER` to read it.
 
6
 
7
  Write `/app/answer.json` (create `/app` if needed): a JSON array holding your number's numeric
8
  value, as digits. Then stop.
 
1
  # Sort the team's private numbers
2
 
3
  You are the only agent on this team, solving a private-information number sorting task. You
4
+ hold one private integer from 1 to 99, written in English words.
5
+
6
+ Your private number is thirty-seven.
7
 
8
  Write `/app/answer.json` (create `/app` if needed): a JSON array holding your number's numeric
9
  value, as digits. Then stop.
tasks/{agg-p01-n01 → agg-p01-n01-s01}/solution/solve.sh RENAMED
File without changes
tasks/{agg-p01-n01 → agg-p01-n01-s01}/task.toml RENAMED
@@ -1,7 +1,7 @@
1
  schema_version = "1.4"
2
 
3
  [task]
4
- name = "HuggingFaceSwarms/agg-p01-n01"
5
  version = "0.1.0"
6
  description = "s3-aggregation: 1 agents each hold a private number; the team lists them all in ascending order."
7
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
@@ -9,6 +9,7 @@ keywords = ["multi-agent", "message-board", "s3", "aggregation"]
9
  [metadata]
10
  problem = 1
11
  agents = 1
 
12
  seed = 115
13
 
14
  [agent]
@@ -16,8 +17,8 @@ timeout_sec = 1800
16
 
17
  [environment]
18
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
19
- # too. Nothing task-specific is in the container: each agent's number reaches it only through
20
- # its own environment (resources/private_number.py), and tests/ arrive only when the agent is done.
21
  docker_image = "python:3.12-slim"
22
  cpus = 1
23
  memory_mb = 1024
 
1
  schema_version = "1.4"
2
 
3
  [task]
4
+ name = "HuggingFaceSwarms/agg-p01-n01-s01"
5
  version = "0.1.0"
6
  description = "s3-aggregation: 1 agents each hold a private number; the team lists them all in ascending order."
7
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
 
9
  [metadata]
10
  problem = 1
11
  agents = 1
12
+ slot = 1
13
  seed = 115
14
 
15
  [agent]
 
17
 
18
  [environment]
19
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
20
+ # too. Nothing task-specific is in the container: the slot's number is only in its instruction,
21
+ # and tests/ arrive only when the agent is done.
22
  docker_image = "python:3.12-slim"
23
  cpus = 1
24
  memory_mb = 1024
tasks/{agg-p01-n01 → agg-p01-n01-s01}/tests/expected.json RENAMED
File without changes
tasks/{agg-p01-n01 → agg-p01-n01-s01}/tests/test.sh RENAMED
File without changes
tasks/agg-p01-n01/instruction.md DELETED
@@ -1,8 +0,0 @@
1
- # Sort the team's private numbers
2
-
3
- You are the only agent on this team, solving a private-information number sorting task. You
4
- hold one private integer from 1 to 99, written in English words. It is in your environment,
5
- in the variable `PRIVATE_NUMBER`: run `echo $PRIVATE_NUMBER` to read it.
6
-
7
- Write `/app/answer.json` (create `/app` if needed): a JSON array holding your number's numeric
8
- value, as digits. Then stop.
 
 
 
 
 
 
 
 
 
tasks/{agg-p03-n02 → agg-p01-n02-s01}/instruction.md RENAMED
@@ -1,10 +1,11 @@
1
  # Sort the team's private numbers
2
 
3
  You are on a team of 2 agents solving a private-information number sorting task. Each agent
4
- holds one private integer from 1 to 99, written in English words. Yours is in your environment,
5
- in the variable `PRIVATE_NUMBER`: run `echo $PRIVATE_NUMBER` to read it. You know only your own
6
  number, and the others don't know it unless you tell them.
7
 
 
 
8
  The team must find all 2 numbers and list their numeric values in ascending order. Keep equal
9
  numbers from different agents as separate entries: each agent's number appears once in the list,
10
  even when another agent holds the same value.
 
1
  # Sort the team's private numbers
2
 
3
  You are on a team of 2 agents solving a private-information number sorting task. Each agent
4
+ holds one private integer from 1 to 99, written in English words. You know only your own
 
5
  number, and the others don't know it unless you tell them.
6
 
7
+ Your private number is thirty-seven.
8
+
9
  The team must find all 2 numbers and list their numeric values in ascending order. Keep equal
10
  numbers from different agents as separate entries: each agent's number appears once in the list,
11
  even when another agent holds the same value.
tasks/{agg-p01-n02 → agg-p01-n02-s01}/solution/solve.sh RENAMED
File without changes
tasks/{agg-p01-n02 → agg-p01-n02-s01}/task.toml RENAMED
@@ -1,7 +1,7 @@
1
  schema_version = "1.4"
2
 
3
  [task]
4
- name = "HuggingFaceSwarms/agg-p01-n02"
5
  version = "0.1.0"
6
  description = "s3-aggregation: 2 agents each hold a private number; the team lists them all in ascending order."
7
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
@@ -9,6 +9,7 @@ keywords = ["multi-agent", "message-board", "s3", "aggregation"]
9
  [metadata]
10
  problem = 1
11
  agents = 2
 
12
  seed = 115
13
 
14
  [agent]
@@ -16,8 +17,8 @@ timeout_sec = 1800
16
 
17
  [environment]
18
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
19
- # too. Nothing task-specific is in the container: each agent's number reaches it only through
20
- # its own environment (resources/private_number.py), and tests/ arrive only when the agent is done.
21
  docker_image = "python:3.12-slim"
22
  cpus = 1
23
  memory_mb = 1024
 
1
  schema_version = "1.4"
2
 
3
  [task]
4
+ name = "HuggingFaceSwarms/agg-p01-n02-s01"
5
  version = "0.1.0"
6
  description = "s3-aggregation: 2 agents each hold a private number; the team lists them all in ascending order."
7
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
 
9
  [metadata]
10
  problem = 1
11
  agents = 2
12
+ slot = 1
13
  seed = 115
14
 
15
  [agent]
 
17
 
18
  [environment]
19
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
20
+ # too. Nothing task-specific is in the container: the slot's number is only in its instruction,
21
+ # and tests/ arrive only when the agent is done.
22
  docker_image = "python:3.12-slim"
23
  cpus = 1
24
  memory_mb = 1024
tasks/{agg-p01-n02 → agg-p01-n02-s01}/tests/expected.json RENAMED
File without changes
tasks/{agg-p01-n02 → agg-p01-n02-s01}/tests/test.sh RENAMED
File without changes
tasks/{agg-p01-n02 → agg-p01-n02-s02}/instruction.md RENAMED
@@ -1,10 +1,11 @@
1
  # Sort the team's private numbers
2
 
3
  You are on a team of 2 agents solving a private-information number sorting task. Each agent
4
- holds one private integer from 1 to 99, written in English words. Yours is in your environment,
5
- in the variable `PRIVATE_NUMBER`: run `echo $PRIVATE_NUMBER` to read it. You know only your own
6
  number, and the others don't know it unless you tell them.
7
 
 
 
8
  The team must find all 2 numbers and list their numeric values in ascending order. Keep equal
9
  numbers from different agents as separate entries: each agent's number appears once in the list,
10
  even when another agent holds the same value.
 
1
  # Sort the team's private numbers
2
 
3
  You are on a team of 2 agents solving a private-information number sorting task. Each agent
4
+ holds one private integer from 1 to 99, written in English words. You know only your own
 
5
  number, and the others don't know it unless you tell them.
6
 
7
+ Your private number is twenty-six.
8
+
9
  The team must find all 2 numbers and list their numeric values in ascending order. Keep equal
10
  numbers from different agents as separate entries: each agent's number appears once in the list,
11
  even when another agent holds the same value.
tasks/{agg-p03-n01 → agg-p01-n02-s02}/solution/solve.sh RENAMED
@@ -2,4 +2,4 @@
2
  # Oracle: the team's answer from its own copy (not tests/), to validate the grader.
3
  answer=${ANSWER:-/app/answer.json}
4
  mkdir -p "$(dirname "$answer")"
5
- echo '[19]' > "$answer"
 
2
  # Oracle: the team's answer from its own copy (not tests/), to validate the grader.
3
  answer=${ANSWER:-/app/answer.json}
4
  mkdir -p "$(dirname "$answer")"
5
+ echo '[26, 37]' > "$answer"
tasks/{agg-p03-n02 → agg-p01-n02-s02}/task.toml RENAMED
@@ -1,14 +1,15 @@
1
  schema_version = "1.4"
2
 
3
  [task]
4
- name = "HuggingFaceSwarms/agg-p03-n02"
5
  version = "0.1.0"
6
  description = "s3-aggregation: 2 agents each hold a private number; the team lists them all in ascending order."
7
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
8
 
9
  [metadata]
10
- problem = 3
11
  agents = 2
 
12
  seed = 115
13
 
14
  [agent]
@@ -16,8 +17,8 @@ timeout_sec = 1800
16
 
17
  [environment]
18
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
19
- # too. Nothing task-specific is in the container: each agent's number reaches it only through
20
- # its own environment (resources/private_number.py), and tests/ arrive only when the agent is done.
21
  docker_image = "python:3.12-slim"
22
  cpus = 1
23
  memory_mb = 1024
 
1
  schema_version = "1.4"
2
 
3
  [task]
4
+ name = "HuggingFaceSwarms/agg-p01-n02-s02"
5
  version = "0.1.0"
6
  description = "s3-aggregation: 2 agents each hold a private number; the team lists them all in ascending order."
7
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
8
 
9
  [metadata]
10
+ problem = 1
11
  agents = 2
12
+ slot = 2
13
  seed = 115
14
 
15
  [agent]
 
17
 
18
  [environment]
19
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
20
+ # too. Nothing task-specific is in the container: the slot's number is only in its instruction,
21
+ # and tests/ arrive only when the agent is done.
22
  docker_image = "python:3.12-slim"
23
  cpus = 1
24
  memory_mb = 1024
tasks/agg-p01-n02-s02/tests/expected.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [26, 37]
tasks/{agg-p01-n04 → agg-p01-n02-s02}/tests/test.sh RENAMED
File without changes
tasks/{agg-p01-n04 → agg-p01-n04-s01}/instruction.md RENAMED
@@ -1,10 +1,11 @@
1
  # Sort the team's private numbers
2
 
3
  You are on a team of 4 agents solving a private-information number sorting task. Each agent
4
- holds one private integer from 1 to 99, written in English words. Yours is in your environment,
5
- in the variable `PRIVATE_NUMBER`: run `echo $PRIVATE_NUMBER` to read it. You know only your own
6
  number, and the others don't know it unless you tell them.
7
 
 
 
8
  The team must find all 4 numbers and list their numeric values in ascending order. Keep equal
9
  numbers from different agents as separate entries: each agent's number appears once in the list,
10
  even when another agent holds the same value.
 
1
  # Sort the team's private numbers
2
 
3
  You are on a team of 4 agents solving a private-information number sorting task. Each agent
4
+ holds one private integer from 1 to 99, written in English words. You know only your own
 
5
  number, and the others don't know it unless you tell them.
6
 
7
+ Your private number is thirty-seven.
8
+
9
  The team must find all 4 numbers and list their numeric values in ascending order. Keep equal
10
  numbers from different agents as separate entries: each agent's number appears once in the list,
11
  even when another agent holds the same value.
tasks/{agg-p01-n04 → agg-p01-n04-s01}/solution/solve.sh RENAMED
File without changes
tasks/{agg-p01-n04 → agg-p01-n04-s01}/task.toml RENAMED
@@ -1,7 +1,7 @@
1
  schema_version = "1.4"
2
 
3
  [task]
4
- name = "HuggingFaceSwarms/agg-p01-n04"
5
  version = "0.1.0"
6
  description = "s3-aggregation: 4 agents each hold a private number; the team lists them all in ascending order."
7
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
@@ -9,6 +9,7 @@ keywords = ["multi-agent", "message-board", "s3", "aggregation"]
9
  [metadata]
10
  problem = 1
11
  agents = 4
 
12
  seed = 115
13
 
14
  [agent]
@@ -16,8 +17,8 @@ timeout_sec = 1800
16
 
17
  [environment]
18
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
19
- # too. Nothing task-specific is in the container: each agent's number reaches it only through
20
- # its own environment (resources/private_number.py), and tests/ arrive only when the agent is done.
21
  docker_image = "python:3.12-slim"
22
  cpus = 1
23
  memory_mb = 1024
 
1
  schema_version = "1.4"
2
 
3
  [task]
4
+ name = "HuggingFaceSwarms/agg-p01-n04-s01"
5
  version = "0.1.0"
6
  description = "s3-aggregation: 4 agents each hold a private number; the team lists them all in ascending order."
7
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
 
9
  [metadata]
10
  problem = 1
11
  agents = 4
12
+ slot = 1
13
  seed = 115
14
 
15
  [agent]
 
17
 
18
  [environment]
19
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
20
+ # too. Nothing task-specific is in the container: the slot's number is only in its instruction,
21
+ # and tests/ arrive only when the agent is done.
22
  docker_image = "python:3.12-slim"
23
  cpus = 1
24
  memory_mb = 1024
tasks/{agg-p01-n04 → agg-p01-n04-s01}/tests/expected.json RENAMED
File without changes
tasks/{agg-p01-n08 → agg-p01-n04-s01}/tests/test.sh RENAMED
File without changes
tasks/{agg-p02-n04 → agg-p01-n04-s02}/instruction.md RENAMED
@@ -1,10 +1,11 @@
1
  # Sort the team's private numbers
2
 
3
  You are on a team of 4 agents solving a private-information number sorting task. Each agent
4
- holds one private integer from 1 to 99, written in English words. Yours is in your environment,
5
- in the variable `PRIVATE_NUMBER`: run `echo $PRIVATE_NUMBER` to read it. You know only your own
6
  number, and the others don't know it unless you tell them.
7
 
 
 
8
  The team must find all 4 numbers and list their numeric values in ascending order. Keep equal
9
  numbers from different agents as separate entries: each agent's number appears once in the list,
10
  even when another agent holds the same value.
 
1
  # Sort the team's private numbers
2
 
3
  You are on a team of 4 agents solving a private-information number sorting task. Each agent
4
+ holds one private integer from 1 to 99, written in English words. You know only your own
 
5
  number, and the others don't know it unless you tell them.
6
 
7
+ Your private number is twenty-six.
8
+
9
  The team must find all 4 numbers and list their numeric values in ascending order. Keep equal
10
  numbers from different agents as separate entries: each agent's number appears once in the list,
11
  even when another agent holds the same value.
tasks/{agg-p03-n04 → agg-p01-n04-s02}/solution/solve.sh RENAMED
@@ -2,4 +2,4 @@
2
  # Oracle: the team's answer from its own copy (not tests/), to validate the grader.
3
  answer=${ANSWER:-/app/answer.json}
4
  mkdir -p "$(dirname "$answer")"
5
- echo '[19, 55, 81, 89]' > "$answer"
 
2
  # Oracle: the team's answer from its own copy (not tests/), to validate the grader.
3
  answer=${ANSWER:-/app/answer.json}
4
  mkdir -p "$(dirname "$answer")"
5
+ echo '[15, 26, 37, 69]' > "$answer"
tasks/{agg-p03-n04 → agg-p01-n04-s02}/task.toml RENAMED
@@ -1,14 +1,15 @@
1
  schema_version = "1.4"
2
 
3
  [task]
4
- name = "HuggingFaceSwarms/agg-p03-n04"
5
  version = "0.1.0"
6
  description = "s3-aggregation: 4 agents each hold a private number; the team lists them all in ascending order."
7
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
8
 
9
  [metadata]
10
- problem = 3
11
  agents = 4
 
12
  seed = 115
13
 
14
  [agent]
@@ -16,8 +17,8 @@ timeout_sec = 1800
16
 
17
  [environment]
18
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
19
- # too. Nothing task-specific is in the container: each agent's number reaches it only through
20
- # its own environment (resources/private_number.py), and tests/ arrive only when the agent is done.
21
  docker_image = "python:3.12-slim"
22
  cpus = 1
23
  memory_mb = 1024
 
1
  schema_version = "1.4"
2
 
3
  [task]
4
+ name = "HuggingFaceSwarms/agg-p01-n04-s02"
5
  version = "0.1.0"
6
  description = "s3-aggregation: 4 agents each hold a private number; the team lists them all in ascending order."
7
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
8
 
9
  [metadata]
10
+ problem = 1
11
  agents = 4
12
+ slot = 2
13
  seed = 115
14
 
15
  [agent]
 
17
 
18
  [environment]
19
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
20
+ # too. Nothing task-specific is in the container: the slot's number is only in its instruction,
21
+ # and tests/ arrive only when the agent is done.
22
  docker_image = "python:3.12-slim"
23
  cpus = 1
24
  memory_mb = 1024
tasks/agg-p01-n04-s02/tests/expected.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [15, 26, 37, 69]
tasks/{agg-p01-n16 → agg-p01-n04-s02}/tests/test.sh RENAMED
File without changes
tasks/{agg-p03-n04 → agg-p01-n04-s03}/instruction.md RENAMED
@@ -1,10 +1,11 @@
1
  # Sort the team's private numbers
2
 
3
  You are on a team of 4 agents solving a private-information number sorting task. Each agent
4
- holds one private integer from 1 to 99, written in English words. Yours is in your environment,
5
- in the variable `PRIVATE_NUMBER`: run `echo $PRIVATE_NUMBER` to read it. You know only your own
6
  number, and the others don't know it unless you tell them.
7
 
 
 
8
  The team must find all 4 numbers and list their numeric values in ascending order. Keep equal
9
  numbers from different agents as separate entries: each agent's number appears once in the list,
10
  even when another agent holds the same value.
 
1
  # Sort the team's private numbers
2
 
3
  You are on a team of 4 agents solving a private-information number sorting task. Each agent
4
+ holds one private integer from 1 to 99, written in English words. You know only your own
 
5
  number, and the others don't know it unless you tell them.
6
 
7
+ Your private number is fifteen.
8
+
9
  The team must find all 4 numbers and list their numeric values in ascending order. Keep equal
10
  numbers from different agents as separate entries: each agent's number appears once in the list,
11
  even when another agent holds the same value.
tasks/{agg-p04-n01 → agg-p01-n04-s03}/solution/solve.sh RENAMED
@@ -2,4 +2,4 @@
2
  # Oracle: the team's answer from its own copy (not tests/), to validate the grader.
3
  answer=${ANSWER:-/app/answer.json}
4
  mkdir -p "$(dirname "$answer")"
5
- echo '[33]' > "$answer"
 
2
  # Oracle: the team's answer from its own copy (not tests/), to validate the grader.
3
  answer=${ANSWER:-/app/answer.json}
4
  mkdir -p "$(dirname "$answer")"
5
+ echo '[15, 26, 37, 69]' > "$answer"
tasks/{agg-p04-n04 → agg-p01-n04-s03}/task.toml RENAMED
@@ -1,14 +1,15 @@
1
  schema_version = "1.4"
2
 
3
  [task]
4
- name = "HuggingFaceSwarms/agg-p04-n04"
5
  version = "0.1.0"
6
  description = "s3-aggregation: 4 agents each hold a private number; the team lists them all in ascending order."
7
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
8
 
9
  [metadata]
10
- problem = 4
11
  agents = 4
 
12
  seed = 115
13
 
14
  [agent]
@@ -16,8 +17,8 @@ timeout_sec = 1800
16
 
17
  [environment]
18
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
19
- # too. Nothing task-specific is in the container: each agent's number reaches it only through
20
- # its own environment (resources/private_number.py), and tests/ arrive only when the agent is done.
21
  docker_image = "python:3.12-slim"
22
  cpus = 1
23
  memory_mb = 1024
 
1
  schema_version = "1.4"
2
 
3
  [task]
4
+ name = "HuggingFaceSwarms/agg-p01-n04-s03"
5
  version = "0.1.0"
6
  description = "s3-aggregation: 4 agents each hold a private number; the team lists them all in ascending order."
7
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
8
 
9
  [metadata]
10
+ problem = 1
11
  agents = 4
12
+ slot = 3
13
  seed = 115
14
 
15
  [agent]
 
17
 
18
  [environment]
19
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
20
+ # too. Nothing task-specific is in the container: the slot's number is only in its instruction,
21
+ # and tests/ arrive only when the agent is done.
22
  docker_image = "python:3.12-slim"
23
  cpus = 1
24
  memory_mb = 1024
tasks/agg-p01-n04-s03/tests/expected.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [15, 26, 37, 69]
tasks/{agg-p02-n01 → agg-p01-n04-s03}/tests/test.sh RENAMED
File without changes
tasks/{agg-p04-n04 → agg-p01-n04-s04}/instruction.md RENAMED
@@ -1,10 +1,11 @@
1
  # Sort the team's private numbers
2
 
3
  You are on a team of 4 agents solving a private-information number sorting task. Each agent
4
- holds one private integer from 1 to 99, written in English words. Yours is in your environment,
5
- in the variable `PRIVATE_NUMBER`: run `echo $PRIVATE_NUMBER` to read it. You know only your own
6
  number, and the others don't know it unless you tell them.
7
 
 
 
8
  The team must find all 4 numbers and list their numeric values in ascending order. Keep equal
9
  numbers from different agents as separate entries: each agent's number appears once in the list,
10
  even when another agent holds the same value.
 
1
  # Sort the team's private numbers
2
 
3
  You are on a team of 4 agents solving a private-information number sorting task. Each agent
4
+ holds one private integer from 1 to 99, written in English words. You know only your own
 
5
  number, and the others don't know it unless you tell them.
6
 
7
+ Your private number is sixty-nine.
8
+
9
  The team must find all 4 numbers and list their numeric values in ascending order. Keep equal
10
  numbers from different agents as separate entries: each agent's number appears once in the list,
11
  even when another agent holds the same value.
tasks/agg-p01-n04-s04/solution/solve.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Oracle: the team's answer from its own copy (not tests/), to validate the grader.
3
+ answer=${ANSWER:-/app/answer.json}
4
+ mkdir -p "$(dirname "$answer")"
5
+ echo '[15, 26, 37, 69]' > "$answer"
tasks/agg-p01-n04-s04/task.toml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.4"
2
+
3
+ [task]
4
+ name = "HuggingFaceSwarms/agg-p01-n04-s04"
5
+ version = "0.1.0"
6
+ description = "s3-aggregation: 4 agents each hold a private number; the team lists them all in ascending order."
7
+ keywords = ["multi-agent", "message-board", "s3", "aggregation"]
8
+
9
+ [metadata]
10
+ problem = 1
11
+ agents = 4
12
+ slot = 4
13
+ seed = 115
14
+
15
+ [agent]
16
+ timeout_sec = 1800
17
+
18
+ [environment]
19
+ # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
20
+ # too. Nothing task-specific is in the container: the slot's number is only in its instruction,
21
+ # and tests/ arrive only when the agent is done.
22
+ docker_image = "python:3.12-slim"
23
+ cpus = 1
24
+ memory_mb = 1024
25
+
26
+ [verifier]
27
+ timeout_sec = 60
tasks/agg-p01-n04-s04/tests/expected.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [15, 26, 37, 69]
tasks/{agg-p02-n02 → agg-p01-n04-s04}/tests/test.sh RENAMED
File without changes
tasks/{agg-p02-n08 → agg-p01-n08-s01}/instruction.md RENAMED
@@ -1,10 +1,11 @@
1
  # Sort the team's private numbers
2
 
3
  You are on a team of 8 agents solving a private-information number sorting task. Each agent
4
- holds one private integer from 1 to 99, written in English words. Yours is in your environment,
5
- in the variable `PRIVATE_NUMBER`: run `echo $PRIVATE_NUMBER` to read it. You know only your own
6
  number, and the others don't know it unless you tell them.
7
 
 
 
8
  The team must find all 8 numbers and list their numeric values in ascending order. Keep equal
9
  numbers from different agents as separate entries: each agent's number appears once in the list,
10
  even when another agent holds the same value.
 
1
  # Sort the team's private numbers
2
 
3
  You are on a team of 8 agents solving a private-information number sorting task. Each agent
4
+ holds one private integer from 1 to 99, written in English words. You know only your own
 
5
  number, and the others don't know it unless you tell them.
6
 
7
+ Your private number is thirty-seven.
8
+
9
  The team must find all 8 numbers and list their numeric values in ascending order. Keep equal
10
  numbers from different agents as separate entries: each agent's number appears once in the list,
11
  even when another agent holds the same value.
tasks/{agg-p01-n08 → agg-p01-n08-s01}/solution/solve.sh RENAMED
File without changes
tasks/{agg-p01-n08 → agg-p01-n08-s01}/task.toml RENAMED
@@ -1,7 +1,7 @@
1
  schema_version = "1.4"
2
 
3
  [task]
4
- name = "HuggingFaceSwarms/agg-p01-n08"
5
  version = "0.1.0"
6
  description = "s3-aggregation: 8 agents each hold a private number; the team lists them all in ascending order."
7
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
@@ -9,6 +9,7 @@ keywords = ["multi-agent", "message-board", "s3", "aggregation"]
9
  [metadata]
10
  problem = 1
11
  agents = 8
 
12
  seed = 115
13
 
14
  [agent]
@@ -16,8 +17,8 @@ timeout_sec = 1800
16
 
17
  [environment]
18
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
19
- # too. Nothing task-specific is in the container: each agent's number reaches it only through
20
- # its own environment (resources/private_number.py), and tests/ arrive only when the agent is done.
21
  docker_image = "python:3.12-slim"
22
  cpus = 1
23
  memory_mb = 1024
 
1
  schema_version = "1.4"
2
 
3
  [task]
4
+ name = "HuggingFaceSwarms/agg-p01-n08-s01"
5
  version = "0.1.0"
6
  description = "s3-aggregation: 8 agents each hold a private number; the team lists them all in ascending order."
7
  keywords = ["multi-agent", "message-board", "s3", "aggregation"]
 
9
  [metadata]
10
  problem = 1
11
  agents = 8
12
+ slot = 1
13
  seed = 115
14
 
15
  [agent]
 
17
 
18
  [environment]
19
  # Prebuilt and public, with no Dockerfile: HF Sandboxes need one, and docker and podman use it
20
+ # too. Nothing task-specific is in the container: the slot's number is only in its instruction,
21
+ # and tests/ arrive only when the agent is done.
22
  docker_image = "python:3.12-slim"
23
  cpus = 1
24
  memory_mb = 1024
tasks/{agg-p01-n08 → agg-p01-n08-s01}/tests/expected.json RENAMED
File without changes