Skip to content

Tasks

A task is one piece of work, such as a feature or a fix, that Astranize carries from idea to validated delivery.

12 min read13 pages in Concepts

A task is one piece of work you hand to Astranize: “add a tag filter to the notes list”, “fix the login redirect”. You describe the idea, and the task carries everything that happens next: the spec, the acceptance criteria, the code changes, the test results, the review, the proof video and your final word. When you look at the board in the desktop app, every card is a task.

Each task belongs to one workspace and gets a short id like t-0001. It moves through the steps of a flow, and it stops whenever it needs you.

Creating a task only needs a title and a description:

Terminal window
astranize create --workspace notes --title "Add a tag filter to the notes list" \
--description "Users want to filter notes by tag."
{"type":"task_updated","task":{"id":"t-0001","title":"Add a tag filter to the notes list","namePrefix":"astra","status":"backlog","currentStep":null,"returns":0,"humanRounds":0,"repos":[],...}}

The task now exists with status backlog: nothing has run yet. To start it, ask the ideator to write the spec, then approve it:

Terminal window
astranize ideate t-0001 --workspace notes --follow
astranize approve t-0001 --workspace notes --follow

From here the developer writes code, the gates run the tests, the reviewer reads the diff and the summary step writes up what was done and how to test it. When all of that passes, the task waits for your final review.

A task always has a status that says where it is. When it enters a step, the status follows from the kind of step:

  • A step where you act (an approval or a validation) sets waiting_you.
  • A step that waits for something outside Astranize, such as CI, sets waiting_others.
  • Every other step sets running.

An agent can also stop and ask you a question. The task then switches from running to waiting_you until you answer, and goes back to running after.

Only some moves are allowed from each status. For example, you cannot approve a task that is already running. A command that does not fit fails with a message like this:

Invalid transition: event "<event>" is not allowed from status "<status>"

The full list of statuses is in All statuses at the end of this page.

The Tasks screen in the desktop app groups tasks into five columns. Each card shows the task title, its repo, a track of the flow steps, and a line that says what is happening now or what the task needs from you.

The Tasks board in Kanban view with five columns: Ideating, For you, Running, Blocked and Done. A card in For you says Answer 2 questions and approve the spec, a card in Running shows Gates for cycle 2, and a card in Blocked says it stopped after 3 returns.
The Tasks board. The top bar counts the tasks running and the ones that need you.

This is how the statuses map to the columns:

Column Tasks shown
Ideating backlog, queued, and running on an ideate step
For you waiting for an approval, a validation or a decision
Running every other running, plus waiting_others and iterating
Blocked blocked
Done done

The For you column is highlighted when it has tasks. The same items are listed on the For you screen. Archived tasks do not appear on the board.

The developer never works in your own checkout. When the first code step runs, Astranize creates a separate git worktree for each repo the task needs, branched from that repo’s base_branch. It runs the repo’s setup command once (with a 15 minute limit) and copies the files listed in copy, for example .env.

Each worktree is on its own branch, named after the task id and title:

astra/t-0001-add-a-tag-filter-to-the-notes-list

The part after the id is the title in lowercase ASCII with dashes, cut to 40 characters. Commands that Astranize runs for a task get ASTRANIZE_NAME_PREFIX in their environment, so your own scripts can build the same names.

Worktrees live under ~/.astranize/workspaces/<ws>/worktrees/<task-id>/<repo>/. To keep them on another disk, set worktrees_root to an absolute path in ~/.astranize/settings.json. They then go to <worktrees_root>/<ws>/<task-id>/.

Each time the developer works on the task is called a cycle. Cycle 1 is the first build. When a later step finds a problem and sends the task back, the developer starts a new cycle with that problem in hand.

Sending the task back is called a return. Three things cause one:

  • a gate fails, and the task follows the step’s on_fail route;
  • the reviewer rejects, and the task follows on_reject;
  • you reject the validation, and the task follows one of its routes.

Astranize counts returns so a task cannot loop forever:

  • An automatic return (from the gates or the reviewer) adds 1 to returns. When returns would go past the flow’s max_returns (3 in the default flow), the task blocks with reason max_returns instead.
  • A return from a step where you act (an approval or a validation) adds 1 to humanRounds and does not count against max_returns.
  • Going back to the ideator resets returns to 0.
  • The “run again” route that a mission adds for its repeat rounds does not count.

Each cycle keeps its own folder under runs/<task-id>/cycle-N/ with what the developer received, the agent transcript and the gate results.

A task blocks when something stops it that it cannot fix alone: an agent crashed, the returns ran out, a step has no route for its result. A blocked task keeps the reason and the step it stopped on, and it opens a blocked decision on the For you screen.

To try again, run retry or pick Try again on the decision. Most blocks retry the step they stopped on. A task blocked on max_returns cannot retry the same step, so retry restarts it from the develop step if the spec was approved, or from the first step if not.

Here is a task whose first build blocked, was retried, then validated and archived. Output is trimmed to the relevant fields.

Terminal window
astranize ideate t-0001 --workspace notes --follow
astranize approve t-0001 --workspace notes --follow
{"type":"queued","taskId":"t-0001","position":1}
{"type":"step_started","taskId":"t-0001","step":"developer","cycle":1,"model":"sonnet"}
{"type":"step_finished","taskId":"t-0001","step":"gates","cycle":1,"outcome":"failed"}
{"type":"step_started","taskId":"t-0001","step":"developer","cycle":2,"model":"sonnet"}
...
{"type":"decision_opened","taskId":"t-0001","decision":{"kind":"blocked","title":"Blocked: agent_crashed:developer",...}}

The gates failed on cycle 1, so the developer got a cycle 2. Later the developer agent crashed and the task blocked. A retry picks it up in a new cycle:

Terminal window
astranize retry t-0001 --workspace notes --follow
{"type":"step_started","taskId":"t-0001","step":"developer","cycle":4,"model":"sonnet"}
{"type":"step_finished","taskId":"t-0001","step":"gates","cycle":4,"outcome":"passed"}
{"type":"step_finished","taskId":"t-0001","step":"reviewer","cycle":4,"outcome":"passed"}
{"type":"step_finished","taskId":"t-0001","step":"video","cycle":4,"outcome":"passed"}
{"type":"decision_opened","taskId":"t-0001","decision":{"kind":"validation","title":"Validate the delivery of Add a tag filter to the notes list",...}}

Everything passed and a validation is waiting. You validate, then archive the task:

Terminal window
astranize validate t-0001 --workspace notes --file verdict.json
astranize archive t-0001 --workspace notes
{"type":"task_updated","task":{"id":"t-0001","status":"done",...}}
{"type":"task_updated","task":{"id":"t-0001","status":"archived",...}}

You can fix a task’s title at any time, and its description until the work is locked in. The description is what the ideator turns into a spec, so once you approve that spec, the spec is the source of truth and the description is locked. In a flow with no approval step, the description locks as soon as the task first starts instead.

Open the task and click Edit at the top right. The dialog has Title and Description, and says when each one can change.

The Edit t-0008 dialog over a running task: the note that the title changes at any time and the description only before approval, the Title field, and the Description field locked with the note The description is locked after approval, because the approved spec is the source of truth.
An approved task: the title still changes, the description is locked.

Click Save to get “Task saved”. An empty title is refused with “The title cannot be empty.” If the task changed while the dialog was open, for example from the CLI, nothing is overwritten: the dialog says “The task changed while you were editing: title.” and offers Reload.

Archiving takes a task off the board without deleting anything. archive works on any task that is not running. The task file, the worktree and runs/<task-id>/ stay on disk. list hides archived tasks, and list --archived shows only them.

Deleting is for archived tasks only, and even then nothing is thrown away. The task file, its run folder and its worktrees move to the Astranize trash, ~/.astranize/trash/, and the commits stay on the task’s branch.

Open an archived task. Next to Edit there is Delete, which asks “Delete t-0001?” and explains what goes to the trash.

When you confirm and a worktree still has uncommitted work, the dialog stops and lists it, for example web (3 files), and explains “Delete anyway keeps the uncommitted diff and the worktrees in the trash, nothing is lost.” For a task that never commits, it adds that its worktree holds all of its work. Click Delete anyway to go on. The board then drops the task and a notice shows the trash folder.

Uncommitted work is saved next to the task as uncommitted-<repo>.patch, so you can apply it again with git apply. The trash folder also holds the task file, run/ and worktrees/.

Everything starts on the Tasks screen.

  • To create a task, click New task, give it a Title and a Description, and click Create task. You can also pick Import from Shortcut and paste a story link or ID.
  • To write the spec, find the new card in Ideating (it says Waiting to ideate) and click its play button, or open the task and click Ideate.
  • To approve the spec, open the task when its card moves to For you and says, for example, Answer 2 questions and approve the spec. The same item is on the For you screen under Answer questions. Answer the questions and click Approve, or click Request changes to send it back to the ideator with your comment.
  • To follow one task, click its card. The task overview shows the spec, the criteria, the steps and what is happening now, and opens the live session.
  • To find tasks, switch between Kanban and List, search, and filter with Needs me, Running, Repository and Agent.
  • To retry or archive a blocked task, answer its blocked decision on For you: Try again, Request changes or Archive.
  • To change a task’s title, or its description before approval, open it and click Edit. An archived task also has Delete.
  • To change when a task commits, open Advanced in New task, or use the Commit pill in the session.

Archiving a task that is not blocked is CLI only for now.

Status Meaning
backlog Created, nothing has run yet.
queued Waiting in the daemon queue for a free slot. See Queue and capacity.
running An agent or a check step is working on it.
waiting_you Stopped on you: an approval, a validation or an open decision.
waiting_others On a wait step, waiting for something outside Astranize.
iterating Reserved; Astranize does not set it today. Shown as running.
blocked Stopped with a reason (blockedReason) and the step it stopped on (blockedFrom).
done Every step passed and you validated it.
archived Off the board. History and artifacts stay on disk.

Each task is a Markdown file at ~/.astranize/workspaces/<ws>/tasks/<id>.md. The YAML frontmatter holds the state, in snake_case keys, and the body holds four fixed sections:

tasks/t-0001.md
---
id: t-0001
title: Add a tag filter to the notes list
name_prefix: astra
status: blocked
current_step: null
current_step_type: null
returns: 2
human_rounds: 0
repos:
- api
acceptance_criteria:
- id: AC-1
text: The notes list shows a tag filter
proof:
- video
history:
- at: 2026-11-20T02:10:23.337Z
event: created
# ...
video_caught_miss: false
blocked_reason: agent_crashed:developer
blocked_from: developer
---
## Description
Users want to filter notes by tag.
## Spec
...
## Answers and adjustments
## Validation

Keys worth knowing: repos (filled by the ideator), acceptance_criteria (each with a proof of unit, integration, manual or video), questions, history (every event with a timestamp), flow (the Trajectory the task uses, written when it is not default or when the workspace sets a default_flow), commit (the task’s commit override), edit_revision (how many times you edited it), profile, permission_mode and request (the source story when imported from Shortcut). Files written before the switch to snake_case still load; migrate-yaml-keys rewrites them, see YAML keys. The full list is in Files and directories.

Astranize checks the frontmatter on every read. A broken file shows up as <file>: invalid frontmatter: <field>: <problem> instead of crashing the board.

  • Directory~/.astranize/workspaces/notes/
    • Directorytasks/
      • t-0001.md
    • Directoryworktrees/
      • Directoryt-0001/
        • Directoryapi/ worktree on branch astra/t-0001-…
          • …
    • Directoryruns/
      • Directoryt-0001/
        • events.jsonl
        • decisions.json
        • spec.md
        • Directoryideator/
          • …
        • Directorycycle-1/
          • developer-input.md
          • developer.jsonl
          • gates.json
          • gates/api-tests.log
        • report.json
        • diff.patch

Tasks created before the rename keep the old orq/ branch prefix.