How a run works
What happens between your request and the final status, and the five ways a run can end.
The model writes the code, but zerd’s own code decides the rest: which model to use, which checks to run, and whether the work counts as finished. The run below is an example put together to show the flow. Each status line is a message zerd prints, and the last two lines are a summary, not the exact format.
> change unique_by() to take a key function and drop the seen= argument
Routing to the strong model (read by the fast model): claude-opus-5-5
Verifying: python3 -m pytest -q -x tests/test_unique.py
Verification failed (python3 -m pytest ...); repair attempt 1/2
Verifying: python3 -m pytest -q -x tests/test_unique.py
The change breaks 1 public signature(s) (utils.py: unique_by() no longer accepts `seen`); asking to keep old calls working
Verifying: python3 -m pytest -q -x tests/test_unique.py
Independent review of the diff...
Reviewer found issues; sending them back for a fix
Independent review of the diff...
status: verified checks: 1 passed review: clean citations: 4 checked, 0 unverified
Rounds: 9 used, 10 estimated, +10 points (within the target)Code makes every decision in that run: which checks to run, whether a failure is new or was already there, whether a public signature broke, and whether the review goes again.
The path of a request
- Classify. Rules pick a model size for the request without a model call, and say why.
- Work. The agent loop reads, edits and runs tools.
- Check. If files changed, checks run on those files only. New failures go back for repair, up to 2 rounds.
- Guard. A broken public signature sends the agent back once.
- Review. An independent review of the diff runs if you asked for it, turned on
auto_review, or the change touches a path where a mistake is expensive (src/auth/,db/migrations/,billing/). Tests and docs don't count, andreview_risky = falseturns this off. - Cite. Every file and line in the answer is looked up on disk.
The five endings
Every run ends in exactly one of these states.
| Status | Meaning |
|---|---|
verified | Files changed and the checks passed. |
unverified | No checks exist for this change, or a check was already failing before the run. |
verification_failed | Checks still fail after the repair rounds. |
failed | An API error, a loop, or the deadline. |
done_no_changes | Nothing was edited, for example you asked a question. |
Each request is a task with a fixed lifecycle. The code checks every transition, so a run can't jump from failed to verified, and every transition is written to a trace you can read later.
How the pieces fit
Everything the model can do goes through one door, the tool registry, and everything zerd decides is traced.
Go deeper
- Verification: how checks are picked and how zerd knows whose failure it is.
- Reviews: the review and fix pipelines.
- Safety: the layers every tool call passes through.