Events
Every event Astranize reports while it works, what each field means and where you can read it, grouped by area.
Everything Astranize does is reported as an event: a step started, a gate passed, an agent asked you something. Each event is one JSON object on one line, with a type that says what happened. This page lists every type, grouped by area, with its fields and an example line.
The same events reach you in four places:
| Where | What you get |
|---|---|
runs/<task>/events.jsonl |
The task’s history: every event of its queued jobs (ideate, run and the cycles that approve, adjust and decide queue), plus the events printed by retry, validate and instruct. Lines are only ever added. |
missions/<name>/runs/<run>/events.jsonl |
The same for a mission run. taskId is the run id, such as r-0001. |
astranize events |
A live stream of everything the daemon publishes for a workspace, including queue_updated and job_finished. Mission events carry "mission":"<name>". |
| Command output | Daemon commands and --follow print the events their work produces. job_finished and queue_updated are left out. |
Two fields appear on most events. at is the time, in ISO 8601 and UTC. cycle is 0 for the ideator and counts development cycles from 1. Long examples are cut with ….
task_updated
Section titled “task_updated”task_updated carries the whole task, and is sent every time anything about it changes. It is the event you read to know where a task is.
{"type":"task_updated","task":{"id":"t-0001","title":"Filter notes by tag","namePrefix":"astra","status":"waiting_you","currentStep":"approval","currentStepType":"approval","returns":0,"humanRounds":0,"repos":["api"],"acceptanceCriteria":[{"id":"AC-1","text":"Mostra o filtro","proof":["video"]}],"questions":[],"history":[{"at":"2026-11-20T02:17:35.498Z","event":"created"},{"at":"2026-11-20T02:17:48.074Z","event":"ideation_started"},…],"videoCaughtMiss":false,"body":{"description":"Add a tag filter to the notes list","spec":"…","answers":"","validation":""}}}This task has a spec and waits for your approval. The task object has these fields:
| Field | Type | Notes |
|---|---|---|
id, title |
string | |
status |
string | backlog, queued, running, waiting_you, waiting_others, iterating, blocked, done, archived. |
currentStep, currentStepType |
string or null |
The step id and its type. |
returns |
number | How many times the task went back to the developer. |
humanRounds |
number | How many adjustments and rejections came from you. |
repos |
list | The repos the task works in. |
acceptanceCriteria |
list | { id, text, proof, dropped? }. proof lists unit, integration, video. |
questions |
list | { id, text, why, options, answer? }. |
history |
list | { at, event, data? }. Events: created, ideation_started, spec_ready, adjustment_requested, approved, step_started, gate_failed, review_rejected, contract_violation, video_finished, validation_submitted, blocked, done, decision_opened, decision_resolved, retried, archived, step_skipped, action_done, wait_resolved, handed_off, hook_failed, triaged, round_started, run_marked, probe_duplicate. |
videoCaughtMiss |
boolean | Set by video-caught. |
body |
object | description, spec, answers, validation: the sections of the task file. |
namePrefix |
string | The prefix of branch and resource names. Default astra. |
blockedReason, blockedFrom |
string | Why and where the task blocked, for example agent_crashed:ideator, stopped_by_you, max_returns, budget_stopped. |
waitReason, waitingOn |
string | Why the task waits. |
flow, flowHistory |
string, list | The named flow, and the flows it used before. |
triage, profile, permissionMode, spareWindow |
Choices about how the task runs. | |
request |
object | Where the task came from, such as an imported story: source, attachments, comments. |
machine |
{ key, name } |
The machine a task belongs to, in Fleet views. |
mission, firedBy |
object | Mission run details, and the probe fire that created the task. |
step_started
Section titled “step_started”A step began.
{"type":"step_started","taskId":"t-0001","step":"developer","cycle":1,"at":"2026-11-20T02:17:58.038Z","model":"sonnet"}| Field | Type | Notes |
|---|---|---|
taskId, step, cycle, at |
||
model |
string | When the step has one. |
step_agent
Section titled “step_agent”step_agent says what an agent step actually runs with, once your policies apply: the executor, model, effort and permission mode. Look here when a step did not use the model you expected.
{"type":"step_agent","taskId":"t-0001","step":"developer","cycle":1,"note":{"executor":"claude","model":"sonnet","effort":null,"downgraded":false,"overridden":false,"switchedFrom":null,"permissionMode":"ask"},"at":"2026-11-20T02:17:58.045Z"}| Field | Type | Notes |
|---|---|---|
taskId, step, cycle, at |
||
note.executor |
claude or codex |
|
note.model, note.effort |
string or null |
null means the agent CLI’s default. |
note.downgraded |
boolean | The step switched to its downgrade because the provider is near its limit. |
note.overridden |
boolean | A model and effort from an instruction were used. |
note.switchedFrom |
provider or null |
Set when the fallback_executor took over. |
note.permissionMode |
ask, worktree or free |
step_finished
Section titled “step_finished”A step ended, and outcome says how.
{"type":"step_finished","taskId":"t-0002","step":"developer","cycle":1,"outcome":"blocked","at":"2026-11-20T02:19:04.202Z"}| Field | Type | Notes |
|---|---|---|
taskId, step, cycle, at |
||
outcome |
string | passed, failed, blocked or skipped. |
reason |
string | Optional, for a failure or a skip. |
summary |
{ done, skipped, attention } |
Optional lists of short notes from the agent. |
step_defaults
Section titled “step_defaults”The answer of step-defaults. It is printed only, never written to events.jsonl.
{"type":"step_defaults","taskId":"t-0001","steps":{"ideator":{"executor":"claude","model":null,"effort":null},"developer":{"executor":"claude","model":"sonnet","effort":null},"reviewer":{"executor":"claude","model":"opus","effort":null}},"at":"2026-11-20T02:17:52.308Z"}activity
Section titled “activity”activity is what an agent is doing right now: reading a file, editing one, running a command, writing a message, starting a subagent. The app’s live session view is built from these events.
{"type":"activity","taskId":"t-0001","step":"developer","cycle":1,"activity":{"kind":"edit","title":"src/notes/filter.ts","toolUseId":"toolu_01","lines":{"added":14,"removed":2},"at":"2026-11-20T02:21:10.000Z"}}| Field | Type | Notes |
|---|---|---|
taskId, step, cycle |
||
activity.kind |
string | read, edit, command, message, output, agent, done. |
activity.title |
string | |
activity.tool |
Read, Grep or Glob |
For reads. |
activity.detail, toolUseId |
string | |
activity.lines |
{ added, removed } |
For edits. |
activity.isError, denied |
boolean | |
activity.agent |
{ id, parentId, label } |
Which subagent did it. |
activity.at |
string |
One line of output from a gate, hook, service or command step. stream is stdout or stderr.
{"type":"log","taskId":"t-0005","step":"gates","cycle":1,"stream":"stdout","line":"12 tests passed"}agent_usage
Section titled “agent_usage”The tokens and cost of one agent run, as the agent CLI reported them. The same run is also added to runs/<task>/usage.jsonl.
{"type":"agent_usage","taskId":"t-0005","step":"developer","cycle":1,"usage":{"model":"claude-sonnet-4-5","inputTokens":1200,"outputTokens":340,"cacheReadTokens":8000,"cacheWriteTokens":0,"costUsd":0.042,"durationMs":15000,"turns":4},"at":"2026-11-20T02:45:17.730Z"}| Field | Type |
|---|---|
taskId, step, cycle, at |
|
usage |
{ model, inputTokens, outputTokens, cacheReadTokens, cacheWriteTokens, costUsd, durationMs, turns, models? } |
gate_started
Section titled “gate_started”A gate command started in one repo.
{"type":"gate_started","taskId":"t-0005","cycle":1,"repo":"api","name":"test","command":"echo 12 tests passed"}gate_result
Section titled “gate_result”A gate finished, with its result and the end of its output.
{"type":"gate_result","taskId":"t-0005","cycle":1,"result":{"repo":"api","name":"test","command":"echo 12 tests passed","status":"passed","exitCode":0,"timedOut":false,"durationMs":14,"outputTail":"12 tests passed"}}| Field | Type | Notes |
|---|---|---|
result.repo, name, command |
string | |
result.status |
string | passed, failed or skipped. |
result.exitCode |
number or null |
|
result.timedOut |
boolean | |
result.durationMs |
number | |
result.outputTail |
string | The last error_tail_lines lines of output. |
result.culprits, culpritsOutsideDiff |
lists | The files the failure points at, inside and outside the diff. |
Instructions
Section titled “Instructions”instruction_added
Section titled “instruction_added”You left an instruction with instruct.
{"type":"instruction_added","taskId":"t-0004","instruction":{"id":"I-1","text":"Sort newest first","target":"developer","attachments":[],"createdAt":"2026-11-20T02:43:38.623Z","status":"pending","model":"opus","effort":"high"},"at":"2026-11-20T02:43:38.623Z"}| Field | Type | Notes |
|---|---|---|
instruction.id |
I-n |
|
instruction.text, target |
string | target is a step id. |
instruction.attachments |
list | Paths relative to runs/<task>/. |
instruction.status |
pending or applied |
|
instruction.model, effort |
string | Present when sent with a model and effort. |
instruction.appliedAt, appliedStep, appliedCycle, via |
Set once applied. via is prompt or adjustment. |
instruction_applied
Section titled “instruction_applied”An agent received the instruction in its prompt.
{"type":"instruction_applied","taskId":"t-0004","instructionId":"I-1","step":"developer","cycle":1,"at":"2026-11-20T02:50:02.000Z"}This example shows the shape of the event rather than a captured line.
Decisions
Section titled “Decisions”decision_opened and decision_resolved
Section titled “decision_opened and decision_resolved”When Astranize needs you, it opens a decision; when you answer, the decision is resolved. Both events carry the whole decision.
{"type":"decision_opened","taskId":"t-0002","decision":{"kind":"agent","step":"developer","cycle":1,"title":"Pick a filter","context":"Two ways to filter.","options":[{"id":"O-1","label":"Follow the story","consequence":"Inactive users show up."}],"allowFreeText":false,"evidence":[],"urgency":"blocking","id":"D-3","taskId":"t-0002","status":"open","createdAt":"2026-11-20T02:19:04.203Z"},"at":"2026-11-20T02:19:04.203Z"}{"type":"decision_resolved","taskId":"t-0002","decision":{"id":"D-1","taskId":"t-0002","kind":"approval","step":"approval",…,"status":"resolved","createdAt":"2026-11-20T02:18:56.981Z","resolvedAt":"2026-11-20T02:18:57.285Z","answer":{"optionId":"adjust"}},"at":"2026-11-20T02:18:57.285Z"}The first line is the developer asking you to pick a filter. The second is an approval you answered with “adjust”. The decision object has these fields:
| Field | Type | Notes |
|---|---|---|
decision.id |
D-n |
Counted per task, or per mission or probe. |
decision.kind |
string | approval, validation, blocked, agent, action, wait, mission_confirm, mission_rounds, probe_baseline, probe_held. |
decision.step, cycle |
Where it was raised, or null. |
|
decision.title, context |
string | |
decision.options |
list | { id, label, consequence, recommended?, editable? }. |
decision.allowFreeText |
boolean | Whether --text is accepted. |
decision.evidence |
list | { label, kind, ref }. kind is file, diff, log, video, url or text. |
decision.urgency |
blocking or normal |
|
decision.status |
open, resolved or superseded |
|
decision.createdAt, resolvedAt |
string | |
decision.answer |
{ optionId?, text? } |
Once resolved. |
decision.subject |
{ mission?, probe?, run?, trigger?, triggers? } |
On mission and probe decisions. |
decision.policy |
object | Details of a budget decision (provider, scope, unit, spent, limit, extra) or a permission decision (executor, requests, rules). |
Limits
Section titled “Limits”provider_limits
Section titled “provider_limits”A reading of how much of a provider’s plan is used, reported by an agent run. It is also saved to limits.json, which is what limits prints.
{"type":"provider_limits","limits":{"provider":"claude","readAt":"2026-11-20T02:45:17.733Z","fiveHour":{"usedPct":32,"resetsAt":"2026-11-20T06:00:00.000Z"},"weekly":{"usedPct":41,"resetsAt":"2026-11-24T00:00:00.000Z"}},"at":"2026-11-20T02:45:17.740Z"}Daemon
Section titled “Daemon”The daemon publishes these on the events stream only.
queue_updated
Section titled “queue_updated”The queue. It is the first line of every events stream, then comes on every change and every few seconds.
{"type":"queue_updated","queue":{"paused":false,"maxRunning":null,"memoryFloorBytes":2147483648,"running":[],"queued":[],"room":4,"machine":{"memoryAvailableBytes":9680142336,"memoryTotalBytes":34359738368,"cpuLoad":0.508,"dockerMemoryBytes":3912546385.92},"pendingUpdate":false}}job_finished
Section titled “job_finished”A queued job ended. ok is false when the job threw, and then error holds the message. A task that blocks still finishes with ok: true. --follow uses this event for its exit code.
{"type":"job_finished","taskId":"t-0001","ok":true}A problem reported without stopping everything: an unreadable task file in list, a failed job, a probe that cannot reach its source. The CLI uses the same shape for the error that ends a command.
{"type":"error","message":"Cannot run task t-0003 in status \"backlog\""}Fleet lines
Section titled “Fleet lines”When the daemon has paired machines, the events stream also carries two line types that wrap what happens on those machines.
{"type":"machine_event","machine":"studio-mac","workspace":"notes","event":{"type":"task_updated","task":{"id":"t-0007",…}}}| Type | Fields |
|---|---|
machine_status |
machine: { key, id, name, address, port, status, since, error }. Sent once per machine when the stream opens, then on every change. |
machine_event |
machine (the key), workspace, mission?, and event: an event from that machine, in the shapes above. |
This example shows the shape of the line rather than a captured one.
Next steps
Section titled “Next steps”events: watch these events live.- Decisions: what each kind of decision asks you.
- Files and directories: where
events.jsonllives.
