@evolvingmachines/evolve 0.0.55-project-sable.20260916.db0bc0bb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +25 -0
  3. package/dist/chunk-5GVMBEYI.js +11 -0
  4. package/dist/chunk-HQJI3HHU.js +1 -0
  5. package/dist/chunk-JS2UTK2I.js +427 -0
  6. package/dist/cli/index.cjs +73 -0
  7. package/dist/cli/index.d.cts +270 -0
  8. package/dist/cli/index.d.ts +270 -0
  9. package/dist/cli/index.js +54 -0
  10. package/dist/index.cjs +669 -0
  11. package/dist/index.d.cts +5023 -0
  12. package/dist/index.d.ts +5023 -0
  13. package/dist/index.js +230 -0
  14. package/dist/managed-modal-IJW62SSK.js +4 -0
  15. package/dist/resumable-HFSICSH3.js +1 -0
  16. package/dist/tar-GVC4KE52.js +1 -0
  17. package/dist/types-DlpTxdR_.d.cts +4777 -0
  18. package/dist/types-DlpTxdR_.d.ts +4777 -0
  19. package/dist/upload-KPYDMWFJ.js +1 -0
  20. package/docs-agents/SKILL.md +138 -0
  21. package/docs-agents/index.md +81 -0
  22. package/docs-agents/python/01-getting-started.md +511 -0
  23. package/docs-agents/python/02-configuration.md +855 -0
  24. package/docs-agents/python/03-runtime.md +899 -0
  25. package/docs-agents/python/04-streaming.md +451 -0
  26. package/docs-agents/python/05-swarm-pipeline.md +953 -0
  27. package/docs-agents/python/index.md +122 -0
  28. package/docs-agents/typescript/01-getting-started.md +494 -0
  29. package/docs-agents/typescript/02-configuration.md +841 -0
  30. package/docs-agents/typescript/03-runtime.md +864 -0
  31. package/docs-agents/typescript/04-streaming.md +478 -0
  32. package/docs-agents/typescript/05-swarm-pipeline.md +957 -0
  33. package/docs-agents/typescript/index.md +121 -0
  34. package/docs-evals/SKILL.md +112 -0
  35. package/docs-evals/cli-reference/agent.mdx +67 -0
  36. package/docs-evals/cli-reference/analysis.mdx +91 -0
  37. package/docs-evals/cli-reference/analyze.mdx +74 -0
  38. package/docs-evals/cli-reference/auth.mdx +60 -0
  39. package/docs-evals/cli-reference/check.mdx +146 -0
  40. package/docs-evals/cli-reference/dataset.mdx +133 -0
  41. package/docs-evals/cli-reference/index.mdx +108 -0
  42. package/docs-evals/cli-reference/job.mdx +239 -0
  43. package/docs-evals/cli-reference/run.mdx +196 -0
  44. package/docs-evals/cli-reference/secrets.mdx +95 -0
  45. package/docs-evals/cli-reference/skill.mdx +51 -0
  46. package/docs-evals/cli-reference/skills.mdx +81 -0
  47. package/docs-evals/cli-reference/trial.mdx +112 -0
  48. package/docs-evals/cli-reference/upload.mdx +36 -0
  49. package/docs-evals/core-concepts/agents.mdx +106 -0
  50. package/docs-evals/core-concepts/analyze.mdx +86 -0
  51. package/docs-evals/core-concepts/check.mdx +51 -0
  52. package/docs-evals/core-concepts/datasets.mdx +138 -0
  53. package/docs-evals/core-concepts/index.mdx +42 -0
  54. package/docs-evals/core-concepts/jobs.mdx +136 -0
  55. package/docs-evals/core-concepts/models.mdx +68 -0
  56. package/docs-evals/core-concepts/sandboxes.mdx +52 -0
  57. package/docs-evals/core-concepts/secrets.mdx +41 -0
  58. package/docs-evals/core-concepts/skills.mdx +42 -0
  59. package/docs-evals/core-concepts/tasks.mdx +216 -0
  60. package/docs-evals/core-concepts/trial-outputs.mdx +103 -0
  61. package/docs-evals/core-concepts/trials.mdx +103 -0
  62. package/docs-evals/core-concepts/upload.mdx +45 -0
  63. package/docs-evals/dashboard/checks.mdx +15 -0
  64. package/docs-evals/dashboard/datasets.mdx +24 -0
  65. package/docs-evals/dashboard/jobs.mdx +65 -0
  66. package/docs-evals/dashboard/traces.mdx +15 -0
  67. package/docs-evals/dashboard/trial-viewer.mdx +30 -0
  68. package/docs-evals/docs.json +180 -0
  69. package/docs-evals/getting-started/installation.mdx +56 -0
  70. package/docs-evals/getting-started/quick-start.mdx +85 -0
  71. package/docs-evals/index.mdx +36 -0
  72. package/docs-evals/sdk/python.mdx +139 -0
  73. package/docs-evals/sdk/typescript.mdx +141 -0
  74. package/docs-evals/sdk-reference/agents.mdx +105 -0
  75. package/docs-evals/sdk-reference/analyses.mdx +125 -0
  76. package/docs-evals/sdk-reference/auth.mdx +76 -0
  77. package/docs-evals/sdk-reference/checks.mdx +166 -0
  78. package/docs-evals/sdk-reference/datasets.mdx +305 -0
  79. package/docs-evals/sdk-reference/errors.mdx +199 -0
  80. package/docs-evals/sdk-reference/index.mdx +58 -0
  81. package/docs-evals/sdk-reference/jobs.mdx +731 -0
  82. package/docs-evals/sdk-reference/meta.mdx +52 -0
  83. package/docs-evals/sdk-reference/skills.mdx +68 -0
  84. package/docs-evals/sdk-reference/trials.mdx +232 -0
  85. package/docs-evals/sdk-reference/types.mdx +272 -0
  86. package/docs-evals/snippets/global-options.mdx +13 -0
  87. package/docs-evals/snippets/list-flags.mdx +23 -0
  88. package/harness-capabilities.json +430 -0
  89. package/hosted-error-codes.json +120 -0
  90. package/package.json +163 -0
  91. package/skills/create-adapter/SKILL.md +287 -0
  92. package/skills/create-task/SKILL.md +491 -0
  93. package/skills/evolve/SKILL.md +39 -0
  94. package/skills/publish/SKILL.md +142 -0
  95. package/skills/rewardkit/SKILL.md +330 -0
  96. package/spec/atif/README.md +45 -0
  97. package/spec/atif/trajectory.schema.json +865 -0
  98. package/spec/openapi.yaml +13447 -0
@@ -0,0 +1,491 @@
1
+ ---
2
+ name: create-task
3
+ description: Create a new task in the Harbor task format for evaluating agents on Evolve. Use when the user wants to
4
+ scaffold, build, or design a new task, benchmark problem, or eval. Guides through
5
+ instruction writing, environment setup, verifier design (pytest vs Reward Kit vs
6
+ custom), solution scripting, checking the task with evolve check, and publishing it.
7
+ metadata:
8
+ internal: true
9
+ ---
10
+
11
+ Guide the user through creating a new task end-to-end. Don't just dump commands —
12
+ walk them through each decision, especially around the verifier (which is usually the
13
+ hardest part).
14
+
15
+ The task format is Harbor's, and Evolve runs it unchanged. The full specification is at
16
+ https://docs.harborframework.com/core-concepts/tasks/overview.
17
+
18
+ ## Step 1: Create the task directory
19
+
20
+ The `evolve` CLI has no scaffold command today. Create the layout by hand:
21
+
22
+ ```bash
23
+ mkdir -p "<task-name>/environment" "<task-name>/solution" "<task-name>/tests"
24
+ ```
25
+
26
+ The files to write, one per step below:
27
+ ```
28
+ <task-name>/
29
+ ├── instruction.md # Task prompt for the agent
30
+ ├── task.toml # Config and metadata
31
+ ├── environment/Dockerfile # Container definition
32
+ ├── solution/solve.sh # Reference solution (optional)
33
+ └── tests/test.sh # Verifier script
34
+ ```
35
+
36
+ The directory name is the task's name on the platform: letters, digits, `.`, `_` and `-`,
37
+ at most 128 characters, starting with a letter or digit; use lowercase (Harbor's convention).
38
+
39
+ Where Harbor is installed, `harbor task init "<org>/<task-name>"` produces the same layout
40
+ (optional).
41
+
42
+ If the user wants a **multi-step task** (ordered steps with per-step
43
+ instructions, tests, and early stopping against a shared container), write
44
+ the single-step layout first, then convert to the `steps/` layout described in
45
+ the *Multi-step tasks* section below.
46
+
47
+ ## Step 2: Write instruction.md
48
+
49
+ This is the prompt the agent receives. Help the user write it clearly:
50
+
51
+ - **State the goal concretely** — what file to create, what behavior to produce
52
+ - **Specify expected outputs** — paths, formats, content
53
+ - **Include constraints** — language, tools, approach
54
+ - **Don't leak the tests** — describe what "done" looks like, not how you'll check it
55
+
56
+ Example (from the ssh-key-pair tutorial):
57
+ ```markdown
58
+ # SSH Key Pair Generation
59
+
60
+ Generate an SSH key pair in the files `~/.ssh/id_rsa` and `~/.ssh/id_rsa.pub`.
61
+
62
+ Don't make them password protected.
63
+ ```
64
+
65
+ ## Step 3: Build the environment
66
+
67
+ Edit `environment/Dockerfile` to install dependencies the task needs. The agent works
68
+ inside this container.
69
+
70
+ ```dockerfile
71
+ FROM ubuntu:24.04
72
+ WORKDIR /app
73
+
74
+ # Install what the task requires — NOT the solution
75
+ RUN apt-get update && apt-get install -y openssh-client && rm -rf /var/lib/apt/lists/*
76
+ ```
77
+
78
+ For multi-container setups, use `environment/docker-compose.yaml` instead. After
79
+ publishing, `evolve dataset show "<dataset>@<version>"` prints which sandbox providers can
80
+ run each task.
81
+
82
+ **Test the environment interactively** before writing the solution or tests:
83
+ ```bash
84
+ docker build -t "<task-name>" "<task-path>/environment"
85
+ docker run --rm -it "<task-name>" bash
86
+ ```
87
+
88
+ This is usually where task authors realize something is missing from the Dockerfile.
89
+
90
+ ## Step 4: Decide how to verify
91
+
92
+ **This is the most important decision.** Ask the user: *"How do you want to grade this
93
+ task?"* Then help them pick:
94
+
95
+ Also ask: *"Should the verifier run in the same environment as the agent, or in a
96
+ separate verifier environment?"*
97
+
98
+ - Use the default shared environment when tests need to inspect the agent's full
99
+ workspace, installed tools, or services.
100
+ - Use a separate verifier environment when grading code, dependencies, API keys,
101
+ or OS requirements should stay hidden from the agent, or when verification
102
+ should run from a clean image.
103
+
104
+ For a separate verifier container with no pinned `[verifier.environment] docker_image`,
105
+ `tests/` is the verifier image's build context and its `tests/Dockerfile` must provide
106
+ `/tests/test.sh`. A verifier that pins the task's own image gets `tests/` uploaded to
107
+ `/tests`; one that pins a distinct image boots as it is with nothing uploaded, so that
108
+ image must carry `/tests/test.sh` itself. A separate verifier judges only what the task
109
+ lists under a top-level `artifacts = ["/app/out.json"]` in `task.toml`, never the agent's
110
+ whole workspace.
111
+
112
+ ```toml
113
+ [verifier]
114
+ environment_mode = "separate"
115
+
116
+ [verifier.environment]
117
+ docker_image = "ubuntu:24.04"
118
+ ```
119
+
120
+ ### Option A: Reward Kit (recommended for most cases)
121
+
122
+ Use when the verifier has multiple criteria, needs partial credit, uses an LLM/agent
123
+ judge, or would benefit from composable reusable checks. See `evolve skills get rewardkit`.
124
+
125
+ Good fit signals:
126
+ - Multiple things to check (file exists + content correct + command works)
127
+ - Subjective quality dimensions (readability, correctness of prose)
128
+ - Want partial credit rather than pass/fail
129
+ - Want to compose built-ins like `file_contains`, `command_succeeds`, `json_key_equals`
130
+
131
+ `tests/test.sh`:
132
+ ```bash
133
+ #!/bin/bash
134
+ uvx --from 'harbor-rewardkit==0.2.*' rewardkit /tests
135
+ ```
136
+
137
+ Note: the package is named `harbor-rewardkit` but the executable is `rewardkit`,
138
+ hence `--from 'harbor-rewardkit==0.2.*' rewardkit`. Running
139
+ `uvx harbor-rewardkit` directly will fail.
140
+
141
+ Then add `tests/checks.py` and/or `tests/judge.toml`. Read `evolve skills get rewardkit` to
142
+ design the criteria.
143
+
144
+ ### Option B: pytest (good for deterministic unit-style checks)
145
+
146
+ Use when the verification is straightforward assertion-style Python.
147
+
148
+ `tests/test.sh`:
149
+ ```bash
150
+ #!/bin/bash
151
+ apt-get update && apt-get install -y curl
152
+ curl -LsSf https://astral.sh/uv/0.9.7/install.sh | sh
153
+ source $HOME/.local/bin/env
154
+
155
+ uvx --with pytest==8.4.1 pytest /tests/test_outputs.py
156
+
157
+ if [ $? -eq 0 ]; then
158
+ echo 1 > /logs/verifier/reward.txt
159
+ else
160
+ echo 0 > /logs/verifier/reward.txt
161
+ fi
162
+ ```
163
+
164
+ Example `tests/test_outputs.py`:
165
+ ```python
166
+ from pathlib import Path
167
+
168
+ def test_file_exists():
169
+ assert (Path.home() / ".ssh" / "id_rsa").exists()
170
+ ```
171
+
172
+ ### Option C: Custom shell
173
+
174
+ For simple single-command checks (e.g. a binary pass/fail from one command):
175
+ ```bash
176
+ #!/bin/bash
177
+ if diff -q /app/output.txt /tests/expected.txt; then
178
+ echo 1 > /logs/verifier/reward.txt
179
+ else
180
+ echo 0 > /logs/verifier/reward.txt
181
+ fi
182
+ ```
183
+
184
+ ### Reward file format (all options)
185
+
186
+ - `/logs/verifier/reward.txt` — single number (usually `0` or `1`)
187
+ - `/logs/verifier/reward.json` — `{"accuracy": 0.95, "runtime_sec": 1.2}` for multiple metrics
188
+
189
+ When both exist, `reward.json` wins. Everything the script prints is kept as the verifier log.
190
+
191
+ **Always use absolute paths in `test.sh`.**
192
+
193
+ ## Step 5: Write the solution
194
+
195
+ Write `solution/solve.sh` — a script that actually solves the task. `evolve check` runs
196
+ it to confirm the task is solvable and the tests pass on a correct solution. The agent is
197
+ never given it.
198
+
199
+ ```bash
200
+ #!/bin/bash
201
+ ssh-keygen -t rsa -f ~/.ssh/id_rsa -N ""
202
+ ```
203
+
204
+ Make it executable: `chmod +x solution/solve.sh`.
205
+
206
+ ## Step 6: Configure task.toml
207
+
208
+ Walk through the important fields:
209
+
210
+ ```toml
211
+ [task]
212
+ name = "<org>/<task-name>"
213
+ version = "1.0.0"
214
+ description = "One-line description"
215
+ keywords = ["jax", "mnist", "rewardkit"] # 3–8 lowercase tokens: domain, verifier style, hardware
216
+
217
+ [metadata]
218
+ difficulty = "easy" | "medium" | "hard"
219
+ category = "programming" | "machine-learning" | "gpu" | ...
220
+ tags = ["..."]
221
+
222
+ [agent]
223
+ timeout_sec = 120.0 # How long the agent has
224
+
225
+ [verifier]
226
+ timeout_sec = 600.0 # How long tests have
227
+
228
+ [environment]
229
+ network_mode = "public" # Baseline at env start (defaults to public)
230
+ cpus = 1 # CPU cores
231
+ memory_mb = 2048 # RAM in MB
232
+ storage_mb = 10240 # Disk in MB
233
+ ```
234
+
235
+ `keywords`: 3–8 lowercase tokens covering the domain (language/framework/benchmark
236
+ family), the verifier style (`rewardkit`, `judge-grading`, `pytest`), and any notable
237
+ hardware (`gpu`).
238
+
239
+ ### Network policy
240
+
241
+ Network access has two layers:
242
+
243
+ 1. **Baselines** — set when an environment starts, restored between phases
244
+ 2. **Phase overrides** — optional; only during `agent.run()` or `verify()`
245
+
246
+ | Field | Layer | When applied |
247
+ | --- | --- | --- |
248
+ | `[environment].network_mode` | Baseline | Agent env start; shared verifier uses this too |
249
+ | `[verifier.environment].network_mode` | Baseline | Separate verifier env start |
250
+ | `[agent].network_mode`, `[steps.agent].network_mode` | Override | During matching `agent.run()` |
251
+ | `[verifier].network_mode`, `[steps.verifier].network_mode` | Override | During matching `verify()` |
252
+
253
+ Modes: `public`, `no-network`, or `allowlist` with `allowed_hosts = ["pypi.org"]`
254
+ (exact hostnames, IPv4/IPv6 address literals or CIDR ranges, or leading wildcard hostnames, when supported by the selected environment; not URLs,
255
+ ports, or paths). Omitting `[environment].network_mode` defaults to `public`.
256
+
257
+ `[agent]` / `[verifier]` are **optional phase overrides** — only applied when set
258
+ **and** different from the phase baseline. Matching the baseline is a no-op.
259
+
260
+ **Shared verifier** (default): verifier runs in the agent container; baseline is
261
+ `[environment]`. **Separate verifier**: baseline is `[verifier.environment]` if
262
+ set, else a copy of `[environment]`.
263
+
264
+ ```toml
265
+ # Agent starts offline; agent phase opens network; verifier stays offline
266
+ [environment]
267
+ network_mode = "no-network"
268
+
269
+ [agent]
270
+ network_mode = "public"
271
+
272
+ [verifier]
273
+ network_mode = "no-network"
274
+ ```
275
+
276
+ On Evolve a shared-mode verifier cannot switch egress: a `[verifier] network_mode` that
277
+ differs from the `[environment]` baseline is refused at import. Prefer
278
+ `environment_mode = "separate"` when agent and verifier need different baselines:
279
+
280
+ ```toml
281
+ [environment]
282
+ network_mode = "no-network"
283
+
284
+ [verifier]
285
+ environment_mode = "separate"
286
+
287
+ [verifier.environment]
288
+ network_mode = "public" # Verifier baseline — not a phase override
289
+ ```
290
+
291
+ Full reference: https://docs.harborframework.com/core-concepts/tasks/network-policies.
292
+
293
+ For Reward Kit judges needing API keys:
294
+ ```toml
295
+ [verifier.env]
296
+ ANTHROPIC_API_KEY = "${ANTHROPIC_API_KEY}"
297
+ ```
298
+
299
+ On Evolve you never put a real key in the task: write the template exactly as above, as
300
+ the whole value, and the judge's credential is supplied at run time.
301
+
302
+ ## Step 7: Check the task
303
+
304
+ ```bash
305
+ evolve check "<task-path>" --watch
306
+ ```
307
+
308
+ The check reads the task and, when it can, runs the environment, `solution/solve.sh` and
309
+ the verifier, then rules on every criterion of a rubric (eleven by default); `executed` in
310
+ the result says whether it ran the task. `evolve check show <check-id>` prints one entry
311
+ per criterion, with an `outcome`, an `explanation` and `evidence`, and one label per task:
312
+ `has_a_problem`, `unclear` or `no_problem_found`.
313
+
314
+ Where Harbor is installed, `harbor run -p "<task-path>" -a oracle` runs the solution and
315
+ the verifier locally (optional). Its reward should be `1.0`. If it's not, debug in this order:
316
+ 1. Does `solve.sh` actually solve it? (run it by hand inside `docker run --rm -it "<task-name>" bash`)
317
+ 2. Does the verifier correctly detect success? (check `/logs/verifier/` output)
318
+ 3. Are paths correct? (absolute vs relative)
319
+ 4. Are dependencies installed in the Dockerfile?
320
+
321
+ ## Step 8: Test with a real agent (optional)
322
+
323
+ Publish a folder holding the task directory as a dataset, then run a job on it:
324
+
325
+ ```bash
326
+ evolve dataset check ./tasks
327
+ evolve dataset publish --dir ./tasks --name "<dataset>" --version 1.0 --watch
328
+ evolve run -d "<dataset>@1.0" -a codex -m gpt-5.5 --watch
329
+ ```
330
+
331
+ If the task is too easy (every model 1.0) or impossible (every model 0.0), consider
332
+ adjusting difficulty. `evolve skills get publish` covers every publish option.
333
+
334
+ ## Step 9: Write README.md (always the final step)
335
+
336
+ Add a `README.md` so future humans (and agents) can understand the task without reading
337
+ every file. Include:
338
+
339
+ - **What the agent does** — one paragraph, link to `instruction.md`.
340
+ - **Environment** — base image, key installed packages, cached data, hardware
341
+ (GPU/CPU/RAM), agent timeout.
342
+ - **Verifier** — for Reward Kit tasks, a table of reward dimensions with type
343
+ (programmatic / LLM judge / agent judge) and what each measures; how they're
344
+ aggregated.
345
+ - **Layout** — a tree of the task directory with one-line annotations.
346
+ - **Running** — the concrete `evolve check` and `evolve run` commands, with the
347
+ sandbox provider (`-e`) that `evolve dataset show` reports can run the task if it
348
+ needs a GPU.
349
+
350
+ Treat this as docs, not marketing — the reader wants to know *what they'd need to
351
+ change* to modify the task.
352
+
353
+ ## Multi-step tasks
354
+
355
+ Use when the work splits into ordered phases that should be scored separately,
356
+ when you want early stopping between phases, or when you're testing an agent's
357
+ ability to build on its own prior work. Steps share one container; files
358
+ persist across steps.
359
+
360
+ ### Directory layout
361
+
362
+ Replace the task-root `instruction.md`, `tests/`, and `solution/` with a
363
+ `steps/` directory containing one sub-directory per step:
364
+
365
+ Each `[[steps]].name` must match one directory name of at most 255 UTF-8 bytes,
366
+ unique after case folding and Unicode normalization. Avoid path separators,
367
+ control characters, Windows-reserved characters/device names, and trailing dots
368
+ or spaces. Keep all task inputs and linked contents within the task directory;
369
+ validation permits shared links inside the task. Use regular files and directories
370
+ for shared inputs when publishing tasks.
371
+
372
+ ```
373
+ <task-name>/
374
+ ├── task.toml
375
+ ├── environment/Dockerfile # Built once, shared across all steps
376
+ ├── steps/
377
+ │ ├── scaffold/
378
+ │ │ ├── instruction.md # Prompt for this step
379
+ │ │ ├── workdir/ # Uploaded to WORKDIR before the agent runs
380
+ │ │ │ └── setup.sh # Optional pre-agent hook (reserved filename)
381
+ │ │ ├── tests/test.sh # Per-step verifier
382
+ │ │ └── solution/solve.sh # Per-step reference solution (optional)
383
+ │ ├── implement/
384
+ │ │ └── ...
385
+ │ └── document/
386
+ │ └── ...
387
+ └── tests/ # Optional shared helpers + fallback test.sh
388
+ ```
389
+
390
+ Task-level `tests/` is uploaded to `/tests` for each step's verification, then
391
+ the step's own `tests/` is layered on top (same-name files win). Use this for
392
+ shared helpers.
393
+
394
+ `steps/{name}/workdir/setup.sh` is a **reserved filename**: if present, it runs
395
+ after the `workdir/` upload and before the agent, as the step's agent user,
396
+ with cwd = WORKDIR. Non-zero exit aborts the step and the trial. Have it
397
+ `rm -- "$0"` on its last line if the agent shouldn't see it.
398
+
399
+ ### task.toml
400
+
401
+ ```toml
402
+ schema_version = "1.4"
403
+
404
+ [task]
405
+ name = "<org>/<task-name>"
406
+ version = "1.0.0"
407
+
408
+ # How per-step rewards roll up into the trial-level verifier_result.
409
+ # "mean" (default): per-key mean across steps that produced a result.
410
+ # "final": the last step's verifier_result verbatim.
411
+ multi_step_reward_strategy = "mean"
412
+
413
+ [[steps]]
414
+ name = "scaffold" # Must match the directory under steps/
415
+ min_reward = 1.0 # Abort trial if this step's reward < 1.0
416
+ [steps.agent]
417
+ timeout_sec = 60.0 # Overrides task-level [agent].timeout_sec
418
+ [steps.verifier]
419
+ timeout_sec = 30.0
420
+
421
+ [[steps]]
422
+ name = "implement"
423
+ # Dict form gates on specific keys from a multi-dim reward:
424
+ min_reward = { correctness = 0.8, style = 0.5 }
425
+ [steps.agent]
426
+ timeout_sec = 120.0
427
+ [steps.verifier]
428
+ timeout_sec = 30.0
429
+
430
+ [[steps]]
431
+ name = "document"
432
+ [steps.agent]
433
+ timeout_sec = 60.0
434
+ [steps.verifier]
435
+ timeout_sec = 30.0
436
+ ```
437
+
438
+ Per-step overrides available: `agent.timeout_sec`, `agent.user`,
439
+ `agent.network_mode`, `verifier.timeout_sec`, `verifier.env`, `verifier.user`,
440
+ `verifier.network_mode`, `verifier.environment_mode`, `verifier.environment`,
441
+ `steps.verifier.environment.network_mode`, `healthcheck.*`, `artifacts`. Unset
442
+ fields fall back to the task-level values.
443
+
444
+ ### Choosing a reward strategy
445
+
446
+ - **`"mean"`** — aggregate signal across all steps; good for continuous
447
+ progress rewards.
448
+ - **`"final"`** — last step's verifier_result is the trial reward. Right when
449
+ the final step is an end-to-end check whose dict already represents the full
450
+ task. Caveat: if `min_reward` triggers an early abort, `"final"` uses the
451
+ *aborted* step's result, not the intended final step.
452
+
453
+ ### Artifacts
454
+
455
+ Step-level `artifacts` are collected into `steps/{name}/artifacts/` after that
456
+ step's verification. Task-level and trial-level artifacts are collected at
457
+ every step in addition to the step-level ones.
458
+
459
+ ### Checking a multi-step task
460
+
461
+ Where Harbor is installed, `harbor run -p "<task-path>" -a oracle` runs each step's
462
+ `solution/solve.sh`, then each step's verifier, in order (optional). Trial reward
463
+ should be `1.0` across the aggregation strategy. Then publish and run it (Step 8).
464
+
465
+ ### Full reference + worked example
466
+
467
+ - Docs: https://docs.harborframework.com/core-concepts/tasks/multi-step
468
+ - Example task: https://github.com/laude-institute/harbor/tree/main/examples/tasks/hello-multi-step-advanced
469
+
470
+ ## Special features (mention if relevant)
471
+
472
+ - **Network policy**: Baselines on `[environment]` / `[verifier.environment]`; phase
473
+ overrides on `[agent]` / `[verifier]`; see *Network policy* under Step 6
474
+ - **MCP servers**: Add `[[environment.mcp_servers]]` in task.toml for agent tooling
475
+ - **Healthcheck**: Add `[environment.healthcheck]` for services that need to be ready
476
+ - **GPU**: Set `environment.gpus` and optionally `environment.gpu_types`
477
+ - **Pre-built image**: Set `environment.docker_image` instead of building from Dockerfile. You can omit `environment/Dockerfile` and place runtime files (configs, scripts, data) directly under `environment/`; the platform uploads them into the container workdir when the environment starts.
478
+ - **Non-root user**: Set `agent.user` / `verifier.user` for isolation
479
+
480
+ ## Common pitfalls
481
+
482
+ - Forgetting to write the reward file → task "passes" silently with reward 0
483
+ - Using relative paths in `test.sh` → breaks when the verifier runs it from a different cwd
484
+ - Installing the solution into the Dockerfile → agent already gets the answer
485
+ - Test script leaks into `instruction.md` → agent sees the rubric and gaming becomes trivial
486
+ - Forgetting `chmod +x solution/solve.sh` → the reference solution cannot run
487
+ - Leaving `README.md` out → teammates have no way to understand the task at a glance
488
+ - Putting `network_mode` on `[agent]` expecting it to apply at env start → use
489
+ `[environment].network_mode` for the baseline; agent/verifier fields are phase overrides
490
+ - A shared verifier's `[verifier] network_mode` differs from the `[environment]` baseline →
491
+ refused at import; use a separate verifier env or match the baseline instead
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: evolve
3
+ description: "Evolve runs agent evaluations in the cloud: any model on any coding-agent harness (Claude Code, Codex, Gemini and more) against datasets of Harbor-format tasks, such as terminal-bench or SWE-bench style benchmarks, plus an SDK that runs those agents in sandboxes from TypeScript or Python. Use this skill whenever the user names Evolve or the `evolve` command, or wants to benchmark, evaluate, score or compare models or agent harnesses, start or watch an eval job, browse or publish a dataset of tasks, read trials, traces, rewards, checks or analyses, write, verify, convert or publish a task in the Harbor format (task.toml, verifier, Reward Kit, rubric), or run a coding agent in a sandbox from code, even when the word Evolve is not said. Not for browser automation, ordinary shell or git work, a data table in pandas or SQL, or agent frameworks other than Evolve."
4
+ allowed-tools: Bash(evolve:*), Bash(npx evolve:*)
5
+ ---
6
+
7
+ # evolve
8
+
9
+ Hosted evals and the SDK, from the `evolve` command.
10
+
11
+ Install: `npm i -g @evolvingmachines/evolve`, then `export EVOLVE_API_KEY=<your key>` (create a key at https://dashboard.evolvingmachines.ai/api-keys).
12
+
13
+ ## Start here
14
+
15
+ This file is a pointer, not the manual. The manual ships inside the CLI and always matches the installed version. Before running any `evolve` command, load it:
16
+
17
+ ```bash
18
+ evolve skills get evals # the index of the documentation: every page, one line each
19
+ evolve skills get evals core-concepts/tasks # one page, by its site path
20
+ evolve skills get evals --full # every page at once; only when everything is needed
21
+ ```
22
+
23
+ Read the index first, then the page for your topic, then write the command. Every verb also answers `evolve <verb> --help`.
24
+
25
+ ## The other skills
26
+
27
+ ```bash
28
+ evolve skills get agents # the SDK: run agents (Claude, Codex, Gemini, ...) in sandboxes from TypeScript or Python
29
+ evolve skills get create-task # write a new task in the Harbor format, verifier included
30
+ evolve skills get rewardkit # write a task's verifier with Reward Kit
31
+ evolve skills get create-adapter # convert an existing benchmark into a folder of Harbor-format tasks
32
+ evolve skills get publish # publish a dataset of tasks, or upload a job you ran elsewhere
33
+ ```
34
+
35
+ `evolve skills list` names everything the installed version serves; `--full` on any skill adds its pages.
36
+
37
+ ## Inside the evolve repository
38
+
39
+ An agent working in a checkout of https://github.com/evolving-machines-lab/evolve reads the same content directly: `docs-evals/SKILL.md` (the evals index; the pages sit beside it), `docs-agents/SKILL.md`, and `skills/<name>/SKILL.md` for the others; nothing needs to be installed.
@@ -0,0 +1,142 @@
1
+ ---
2
+ name: publish
3
+ description: Publish a dataset of Harbor-format tasks to Evolve, or upload a finished job directory. Use when the user wants to publish, upload, or share tasks, datasets/benchmarks, or job results on Evolve.
4
+ metadata:
5
+ internal: true
6
+ ---
7
+
8
+ Help the user publish a dataset of tasks to Evolve, or upload a job they ran elsewhere.
9
+ Walk them through each step, checking prerequisites and confirming before running
10
+ commands that upload.
11
+
12
+ ## Prerequisites
13
+
14
+ 1. **The CLI**: `npm install -g @evolvingmachines/evolve`; `evolve --version` succeeds.
15
+
16
+ 2. **API key**: create a key on the dashboard's API keys page
17
+ (https://dashboard.evolvingmachines.ai/api-keys) and export it. Every command reads
18
+ `EVOLVE_API_KEY`.
19
+ ```bash
20
+ export EVOLVE_API_KEY="<your key>"
21
+ evolve auth status
22
+ ```
23
+ `auth status` prints who the platform thinks you are and which key is in use.
24
+
25
+ 3. **Task layout**: a dataset is a folder of task directories, each with `task.toml`,
26
+ `instruction.md`, `tests/test.sh`, and an `environment/` folder unless `task.toml`
27
+ names a prebuilt `docker_image` (`evolve skills get create-task` has the format). The
28
+ directory name is the task's name: letters, digits, `.`, `_` and `-`, at most 128
29
+ characters, starting with a letter or digit; use lowercase (Harbor's convention). A
30
+ `dataset.toml` manifest at the root is optional.
31
+
32
+ ## Publishing a dataset
33
+
34
+ What you publish is private to your organization. There are no tags and no visibility
35
+ flag.
36
+
37
+ ### 1. Check the folder first
38
+
39
+ ```bash
40
+ evolve dataset check "<path/to/tasks>"
41
+ ```
42
+
43
+ A dry run: the pre-flight sends each task's `task.toml`, and the `dataset.toml` if there
44
+ is one, to the server, which answers with a verdict per task and writes nothing. A refused
45
+ task names the field to fix. `evolve check "<path/to/tasks>" --watch` goes further: it
46
+ reads each task and, when it can, runs its environment, reference solution and verifier,
47
+ then rules on a rubric.
48
+
49
+ ### 2. Publish
50
+
51
+ From a local directory:
52
+
53
+ ```bash
54
+ evolve dataset publish \
55
+ --dir "<path/to/tasks>" \
56
+ --name "<dataset>" \
57
+ --version 1.0 \
58
+ --watch
59
+ ```
60
+
61
+ When the folder carries a `dataset.toml` manifest, `--name` and `--version` come from it
62
+ and may be omitted. The pre-flight runs automatically before the upload;
63
+ `--skip-preflight` uploads without it, and a task the check would have refused then fails
64
+ at import instead.
65
+
66
+ From a git repository:
67
+
68
+ ```bash
69
+ evolve dataset publish \
70
+ --git https://github.com/acme/my-swe.git \
71
+ --ref v1.0.0 \
72
+ --name "<dataset>" \
73
+ --version 1.0 \
74
+ --watch
75
+ ```
76
+
77
+ `--ref` must be pinned: a tag, or a full 40-character commit sha. A branch name is
78
+ refused. `--path <subfolder>` imports one folder of a larger repository.
79
+
80
+ From a source the server fetches itself:
81
+
82
+ ```bash
83
+ evolve dataset publish --from hub:cookbook/hello-world --watch
84
+ ```
85
+
86
+ `--from` takes a public https tarball URL, or `hub:org/name[@ref]` for a public package on
87
+ the Harbor hub. For a hub package the name and version default to the package's own.
88
+
89
+ ### 3. Follow the publish
90
+
91
+ `--watch` follows the publish until the version is `READY` or `FAILED`. Each task builds
92
+ on its own, so one broken task does not block the others; `--watch` ends with how many
93
+ built. If the terminal is gone, re-attach from any machine:
94
+
95
+ ```bash
96
+ evolve dataset watch "<dataset>"
97
+ ```
98
+
99
+ The version lands `READY` when at least one task built, and `FAILED` only when none did.
100
+ On your own dataset, `READY` also makes the version active, so the bare name runs it.
101
+
102
+ ## After publishing
103
+
104
+ ```bash
105
+ evolve dataset show "<dataset>@1.0" # versions, tasks, timeouts, providers per task
106
+ evolve run -d "<dataset>@1.0" -a codex -m gpt-5.5 --watch # run a job on it
107
+ ```
108
+
109
+ Each publish creates a version, named `<dataset>@<version>`; a bare name means the active
110
+ version. To point the bare name at a different `READY` version:
111
+
112
+ ```bash
113
+ evolve dataset activate "<dataset>" 1.0
114
+ ```
115
+
116
+ The owner of a dataset can download the original package back:
117
+
118
+ ```bash
119
+ evolve dataset download "<dataset>@1.0" -o corpora/
120
+ ```
121
+
122
+ ## Uploading a job you ran elsewhere
123
+
124
+ A job run elsewhere, in the Harbor job layout, uploads as a finished job. Its trials,
125
+ traces and rewards become a job you read like any other.
126
+
127
+ ```bash
128
+ evolve upload "<path/to/job-dir>" -d "<dataset>@1.0"
129
+ ```
130
+
131
+ `upload` takes the job directory, or its `.tar.gz`. With `--from <url>` it takes instead
132
+ a public https URL of the archive, which the server fetches itself. `-d name[@version]`
133
+ links the uploaded trials to a published dataset version by task name. The command
134
+ follows the import until the job exists; `--no-wait` returns at once with the import id.
135
+
136
+ ```bash
137
+ evolve job imports --status RUNNING
138
+ evolve job import <import-id> --watch
139
+ ```
140
+
141
+ `job imports` lists your uploads, newest first. `job import --watch` re-attaches to one and
142
+ follows it to the job, or to its typed failure.