# Pipeline Definitions — Team Coordinate ## Dynamic Pipeline Model team-coordinate does NOT have a static pipeline. All pipelines are generated at runtime from task-analysis.json based on the user's task description. ## Pipeline Generation Process ``` Phase 1: analyze-task.md -> Signal detection -> capability mapping -> dependency graph -> Output: task-analysis.json Phase 2: dispatch.md -> Read task-analysis.json dependency graph -> Create TaskCreate entries per dependency node -> Set blockedBy chains from graph edges -> Output: TaskList with correct DAG Phase 3-N: monitor.md -> handleSpawnNext: spawn ready tasks as team-worker agents -> handleCallback: mark completed, advance pipeline -> Repeat until all tasks done ``` ## Dynamic Task Naming | Capability | Prefix | Example | |------------|--------|---------| | researcher | RESEARCH | RESEARCH-001 | | developer | IMPL | IMPL-001 | | analyst | ANALYSIS | ANALYSIS-001 | | designer | DESIGN | DESIGN-001 | | tester | TEST | TEST-001 | | writer | DRAFT | DRAFT-001 | | planner | PLAN | PLAN-001 | | (default) | TASK | TASK-001 | ## Dependency Graph Structure task-analysis.json encodes the pipeline: ```json { "dependency_graph": { "RESEARCH-001": { "role": "researcher", "blockedBy": [], "priority": "P0" }, "IMPL-001": { "role": "developer", "blockedBy": ["RESEARCH-001"], "priority": "P1" }, "TEST-001": { "role": "tester", "blockedBy": ["IMPL-001"], "priority": "P2" } } } ``` ## Role-Worker Map Dynamic — loaded from session role-specs at runtime: ``` /role-specs/.md -> team-worker agent ``` Role-spec files contain YAML frontmatter: ```yaml --- role: prefix: inner_loop: message_types: success: error: error --- ``` ## Checkpoint | Trigger | Behavior | |---------|----------| | capability_gap reported | handleAdapt: generate new role-spec, spawn new worker | | consensus_blocked HIGH | Create REVISION task or pause for user | | All tasks complete | handleComplete: interactive completion action | ## Specs Reference - [role-spec-template.md](role-spec-template.md) — Template for generating dynamic role-specs