Task Management — Kanban board, state machine, and dependency orchestration

中文原版 · ← Back to Task Collaboration

Markus’s Task system is the core of “getting work done”: Requirement → Task → Kanban form the complete work loop. This page details the three pillars of task management: Kanban visualization, the state-machine lifecycle, and blocked_by dependency orchestration — along with the review governance that runs through all of it. For the full task-creation walkthrough, see Create a Task.


1. Concepts at a glance

ConceptDescription
RequirementThe formal governance statement of the work; the gate for all top-level tasks — an approved requirement must exist before you can create a task
TaskA deliverable, acceptable unit of work attached to an approved requirement and project (tsk_…)
KanbanThe Tasks page visualizes task progress and flow with status columns
SubtaskBreaks a complex task into verifiable small steps (sub_…); no independent review
DeliverableA task’s output, registered in the results area (dlv_…); see Results

2. State machine

A task is the core unit of work, and its lifecycle is driven by explicit state transitions. The Tasks page Kanban displays tasks by status column:

pending → assigned → in_progress → review → revision → accepted → completed → archived
StateMeaningWho enters it
pendingCreated, waiting for approvalEvery new task after creation; not active work, does not advance on its own
assignedAssigned, waiting to startAfter the task is approved and assigned
in_progressExecutingThe assignee actually starts working
reviewSubmitted for review, waiting for acceptanceAfter the assignee calls task_submit_review
revisionReview pushed back, changes requestedAfter the reviewer rejects with feedback, returns to execution
acceptedReview passedThe reviewer accepts
completedDone, entry to archivingAfter the reviewer approves
archivedArchivedManually archived to preserve the audit trail

Red lines: a worker never self-approves their own task as “completed” (only the reviewer can); pending / blocked tasks never advance on their own; a decomposed task must have all subtasks completed or cancelled before it can be submitted for review.

Who owns each transition:

requirement (human approval)
  → task pending (awaiting UI approval — not active work)
  → in_progress (assignee executes)
  → review (assignee calls task_submit_review)
  → completed (reviewer approves) | or back to in_progress (reviewer pushes back with feedback)
  → blocked (dependencies unmet) | failed | cancelled

Governance actions (in task details): Submit for Review, Accept, Request Revision, Archive, and Start Execution for manually-run human tasks.


3. Dependency orchestration (blocked_by)

blocked_by is the backbone of multi-task orchestration:

  • Independent tasks → run in parallel on the board.
  • Tasks with blocked_by → wait for their prerequisites to complete before starting.
Task A (no dependencies) ──────────→ parallel
Task B (depends on A's output)
   blocked_by: [A's task ID] → waits for A to finish, then starts

Orchestration principle: if Task B depends on Task A’s output, A’s task ID must go into B’s blocked_by — if you omit it, the system runs them in parallel and B never gets A’s output; the order is wrong. Map the dependency graph before creating a batch of tasks — independent tasks in parallel, dependent tasks serial (via blocked_by) — so orchestration is correct by construction.

Required fields when creating a task (rejected if missing):

  • Title / description: state what is being delivered in natural language.
  • assigned_agent_id: who executes.
  • reviewer_id: who accepts (cannot be the same Agent as the assignee).
  • requirement_id / project_id: attach to an approved requirement and project.
  • blocked_by (dependencies): the list of task IDs this task depends on.

4. Subtask breakdown

Before starting complex work, use subtask_create to split it into several “testable assertions” — each subtask is a verifiable statement of what “done” means:

  • The system enforces: as long as any subtask is still pending, you cannot submit for review.
  • Define the “contract” (what counts as done) with subtasks and verify each item during the VERIFY phase.
  • Complete subtasks with subtask_complete; cancel ones that no longer apply with subtask_cancel (with a reason).

5. Review as a gate

When a task moves to review, the reviewer accepts it — this is the quality gate:

  • The assignee can only call task_submit_review, not completed.
  • Reviewer approval → auto completed; push-back → auto back to in_progress with feedback, and the assignee reworks accordingly.
  • Never submit blindly while subtasks are uncleared, acceptance criteria are unmet, or known failures exist.

Mutual review details: Review.


6. Complete example

  1. Create a requirement: “Competitive research” — state the goal and acceptance criteria clearly, human approves.
  2. Create Task A: based on that requirement, “scan competitors and output a competitive analysis report”; assign the research Agent as assignee and QA as reviewer.
  3. Break into subtasks: scan competitors → write competitive analysis → draft market strategy, chained into an acceptance rhythm.
  4. Add dependencies: if a later “enter the market strategy” task depends on the report output, put Task A’s ID in its blocked_by.
  5. Track on the Kanban: pending → in_progress → review → completed, fully auditable.
  6. Get the results: view deliverables from the task details; accepted deliverables are the accepted outcome.

7. Next steps

  • When to use conversation and when a Task is required → Conversation.
  • Multi-Agent parallel / A2A / cross-team → Multi-Agent.
  • Deliverables and deliverable cards → Results.
  • How digital assets (Agent / Team / Skill) relate to tasks → Assets.