Task lifecycle

From 1mancompany/OneManCompany · View interactive version

Task lifecycle is an AI agent skill from the GitHub repository 1mancompany/OneManCompany. Task lifecycle state machine — states, transitions, and task tree model. Use when you need to understand task states, dispatch subtasks, or review completions. Do NOT use for domain-specific procedures — this only covers the universal state machine.

How to use this skill

Skill file

Task Lifecycle States

Every task in the system follows this state machine:

| State | Meaning |

|-------|---------|

| pending | Created, waiting to be processed |

| processing | Actively being executed by an employee |

| holding | Waiting for subtasks to complete or external input |

| completed | Employee finished execution, awaiting supervisor review |

| accepted | Supervisor approved the deliverable |

| finished | Fully done, archived |

| failed | Execution failed or supervisor rejected |

| blocked | Dependency task failed, cannot proceed |

| cancelled | Cancelled |

State flow:

pending → processing → completed → accepted → finished

↕ holding (pause/resume)

completed → failed (rejection) → processing (retry)

Key distinctions:

Task tree model:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.