Troubleshooting#
Ordered by when you'll hit them: before the run starts, while it runs, and when the result isn't what you wanted.
Before the run#
claude isn't authenticated. The most common first-run failure, and it
shows up as the model call failing rather than as a clear auth error. Check
the command-line tool works on its own first:
claude # should open a session, not prompt you to log in
If it doesn't, either log in once interactively or set an API key:
export ANTHROPIC_API_KEY=sk-...
See Installation. For a non-Claude backend, see Use a different model or backend.
The evaluator entrypoint doesn't resolve. evaluator.entrypoint is
path/to/file.py:attribute, relative to the study directory. It is a path and a
colon, not a dotted module path. Two other ways it fails:
- it resolves to a plain function but
output_namesis missing (a callable evaluator must declare the names of what it returns); - it resolves to something that is neither a callable nor a
DataGeneratorsubclass.
All three raise at startup with the offending value in the message. Check it yourself before a long run:
python -c "import sys; sys.path.insert(0,'my_study'); from workspace.evaluator import evaluate; print(evaluate(0.0, 0.0))"
A config.yaml key is ignored. Anything inside runtime: that isn't a
known knob is reported as a warning at startup rather than silently
defaulting. If a setting isn't taking effect, read the startup output
first. Note the nesting: run knobs go inside runtime:, while model,
backend, budget, eval_budget, budget_usd, evaluator and
required_deliverables are top-level.
While it runs#
The run seems to hang. Check, in order:
- Is it waiting on a question? The entry node can ask you one, and it
blocks for
runtime: followup_wait_s(default 600 seconds) before proceeding on its own. If the run has no TTY and nobody is watching in the viewer, it waits out the timeout. See Watching a run, or passinteractive=Falsefor a fully unattended run. - Is a model call stalled?
runtime: llm_stream_idle_timeout(default 600 seconds) abandons a call after that much stream silence. - Is it just working? Long delegations are normal. Open the viewer and look, rather than guessing: that is what it is for.
The run paused for a usage limit. When a model call gets the provider's
usage-limit notice, in any agent, adda pauses the whole run instead of ending
it. No new model call starts until the reset time named in the notice, plus
two minutes. Calls and tools already running are left alone. Then each agent
continues its own session with a short notice. If the notice names no reset
time, adda retries in 15-minute steps, for at most 24 hours. The viewer shows
that the run is paused for a usage limit, and until when, and each pause is one
USAGE_LIMIT_PAUSE row in debug/diagnostics.jsonl.
Paused time does not count against the wall budget, so the budget notices and
the wind-down keep to working time. The external watchdog's deadline does not
move: if a pause reaches it, the normal stop runs. A limit that lifts later
than 24 hours (a monthly limit) still ends the run, with
stop_reason: org_spend_limit.
The run stopped with org_spend_limit or auth_expired. Both are
external causes, not a verdict on the science. run_status.json names the
cause in stop_reason, and run.log prints the resume command. For
auth_expired, log in again first (an expired login, or an HTTP 401 from the
endpoint). Then resume from the run directory:
AgenticRun(study_dir="my_study",
resume_from="my_study/runs/<timestamp>").execute()
The time the run was stopped is not charged to its wall budget. A resume also keeps the time paused in earlier segments. Knobs added to adda after the run started are off, and a knob that is off does not block the resume.
A model call failed mid-turn. A transient error (a dropped connection, an
overloaded endpoint) is retried. On the Claude backend the retry continues
the same session with a short notice, so the agent keeps its work. It starts
again from the brief only when no session was recorded. Each retry is an
LLM_RETRY row in debug/diagnostics.jsonl.
The run halted on cost. budget_usd is a hard ceiling and it is
resumable: raise it and resume from the run directory.
AgenticRun(
study_dir="my_study",
budget_usd=25.0, # was 10.0
resume_from="my_study/runs/<timestamp>",
).execute()
Resuming replays the run's checkpoint, so the run directory must have been
written with runtime: debug: true. On a backend that reports no per-call
cost (Ollama, for instance) the ceiling is inactive and you get one warning
rather than a halt.
The run halted on repeated errors. After
runtime: max_consecutive_errors (default 12) consecutive crashes against
the same target, the run stops. Slow delegations and critic disagreement do
not count; only hard failures do. Read run.log for what was failing; this
usually means a broken evaluator or an unreachable backend, not a science
problem. Set it to 0 to turn it off.
The run closed as budget_wind_down. The wall and token budgets (budget,
token_budget) are real limits, and the run ends by a
wind-down, not an abrupt stop. Thresholds, each a fraction of the budget
furthest along (wall time counts from the run start):
runtime: budget_warn_from(default0.75) andruntime: budget_warn_every(default0.05): a budget notice, whenbudget_notesis on. Each notice names what is left of the wall and token budgets. The evaluation budget sends its own notice on the same steps.runtime: delegation_cutoff_at(default0.90):Delegate()refuses to start anything new. Running delegations continue, andWait,Doneand the deliverable tools stay open.runtime: wind_down_at(default1.0): the wind-down begins. Nothing is terminated. Code refusesDelegate(), new metered evaluations and every tool that starts new work, each with anERRORthat names the rule. Each node hasruntime: wind_down_tool_calls(default50) tool calls. The entry node is walked through three steps: wait for running work, save every result not yet stored (a note that names the file and how it was produced), then write the deliverable and callDone(). At mostruntime: wind_down_turns(default2) forced turns per step. The close runs the reproduction gate once, with no rework. A node that hands the job to the node holdingDonegets one review by that node. The run isGATEDif the gate passes and the node that was handed the job accepts it withDone, withtermination: budget_wind_downandbudget_trigger(the budget that set it) recorded; otherwise it isUNGATEDand halted (resumable). Nothing is cancelled.
Read debug/wind_down.json for what the wind-down did: forced_turns,
reproduction_gate, accepted_by, anything it
interrupted, and deliverables_missing (required files that did not exist
at the close; also a DELIVERABLES_MISSING row in diagnostics.jsonl). adda
writes nothing in their place. debug/run_status.json carries overrun_s
(time past a wall budget), wind_down_turns and the same facts. It also
carries budget_trigger, output_tokens_used and token_budget. Work that has
not finished runtime: wind_down_interrupt_after_s (default 300) seconds
after the wind-down began gets SIGINT, only to processes the node itself
started. A plain Claude Code arm (Default tools and prompt) has no
wind-down: it gets no notices and no gate. adda ends its session when the
wall budget passes or the count reaches token_budget, with no message to the
agent; run_status.json then records termination budget_stop,
budget_trigger, tokens_over and the deliverables present or missing. That
arm has no metered evaluator, so eval_budget sends it no notices. These checks run inside the run, so they cannot help if it has
genuinely wedged; for that, launch under the external watchdog (twice the
budget). See
Launching under a watchdog.
The old run_backstop_multiple, delegate_cutoff_multiple, wrapup_at,
graceful_stop_at, hard_stop_at and stop_retrospective_s keys are
rejected at start; use wind_down_at, delegation_cutoff_at and
wind_down_turns.
Fix an unwanted result#
It came back UNGATED. The run finished but did not pass review. The result is unaudited, so don't quote it. In order of usefulness:
runs/<timestamp>/debug/critic_reviews/: what the critic actually objected to. This is the answer most of the time.runs/<timestamp>/debug/retrospectives.jsonl: each agent's own account of what it was least sure about.runs/<timestamp>/debug/diagnostics.jsonl: flags raised during the run.
See Run integrity for what each check is testing, so you know which one it failed.
The notebook won't reproduce. A run whose pipeline.ipynb cannot
execute cleanly bounces back to the strategizer, and after a bounded number
of attempts the run closes UNGATED anyway. Run it yourself to see the real
error. The notebook re-derives from the evaluation record, so it needs that
record present and readable.
The answer is vague, or answers a different question. This is almost
always the brief. The agents work from PROBLEM_STATEMENT.md and the critic
judges against it, so an unstated success criterion is an unjudged one. Go
back to Authoring a study
and state the objective, the design space with bounds/types/units, and, explicitly, what
counts as valid. The pre-run review exists to catch this; read
its report rather than skipping past it.
The numbers look self-reported. If you declared no evaluator and didn't describe one in the brief, the run falls back to the honor system and the agents self-report. That's fine for exploring and worthless for a result you want to defend. Declare an evaluator; see The evaluator.
The same design was evaluated twice. Reported as a diagnostic, not
blocked. It costs budget and can inflate an apparent effect; check
diagnostics.jsonl if a result looks stronger than it should.
Reading the record#
Everything described here lives under runs/<timestamp>/, and almost all of it
requires runtime: debug: true. If you plan to debug a run at all, set it
before you start: it cannot be recovered afterwards.
See Understanding a run's output for the full layout.