Runtime reference#
This page lists every key of the runtime: block in a study's
config.yaml. For the other keys, see the
Configuration reference.
The runtime: block holds everything that tunes how the run executes, as
opposed to what it is asked to do. Every knob has a working default, so the
block is optional. Set a knob only when you have a reason to.
For a plain-language guide to the budget knobs on this page, see Limits of a run.
runtime:
debug: true # also write per-turn transcripts to runs/<ts>/debug/transcripts/
recursion_limit: 200 # LangGraph step ceiling for one run
config.yaml is the source of truth for these knobs. The environment sets no
knob. An F3DASM_<KEY> variable left exported in a shell stops the run at
start with an error that names it, so no arm runs under a label it does not
have. A key that this page does not list is ignored with a warning at startup,
so a typo tells you instead of silently reverting to the default.
| key | meaning | default |
|---|---|---|
context_window |
Tokens the backend accepts. 0 asks the server (Ollama's served num_ctx, vLLM's max_model_len). Set it to pin the value or to sweep it. The run records the resolved number and its source. |
0 |
context_policy |
How the run keeps one agent turn inside the served context window. It applies to OpenAI-compatible backends only, because the Claude SDK manages its own context. compact summarizes the middle of the conversation, so a delegation's result survives even when its prose does not. trim drops those messages instead: it is free and deterministic, but blind to what it discards. You cannot turn it off, because an unchecked context is the crash this setting exists to stop. |
compact |
max_output_tokens |
Tokens that one model reply may generate. 0 derives the cap from the context window (a quarter of it, capped at 65536), the same share the trim reserves for the reply. -1 removes the cap. The cap bounds a looping turn that would otherwise generate for hours on a large-window server. |
0 |
debug |
Write a transcript of every agent turn (each tool call with its arguments and result) to runs/<ts>/debug/transcripts/. Off, adda writes no transcripts. Every other record in debug/ is written either way: run_status.json, diagnostics.jsonl, delegation_log.jsonl, retrospectives.jsonl, critic_reviews/, delegations/, telemetry/, and threads/ (which follows node_threads). See A run's files on disk. |
false |
recursion_limit |
LangGraph step ceiling for one run. | 2000 |
max_awake_nodes |
How many nodes may be awake at once, the strategizer included. The strategizer always holds one reserved slot, and workers share the rest. A delegation over the cap is reported as QUEUED: too many nodes working (N/N) and starts, first come first served, when a slot frees. A node that blocks in Wait on its own queued child, or whose report awaits review, hands its slot back meanwhile. A critic call runs inside its caller's slot. Memory scales with this knob: 5 awake nodes need --mem >= 32G on Slurm (run 20260928T225501 peaked at 16.76 of 16 GB with three awake). |
5 |
max_consecutive_errors |
Consecutive failures to one target before the run halts. | 12 |
budget_warn_from |
Fraction of the budget furthest along (budget or token_budget in config.yaml) at which the entry node and every running delegation get the first budget notice. The evaluation budget (eval_budget) starts its own notices at the same fraction. Sent only while budget_notes is on. |
0.75 |
budget_warn_every |
Step between later notices, as a fraction of the budget. Each notice names what is left of the wall and token budgets, in its own unit; the evaluation notice names the evaluations left. | 0.05 |
delegation_cutoff_at |
Fraction of the budget furthest along from which Delegate() refuses to start anything new. Running delegations continue. This is always enforced when a budget is set. |
0.90 |
disallowed_tools |
Built-in tools that no agent of the run may load, for example [WebSearch, WebFetch] for a run without web access. The list is added to each agent's own blocked tools, including agents with Default tools, and no other setting lifts it. The run records the list in run_config.json. |
[] |
wind_down_at |
Fraction of the budget furthest along at which the wind-down begins. The budgets are the real limit and nothing is killed: code refuses Delegate(), new metered evaluations and every tool that starts new work, with an ERROR that names the rule. Each node saves what exists, the entry node writes the deliverable and calls Done(), and the run closes after one reproduction gate and one critic review, with no rework. The run closes budget_wind_down. If the reproduction gate passes and the critic returns PASS it is GATED; otherwise it is UNGATED, halted, and resumable. The critic's tool calls count against wind_down_tool_calls. |
1.0 |
wind_down_tool_calls |
Tool calls each node has once the wind-down begins. Past the limit only its end call (Done() for the entry node, the final report for a worker) is allowed. |
50 |
node_thread_max_chars |
Only with node_threads: the size, in characters, up to which a delegation starts from its node's whole thread. Beyond that size, the oldest tool results are dropped first, then the oldest blocks keep only their task and report. |
200000 |
wind_down_turns |
Forced turns per wind-down step for the entry node. A delegation that still runs is waited for, never cancelled. | 2 |
wind_down_interrupt_after_s |
Seconds after the wind-down begins before work that has not finished gets SIGINT. adda signals only the processes a node owns (its recorded process IDs, or what a Bash-tool shell of its command-line session runs, found by the session token), never an MCP server or the command-line tool itself, never by name. | 300 |
followup_wait_s |
How long a FollowUp waits for a human answer. |
600 |
stop_grace_s |
Only with the watchdog launcher: the seconds before its deadline at which it asks the run to wind down (a stop request in debug/) instead of waiting to stop it, so agents hand over real retrospectives. It is on unless you change it: unset means a tenth of the deadline, at most 900 s. The deadline does not move. It must be shorter than the deadline. 0 disables it. |
min(900, deadline/10) |
resume_close_with_retrospectives |
On a resume whose process was lost (crash, SIGKILL, or out-of-memory), wind the run down at once instead of continuing it, so the entry node writes the retrospective that the crash cost it, including the time bullet. The run closes as crashed. The run logs workers that died in flight as missing (RETROSPECTIVES_MISSING, reason process lost). adda invents nothing for them. |
false |
allow_arm_drift |
A resume under different ablation arms than the run started with is refused, because a run measured under two arms belongs to neither. Set this to accept the mix. The arms that the run started with stay recorded as arms_initial in run_config.json. |
false |
quiet_delegation_min |
Minutes a running delegation may show no activity before its delegator gets one notice. Activity is a new modification time on the delegation's transcript or on any file in its workspace folder. New activity re-arms the notice. It never stops the delegation. | 60.0 |
peer_message_wait_s |
How long SendMessage(wait_for_reply=True) waits for a peer's reply before it returns. It applies only while peer_interaction is on. |
300 |
llm_retry_max |
Retry attempts for a failed model call. | 5 |
llm_retry_base |
Base seconds for the delay between retries. | 2.0 |
llm_stream_idle_timeout |
Seconds of stream silence before a call is abandoned. 0 disables it. |
600.0 |
llm_tool_idle_timeout |
Seconds that a single tool call may stall. 0 disables it. |
0.0 |
bash_timeout_s |
Seconds that a shell command may run before the run moves it to the background instead of blocking the agent. The agent can still pass its own timeout, capped at 600 s. The default is the same on every backend. |
120.0 |
hermes_python |
Only with the hermes backend: the Python interpreter of a Hermes Agent checkout. Hermes does not build a wheel, so it runs from its own environment. See Hermes Agent backend. |
none |
hermes_provider |
Only with the hermes backend: the Hermes provider name for the model, such as openrouter or custom. Empty lets Hermes choose. |
none |
hermes_api_key_env |
Only with the hermes backend: the name of the environment variable that holds the provider's API key. The key itself is never written to a file. |
none |
fault_usage_limit_after_calls |
For testing only. At N, the run's Nth model turn gets the provider's usage-limit notice once, saying it resets in 3 minutes, instead of making the call. The run then pauses and continues as it does at a real limit. A FAULT_INJECTED row in diagnostics.jsonl marks it. 0 turns it off. |
0 |
llm_max_buffer_mb |
Cap on a single response buffered in memory. | 30.0 |
thinking_display |
summarized or omitted: whether Claude's thinking comes back as a readable summary (visible in transcripts and the viewer) or empty. Newer models default to omitted. Billing is identical either way. It applies only to models that support adaptive thinking (Opus and Sonnet 4.6 and later, and the 5.x families). Other models are untouched. |
summarized |
topology_evidence |
Only with runtime_topology: run evidence for each start topology, as a mapping from the catalog name (single-agent-critic, adda-default) to one line of text. The topology agent reads each line beside its catalog entry when it chooses the start team. A name with no line reads "No run evidence recorded." |
{} |
topology_template |
Only with runtime_topology: fixes the start team for a controlled experiment, by its catalog name (single-agent-critic or adda-default). The topology agent is not asked, and the start record gives the reason forced by config. An unknown name stops the run at start. Empty means the topology agent chooses. |
none |
llm_metadata_fetch |
Look up model metadata (context window, pricing) at startup. | true |
llm_metadata_timeout_s |
Seconds to wait for that lookup. | 8.0 |
llm_quantization |
Quantization hint for a locally served model. | none |
toolbox_root |
Where adopted toolbox sources and each tool's environment live. Empty means ~/.cache/adda/toolbox. |
none |
toolbox_timeout_s |
Wall-clock limit, in seconds, for one ToolBox call. |
600.0 |
Literature retrieval#
These knobs matter only when the graph has a literature reviewer.
| key | meaning | default |
|---|---|---|
retrieval_mode |
Corpus ranking strategy: auto (RRF when BM25 and dense retrieval are available, else BM25, else substring), hybrid, bm25, or substring. Only auto degrades. An explicitly requested mode that cannot be satisfied raises an error instead of silently falling back to a different one. |
auto |
citation_weighting |
Multiply BM25 scores by 1 + log10(citations+1) before rank fusion. This is a popularity prior on the lexical side only, and it is untested. |
true |
launch |
How the viewer starts a run for a study that has its own launcher, such as an sbatch wrapper. It is a mapping with command (argument list, run in the study directory), id_pattern (a regular expression with one group, matched against the launcher's output to capture the job id), stop_command (argument list that contains {id}, which needs id_pattern), and timeout_s (default 120). The viewer runs only these commands and stops only an id it captured. When absent, the viewer offers no launcher control. The viewer reads this key, not the run. |
none |
Ablation switches#
Leave these alone unless you are running an experiment.
These are the switchable parts of the scaffolding. They exist to be measured, not tuned. Every one defaults to on, and turning one off makes a normal run worse by construction. They are the arms of an ablation, which asks whether a piece of machinery earns its cost. An experiment sweeps them, and a study author leaves them alone.
Some switches repeat what a graph or a tool list can already say. A switch
that removes a tool family, such as hypothesis_ledger, milestones_enabled,
runtime_topology, toolbox, tool_proposals, test_first_oracles,
pipeline_deliverable or peer_interaction, does what
nodes.<name>.tools does, but for every node at once and together with the
prompt text that names those tools. math_expert_node adds a node that a
graph can also add. They are kept as conveniences for ablations: one switch
is one arm. To change one node's tools or the team itself, use nodes: or
the graph instead.
To run an arm without editing the committed study, pass it on the command line:
python -m adda studies/example_study --set hypothesis_ledger=false --set milestones_enabled=false
You can repeat --set. python -m adda.watchdog takes the same flag and
forwards it. A --set outranks config.yaml, an unknown knob is an error, and
the value lands in run_config.json like any explicit knob. For a replicate
sweep, launch each replicate from a clean copy of the study: no runs/, no
workspace/, and no archived pipeline_*.ipynb. The literature notes under
runs/lit_reviewer_notes and the archives are study-scoped, and would
otherwise carry one arm's work into the next.
Each switch withholds everything it owns at once: its runtime object, the tools that exist only because of it, and the prompt section that tells the agent to use them. An agent in an arm is never left calling a tool that is gone. For how that is wired, and how to declare a new switch, see Features.
pipeline_deliverable is the exception that is also an ordinary study choice.
A study with no notebook deliverable can legitimately turn it off.
| key | meaning | default |
|---|---|---|
hypothesis_ledger |
The run's falsifiable-hypothesis record. Off withholds its three tools and its prompt section, so the agent is never told to use a tool that is gone. The ablation is partial: the strategizer's method argues the Popperian workflow throughout, and that stays. | true |
milestones_enabled |
Run the process-milestone gate. | true |
science_monitor |
The runtime drift monitor. It flags evaluations that are missing from the ledger and rows without a stamp, and on repeats fires the monitor_escalation event, which wakes its subscribers (the critic in the default graph). |
true |
f3dasm_api |
Let the implementer and the data generator look up the installed f3dasm's API (ConsultF3dasm): signatures, docstrings, and source, read off the package that the run executes against, so it cannot go stale. Off withholds the tool and the one prompt section that instructs its use. The CI-verified <f3dasm_api> excerpt stays, so the arm is the excerpt only, which is the state before the tool existed. |
true |
doe_playbook |
The implementer's design-of-experiments method prior: the space-filling recipe, the evaluation-budget arithmetic, and the surrogate-guided exploit loop. Off leaves the f3dasm API and the oracle contract intact, and the agent chooses its own method. | true |
soundness_criteria |
The strategizer writes soundness criteria before it delegates: for each kind of claim, the evidence that would establish it and the cheapest observation that would refute it. The critic reads that note and judges every claim against it. | false |
method_selection |
The strategizer characterises the problem (cost of one evaluation, smoothness, dimension, constraints, known structure) before it chooses a method. Optimization runs directly on the evaluator when evaluations are cheap, and on a surrogate when they are expensive or noisy. The implementer's playbook gains a direct gradient-based example. The notebook's ml cell may say Not needed: <reason> when the method needs no model, and the critic accepts that. |
false |
objective_search |
The strategizer may run campaigns aimed at improving the best design, each scoped to one family or idea with a refutable bound registered; a family screen is a derivation or a handful of evaluations, not a sampling sweep. | false |
deliverable_check |
Each gate review runs the study's own check on the delivered file and shows the critic, as a fact, what the file recomputes to next to what the write-up states ("the delivered file recomputes to X; the write-up says Y"). The study declares it in config.yaml: deliverable_check: {file: design.json, command: "python grading/check.py {file}", fields: [S, nu_max], rel_tol: 1.0e-3}. The command must print one JSON object, and it executes study-supplied code, as the oracle does. It never blocks the run and does not change what the critic accepts; a failing command is shown as the fact. Each check is recorded in debug/deliverable_check.jsonl. |
false |
math_expert_node |
Adds the math expert (MathExpertAgent, verified symbolic derivations with SymPy) to the run's team, with an edge from the entry node, so a derivation the strategizer wants checked has a node to go to. A graph that already has a math expert is unchanged. Without it, adding the math expert needs a custom run.py graph. Set its model under nodes.math_expert as for any node. |
false |
pending_oracle_validation |
A delegation that wrote an oracle manifest (generators/registration.json) can evaluate that oracle before it is registered: get_evaluator(pending=True) inside the delegation. Rows are metered, stamped and counted in the evaluation budget, but they land in experiment_data/_pending/<D###>/, never in the canonical store, a namespace, or the objective. Each pending row carries the revision of the code it ran on. When that oracle is registered, rows computed on the registered revision move into its store (the same computation, counted once, marked _promoted_from); rows from any other revision stay out. OracleStatus lists each running delegation's manifest with this instruction, and the error for an unregistered oracle names it. run_status.json counts these rows in pending_evals (and so does the run ledger, for a study inside studies/). |
false |
test_first_oracles |
Spec 24. Adds a test author (TestAuthorAgent) to the run's team, with an edge from the entry node. Before an oracle is built, it writes the tests the oracle must pass (analytic limits, invariants, published reference designs, convergence, rule boundaries) in the problem's deliverable format. A builder runs them with RunOracleTests, through the pending path, before any campaign; a campaign started over a failed or missing run needs a recorded confirmation and reason. Needs pending_oracle_validation. |
false |
constraint_screen_nudge |
Before a large campaign, a pause: a Delegate task of more than 20 evaluations on a design family with no derivation (a math-expert delegation) or small probe (at most 20 evaluations) on record is not launched. It returns a [CONFIRM] message, and runs only when re-called with confirm=True and a one-line confirm_reason, which is logged. The family is the agent's own family= label; the cap is max_evals=, or the largest " |
false |
node_threads |
One conversation per node for the whole run, kept in debug/threads/<node>.jsonl. Each delegation to a node appends one block when it finishes (its task, its tool calls and results, its report), and a later delegation to that node starts from that thread instead of a fresh session. A delegation that starts while another one to the same node runs starts from the thread as it is then and is told which one is running. Threads do not carry across runs. On the Hermes backend a block holds only the task and the report, because Hermes does not record tool calls. Work in progress (handoff spec). |
true |
runtime_topology |
A node that can already delegate may ask for a new node (RequestSpawn) or for a node it spawned to leave (Retire), each with a reason. Code invariants refuse a request first, whatever any approver says: no tool beyond what the requester reaches, no template that holds a tool that closes the run or writes the ledgers, no delegation from a spawned node to the entry or to a node that holds Done, only spawned nodes retire, no model the study did not configure, a depth and a live-node cap, and the job can still reach a node that holds Done. Only agents that declare RequestSpawn and Retire get them (the strategizer, data generator, implementer and test author by default). In a run, the TopologyAgent decides each request that passes these invariants, even when the config forces the start template. Only a Topology built in your own Python code without an approver denies every request. Each request, decision and change is one line of debug/topology.jsonl, and a resume replays the applied changes. |
false |
toolbox |
One tool, ToolBox, for every node whose agent declares it (the implementer and the data generator by default): it lists, searches, describes and calls tools that are not in the node's tool list. The tools come from BootLoops at the version pinned in adda: install adda-f3dasm[toolbox], then run python -m adda.toolbox install once. A run never downloads it, and a new run with this knob on refuses to start until it is installed. Each tool is installed on first use in its own environment under toolbox_root. Entries whose files carry a licence other than MIT, such as GPL, are listed with that licence. Every call is recorded in debug/toolbox_calls.jsonl. |
false |
tool_proposals |
A node that can run code (it holds Bash) may package a script as a tool (ProposeTool) and ask to give it to another node (ShareTool, approved by the topology agent, so it needs runtime_topology). A proposal must pass, in order: name, hygiene (no adda internals, no reference to the run's records), signature, ruff, and its own tests. Each call runs as a separate process with the agent's own permissions, so a proposed tool can do nothing Bash cannot; the hygiene check is not a security boundary. Caps: 3 attempts and 1 registration per node, 3 registrations per run. Records: debug/proposed_tools/ and debug/tool_proposals.jsonl. Needs ruff and pytest in the run environment (install adda-f3dasm[tool-proposals], part of adda-f3dasm[all]): a fresh run with either missing refuses to start and names the fix. A resumed run continues with ProposeTool withheld and a TOOL_PROPOSALS_UNAVAILABLE diagnostics event. |
false |
pipeline_deliverable |
Require pipeline.ipynb as the deliverable. Turn it off for a study with no notebook. |
true |
reproduction_gate |
Enforce the reproduction gate in Done(). Before a run can close as GATED, the deliverable must reproduce lazily against the canonical store. It must add zero evaluations and modify no rows. It requires pipeline_deliverable: that knob decides whether a notebook is required at all, and this one decides whether an authored notebook must also prove that it reproduces. A study with pipeline_deliverable: false must set reproduction_gate: false too, or the run refuses to start. |
true |
peer_interaction |
The SendMessage peer and human messaging tool. Every delegation report opens for the delegator's review instead of finalizing on delivery, which replaces the old Confer, Reply, worker FollowUp, and ReportProgress surface. Off is the no-peer-messaging arm: there is no SendMessage, reports finalize on delivery, and only an agent that declares FollowUp keeps a human channel (the strategizer by default). |
true |
budget_notes |
The in-band budget text that an agent reads: the per-turn constraint snapshot, the budget and cutoff notices (the cutoff is always enforced), and the snapshot on a delegation report and on a worker's task message. The wall-clock budget is the real limit (see wind_down_at), the evaluation budget only sends notices, the cost backstop and the critic's constraints are unchanged. |
true |
delegation_contract |
The <delegation_contract> rules in every worker's preamble: numbers come from tool output, report failures, and do not extend the task. |
true |
model_verification |
The data generator's correctness check: before delivery it tests the model against expectations that come from outside its own code and records each check in validate_{name}.json, and the handbook entry verify-before-you-trust explains why. Off, the data generator checks only the interface, with one sample through .call(). |
true |
reprompt_unfinished |
The bounded re-prompt (up to 3) after a turn ends without an accepted Done(), and the UNGATED banner on the run summary. Off, the run ends at the first such turn. |
true |
Every run records the arms it ran under, defaults included, in run_config.json
(arms), in run_status.json, and in the arm_* columns of
studies/run_ledger.csv. The runtime entry there lists only the knobs that
somebody set, so read arms to tell an all-defaults baseline from a run that
nobody labelled.