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.
| Status | Fact recorded | Open? |
|---|---|---|
BACKLOG | Not scheduled. | open |
TODO | Scheduled, not started; a parent's children carry their own status. | open |
IN_PROGRESS | Being worked right now; a claimant is recorded. | open |
PAUSED | Started, not being worked; waiting for a dependency, a person, or free hands. | open |
DONE | Finished. | resolved |
CANCELLED | Explicitly decided not to do. | resolved |
- A reference in
depends_onis satisfied byDONEonly. - A child, or a reference in
finishes_after, satisfies the finish gate whenDONEorCANCELLED. - 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:
| Condition | Definition |
|---|---|
| blocked by | An 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 for | PAUSED with an assignee: the task waits for that actor's decision or review. |
| assigned | An assignee on an open task that is not PAUSED. |
| started | A state.md exists on the task or on a descendant (meaningful for BACKLOG, where the status does not carry it). |
| parked | BACKLOG and started: begun, then set aside. |
| held | An open task with an ancestor that is claimed or assigned: that ancestor's work or decision comes first (see Hold). |
| progress | For a parent: live children resolved and open, and whether any descendant is IN_PROGRESS (active). |
| closable | An open task with children or finishes_after references whose finish gate is satisfied: it can be closed either way without touching anything else. |
| claim liveness | For 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.
| Situation | Condition | Statuses in which it is shown |
|---|---|---|
done, cancelled | resolved | one each |
working by X | a claimant X is recorded; shown with its liveness | IN_PROGRESS |
parked | BACKLOG with started work at the task or beneath it | BACKLOG |
backlog | BACKLOG without started work | BACKLOG |
held by X | an ancestor X is claimed or assigned (Hold) | TODO, PAUSED |
waiting for X | PAUSED with an assignee | PAUSED |
assigned X | an assignee, not PAUSED | TODO (an assigned BACKLOG task shows backlog or parked, an assigned IN_PROGRESS one working) |
blocked by X | an unsatisfied depends_on reference | TODO, PAUSED |
closable | a task with children or finishes_after references whose finish gate is satisfied: closable either way, no cascade | TODO, PAUSED |
open N/M | a parent with open children | TODO, PAUSED |
ready | free and unblocked, as defined above | TODO, 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
| Command | From | To | Preconditions | Effects |
|---|---|---|---|---|
schedule | BACKLOG | PAUSED when state.md exists, else TODO | authorization; no ancestor in BACKLOG | cascades to BACKLOG descendants (Containment) |
defer | TODO, PAUSED | BACKLOG | authorization; cascade liveness rule | state.md is kept; cascades to open descendants (Containment) |
claim | BACKLOG, TODO, PAUSED | IN_PROGRESS | authorization; start gate satisfied; the task's parent is open; no ancestor in BACKLOG; no ancestor claimed or assigned | sets claimed_by, claimed_at, claimed_session |
pause | IN_PROGRESS | PAUSED | claimant; state.md exists; message | clears 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 |
release | IN_PROGRESS | TODO | claimant; no state.md exists | clears the claim |
done | any open | DONE | authorization; start gate satisfied; finish gate satisfied; message | clears the claim |
cancel | any open | CANCELLED | authorization; cascade liveness rule; message | clears the claim; cascades to open descendants (Containment) |
reopen | DONE, CANCELLED | BACKLOG under a BACKLOG ancestor; else PAUSED when state.md exists, else TODO | authorization; the parent is open; message | |
handoff <actor> | IN_PROGRESS | PAUSED | a listed actor when the tree lists actors; as pause | pause, then assign |
assign <actor> / unassign | any open | unchanged | assign names a listed actor when the tree lists actors (Actors); authorization | sets or clears assignee |
priority <level> | any open | unchanged | authorization | sets 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,cancelandreopenREQUIRE a message; every other transition MAY carry one. Every transition MUST append an entry to the task's log (seelog.md). - Creation. A new task starts in
TODO; an implementation MAY create it inBACKLOGon request, MUST create it inBACKLOGunder aBACKLOGparent, and MAY setassigneeat creation (a listed actor when the tree lists actors). A task MUST NOT be created under a resolved parent. releaseexists for a claim that produced nothing; the absence ofstate.mdis the evidence. Work that produced anything is paused, not released. A claim taken fromBACKLOGand released lands inTODO, which schedules the task;deferundoes that.donefromBACKLOGexists, likecancel, 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.reopenis 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 itsassignee, so a task a person closed is reopened by that person or by force.pausewithout astate.mdMUST be refused with a conflict that names the missing file; this is the mechanism that guarantees a resume point.claim --nexttakes, under the tree lock, the first task of the caller's ready set — in ready order, within--scopewhen given and otherwise within the configuredscope— 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_PROGRESStask whose claim is live or unknown (see Liveness of a claim) MUST be transitioned only by its claimant: the sameclaimed_byand, whenclaimed_sessionis 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. claimby 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:
- the authorization rules, including the claimant rule for
move; - the start gate on
claimanddone; - the refusal of a
claimon a live or unknown claim (Claims across sessions), and the refusal of a cascade over one (Containment); - the hold of a subtree under a claimed or assigned ancestor (Hold);
- the refusal to archive a task that open tasks reference (Cancellation and deletion interaction).
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.