Run integrity#
An autonomous run can talk itself into a conclusion. Most of adda's machinery exists to stop that. This page is the inventory: every check between an agent deciding something and that decision counting, what each one does, and which ones you can turn off.
The vocabulary matters, because the two kinds behave completely differently:
- A hard check refuses. The agent asks to do something and is told no, synchronously, and the thing does not happen.
- A soft check speaks. The agent is told something and carries on. It is advice, not control.
Soft checks are deliberately soft. A rule that halts a run every time it looks suspicious produces a system that cannot finish; a rule that says what it noticed produces one that can be audited. Which of the two a given check is, is the first thing to know about it.
Before the run: the problem statement review#
Before the loop starts, your PROBLEM_STATEMENT.md is reviewed against the
elements of a well-posed problem: objective, design space, success
criteria, validity, deliverables.
This is advisory. It always writes a report and it never blocks a run.
If you are running interactively it may ask you up to max_ask clarifying
questions; set review_statement: false in config.yaml to skip it entirely.
A vague brief is the single most common cause of a disappointing run, and this is the cheapest place to catch one. The decision stays yours.
During the run: refusals at the tool boundary#
These are hard. The agent calls a tool and the tool returns an error instead of doing the thing.
A hypothesis cannot be marked SUPPORTED without a recorded attempt to falsify it. This is the charter's central rule, enforced where it cannot be argued with: in the code path, not in a prompt. An agent that tries to close a hypothesis as supported having never attacked it gets a refusal.
Evidence must cite a delegation that actually ran. You cannot support a claim by referring to work that did not happen.
A delegation must be anchored to hypotheses that exist. Work is attached to the question it is meant to answer, which is what makes every evaluation traceable to a claim afterwards.
The process backlog is kept in view. The strategizer has a short list of
process milestones: engage with the problem, consider where it might be
wrong, get the oracle right. While any is open, its first delegation in each
design, to any agent, meets a one-time reminder; it re-delegates to go on. It
cannot close the run until each is either done or explicitly skipped with a
stated reason. Skipping is allowed; skipping silently is not.
Turn the whole mechanism off with runtime: milestones_enabled: false.
Some steps pause for a confirmation instead of refusing. A pause shows a
warning, and the agent goes ahead only by confirming: by calling the tool
again, or with confirm=True and a confirm_reason. Examples: the first
Done(), SUPPORTED without a falsification attempt, cancelling a delegation
that already wrote evaluations, and, with their knobs on, a large campaign on
an unscreened design family or a build without a test set. A confirmation
counts only after the agent has seen the warning: a confirm=True sent up
front is ignored, and the warning is shown once. Every warning and every
answer is a line of debug/nudges.jsonl.
During the run: the critic reads closing verdicts#
When the strategizer closes a hypothesis (SUPPORTED, FALSIFIED or INCONCLUSIVE), the critic is woken to judge that verdict against the charter: was the registered prediction actually given a severe test, and does the verdict follow from the result? It records its ruling on the verdict, and its message is appended to the update the strategizer just made.
This is soft: the update always stands. The critic gets this because the
default graph subscribes it to the hypothesis_closed event. To turn it off,
remove that subscription (see Event subscriptions).
During the run: the monitors#
Three checks run continuously and never block. Each reaches the agent as an in-band note, marked so it is distinguishable from tool output:
- unledgered evaluations: results being reasoned about that never made it onto the record;
- duplicate evaluations: the same design measured twice, which wastes budget and can inflate an apparent effect;
- unstamped rows: evaluations on the record without the delegation that produced them.
They are reported, not enforced, and they all land in
runs/<timestamp>/debug/diagnostics.jsonl for you to read afterwards.
Closing the run: the ladder#
Done() is not one check. It is a sequence, and the first one that holds
returns immediately. Nothing after it runs:
- Nothing closes mid-flight. Delegations still running? The close is declined softly, and the agent is offered two options: keep working, or wait and read the results.
- The exit interview. Each agent records what it was least sure about
and what got in its way, before anything closes. This is what ends up in
retrospectives.jsonl. - The milestone backlog must be resolved. Hard, same mechanism as the preceding step,
same
milestones_enabledswitch, same escape: close the milestoneSKIPPEDwith a reason. Done()holds on what is unresolved. A clean state closes on the first call.Done()holds once, closing nothing, when messages arrived that the node has not read, or when hypotheses are still open or a falsification attempt has no verdict. It lists them; callingDone()again on the same items closes.- The deliverable must reproduce before a critic sees it. A
pipeline.ipynbthat cannot execute bounces straight back to the strategizer rather than spending a critic turn on it. Bounded, so a persistently broken notebook still lets the run end (UNGATED).
Then, and only then:
- Review by handoff. In the default graph the strategizer holds no
Done. It hands the job to the critic, which reads the deliverable against the problem statement and the charter. A run closes GATED only when the node that was handed the job accepts it withDone. Otherwise the critic hands the job back with its review, and the strategizer owns it again. The strategizer can also delegate to the critic for find-only feedback; nothing is accepted there. Accept or hand back is read from theDoneandHandoffrecords, never parsed from the review text. Jobs, handoffs, and review covers the release checks and the wind-down.
With runtime: deliverable_check on, the critic also sees what the
delivered file recomputes to next to the number the write-up states. A
stated number agrees when the recomputed value, rounded to the stated
significant figures, equals it, or when the two are within rel_tol.
With runtime: test_first_oracles on, a test author writes the oracle's
tests before it is built, and the critic sees whether the registered
oracle passed them. This feature is opt-in. Changes that help the test
author keep to the recorded layout are pending.
The reproduction gate, in detail#
The step 5 check is the check that makes the notebook you get back trustworthy, so it's worth stating exactly:
pipeline.ipynb is executed end to end in a hermetic sandbox copy of the
evaluation ledger, and it must
- exit cleanly, with no errors;
- add zero new oracle evaluations: it re-derives from the record rather than re-measuring, which is why it is cheap to re-run and why it cannot quietly produce a different answer each time;
- rewrite none: it cannot alter the record it is reading;
- agree with itself: if the notebook prints both the number it computes and the number its prose claims, they must match within tolerance. This one is deliberately lenient: if either marker is absent it stays silent, so it adds no new way to fail, and only catches a deliverable that contradicts itself.
Turn the notebook deliverable off entirely with
runtime: pipeline_deliverable: false, for a study whose output is not a
notebook. The reproduction gate goes with it.
The shared charter#
Two agents adjudicate a run (the strategizer proposes verdicts, the critic attacks them), and they are given the identical numbered text of the falsification charter, which the critic also applies to each closing verdict. That is what lets one cite "Charter ยง3" and the other defer to the same words, instead of negotiating over what falsification means.
The charter is one file, injected verbatim, and its wording is pinned by the test suite. It is not restated anywhere else.
Outcome records#
runs/<timestamp>/run_status.json:
- GATED: every preceding check passed, including the critic.
- UNGATED / FAILED: it did not. The result is unaudited; treat it as a draft.
See Understanding a run's output for what to read when it comes back UNGATED, and Troubleshooting for the common causes.
Summary of the switches#
| What | Switch | Default |
|---|---|---|
| Pre-run problem-statement review | review_statement: false in config.yaml |
on (advisory) |
| Interactive prompting | interactive=False on AgenticRun |
on |
| Process milestones (both the delegation block and the close gate) | runtime: milestones_enabled |
true |
| Notebook deliverable + reproduction gate | runtime: pipeline_deliverable |
true |
| Critic reads closing verdicts | the critic's hypothesis_closed subscription |
on |
There is no switch for the charter refusals or for review by handoff. Those are the system.