File size: 16,556 Bytes
365d5c1
 
 
 
 
9391479
365d5c1
 
 
 
 
 
 
 
 
 
 
79d5b4a
365d5c1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9391479
 
 
 
 
 
 
 
 
 
 
 
365d5c1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9391479
 
 
 
 
 
365d5c1
 
 
 
 
 
79d5b4a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
365d5c1
 
 
 
 
 
79d5b4a
 
 
 
 
 
365d5c1
 
 
 
 
 
79d5b4a
 
 
 
 
 
365d5c1
 
 
 
 
 
 
 
 
 
 
 
79d5b4a
 
 
 
 
 
365d5c1
 
 
 
 
 
 
 
 
 
79d5b4a
 
9391479
365d5c1
 
 
 
 
 
 
 
 
9391479
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
365d5c1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79d5b4a
365d5c1
 
 
 
 
 
 
 
 
 
 
79d5b4a
 
 
365d5c1
9391479
 
 
 
 
 
365d5c1
 
 
9391479
365d5c1
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
---
pretty_name: Practice
license: mit
language:
- en
- sv
task_categories:
- other
tags:
- rl-environment
- harbor
- agents
- reinforcement-learning
- verifiable-rewards
- isced-f
size_categories:
- 1K<n<10K
thumbnail: https://huggingface.co/datasets/RenaissanceLabsEU/practice/resolve/main/assets/social-preview.png
configs:
- config_name: class-test
  data_files:
  - split: train
    path: data/class-test/train.jsonl
  - split: eval
    path: data/class-test/eval.jsonl
- config_name: harris-matrix
  data_files:
  - split: train
    path: data/harris-matrix/train.jsonl
  - split: eval
    path: data/harris-matrix/eval.jsonl
- config_name: argument-check
  data_files:
  - split: train
    path: data/argument-check/train.jsonl
  - split: eval
    path: data/argument-check/eval.jsonl
- config_name: swedish-proofreading
  data_files:
  - split: train
    path: data/swedish-proofreading/train.jsonl
  - split: eval
    path: data/swedish-proofreading/eval.jsonl
- config_name: swedish-rewriting
  data_files:
  - split: train
    path: data/swedish-rewriting/train.jsonl
  - split: eval
    path: data/swedish-rewriting/eval.jsonl
- config_name: price-index
  data_files:
  - split: train
    path: data/price-index/train.jsonl
  - split: eval
    path: data/price-index/eval.jsonl
- config_name: seat-count
  data_files:
  - split: train
    path: data/seat-count/train.jsonl
  - split: eval
    path: data/seat-count/eval.jsonl
- config_name: psychometrics
  data_files:
  - split: train
    path: data/psychometrics/train.jsonl
  - split: eval
    path: data/psychometrics/eval.jsonl
- config_name: life-table
  data_files:
  - split: train
    path: data/life-table/train.jsonl
  - split: eval
    path: data/life-table/eval.jsonl
- config_name: swedish-copy-briefs
  data_files:
  - split: train
    path: data/swedish-copy-briefs/train.jsonl
  - split: eval
    path: data/swedish-copy-briefs/eval.jsonl
- config_name: emissions-inventory
  data_files:
  - split: train
    path: data/emissions-inventory/train.jsonl
  - split: eval
    path: data/emissions-inventory/eval.jsonl
- config_name: habitat-survey
  data_files:
  - split: train
    path: data/habitat-survey/train.jsonl
  - split: eval
    path: data/habitat-survey/eval.jsonl
- config_name: food-batch
  data_files:
  - split: train
    path: data/food-batch/train.jsonl
  - split: eval
    path: data/food-batch/eval.jsonl
- config_name: textile-lab
  data_files:
  - split: train
    path: data/textile-lab/train.jsonl
  - split: eval
    path: data/textile-lab/eval.jsonl
- config_name: zoning-check
  data_files:
  - split: train
    path: data/zoning-check/train.jsonl
  - split: eval
    path: data/zoning-check/eval.jsonl
- config_name: grower-desk
  data_files:
  - split: train
    path: data/grower-desk/train.jsonl
  - split: eval
    path: data/grower-desk/eval.jsonl
- config_name: stand-inventory
  data_files:
  - split: train
    path: data/stand-inventory/train.jsonl
  - split: eval
    path: data/stand-inventory/eval.jsonl
- config_name: fishery-log
  data_files:
  - split: train
    path: data/fishery-log/train.jsonl
  - split: eval
    path: data/fishery-log/eval.jsonl
- config_name: ward-round
  data_files:
  - split: train
    path: data/ward-round/train.jsonl
  - split: eval
    path: data/ward-round/eval.jsonl
- config_name: means-test
  data_files:
  - split: train
    path: data/means-test/train.jsonl
  - split: eval
    path: data/means-test/eval.jsonl
- config_name: sanitation-desk
  data_files:
  - split: train
    path: data/sanitation-desk/train.jsonl
  - split: eval
    path: data/sanitation-desk/eval.jsonl
- config_name: exposure-assessment
  data_files:
  - split: train
    path: data/exposure-assessment/train.jsonl
  - split: eval
    path: data/exposure-assessment/eval.jsonl
---

# Practice

![Practice by Renaissance Labs: open environments for models to practice human work.](assets/social-preview.png)

**22 environments and 2,376 tasks for language-model agents, across fields of human work.** By [Renaissance Labs](https://renaissancelabs.eu).

Most open environments teach models to write software and operate computers. The [Open Environments Index](https://practice.renaissancelabs.eu) files every open environment under the ISCED-F 2013 fields of education, and reveals gaps across its 80 detailed fields. Practice broadens the coverage: nursing, forestry, food processing, town planning, political science, demography, psychology and more.

In every task the agent gets a folder of working files (charts, logs, registers, a rule document) and an instruction, works in a terminal, and writes `answer.json`. A hidden deterministic verifier returns a reward between 0 and 1.

## Environments

Each environment is a subset of this dataset (pick it in the viewer, or `load_dataset("RenaissanceLabsEU/practice", "<name>")` for the task index).

| Subset | ISCED-F field | Task language | What the agent does | Task families | Tasks |
|---|---|---|---|---|---|
| [`class-test`](tasks/class-test) | 0111 Education science | English | Analyse a class test as a teacher would: mark answer sheets, run item and distractor analysis, and standardise or moderate the marks. | marking, item-analysis, distractors, moderation | 108 |
| [`harris-matrix`](tasks/harris-matrix) | 0222 History and archaeology | English | Work an excavation archive after the dig: order the contexts, reduce the Harris matrix, date deposits from finds and find impossible relations. | sequence, reduction, dating, errors | 108 |
| [`argument-check`](tasks/argument-check) | 0223 Philosophy and ethics | English | Mark a logic problem sheet: test arguments for validity, sentence sets for consistency and formula pairs for equivalence, with counterexamples and normal forms. | validity, consistency, equivalence | 108 |
| [`swedish-proofreading`](tasks/swedish-proofreading) | 0232 Literature and linguistics | Swedish | Correct Swedish compounds, agreement, pronouns and word order while preserving facts and already-correct text. | compounds, agreement, word-order, mixed | 108 |
| [`swedish-rewriting`](tasks/swedish-rewriting) | 0232 Literature and linguistics | Swedish | Edit Swedish calques and bureaucratic wording into clear reader-focused prose without changing meaning. | calques, plain-language, reader-focus, mixed | 108 |
| [`price-index`](tasks/price-index) | 0311 Economics | English | Compute an economic statistician's measures from raw tables: price indices, real GDP and chain-linked volumes, inequality and poverty, and inflation contributions. | basket-indices, national-accounts, income-distribution, inflation-contributions | 108 |
| [`seat-count`](tasks/seat-count) | 0312 Political sciences and civics | English | Turn election results into seats: apply thresholds, divisor and quota methods, constituency and levelling seats, and measure disproportionality. | highest-averages, largest-remainder, constituencies | 108 |
| [`psychometrics`](tasks/psychometrics) | 0313 Psychology | English | Score questionnaires from a manual, judge reliable change, convert raw scores with norm tables and compute scale reliability, as a psychologist's assistant. | scoring, reliable-change, norms, reliability | 108 |
| [`life-table`](tasks/life-table) | 0314 Sociology and cultural studies | English | Do a demographer's core calculations from population registers: life tables, fertility rates, age-standardised death rates and age-structure indicators. | life-table, fertility, standardisation, age-structure | 108 |
| [`swedish-copy-briefs`](tasks/swedish-copy-briefs) | 0414 Marketing and advertising | Swedish | Write constrained Swedish product, event, service and email copy from factual briefs without unsupported claims. | product, event, service, email | 108 |
| [`emissions-inventory`](tasks/emissions-inventory) | 0521 Environmental sciences | English | Compile a greenhouse-gas inventory from activity records: unit conversion, emission factors, scopes, CO2e from several gases, trends and data cleaning. | activity-data, multi-gas, time-series, data-quality | 108 |
| [`habitat-survey`](tasks/habitat-survey) | 0522 Natural environments and wildlife | English | Aggregate quadrat surveys, calculate species diversity and reconcile habitat changes from synthetic field records. | quadrats, diversity, habitat-change | 108 |
| [`food-batch`](tasks/food-batch) | 0721 Food processing | English | Balance dry matter during drying, blend ingredients to a target composition and scale production recipes with process losses. | drying, blending, recipe-scaling | 108 |
| [`textile-lab`](tasks/textile-lab) | 0723 Textiles (clothes, footwear and leather) | English | Calculate fabric mass, yarn requirements and shrinkage allowances from textile production and laboratory records. | fabric-mass, yarn-length, shrinkage | 108 |
| [`zoning-check`](tasks/zoning-check) | 0731 Architecture and town planning | English | Check building proposals against a fictional town's zoning code: floor area ratio, coverage, setbacks, parking, plot capacity and areas from coordinates. | compliance, capacity, geometry, mixed-use | 108 |
| [`grower-desk`](tasks/grower-desk) | 0812 Horticulture | English | Calculate irrigation demand, fertiliser stock dilution and propagation yields from synthetic nursery records. | irrigation, fertigation, propagation | 108 |
| [`stand-inventory`](tasks/stand-inventory) | 0821 Forestry | English | Do a forester's office work after a field inventory: plot expansion, basal area, tree and stand volume, a thinning rule and increment. | plots, volume, thinning, growth | 108 |
| [`fishery-log`](tasks/fishery-log) | 0831 Fisheries | English | Reconcile aquaculture biomass and feed, compute catch per effort and estimate stock biomass from fish samples. | feed-conversion, catch-effort, stock-sampling | 108 |
| [`ward-round`](tasks/ward-round) | 0913 Nursing and midwifery | English | Do a nurse's bedside calculations from ward charts: early-warning scores, infusion rates, weight-based doses and 24-hour fluid balance. | news2, dosing, fluid-balance | 108 |
| [`means-test`](tasks/means-test) | 0923 Social work and counselling | English | Apply a written (fictional) benefit regulation to household case files: entitlement, mid-month changes, overpayments and review of past decisions. | entitlement, change, overpayment, review | 108 |
| [`sanitation-desk`](tasks/sanitation-desk) | 1021 Community sanitation | English | Audit waste streams, calculate collection loads and reconcile wastewater pollutant loads from synthetic municipal records. | waste-audit, collection-loads, wastewater-loads | 108 |
| [`exposure-assessment`](tasks/exposure-assessment) | 1022 Occupational health and safety | English | Do an occupational hygienist's sums from workplace records: noise dose, airborne chemical averages, hand-arm vibration and injury rates against given limits. | noise, chemicals, vibration, incidents | 108 |

Every subset has a `train` split (84 tasks) and an `eval` split (24 tasks, from seeds the train split never uses). Each has three difficulty levels: a small clean case, then more records and one complication, then a second complication and answers that depend on several records.

## Layout

```
tasks/<env>/<task_id>/     one Harbor task directory per task
  instruction.md           what the agent is asked to do
  task.toml                metadata and limits (1 CPU, 1 GB, no internet)
  environment/             Dockerfile (python:3.12-slim) and workdir/ with the task files, copied to /app
  solution/                solve.sh and oracle.py: the reference solution, never shown to the agent
  tests/                   test.sh, verify.py, checks.json: the hidden verifier
data/<env>/{train,eval}.jsonl   the task index shown in the viewer (id, family, difficulty, instruction, path)
envs/<env>/                the seeded generator, the oracle and any validators for each environment
practice/, tools/, tests/  shared verifier, exporter, self-test and hand-worked test cases
```

## Run it

```bash
hf download RenaissanceLabsEU/practice --repo-type dataset --local-dir Practice
cd Practice
T=tasks/class-test/class-test-distractors-d1-t0000

# check one task by hand: build, run the reference solution, run the verifier (prints 1.0)
docker build -t practice-task $T/environment
docker run --rm --network none -v $PWD/$T/tests:/tests:ro -v $PWD/$T/solution:/solution:ro practice-task \
  bash -c 'bash /solution/solve.sh; bash /tests/test.sh; cat /logs/verifier/reward.txt'
```

Each task folder follows the [Harbor](https://github.com/harbor-framework/harbor) task layout, so a Harbor-compatible harness can run a whole environment, for example `harbor run --path tasks/class-test --agent oracle` and then your own agent and model. The agent works in `/app` and must write `/app/answer.json`; the verifier writes `/logs/verifier/reward.txt`. Tasks need no network and no GPU.

To rebuild the packaged tasks deterministically: `python3 tools/export.py <env_folder>` (standard library only).

## Reward

The verifier compares each value in `answer.json` with the expected one: integers exactly, numbers within one unit of the last decimal the instruction asks for, lists and sets structurally. Where a good answer is not unique (an excavation sequence, a counterexample to an argument), a validator checks the answer against the problem's own constraints. The reward is the weighted share of checks passed. A missing or unreadable answer scores 0, and `reward.json` also reports `solved` (all checks passed) for those who want a pass or fail signal.

## How the tasks were checked

- **Two code paths.** The generator computes expected values from its in-memory data. A separate standalone oracle recomputes them from the task files alone, as an agent would. They share no code and must agree exactly on every task.
- **Every check has teeth.** For each task the test suite changes each checked value in turn and confirms the check then fails; an empty answer, an empty object and a non-object must all score 0.
- **No knife edges.** Generators resample until every value that decides a category, flag or rounding is clearly away from its boundary.
- **Hand-worked cases.** `tests/` holds hand-worked cases for the reference environments. Generator self-tests also compare every generated answer with an independent file-based solver.
- **Runnable tasks.** Every exported task is checked locally: the reference solution scores 1.0 and doing nothing scores 0. Docker smoke tests cover every task family with networking disabled; the tested oracle scores 1.0 and no-op scores 0. See `VALIDATION.md` for scope.

Method references and modelling assumptions for the new environments are recorded in [METHODS.md](METHODS.md).

## Swedish language tasks

The Swedish subsets are labelled `sv`; the other subsets are labelled `en`. Language is stored in each `env.toml`, every Harbor task's metadata/tags, the split indices and `environments.json`. `language-sv` and `language-en` tags refer to task language.

The Swedish tasks are bounded editorial exercises with explicit house-style contracts and accepted alternatives. They preserve factual roles, negation, names, numbers and untouched text; copying the erroneous source earns zero. Copy briefs use current source records and reject stale revisions and unsupported claims. These checks measure constrained editing and factual compliance, **not** creativity, persuasive power or unrestricted Swedish writing quality. See [SWEDISH_QUALITY.md](SWEDISH_QUALITY.md) for the acceptance boundary, validation and source-pack holdouts.

## Limits

- No model has been trained on these tasks yet, so we do not know how much training on them helps, or how hard they are for current models. We will report baselines when we have them.
- The eval split uses unseen seeds but the same generators as the train split. Swedish subsets additionally use disjoint lexical/content packs; they share grammatical rules and house-style formats. This does not establish transfer to unrestricted text.
- The data is synthetic. Formulas and conventions are standard ones from each field and are stated in each task, but the tasks have not yet been reviewed by practitioners in every field. Corrections are welcome in the Community tab.
- Rules that vary by country (benefit regulations, zoning codes, exposure limits) are fictional and shipped with the task. They teach the method, not any jurisdiction's law.

## Licence

MIT. Please credit "Practice by Renaissance Labs".