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.
{
"status": "done",
"summary": "Fixed the export button and added a test.",
"complete": true,
"replies": []
}Fields
| Field | Type | Required | Meaning |
|---|---|---|---|
status | "done", "blocked" or "needs_clarification" | yes | done: the step's work is finished and committed. blocked: the agent cannot proceed. needs_clarification: the issue is ambiguous. |
summary | string | yes | What was done, or why the agent is blocked. |
complete | boolean | no, default false | true only if every requirement of the issue is met. |
question | string | no | One precise question, with needs_clarification. |
replies | list 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
- How it works: where the result file fits in the lifecycle.
- Troubleshooting: when the agent does not report its result.
Environment variables
Every environment variable Amaru Light, its agent CLIs and the prompt guard read, with what each one is for and where it is set.
Terminology
The terms used in the Amaru Light documentation, such as ticket, daemon file, project file, driver, worktree and slot, plus every ticket state.