maestro-flow 0.4.9 → 0.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/agents/cli-explore-agent.md +189 -0
- package/.agents/agents/conceptual-planning-agent.md +247 -0
- package/.agents/agents/impeccable-agent.md +101 -0
- package/.agents/agents/team-supervisor.md +145 -0
- package/.agents/agents/team-worker.md +239 -0
- package/.agents/agents/ui-design-agent.md +289 -0
- package/.agents/agents/workflow-analyzer.md +117 -0
- package/.agents/agents/workflow-codebase-mapper.md +79 -0
- package/.agents/agents/workflow-collab-planner.md +145 -0
- package/.agents/agents/workflow-debugger.md +105 -0
- package/.agents/agents/workflow-executor.md +134 -0
- package/.agents/agents/workflow-external-researcher.md +88 -0
- package/.agents/agents/workflow-integration-checker.md +85 -0
- package/.agents/agents/workflow-nyquist-auditor.md +87 -0
- package/.agents/agents/workflow-phase-researcher.md +87 -0
- package/.agents/agents/workflow-plan-checker.md +92 -0
- package/.agents/agents/workflow-planner.md +197 -0
- package/.agents/agents/workflow-project-researcher.md +76 -0
- package/.agents/agents/workflow-research-synthesizer.md +72 -0
- package/.agents/agents/workflow-reviewer.md +84 -0
- package/.agents/agents/workflow-roadmapper.md +83 -0
- package/.agents/agents/workflow-verifier.md +122 -0
- package/.agents/skills/codify-to-knowhow/SKILL.md +169 -0
- package/.agents/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
- package/.agents/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
- package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
- package/.agents/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
- package/.agents/skills/learn-decompose/SKILL.md +118 -0
- package/.agents/skills/learn-follow/SKILL.md +129 -0
- package/.agents/skills/learn-investigate/SKILL.md +154 -0
- package/.agents/skills/learn-retro/SKILL.md +159 -0
- package/.agents/skills/learn-second-opinion/SKILL.md +124 -0
- package/.agents/skills/maestro/SKILL.md +224 -0
- package/.agents/skills/maestro-amend/SKILL.md +165 -0
- package/.agents/skills/maestro-analyze/SKILL.md +135 -0
- package/.agents/skills/maestro-brainstorm/SKILL.md +118 -0
- package/.agents/skills/maestro-collab/SKILL.md +174 -0
- package/.agents/skills/maestro-composer/SKILL.md +181 -0
- package/.agents/skills/maestro-execute/SKILL.md +133 -0
- package/.agents/skills/maestro-fork/SKILL.md +88 -0
- package/.agents/skills/maestro-guard/SKILL.md +103 -0
- package/.agents/skills/maestro-help/SKILL.md +266 -0
- package/.agents/skills/maestro-help/index/catalog.json +184 -0
- package/.agents/skills/maestro-help/phases/01-parse-intent.md +122 -0
- package/.agents/skills/maestro-help/phases/02-search-present.md +181 -0
- package/.agents/skills/maestro-help/phases/03-workflow-guide.md +186 -0
- package/.agents/skills/maestro-impeccable/SKILL.md +251 -0
- package/.agents/skills/maestro-init/SKILL.md +80 -0
- package/.agents/skills/maestro-learn/SKILL.md +142 -0
- package/.agents/skills/maestro-merge/SKILL.md +66 -0
- package/.agents/skills/maestro-milestone-audit/SKILL.md +70 -0
- package/.agents/skills/maestro-milestone-complete/SKILL.md +77 -0
- package/.agents/skills/maestro-milestone-release/SKILL.md +98 -0
- package/.agents/skills/maestro-overlay/SKILL.md +180 -0
- package/.agents/skills/maestro-plan/SKILL.md +172 -0
- package/.agents/skills/maestro-player/SKILL.md +177 -0
- package/.agents/skills/maestro-quick/SKILL.md +67 -0
- package/.agents/skills/maestro-ralph/SKILL.md +685 -0
- package/.agents/skills/maestro-ralph-execute/SKILL.md +259 -0
- package/.agents/skills/maestro-roadmap/SKILL.md +170 -0
- package/.agents/skills/maestro-tools-execute/SKILL.md +119 -0
- package/.agents/skills/maestro-tools-register/SKILL.md +159 -0
- package/.agents/skills/maestro-ui-codify/SKILL.md +82 -0
- package/.agents/skills/maestro-update/SKILL.md +178 -0
- package/.agents/skills/maestro-verify/SKILL.md +111 -0
- package/.agents/skills/manage-codebase-rebuild/SKILL.md +77 -0
- package/.agents/skills/manage-codebase-refresh/SKILL.md +59 -0
- package/.agents/skills/manage-harvest/SKILL.md +96 -0
- package/.agents/skills/manage-issue/SKILL.md +75 -0
- package/.agents/skills/manage-issue-discover/SKILL.md +83 -0
- package/.agents/skills/manage-knowhow/SKILL.md +79 -0
- package/.agents/skills/manage-knowhow-capture/SKILL.md +81 -0
- package/.agents/skills/manage-learn/SKILL.md +67 -0
- package/.agents/skills/manage-status/SKILL.md +54 -0
- package/.agents/skills/manage-wiki/SKILL.md +64 -0
- package/.agents/skills/quality-auto-test/SKILL.md +138 -0
- package/.agents/skills/quality-debug/SKILL.md +122 -0
- package/.agents/skills/quality-refactor/SKILL.md +69 -0
- package/.agents/skills/quality-retrospective/SKILL.md +79 -0
- package/.agents/skills/quality-review/SKILL.md +130 -0
- package/.agents/skills/quality-sync/SKILL.md +53 -0
- package/.agents/skills/quality-test/SKILL.md +119 -0
- package/.agents/skills/security-audit/SKILL.md +157 -0
- package/.agents/skills/skill-iter-tune/SKILL.md +384 -0
- package/.agents/skills/skill-iter-tune/phases/01-setup.md +144 -0
- package/.agents/skills/skill-iter-tune/phases/02-execute.md +292 -0
- package/.agents/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
- package/.agents/skills/skill-iter-tune/phases/04-improve.md +186 -0
- package/.agents/skills/skill-iter-tune/phases/05-report.md +166 -0
- package/.agents/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
- package/.agents/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
- package/.agents/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
- package/.agents/skills/spec-add/SKILL.md +70 -0
- package/.agents/skills/spec-load/SKILL.md +73 -0
- package/.agents/skills/spec-remove/SKILL.md +53 -0
- package/.agents/skills/spec-setup/SKILL.md +50 -0
- package/.agents/skills/team-coordinate/SKILL.md +268 -0
- package/.agents/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
- package/.agents/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
- package/.agents/skills/team-coordinate/roles/coordinator/commands/monitor.md +358 -0
- package/.agents/skills/team-coordinate/roles/coordinator/role.md +365 -0
- package/.agents/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
- package/.agents/skills/team-coordinate/specs/pipelines.md +97 -0
- package/.agents/skills/team-coordinate/specs/quality-gates.md +112 -0
- package/.agents/skills/team-coordinate/specs/role-spec-template.md +198 -0
- package/.agents/skills/team-executor/SKILL.md +191 -0
- package/.agents/skills/team-executor/roles/executor/commands/monitor.md +239 -0
- package/.agents/skills/team-executor/roles/executor/role.md +171 -0
- package/.agents/skills/team-executor/specs/session-schema.md +264 -0
- package/.agents/skills/team-lifecycle-v4/SKILL.md +211 -0
- package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +96 -0
- package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
- package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
- package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
- package/.agents/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
- package/.agents/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
- package/.agents/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
- package/.agents/skills/team-lifecycle-v4/roles/executor/role.md +69 -0
- package/.agents/skills/team-lifecycle-v4/roles/planner/role.md +87 -0
- package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
- package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
- package/.agents/skills/team-lifecycle-v4/roles/reviewer/role.md +71 -0
- package/.agents/skills/team-lifecycle-v4/roles/supervisor/role.md +194 -0
- package/.agents/skills/team-lifecycle-v4/roles/tester/role.md +89 -0
- package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +97 -0
- package/.agents/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
- package/.agents/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
- package/.agents/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
- package/.agents/skills/team-lifecycle-v4/templates/architecture.md +254 -0
- package/.agents/skills/team-lifecycle-v4/templates/epics.md +196 -0
- package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
- package/.agents/skills/team-lifecycle-v4/templates/requirements.md +224 -0
- package/.agents/skills/team-quality-assurance/SKILL.md +149 -0
- package/.agents/skills/team-quality-assurance/roles/analyst/role.md +90 -0
- package/.agents/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
- package/.agents/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
- package/.agents/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +250 -0
- package/.agents/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
- package/.agents/skills/team-quality-assurance/roles/executor/role.md +68 -0
- package/.agents/skills/team-quality-assurance/roles/generator/role.md +70 -0
- package/.agents/skills/team-quality-assurance/roles/scout/role.md +77 -0
- package/.agents/skills/team-quality-assurance/roles/strategist/role.md +73 -0
- package/.agents/skills/team-quality-assurance/specs/pipelines.md +115 -0
- package/.agents/skills/team-quality-assurance/specs/team-config.json +131 -0
- package/.agents/skills/team-review/SKILL.md +149 -0
- package/.agents/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
- package/.agents/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
- package/.agents/skills/team-review/roles/coordinator/commands/monitor.md +224 -0
- package/.agents/skills/team-review/roles/coordinator/role.md +132 -0
- package/.agents/skills/team-review/roles/fixer/role.md +78 -0
- package/.agents/skills/team-review/roles/reviewer/role.md +70 -0
- package/.agents/skills/team-review/roles/scanner/role.md +81 -0
- package/.agents/skills/team-review/specs/dimensions.md +82 -0
- package/.agents/skills/team-review/specs/finding-schema.json +82 -0
- package/.agents/skills/team-review/specs/pipelines.md +102 -0
- package/.agents/skills/team-review/specs/team-config.json +27 -0
- package/.agents/skills/team-tech-debt/SKILL.md +130 -0
- package/.agents/skills/team-tech-debt/roles/assessor/role.md +79 -0
- package/.agents/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
- package/.agents/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
- package/.agents/skills/team-tech-debt/roles/coordinator/commands/monitor.md +209 -0
- package/.agents/skills/team-tech-debt/roles/coordinator/role.md +123 -0
- package/.agents/skills/team-tech-debt/roles/executor/role.md +78 -0
- package/.agents/skills/team-tech-debt/roles/planner/role.md +71 -0
- package/.agents/skills/team-tech-debt/roles/scanner/role.md +92 -0
- package/.agents/skills/team-tech-debt/roles/validator/role.md +80 -0
- package/.agents/skills/team-tech-debt/specs/pipelines.md +47 -0
- package/.agents/skills/team-tech-debt/specs/team-config.json +129 -0
- package/.agents/skills/team-testing/SKILL.md +145 -0
- package/.agents/skills/team-testing/roles/analyst/role.md +105 -0
- package/.agents/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
- package/.agents/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
- package/.agents/skills/team-testing/roles/coordinator/commands/monitor.md +257 -0
- package/.agents/skills/team-testing/roles/coordinator/role.md +134 -0
- package/.agents/skills/team-testing/roles/executor/role.md +101 -0
- package/.agents/skills/team-testing/roles/generator/role.md +100 -0
- package/.agents/skills/team-testing/roles/strategist/role.md +85 -0
- package/.agents/skills/team-testing/specs/pipelines.md +101 -0
- package/.agents/skills/team-testing/specs/team-config.json +93 -0
- package/.agents/skills/wiki-connect/SKILL.md +64 -0
- package/.agents/skills/wiki-digest/SKILL.md +70 -0
- package/.agents/skills/workflow-skill-designer/SKILL.md +498 -0
- package/.agents/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
- package/.agents/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
- package/.agents/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
- package/.agents/skills/workflow-skill-designer/phases/04-validation.md +471 -0
- package/.agy/agents/cli-explore-agent.md +186 -0
- package/.agy/agents/conceptual-planning-agent.md +244 -0
- package/.agy/agents/impeccable-agent.md +97 -0
- package/.agy/agents/team-supervisor.md +142 -0
- package/.agy/agents/team-worker.md +236 -0
- package/.agy/agents/ui-design-agent.md +286 -0
- package/.agy/agents/workflow-analyzer.md +114 -0
- package/.agy/agents/workflow-codebase-mapper.md +76 -0
- package/.agy/agents/workflow-collab-planner.md +142 -0
- package/.agy/agents/workflow-debugger.md +102 -0
- package/.agy/agents/workflow-executor.md +131 -0
- package/.agy/agents/workflow-external-researcher.md +86 -0
- package/.agy/agents/workflow-integration-checker.md +82 -0
- package/.agy/agents/workflow-nyquist-auditor.md +84 -0
- package/.agy/agents/workflow-phase-researcher.md +84 -0
- package/.agy/agents/workflow-plan-checker.md +89 -0
- package/.agy/agents/workflow-planner.md +194 -0
- package/.agy/agents/workflow-project-researcher.md +73 -0
- package/.agy/agents/workflow-research-synthesizer.md +70 -0
- package/.agy/agents/workflow-reviewer.md +81 -0
- package/.agy/agents/workflow-roadmapper.md +81 -0
- package/.agy/agents/workflow-verifier.md +119 -0
- package/.agy/skills/codify-to-knowhow/SKILL.md +172 -0
- package/.agy/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
- package/.agy/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
- package/.agy/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
- package/.agy/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
- package/.agy/skills/learn-decompose/SKILL.md +118 -0
- package/.agy/skills/learn-follow/SKILL.md +129 -0
- package/.agy/skills/learn-investigate/SKILL.md +154 -0
- package/.agy/skills/learn-retro/SKILL.md +159 -0
- package/.agy/skills/learn-second-opinion/SKILL.md +124 -0
- package/.agy/skills/maestro/SKILL.md +223 -0
- package/.agy/skills/maestro-amend/SKILL.md +162 -0
- package/.agy/skills/maestro-analyze/SKILL.md +135 -0
- package/.agy/skills/maestro-brainstorm/SKILL.md +118 -0
- package/.agy/skills/maestro-collab/SKILL.md +174 -0
- package/.agy/skills/maestro-composer/SKILL.md +180 -0
- package/.agy/skills/maestro-execute/SKILL.md +133 -0
- package/.agy/skills/maestro-fork/SKILL.md +88 -0
- package/.agy/skills/maestro-guard/SKILL.md +101 -0
- package/.agy/skills/maestro-help/SKILL.md +267 -0
- package/.agy/skills/maestro-help/index/catalog.json +184 -0
- package/.agy/skills/maestro-help/phases/01-parse-intent.md +122 -0
- package/.agy/skills/maestro-help/phases/02-search-present.md +181 -0
- package/.agy/skills/maestro-help/phases/03-workflow-guide.md +186 -0
- package/.agy/skills/maestro-impeccable/SKILL.md +250 -0
- package/.agy/skills/maestro-init/SKILL.md +80 -0
- package/.agy/skills/maestro-learn/SKILL.md +142 -0
- package/.agy/skills/maestro-merge/SKILL.md +66 -0
- package/.agy/skills/maestro-milestone-audit/SKILL.md +70 -0
- package/.agy/skills/maestro-milestone-complete/SKILL.md +77 -0
- package/.agy/skills/maestro-milestone-release/SKILL.md +98 -0
- package/.agy/skills/maestro-overlay/SKILL.md +177 -0
- package/.agy/skills/maestro-plan/SKILL.md +172 -0
- package/.agy/skills/maestro-player/SKILL.md +176 -0
- package/.agy/skills/maestro-quick/SKILL.md +67 -0
- package/.agy/skills/maestro-ralph/SKILL.md +681 -0
- package/.agy/skills/maestro-ralph-execute/SKILL.md +255 -0
- package/.agy/skills/maestro-roadmap/SKILL.md +170 -0
- package/.agy/skills/maestro-tools-execute/SKILL.md +119 -0
- package/.agy/skills/maestro-tools-register/SKILL.md +159 -0
- package/.agy/skills/maestro-ui-codify/SKILL.md +81 -0
- package/.agy/skills/maestro-update/SKILL.md +175 -0
- package/.agy/skills/maestro-verify/SKILL.md +111 -0
- package/.agy/skills/manage-codebase-rebuild/SKILL.md +77 -0
- package/.agy/skills/manage-codebase-refresh/SKILL.md +59 -0
- package/.agy/skills/manage-harvest/SKILL.md +96 -0
- package/.agy/skills/manage-issue/SKILL.md +72 -0
- package/.agy/skills/manage-issue-discover/SKILL.md +83 -0
- package/.agy/skills/manage-knowhow/SKILL.md +76 -0
- package/.agy/skills/manage-knowhow-capture/SKILL.md +78 -0
- package/.agy/skills/manage-learn/SKILL.md +64 -0
- package/.agy/skills/manage-status/SKILL.md +51 -0
- package/.agy/skills/manage-wiki/SKILL.md +61 -0
- package/.agy/skills/quality-auto-test/SKILL.md +135 -0
- package/.agy/skills/quality-debug/SKILL.md +122 -0
- package/.agy/skills/quality-refactor/SKILL.md +69 -0
- package/.agy/skills/quality-retrospective/SKILL.md +79 -0
- package/.agy/skills/quality-review/SKILL.md +130 -0
- package/.agy/skills/quality-sync/SKILL.md +53 -0
- package/.agy/skills/quality-test/SKILL.md +119 -0
- package/.agy/skills/security-audit/SKILL.md +157 -0
- package/.agy/skills/skill-iter-tune/SKILL.md +381 -0
- package/.agy/skills/skill-iter-tune/phases/01-setup.md +144 -0
- package/.agy/skills/skill-iter-tune/phases/02-execute.md +292 -0
- package/.agy/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
- package/.agy/skills/skill-iter-tune/phases/04-improve.md +198 -0
- package/.agy/skills/skill-iter-tune/phases/05-report.md +166 -0
- package/.agy/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
- package/.agy/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
- package/.agy/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
- package/.agy/skills/spec-add/SKILL.md +67 -0
- package/.agy/skills/spec-load/SKILL.md +70 -0
- package/.agy/skills/spec-remove/SKILL.md +50 -0
- package/.agy/skills/spec-setup/SKILL.md +47 -0
- package/.agy/skills/team-coordinate/SKILL.md +267 -0
- package/.agy/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
- package/.agy/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
- package/.agy/skills/team-coordinate/roles/coordinator/commands/monitor.md +348 -0
- package/.agy/skills/team-coordinate/roles/coordinator/role.md +362 -0
- package/.agy/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
- package/.agy/skills/team-coordinate/specs/pipelines.md +97 -0
- package/.agy/skills/team-coordinate/specs/quality-gates.md +112 -0
- package/.agy/skills/team-coordinate/specs/role-spec-template.md +198 -0
- package/.agy/skills/team-executor/SKILL.md +180 -0
- package/.agy/skills/team-executor/roles/executor/commands/monitor.md +235 -0
- package/.agy/skills/team-executor/roles/executor/role.md +171 -0
- package/.agy/skills/team-executor/specs/session-schema.md +264 -0
- package/.agy/skills/team-lifecycle-v4/SKILL.md +189 -0
- package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +92 -0
- package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
- package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
- package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
- package/.agy/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
- package/.agy/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
- package/.agy/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
- package/.agy/skills/team-lifecycle-v4/roles/executor/role.md +64 -0
- package/.agy/skills/team-lifecycle-v4/roles/planner/role.md +82 -0
- package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
- package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
- package/.agy/skills/team-lifecycle-v4/roles/reviewer/role.md +65 -0
- package/.agy/skills/team-lifecycle-v4/roles/supervisor/role.md +188 -0
- package/.agy/skills/team-lifecycle-v4/roles/tester/role.md +84 -0
- package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +92 -0
- package/.agy/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
- package/.agy/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
- package/.agy/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
- package/.agy/skills/team-lifecycle-v4/templates/architecture.md +254 -0
- package/.agy/skills/team-lifecycle-v4/templates/epics.md +196 -0
- package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
- package/.agy/skills/team-lifecycle-v4/templates/requirements.md +224 -0
- package/.agy/skills/team-quality-assurance/SKILL.md +148 -0
- package/.agy/skills/team-quality-assurance/roles/analyst/role.md +85 -0
- package/.agy/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
- package/.agy/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
- package/.agy/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +235 -0
- package/.agy/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
- package/.agy/skills/team-quality-assurance/roles/executor/role.md +62 -0
- package/.agy/skills/team-quality-assurance/roles/generator/role.md +65 -0
- package/.agy/skills/team-quality-assurance/roles/scout/role.md +72 -0
- package/.agy/skills/team-quality-assurance/roles/strategist/role.md +69 -0
- package/.agy/skills/team-quality-assurance/specs/pipelines.md +115 -0
- package/.agy/skills/team-quality-assurance/specs/team-config.json +131 -0
- package/.agy/skills/team-review/SKILL.md +149 -0
- package/.agy/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
- package/.agy/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
- package/.agy/skills/team-review/roles/coordinator/commands/monitor.md +209 -0
- package/.agy/skills/team-review/roles/coordinator/role.md +132 -0
- package/.agy/skills/team-review/roles/fixer/role.md +74 -0
- package/.agy/skills/team-review/roles/reviewer/role.md +66 -0
- package/.agy/skills/team-review/roles/scanner/role.md +77 -0
- package/.agy/skills/team-review/specs/dimensions.md +82 -0
- package/.agy/skills/team-review/specs/finding-schema.json +82 -0
- package/.agy/skills/team-review/specs/pipelines.md +102 -0
- package/.agy/skills/team-review/specs/team-config.json +27 -0
- package/.agy/skills/team-tech-debt/SKILL.md +133 -0
- package/.agy/skills/team-tech-debt/roles/assessor/role.md +76 -0
- package/.agy/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
- package/.agy/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
- package/.agy/skills/team-tech-debt/roles/coordinator/commands/monitor.md +198 -0
- package/.agy/skills/team-tech-debt/roles/coordinator/role.md +123 -0
- package/.agy/skills/team-tech-debt/roles/executor/role.md +76 -0
- package/.agy/skills/team-tech-debt/roles/planner/role.md +68 -0
- package/.agy/skills/team-tech-debt/roles/scanner/role.md +90 -0
- package/.agy/skills/team-tech-debt/roles/validator/role.md +78 -0
- package/.agy/skills/team-tech-debt/specs/pipelines.md +47 -0
- package/.agy/skills/team-tech-debt/specs/team-config.json +129 -0
- package/.agy/skills/team-testing/SKILL.md +144 -0
- package/.agy/skills/team-testing/roles/analyst/role.md +101 -0
- package/.agy/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
- package/.agy/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
- package/.agy/skills/team-testing/roles/coordinator/commands/monitor.md +242 -0
- package/.agy/skills/team-testing/roles/coordinator/role.md +134 -0
- package/.agy/skills/team-testing/roles/executor/role.md +95 -0
- package/.agy/skills/team-testing/roles/generator/role.md +95 -0
- package/.agy/skills/team-testing/roles/strategist/role.md +81 -0
- package/.agy/skills/team-testing/specs/pipelines.md +101 -0
- package/.agy/skills/team-testing/specs/team-config.json +93 -0
- package/.agy/skills/wiki-connect/SKILL.md +64 -0
- package/.agy/skills/wiki-digest/SKILL.md +70 -0
- package/.agy/skills/workflow-skill-designer/SKILL.md +506 -0
- package/.agy/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
- package/.agy/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
- package/.agy/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
- package/.agy/skills/workflow-skill-designer/phases/04-validation.md +471 -0
- package/.claude/commands/maestro-ralph.md +222 -87
- package/.claude/commands/maestro.md +13 -11
- package/.codex/skills/maestro/SKILL.md +23 -17
- package/.codex/skills/maestro-ralph/SKILL.md +177 -67
- package/dist/src/commands/install-backend.d.ts +12 -0
- package/dist/src/commands/install-backend.d.ts.map +1 -1
- package/dist/src/commands/install-backend.js +144 -0
- package/dist/src/commands/install-backend.js.map +1 -1
- package/dist/src/core/component-defs.d.ts +6 -0
- package/dist/src/core/component-defs.d.ts.map +1 -1
- package/dist/src/core/component-defs.js +97 -0
- package/dist/src/core/component-defs.js.map +1 -1
- package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts +11 -0
- package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts.map +1 -0
- package/dist/src/tui/install-ui/ExtraMcpConfig.js +61 -0
- package/dist/src/tui/install-ui/ExtraMcpConfig.js.map +1 -0
- package/dist/src/tui/install-ui/InstallConfirm.d.ts +3 -0
- package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallConfirm.js +1 -1
- package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
- package/dist/src/tui/install-ui/InstallExecution.d.ts +2 -0
- package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallExecution.js +14 -2
- package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
- package/dist/src/tui/install-ui/InstallFlow.d.ts +1 -1
- package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallFlow.js +16 -3
- package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
- package/dist/src/tui/install-ui/InstallHub.d.ts +2 -0
- package/dist/src/tui/install-ui/InstallHub.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallHub.js +8 -0
- package/dist/src/tui/install-ui/InstallHub.js.map +1 -1
- package/dist/src/tui/install-ui/InstallResult.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallResult.js +3 -1
- package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
- package/dist/src/utils/update-notices.js +19 -0
- package/dist/src/utils/update-notices.js.map +1 -1
- package/package.json +7 -2
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
# Command: monitor
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Event-driven pipeline coordination with Spawn-and-Stop pattern. Role names are read from `team-session.json#roles`. Workers are spawned as `team-worker` agents with role-spec paths. Includes `handleComplete` for pipeline completion action and `handleAdapt` for mid-pipeline capability gap handling.
|
|
6
|
+
|
|
7
|
+
## When to Use
|
|
8
|
+
|
|
9
|
+
| Trigger | Condition |
|
|
10
|
+
|---------|-----------|
|
|
11
|
+
| Worker callback | Message contains [role-name] from session roles |
|
|
12
|
+
| User command | "check", "status", "resume", "continue" |
|
|
13
|
+
| Capability gap | Worker reports capability_gap |
|
|
14
|
+
| Pipeline spawn | After dispatch, initial spawn needed |
|
|
15
|
+
| Pipeline complete | All tasks done |
|
|
16
|
+
|
|
17
|
+
## Strategy
|
|
18
|
+
|
|
19
|
+
- **Delegation**: Inline execution with handler routing
|
|
20
|
+
- **Beat model**: ONE_STEP_PER_INVOCATION — one handler then STOP
|
|
21
|
+
- **Workers**: Spawned as team-worker via delegate_subagent() in background
|
|
22
|
+
|
|
23
|
+
## Constants
|
|
24
|
+
|
|
25
|
+
| Constant | Value | Description |
|
|
26
|
+
|----------|-------|-------------|
|
|
27
|
+
| SPAWN_MODE | background | All workers spawned via `Task(run_in_background: true)` |
|
|
28
|
+
| ONE_STEP_PER_INVOCATION | true | Coordinator does one operation then STOPS |
|
|
29
|
+
| FAST_ADVANCE_AWARE | true | Workers may skip coordinator for simple linear successors |
|
|
30
|
+
| WORKER_AGENT | team-worker | All workers spawned as team-worker agents |
|
|
31
|
+
|
|
32
|
+
## Phase 2: Context Loading
|
|
33
|
+
|
|
34
|
+
| Input | Source | Required |
|
|
35
|
+
|-------|--------|----------|
|
|
36
|
+
| Session file | `<session-folder>/team-session.json` | Yes |
|
|
37
|
+
| Task list | `list_tasks()` | Yes |
|
|
38
|
+
| Active workers | session.active_workers[] | Yes |
|
|
39
|
+
| Role registry | session.roles[] | Yes |
|
|
40
|
+
|
|
41
|
+
**Dynamic role resolution**: Known worker roles are loaded from `session.roles[].name`. Role-spec paths are in `session.roles[].role_spec`.
|
|
42
|
+
|
|
43
|
+
## Phase 3: Handler Routing
|
|
44
|
+
|
|
45
|
+
### Wake-up Source Detection
|
|
46
|
+
|
|
47
|
+
Parse `$ARGUMENTS` to determine handler:
|
|
48
|
+
|
|
49
|
+
| Priority | Condition | Handler |
|
|
50
|
+
|----------|-----------|---------|
|
|
51
|
+
| 1 | Message contains `[<role-name>]` from session roles | handleCallback |
|
|
52
|
+
| 2 | Contains "capability_gap" | handleAdapt |
|
|
53
|
+
| 3 | Contains "check" or "status" | handleCheck |
|
|
54
|
+
| 4 | Contains "resume", "continue", or "next" | handleResume |
|
|
55
|
+
| 5 | Pipeline detected as complete | handleComplete |
|
|
56
|
+
| 6 | None of the above (initial spawn after dispatch) | handleSpawnNext |
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
### Handler: handleCallback
|
|
61
|
+
|
|
62
|
+
Worker completed a task. Verify completion, update state, auto-advance.
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
Receive callback from [<role>]
|
|
66
|
+
+- Find matching active worker by role (from session.roles)
|
|
67
|
+
+- Is this a progress update (not final)? (Inner Loop intermediate task completion)
|
|
68
|
+
| +- YES -> Update session state, do NOT remove from active_workers -> STOP
|
|
69
|
+
+- Task status = completed?
|
|
70
|
+
| +- YES -> remove from active_workers -> update session
|
|
71
|
+
| | +- -> handleSpawnNext
|
|
72
|
+
| +- NO -> progress message, do not advance -> STOP
|
|
73
|
+
+- No matching worker found
|
|
74
|
+
+- Scan all active workers for completed tasks
|
|
75
|
+
+- Found completed -> process each -> handleSpawnNext
|
|
76
|
+
+- None completed -> STOP
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**Fast-advance reconciliation**: A worker may have already spawned its successor via fast-advance. When processing any callback or resume:
|
|
80
|
+
1. Read recent `fast_advance` messages from team_msg (type="fast_advance")
|
|
81
|
+
2. For each fast_advance message: add the spawned successor to `active_workers` if not already present
|
|
82
|
+
3. Check if the expected next task is already `in_progress` (fast-advanced)
|
|
83
|
+
4. If yes -> skip spawning that task (already running)
|
|
84
|
+
5. If no -> normal handleSpawnNext
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
### Handler: handleCheck
|
|
89
|
+
|
|
90
|
+
Read-only status report. No pipeline advancement.
|
|
91
|
+
|
|
92
|
+
**Worker Progress** (from message bus):
|
|
93
|
+
|
|
94
|
+
Before generating status output, read worker milestones:
|
|
95
|
+
|
|
96
|
+
```javascript
|
|
97
|
+
const progressMsgs = mcp__ccw-tools__team_msg({
|
|
98
|
+
operation: "list", session_id: sessionId, type: "progress", last: 50
|
|
99
|
+
})
|
|
100
|
+
const blockerMsgs = mcp__ccw-tools__team_msg({
|
|
101
|
+
operation: "list", session_id: sessionId, type: "blocker", last: 10
|
|
102
|
+
})
|
|
103
|
+
|
|
104
|
+
// Aggregate latest milestone per task
|
|
105
|
+
const taskProgress = {}
|
|
106
|
+
for (const msg of (progressMsgs.result?.messages || [])) {
|
|
107
|
+
const tid = msg.data?.task_id
|
|
108
|
+
if (tid && (!taskProgress[tid] || msg.ts > taskProgress[tid].ts)) {
|
|
109
|
+
taskProgress[tid] = { phase: msg.data.phase, pct: msg.data.progress_pct, ts: msg.ts }
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Include in status output:
|
|
115
|
+
- Per-worker latest milestone (phase + progress_pct) next to task status
|
|
116
|
+
- Active blockers section (if any blockerMsgs found)
|
|
117
|
+
|
|
118
|
+
**Output format**:
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
[coordinator] Pipeline Status
|
|
122
|
+
[coordinator] Progress: <completed>/<total> (<percent>%)
|
|
123
|
+
|
|
124
|
+
[coordinator] Execution Graph:
|
|
125
|
+
<visual representation of dependency graph with status icons>
|
|
126
|
+
|
|
127
|
+
done=completed >>>=running o=pending .=not created
|
|
128
|
+
|
|
129
|
+
[coordinator] Active Workers:
|
|
130
|
+
> <subject> (<role>) - running <elapsed> [inner-loop: N/M tasks done]
|
|
131
|
+
|
|
132
|
+
[coordinator] Ready to spawn: <subjects>
|
|
133
|
+
[coordinator] Commands: 'resume' to advance | 'check' to refresh
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Then STOP.
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
### Handler: handleResume
|
|
141
|
+
|
|
142
|
+
Check active worker completion, process results, advance pipeline.
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
Load active_workers from session
|
|
146
|
+
+- No active workers -> handleSpawnNext
|
|
147
|
+
+- Has active workers -> check each:
|
|
148
|
+
+- status = completed -> mark done, log
|
|
149
|
+
+- status = in_progress -> still running, log
|
|
150
|
+
+- other status -> worker failure -> reset to pending
|
|
151
|
+
After processing:
|
|
152
|
+
+- Some completed -> handleSpawnNext
|
|
153
|
+
+- All still running -> report status -> STOP
|
|
154
|
+
+- All failed -> handleSpawnNext (retry)
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
### Handler: handleSpawnNext
|
|
160
|
+
|
|
161
|
+
Find all ready tasks, spawn team-worker agents in background, update session, STOP.
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
Collect task states from list_tasks()
|
|
165
|
+
+- completedSubjects: status = completed
|
|
166
|
+
+- inProgressSubjects: status = in_progress
|
|
167
|
+
+- readySubjects: pending + all blockedBy in completedSubjects
|
|
168
|
+
|
|
169
|
+
Ready tasks found?
|
|
170
|
+
+- NONE + work in progress -> report waiting -> STOP
|
|
171
|
+
+- NONE + nothing in progress -> PIPELINE_COMPLETE -> handleComplete
|
|
172
|
+
+- HAS ready tasks -> for each:
|
|
173
|
+
+- Is task owner an Inner Loop role AND that role already has an active_worker?
|
|
174
|
+
| +- YES -> SKIP spawn (existing worker will pick it up via inner loop)
|
|
175
|
+
| +- NO -> normal spawn below
|
|
176
|
+
+- update_task -> in_progress
|
|
177
|
+
+- team_msg log -> task_unblocked (session_id=<session-id>)
|
|
178
|
+
+- Spawn team-worker (see spawn tool call below)
|
|
179
|
+
+- Add to session.active_workers
|
|
180
|
+
Update session file -> output summary -> STOP
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
**Spawn worker tool call** (one per ready task):
|
|
184
|
+
|
|
185
|
+
```
|
|
186
|
+
delegate_subagent({
|
|
187
|
+
subagent_type: "team-worker",
|
|
188
|
+
description: "Spawn <role> worker for <subject>",
|
|
189
|
+
team_name: <team-name>,
|
|
190
|
+
name: "<role>",
|
|
191
|
+
run_in_background: true,
|
|
192
|
+
prompt: `## Role Assignment
|
|
193
|
+
role: <role>
|
|
194
|
+
role_spec: <session-folder>/role-specs/<role>.md
|
|
195
|
+
session: <session-folder>
|
|
196
|
+
session_id: <session-id>
|
|
197
|
+
team_name: <team-name>
|
|
198
|
+
requirement: <task-description>
|
|
199
|
+
inner_loop: <true|false>
|
|
200
|
+
|
|
201
|
+
## Progress Milestones
|
|
202
|
+
session_id: <session-id>
|
|
203
|
+
Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
|
|
204
|
+
Report blockers immediately via team_msg type="blocker".
|
|
205
|
+
Report completion via team_msg type="task_complete" after final send_message.
|
|
206
|
+
|
|
207
|
+
Read role_spec file to load Phase 2-4 domain instructions.`
|
|
208
|
+
})
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
### Handler: handleComplete
|
|
214
|
+
|
|
215
|
+
Pipeline complete. Execute completion action based on session configuration.
|
|
216
|
+
|
|
217
|
+
```
|
|
218
|
+
All tasks completed (no pending, no in_progress)
|
|
219
|
+
+- Generate pipeline summary:
|
|
220
|
+
| - Deliverables list with paths
|
|
221
|
+
| - Pipeline stats (tasks completed, duration)
|
|
222
|
+
| - Discussion verdicts (if any)
|
|
223
|
+
|
|
|
224
|
+
+- Read session.completion_action:
|
|
225
|
+
|
|
|
226
|
+
+- "interactive":
|
|
227
|
+
| ask_user({
|
|
228
|
+
| questions: [{
|
|
229
|
+
| question: "Team pipeline complete. What would you like to do?",
|
|
230
|
+
| header: "Completion",
|
|
231
|
+
| multiSelect: false,
|
|
232
|
+
| options: [
|
|
233
|
+
| { label: "Archive & Clean (Recommended)", description: "Archive session, clean up team" },
|
|
234
|
+
| { label: "Keep Active", description: "Keep session for follow-up work" },
|
|
235
|
+
| { label: "Export Results", description: "Export deliverables to target directory" }
|
|
236
|
+
| ]
|
|
237
|
+
| }]
|
|
238
|
+
| })
|
|
239
|
+
| +- "Archive & Clean":
|
|
240
|
+
| | Update session status="completed"
|
|
241
|
+
| | delete_team()
|
|
242
|
+
| | Output final summary with artifact paths
|
|
243
|
+
| +- "Keep Active":
|
|
244
|
+
| | Update session status="paused"
|
|
245
|
+
| | Output: "Resume with: invoke_skill(skill='team-coordinate', args='resume')"
|
|
246
|
+
| +- "Export Results":
|
|
247
|
+
| ask_user for target directory
|
|
248
|
+
| Copy deliverables to target
|
|
249
|
+
| Execute Archive & Clean flow
|
|
250
|
+
|
|
|
251
|
+
+- "auto_archive":
|
|
252
|
+
| Execute Archive & Clean without prompt
|
|
253
|
+
|
|
|
254
|
+
+- "auto_keep":
|
|
255
|
+
Execute Keep Active without prompt
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
**Fallback**: If completion action fails, default to Keep Active (session status="paused"), log warning.
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
### Handler: handleAdapt
|
|
263
|
+
|
|
264
|
+
Handle mid-pipeline capability gap discovery. A worker reports `capability_gap` when it encounters work outside its scope.
|
|
265
|
+
|
|
266
|
+
**CONSTRAINT**: Maximum 5 worker roles per session. handleAdapt MUST enforce this limit.
|
|
267
|
+
|
|
268
|
+
```
|
|
269
|
+
Parse capability_gap message:
|
|
270
|
+
+- Extract: gap_description, requesting_role, suggested_capability
|
|
271
|
+
+- Validate gap is genuine:
|
|
272
|
+
+- Check existing roles in session.roles -> does any role cover this?
|
|
273
|
+
| +- YES -> redirect: send_message to that role's owner -> STOP
|
|
274
|
+
| +- NO -> genuine gap, proceed to role-spec generation
|
|
275
|
+
+- CHECK ROLE COUNT LIMIT (MAX 5 ROLES):
|
|
276
|
+
+- Count current roles in session.roles
|
|
277
|
+
+- If count >= 5:
|
|
278
|
+
+- Attempt to merge new capability into existing role
|
|
279
|
+
+- If merge NOT possible -> PAUSE, report to user
|
|
280
|
+
+- Generate new role-spec:
|
|
281
|
+
1. Read specs/role-spec-template.md
|
|
282
|
+
2. Fill template with: frontmatter (role, prefix, inner_loop, message_types) + Phase 2-4 content
|
|
283
|
+
3. Write to <session-folder>/role-specs/<new-role>.md
|
|
284
|
+
4. Add to session.roles[]
|
|
285
|
+
+- Create new task(s) via create_task
|
|
286
|
+
+- Update team-session.json
|
|
287
|
+
+- Spawn new team-worker -> STOP
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
---
|
|
291
|
+
|
|
292
|
+
### Worker Failure Handling
|
|
293
|
+
|
|
294
|
+
When a worker has unexpected status (not completed, not in_progress):
|
|
295
|
+
|
|
296
|
+
1. Reset task -> pending via update_task
|
|
297
|
+
2. Log via team_msg (type: error)
|
|
298
|
+
3. Report to user: task reset, will retry on next resume
|
|
299
|
+
|
|
300
|
+
### Fast-Advance Failure Recovery
|
|
301
|
+
|
|
302
|
+
When coordinator detects a fast-advanced task has failed:
|
|
303
|
+
|
|
304
|
+
```
|
|
305
|
+
handleCallback / handleResume detects:
|
|
306
|
+
+- Task is in_progress (was fast-advanced by predecessor)
|
|
307
|
+
+- No active_worker entry for this task
|
|
308
|
+
+- Resolution:
|
|
309
|
+
1. update_task -> reset task to pending
|
|
310
|
+
2. Remove stale active_worker entry (if any)
|
|
311
|
+
3. Log via team_msg (type: error)
|
|
312
|
+
4. -> handleSpawnNext (will re-spawn the task normally)
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
### Fast-Advance State Sync
|
|
316
|
+
|
|
317
|
+
On every coordinator wake (handleCallback, handleResume, handleCheck):
|
|
318
|
+
1. Read team_msg entries with `type="fast_advance"` since last coordinator wake
|
|
319
|
+
2. For each entry: sync `active_workers` with the spawned successor
|
|
320
|
+
3. This ensures coordinator's state reflects fast-advance decisions even before the successor's callback arrives
|
|
321
|
+
|
|
322
|
+
### Consensus-Blocked Handling
|
|
323
|
+
|
|
324
|
+
```
|
|
325
|
+
handleCallback receives message with consensus_blocked flag
|
|
326
|
+
+- Route by severity:
|
|
327
|
+
+- severity = HIGH
|
|
328
|
+
| +- Create REVISION task (same role, incremented suffix)
|
|
329
|
+
| +- Max 1 revision per task. If already revised -> PAUSE, escalate to user
|
|
330
|
+
+- severity = MEDIUM
|
|
331
|
+
| +- Proceed with warning, log to wisdom/issues.md
|
|
332
|
+
| +- Normal handleSpawnNext
|
|
333
|
+
+- severity = LOW
|
|
334
|
+
+- Proceed normally, treat as consensus_reached with notes
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
## Phase 4: Validation
|
|
338
|
+
|
|
339
|
+
| Check | Criteria |
|
|
340
|
+
|-------|----------|
|
|
341
|
+
| Session state consistent | active_workers matches list_tasks in_progress tasks |
|
|
342
|
+
| No orphaned tasks | Every in_progress task has an active_worker entry |
|
|
343
|
+
| Dynamic roles valid | All task owners exist in session.roles |
|
|
344
|
+
| Completion detection | readySubjects=0 + inProgressSubjects=0 -> PIPELINE_COMPLETE |
|
|
345
|
+
| Fast-advance tracking | Detect tasks already in_progress via fast-advance, sync to active_workers |
|
|
346
|
+
|
|
347
|
+
## Error Handling
|
|
348
|
+
|
|
349
|
+
| Scenario | Resolution |
|
|
350
|
+
|----------|------------|
|
|
351
|
+
| Session file not found | Error, suggest re-initialization |
|
|
352
|
+
| Worker callback from unknown role | Log info, scan for other completions |
|
|
353
|
+
| All workers still running on resume | Report status, suggest check later |
|
|
354
|
+
| Pipeline stall (no ready, no running) | Check for missing tasks, report to user |
|
|
355
|
+
| Fast-advance conflict | Coordinator reconciles, no duplicate spawns |
|
|
356
|
+
| Dynamic role-spec file not found | Error, coordinator must regenerate from task-analysis |
|
|
357
|
+
| capability_gap when role limit (5) reached | Attempt merge, else pause for user |
|
|
358
|
+
| Completion action fails | Default to Keep Active, log warning |
|