Skip to Content
Amaru
Amaru LightReference

Result file

Reference for .amaru/result.json, the file an Amaru Light agent writes at the end of every step, covering its fields, allowed values and validation rules.

At the end of every step the agent writes .amaru/result.json in the ticket's worktree. The daemon reads this file instead of parsing the agent's output, and removes any stale copy before the next step starts.

.amaru/result.json
{
  "status": "done",
  "summary": "Fixed the export button and added a test.",
  "complete": true,
  "replies": []
}

Fields

FieldTypeRequiredMeaning
status"done", "blocked" or "needs_clarification"yesdone: the step's work is finished and committed. blocked: the agent cannot proceed. needs_clarification: the issue is ambiguous.
summarystringyesWhat was done, or why the agent is blocked.
completebooleanno, default falsetrue only if every requirement of the issue is met.
questionstringnoOne precise question, with needs_clarification.
replieslist of { "thread_id": string, "body": string }no, default []Replies to review threads, only when the step addressed review feedback.

Rules

  • Unknown fields are rejected, in the file and in each reply.
  • The agent is told not to push, open or update pull requests, merge, switch branches or change issues; after done, the daemon runs the checks, pushes and opens or updates the pull request.
  • A missing or invalid file makes the daemon resume the session once to ask for it. If it is still missing, the ticket blocks with "the agent did not report its result".

Based on src/contract.rs and docs/design.md.

Next steps

On this page