package page→ /work/contours/tasks.md
pages/work/contours/tasks.md
31 lines, 2.0 KB. As a page.
- ---
- type: Contour
- title: "Agent task contour"
- icon: "✅"
- collection: /work/tasks
- stageField: status
- overrides: people
- phases:
- - /work/contours/tasks/todo
- - /work/contours/tasks/doing
- - /work/contours/tasks/waiting
- - /work/contours/tasks/done
- - /work/contours/tasks/hold
- entry: /work/contours/tasks/todo
- ---
- A task stands in the queue, goes, waits and ends finished. Separately, it can be put on hold. The contour moves the collection [Agent tasks](/work/tasks.md) through the field "State".
- | From | To | Condition |
- |---|---|---|
- | [Queued](/work/contours/tasks/todo.md) | [Doing](/work/contours/tasks/doing.md) | all obligations from `waitsFor` are fulfilled, all tasks from `waitsForOwner` are done |
- | [Queued](/work/contours/tasks/todo.md) | [Waiting](/work/contours/tasks/waiting.md) | there is an unfulfilled obligation in `waitsFor` or an undone owner task in `waitsForOwner` |
- | [Doing](/work/contours/tasks/doing.md) | [Waiting](/work/contours/tasks/waiting.md) | an unfulfilled obligation appeared or a decision is needed |
- | [Waiting](/work/contours/tasks/waiting.md) | [Doing](/work/contours/tasks/doing.md) | all obligations from `waitsFor` are fulfilled |
- | [Doing](/work/contours/tasks/doing.md) | [Done](/work/contours/tasks/done.md) | the "Done when" condition is met |
- | any except "Done" | [On hold](/work/contours/tasks/hold.md) | the reason is written in `holdReason` |
- | [On hold](/work/contours/tasks/hold.md) | [Queued](/work/contours/tasks/todo.md) | a person returned the task to work |
- **Gate.** A task is let into the state "Doing" only if all obligations from `waitsFor` are fulfilled and all owner tasks from `waitsForOwner` are done. Otherwise it goes to "Waiting". Obligations lie in the Deal layer (`/deal/obligations`), owner tasks in [Owner tasks](/work/owner-tasks.md). For now the program does not check this gate, the check is made by whoever moves the task.
- The executor moves it. There is no path out of "Done": if the work came back, it is a new task or a bug.