tasks
Specification

Statuses and transitions

The fixed lifecycle, derived conditions, situations, priority, the transition table, authorization, and force.

Statuses

The lifecycle is a fixed vocabulary. Implementations MUST NOT rename it, extend it, or attach behaviour to any other value.

StatusFact recordedOpen?
BACKLOGNot scheduled.open
TODOScheduled, not started; a parent's children carry their own status.open
IN_PROGRESSBeing worked right now; a claimant is recorded.open
PAUSEDStarted, not being worked; waiting for a dependency, a person, or free hands.open
DONEFinished.resolved
CANCELLEDExplicitly decided not to do.resolved
  • A reference in depends_on is satisfied by DONE only.
  • A child, or a reference in finishes_after, satisfies the finish gate when DONE or CANCELLED.
  • The four open statuses are live work: they hold the parent open and are cancelled with it.
  • A parent's status records the parent's own facts — scheduled, its own work, resolved. What happens among its children is computed (see Situation); what is decided about the parent reaches its children (see Containment).

Derived conditions

The following are computed on every query from current state, MUST be shown by overview commands, and MUST NOT be persisted to any file:

ConditionDefinition
blocked byAn open task with at least one unsatisfied depends_on reference; the references and their reasons.
ready (for an actor)Status TODO or PAUSED; every depends_on reference satisfied; assignee null or equal to the actor; no live open child; no ancestor claimed or assigned.
waiting forPAUSED with an assignee: the task waits for that actor's decision or review.
assignedAn assignee on an open task that is not PAUSED.
startedA state.md exists on the task or on a descendant (meaningful for BACKLOG, where the status does not carry it).
parkedBACKLOG and started: begun, then set aside.
heldAn open task with an ancestor that is claimed or assigned: that ancestor's work or decision comes first (see Hold).
progressFor a parent: live children resolved and open, and whether any descendant is IN_PROGRESS (active).
closableAn open task with children or finishes_after references whose finish gate is satisfied: it can be closed either way without touching anything else.
claim livenessFor IN_PROGRESS: live, orphaned, or unknown, see Sessions and liveness.

A ready set MUST be ordered by effective priority first, then PAUSED before TODO, then created ascending; aggregated output interleaves projects by the same keys.

Non-normative

"Blocked" is not a status because it is a fact about other tasks. Storing it would either require a cascade write when the blocker completes or leave a stale label; computing it costs one dependency walk and composes with any status: a blocked TODO and a blocked PAUSED are both visible without a third value. "Finishing beats starting" is why PAUSED sorts first among equal priorities, and the oldest task comes first because nothing else in the tree says what matters more. A parent with open children is not ready because its work is its children's until they close; it comes up by itself once they have — to verify, to integrate, or simply to be closed. A task whose finish gate waits only on finishes_after references stays ready: a join is worked beside its parts and closed after them, so an epic that is nothing but a join is assigned to its owner or deferred rather than left for claim --next. A BACKLOG parent has only BACKLOG children (Containment), so nothing under it is ready either; without these rules every epic created by new would be offered to every agent as free work. A claimed or assigned ancestor holds its subtree for the mirror-image reason: its decomposition is being written or awaits approval, and executing it early would build on a plan nobody confirmed.

Situation

An overview says exactly one word about a task, its situation, chosen as the first row below whose condition holds; every other condition that holds is shown after it as a secondary label (started for the task's own state.md, blocked by X — with the reason when the reference can never be satisfied, as in blocked by A (cancelled) — active for a parent with an IN_PROGRESS descendant, liveness, the assignee, and held by X or closable when they are not the situation itself). Implementations MUST compute the situation by this table, so that two of them agree on what a tree looks like.

SituationConditionStatuses in which it is shown
done, cancelledresolvedone each
working by Xa claimant X is recorded; shown with its livenessIN_PROGRESS
parkedBACKLOG with started work at the task or beneath itBACKLOG
backlogBACKLOG without started workBACKLOG
held by Xan ancestor X is claimed or assigned (Hold)TODO, PAUSED
waiting for XPAUSED with an assigneePAUSED
assigned Xan assignee, not PAUSEDTODO (an assigned BACKLOG task shows backlog or parked, an assigned IN_PROGRESS one working)
blocked by Xan unsatisfied depends_on referenceTODO, PAUSED
closablea task with children or finishes_after references whose finish gate is satisfied: closable either way, no cascadeTODO, PAUSED
open N/Ma parent with open childrenTODO, PAUSED
readyfree and unblocked, as defined aboveTODO, PAUSED

N/M is the parent's progress: live children resolved out of live children. Overview commands (ready, mine, list, tree) MUST show the situation, the effective priority when it is not normal, and the secondary labels, and SHOULD NOT show the stored status, which show, resume, the JSON status field and the file itself carry. list MUST accept a filter by situation (--parked, --blocked, --waiting, …) and by the active label (--active).

Non-normative

The status is what a task says about itself; the situation is what the tree says about the task. Files and commands speak status — pause, defer, done name the fact they write — and overviews speak situation, so a reader never sees two vocabularies competing on one line: an epic whose child is being worked reads open 2/5 · active, not TODO, and a task paused for review reads waiting for alice, not PAUSED. Some situations coincide with a status one to one (done, working, backlog); most do not, which is the point.

Priority

priority is one of four fixed levels — urgent, high, normal, low — and defaults to normal. A task's effective priority is the highest level among its own and its ancestors': an urgent epic makes its parts urgent without a write to each of them. Effective priority is the first key of the ready order (see Derived conditions); among equals, finishing beats starting. Overviews show a level other than normal in a column of its own, marked (inherited) when it is an ancestor's.

Non-normative

Nobody sets a priority by default, so the queue runs on the started-first rule alone; a level set by a person is a deliberate jump of the queue and is treated as one. Four words instead of a number scale for the same reason the statuses are words: they read the same in every tree and need no legend.

Transitions

CommandFromToPreconditionsEffects
scheduleBACKLOGPAUSED when state.md exists, else TODOauthorization; no ancestor in BACKLOGcascades to BACKLOG descendants (Containment)
deferTODO, PAUSEDBACKLOGauthorization; cascade liveness rulestate.md is kept; cascades to open descendants (Containment)
claimBACKLOG, TODO, PAUSEDIN_PROGRESSauthorization; start gate satisfied; the task's parent is open; no ancestor in BACKLOG; no ancestor claimed or assignedsets claimed_by, claimed_at, claimed_session
pauseIN_PROGRESSPAUSEDclaimant; state.md exists; messageclears the claim; when the task has no assignee and the caller is a person (Actors), sets assignee to the caller — the task waits for them; an agent's pause leaves it free
releaseIN_PROGRESSTODOclaimant; no state.md existsclears the claim
doneany openDONEauthorization; start gate satisfied; finish gate satisfied; messageclears the claim
cancelany openCANCELLEDauthorization; cascade liveness rule; messageclears the claim; cascades to open descendants (Containment)
reopenDONE, CANCELLEDBACKLOG under a BACKLOG ancestor; else PAUSED when state.md exists, else TODOauthorization; the parent is open; message
handoff <actor>IN_PROGRESSPAUSEDa listed actor when the tree lists actors; as pausepause, then assign
assign <actor> / unassignany openunchangedassign names a listed actor when the tree lists actors (Actors); authorizationsets or clears assignee
priority <level>any openunchangedauthorizationsets priority

A status transition from a status to itself is never legal, with one exception: claim on an IN_PROGRESS task is the takeover of an orphaned claim (Liveness of a claim), logged as claim: IN_PROGRESS → IN_PROGRESS. assign, unassign and priority change one field each; they are not status transitions but follow the same authorization and logging rules. No other transitions exist.

  • Messages. done, pause, handoff, cancel and reopen REQUIRE a message; every other transition MAY carry one. Every transition MUST append an entry to the task's log (see log.md).
  • Creation. A new task starts in TODO; an implementation MAY create it in BACKLOG on request, MUST create it in BACKLOG under a BACKLOG parent, and MAY set assignee at creation (a listed actor when the tree lists actors). A task MUST NOT be created under a resolved parent.
  • release exists for a claim that produced nothing; the absence of state.md is the evidence. Work that produced anything is paused, not released. A claim taken from BACKLOG and released lands in TODO, which schedules the task; defer undoes that.
  • done from BACKLOG exists, like cancel, for a decision about unscheduled work: a task found to be finished elsewhere is closed where it is, under the same gates. Neither needs the task's ancestors scheduled: closing starts nothing.
  • reopen is an exception, not a flow: a task under a resolved parent MUST NOT be reopened before the parent, and reopening a parent reopens none of its children. A resolved task keeps its assignee, so a task a person closed is reopened by that person or by force.
  • pause without a state.md MUST be refused with a conflict that names the missing file; this is the mechanism that guarantees a resume point.
  • claim --next takes, under the tree lock, the first task of the caller's ready set — in ready order, within --scope when given and otherwise within the configured scope — and claims it in the same operation, so that several agents reading one list do not race for its head. It fails as not found when the set is empty.

Non-normative

A single PAUSED covers every kind of waiting because what is waited for is already recorded elsewhere: a task in depends_on, a person in assignee, or nothing (free hands). The maintainer's inbox is therefore not a status but a query: tasks assigned to her, whatever their status. Returning half-done work to TODO would be a lie, hence PAUSED is stored, and BACKLOG keeps state.md so schedule can restore PAUSED.

Authorization

  • An IN_PROGRESS task whose claim is live or unknown (see Liveness of a claim) MUST be transitioned only by its claimant: the same claimed_by and, when claimed_session is non-null, the same session (when it is null, any session of that actor). An orphaned claim protects nothing: the task MAY be transitioned by any actor the remaining rules authorize, and the log entry MUST record the superseded session and when it was last seen, as a takeover does. Liveness protects live work; authority governs the rest.
  • An assigned task that is not claimed MUST be transitioned only by its assignee or by the assignee of one of its ancestors: authority flows down the tree.
  • Any other task MAY be transitioned by anyone.
  • The same rules authorize every other write to a task — state, a dependency edit, move, delete — not only its transitions.
  • claim by an actor the rules above do not authorize MUST be refused like a claim on a claimed task.
  • A cascade (Containment) is authorized on the task the command names; the descendants' own assignees do not apply to it. Their live work is protected by the cascade liveness rule, not by authority.
  • An explicit force overrides every rule above (see Force).
  • An implementation MAY let an actor act on behalf of another (--as); the log entry MUST record both, principal and operator.

Authorization failures are state conflicts (exit 4 under the CLI contract).

Force

An explicit force (--force) is the only override in this specification and MUST be recorded in the log entry of the transition it forced; a forced state write, which appends no log entry, is the one forced write that goes unrecorded. It overrides exactly:

Nothing overrides the finish gate, the state.md preconditions of pause, handoff and release, the rules that protect a resolved parent, the BACKLOG-subtree invariant of Containment, the cycle rules, the reserved-path rule, or a required message.

On this page