Configuration reference#
This page lists every key you can set in a study's config.yaml. Every key
has a default, so you can omit the file entirely. For how to write a study, see
Author a study.
adda reads exactly the keys on this page. An unknown top-level key stops the
run at start with an error that suggests the closest known key, so a typo
cannot pass silently. Put your own settings under study:, which adda never
reads.
A key marked "Python:" also has an AgenticRun argument of the same name. An
argument you pass wins over config.yaml.
Top-level keys#
| key | meaning | default |
|---|---|---|
model |
The language model to use. On the Claude backend, haiku, sonnet and opus are aliases the claude command-line tool resolves to the latest model of that family; the run records the served id as model_resolved. Python: AgenticRun(model="sonnet"). |
haiku on Claude; the backend's default elsewhere. |
backend |
claude, ollama, openrouter, or vllm. |
claude |
budget |
Wall-clock limit, as "HH:MM:SS" or seconds. Python: AgenticRun(budget=3600) (seconds). |
none |
token_budget |
A positive integer of generated tokens, summed over every agent (reviews and wakes included). Input tokens do not count. A backend that reports no output tokens stops the run with an error; adda never estimates. Use it to give two models the same budget regardless of GPU speed or queue time. Python: AgenticRun(token_budget=200_000). |
none |
eval_budget |
How many real evaluations the run should spend, counted as the rows in the canonical store plus the direct calls to a metered solver (see solver). It only sends notices; it never stops the run or refuses an evaluation. Python: AgenticRun(eval_budget=200). |
none |
watchdog_wall_s |
The wall-clock limit for python -m adda.watchdog, as "HH:MM:SS" or seconds. Use it when the run has no budget, because there is then no wall budget to take a multiple of. Setting it next to a budget is an error. |
none |
The wall and token budgets (budget and token_budget) are enforced together.
Each has a progress fraction, and the schedule follows the one that is
furthest along: notices from 75%, no new delegations at 90%, and the wind-down
at 100%, when the first of them reaches it (runtime: keys in the
runtime reference). run_status.json records which
budget set the stop in budget_trigger (wall or tokens). The evaluation
budget only sends notices, from 75% and then every 5%, with the evaluations
left. It does not count toward the cutoff or the wind-down. The old
budget_clock key was removed; a config that has it is rejected.
| budget_usd | Hard cost ceiling. The run halts when spend reaches it, and you can raise it and resume. Inactive on a backend with no per-call cost data, such as Ollama. Python: AgenticRun(budget_usd=5.0). | none |
| required_deliverables | Extra files, relative to the study directory, that must exist before the run can finish. Python: AgenticRun(required_deliverables=["predict.py"]). | none |
| evaluator | How a design gets scored. See The evaluator. | Honor system. |
| objective | Which output is optimized, in which direction, and which 0/1 column marks a design feasible. See Declaring the objective. | Undeclared. |
| funnel | The 0/1 outputs that the viewer's stage funnel counts, in order. See Declaring the objective. | none |
| solver | The study's own solver, as {module: solver.evaluate, functions: [homogenize]}. adda counts every call to these functions, including calls that bypass the evaluator, and counts them against eval_budget. The registered oracle is counted the same way without this key. Calls are recorded in debug/raw_solver_calls.jsonl, and the direct ones in run_status.json (raw_solver_calls). | none |
| training_data | A precomputed pool used only as training data, with no live oracle. Use it for a surrogate-only study. | none |
| base_url | The model server's endpoint, on a backend that has one. See Use a different model or backend. | The backend's default. |
| nodes | Per-agent tools, model, backend, base_url, base_prompt, derivation, ledgered_evaluations, handbook_audience, and subscribes. See Customize agents and tools. | Each agent's own. |
| llm_slurm | Serve the model on a Slurm GPU allocation. See Use a different model or backend. | Off. |
| deliverable_check | The study's own check of the delivered file, shown to the gate critic when the runtime: deliverable_check knob is on: file, command (with {file}, prints one JSON object), fields, optional rel_tol. See the runtime reference. | Off. |
| mem_cap | Hard memory cap per delegation: bytes, or a size with a binary suffix such as 8G or 512M. A value that is not a size stops the run at start. When absent, the cap is the Slurm job's memory allocation, else a built-in default. Python: AgenticRun(mem_cap="8G"). | See meaning. |
| review_statement | Review PROBLEM_STATEMENT.md before the run. The review is advisory only. false skips it. Python: AgenticRun(review_statement=False). | true |
| runtime | Run knobs: debug capture, timeouts, retry, and limits. See the Runtime reference. Python: AgenticRun(runtime={"debug": True}). | All defaulted. |
| study | Settings for your own scripts. adda never reads inside it. | none |
For the backend and model details, including how to set them per agent
instead of for the whole run, see
Use a different model or backend.
The runtime: block has its own page: the Runtime reference.
Required deliverables#
pipeline.ipynb is always required. List any other file the study must hand
back under required_deliverables, by bare filename. If your problem
statement asks for a file in the study directory, list it here: the agents'
WriteDeliverable tool writes only the files listed, and the agents can't
edit config.yaml. A binary file can't be written by WriteDeliverable.
required_deliverables:
- design.json
adda refuses Done() until each listed file exists in the study directory. The
agent writes it with WriteDeliverable, which takes a bare filename and writes
into the study directory. A path with a directory, such as temp/submission.json,
cannot be declared. If a study's PROBLEM_STATEMENT.md asks for a file by name,
list that file here. A file that you do not list is not checked, and the run can
finish without it.
An entry can also declare the format of a JSON file. Give the entry as a mapping
with path and json_keys:
required_deliverables:
- path: design.json
json_keys: [lattice, joints, beams]
Done() then returns an error unless the file is a JSON object whose top-level
keys are exactly those keys. The error names the missing and the extra keys. A
plain filename entry keeps the existence check only.
During the wind-down, Done() does not return this error, because the agent has
no time to fix the file. The run instead records the mismatch as
deliverables_malformed in run_status.json and as a DELIVERABLE_MALFORMED row
in diagnostics.jsonl. A run with a malformed deliverable never closes GATED, on
either path.