maestro-flow 0.4.6 → 0.4.8

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.
Files changed (105) hide show
  1. package/.claude/commands/maestro-ralph.md +548 -377
  2. package/.claude/commands/maestro.md +220 -191
  3. package/.codex/skills/maestro/SKILL.md +495 -462
  4. package/.codex/skills/maestro-collab/SKILL.md +218 -117
  5. package/.codex/skills/maestro-execute/SKILL.md +13 -11
  6. package/.codex/skills/maestro-milestone-audit/SKILL.md +12 -10
  7. package/.codex/skills/maestro-ralph/SKILL.md +491 -339
  8. package/.codex/skills/maestro-ui-codify/SKILL.md +18 -16
  9. package/.codex/skills/manage-codebase-rebuild/SKILL.md +20 -13
  10. package/.codex/skills/manage-issue-discover/SKILL.md +19 -17
  11. package/.codex/skills/quality-debug/SKILL.md +35 -31
  12. package/.codex/skills/quality-refactor/SKILL.md +20 -12
  13. package/.codex/skills/quality-review/SKILL.md +21 -17
  14. package/.codex/skills/team-coordinate/SKILL.md +462 -235
  15. package/.codex/skills/team-coordinate/specs/role-catalog.md +132 -0
  16. package/.codex/skills/team-lifecycle-v4/SKILL.md +445 -191
  17. package/.codex/skills/team-quality-assurance/SKILL.md +205 -161
  18. package/.codex/skills/team-review/SKILL.md +198 -159
  19. package/.codex/skills/team-tech-debt/SKILL.md +214 -144
  20. package/.codex/skills/team-testing/SKILL.md +210 -158
  21. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +25 -33
  22. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
  23. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.test.js +9 -3
  24. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.test.js.map +1 -1
  25. package/dashboard/dist-server/dashboard/src/server/agents/codex-app-server-adapter.js +5 -2
  26. package/dashboard/dist-server/dashboard/src/server/agents/codex-app-server-adapter.js.map +1 -1
  27. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +20 -8
  28. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
  29. package/dashboard/dist-server/dashboard/src/server/agents/gemini-a2a-adapter.js +6 -3
  30. package/dashboard/dist-server/dashboard/src/server/agents/gemini-a2a-adapter.js.map +1 -1
  31. package/dashboard/dist-server/dashboard/src/server/agents/gemini-a2a-adapter.test.js +7 -1
  32. package/dashboard/dist-server/dashboard/src/server/agents/gemini-a2a-adapter.test.js.map +1 -1
  33. package/dashboard/dist-server/dashboard/src/server/agents/opencode-adapter.d.ts +2 -0
  34. package/dashboard/dist-server/dashboard/src/server/agents/opencode-adapter.js +40 -15
  35. package/dashboard/dist-server/dashboard/src/server/agents/opencode-adapter.js.map +1 -1
  36. package/dashboard/dist-server/dashboard/src/server/agents/process-tree-kill.d.ts +1 -0
  37. package/dashboard/dist-server/dashboard/src/server/agents/process-tree-kill.js +59 -0
  38. package/dashboard/dist-server/dashboard/src/server/agents/process-tree-kill.js.map +1 -0
  39. package/dashboard/dist-server/dashboard/src/server/agents/process-tree-kill.test.d.ts +1 -0
  40. package/dashboard/dist-server/dashboard/src/server/agents/process-tree-kill.test.js +78 -0
  41. package/dashboard/dist-server/dashboard/src/server/agents/process-tree-kill.test.js.map +1 -0
  42. package/dashboard/dist-server/dashboard/src/server/agents/stale-handler.d.ts +25 -0
  43. package/dashboard/dist-server/dashboard/src/server/agents/stale-handler.js +40 -0
  44. package/dashboard/dist-server/dashboard/src/server/agents/stale-handler.js.map +1 -0
  45. package/dashboard/dist-server/dashboard/src/server/agents/stale-handler.test.d.ts +1 -0
  46. package/dashboard/dist-server/dashboard/src/server/agents/stale-handler.test.js +89 -0
  47. package/dashboard/dist-server/dashboard/src/server/agents/stale-handler.test.js.map +1 -0
  48. package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js +19 -8
  49. package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js.map +1 -1
  50. package/dashboard/dist-server/dashboard/src/server/agents/stream-monitor.d.ts +6 -0
  51. package/dashboard/dist-server/dashboard/src/server/agents/stream-monitor.js +7 -1
  52. package/dashboard/dist-server/dashboard/src/server/agents/stream-monitor.js.map +1 -1
  53. package/dashboard/dist-server/dashboard/src/server/agents/stream-monitor.test.d.ts +1 -0
  54. package/dashboard/dist-server/dashboard/src/server/agents/stream-monitor.test.js +46 -0
  55. package/dashboard/dist-server/dashboard/src/server/agents/stream-monitor.test.js.map +1 -0
  56. package/dashboard/dist-server/shared/agent-types.d.ts +6 -0
  57. package/dist/shared/agent-types.d.ts +6 -0
  58. package/dist/shared/agent-types.d.ts.map +1 -1
  59. package/dist/src/agents/cli-agent-runner.d.ts +3 -0
  60. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  61. package/dist/src/agents/cli-agent-runner.js +1 -0
  62. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  63. package/dist/src/commands/delegate.d.ts +2 -0
  64. package/dist/src/commands/delegate.d.ts.map +1 -1
  65. package/dist/src/commands/delegate.js +18 -0
  66. package/dist/src/commands/delegate.js.map +1 -1
  67. package/dist/src/config/cli-tools-config.d.ts +3 -0
  68. package/dist/src/config/cli-tools-config.d.ts.map +1 -1
  69. package/dist/src/config/cli-tools-config.js.map +1 -1
  70. package/package.json +1 -1
  71. package/shared/agent-types.ts +237 -231
  72. package/.codex/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +0 -247
  73. package/.codex/skills/team-coordinate/roles/coordinator/commands/dispatch.md +0 -126
  74. package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +0 -265
  75. package/.codex/skills/team-coordinate/roles/coordinator/role.md +0 -403
  76. package/.codex/skills/team-coordinate/specs/knowledge-transfer.md +0 -113
  77. package/.codex/skills/team-coordinate/specs/pipelines.md +0 -97
  78. package/.codex/skills/team-coordinate/specs/quality-gates.md +0 -112
  79. package/.codex/skills/team-coordinate/specs/role-spec-template.md +0 -192
  80. package/.codex/skills/team-executor/SKILL.md +0 -116
  81. package/.codex/skills/team-executor/roles/executor/commands/monitor.md +0 -213
  82. package/.codex/skills/team-executor/roles/executor/role.md +0 -173
  83. package/.codex/skills/team-executor/specs/session-schema.md +0 -230
  84. package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +0 -56
  85. package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +0 -61
  86. package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +0 -113
  87. package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +0 -189
  88. package/.codex/skills/team-lifecycle-v4/schemas/tasks-schema.md +0 -100
  89. package/.codex/skills/team-lifecycle-v4/specs/knowledge-transfer.md +0 -204
  90. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +0 -72
  91. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +0 -108
  92. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +0 -163
  93. package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +0 -177
  94. package/.codex/skills/team-review/roles/coordinator/commands/analyze.md +0 -71
  95. package/.codex/skills/team-review/roles/coordinator/commands/dispatch.md +0 -90
  96. package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +0 -135
  97. package/.codex/skills/team-review/roles/coordinator/role.md +0 -176
  98. package/.codex/skills/team-tech-debt/roles/coordinator/commands/analyze.md +0 -47
  99. package/.codex/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +0 -163
  100. package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +0 -133
  101. package/.codex/skills/team-tech-debt/roles/coordinator/role.md +0 -173
  102. package/.codex/skills/team-testing/roles/coordinator/commands/analyze.md +0 -70
  103. package/.codex/skills/team-testing/roles/coordinator/commands/dispatch.md +0 -106
  104. package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +0 -156
  105. package/.codex/skills/team-testing/roles/coordinator/role.md +0 -185
@@ -0,0 +1,132 @@
1
+ # Role Catalog — Team Coordinate
2
+
3
+ Dynamic role reference for CSV wave execution. Coordinator uses this catalog during Phase 1 (task analysis) to detect capabilities, assign roles, compute waves, and generate evaluation criteria.
4
+
5
+ ## 1. Signal Detection Table
6
+
7
+ Scan task description keywords to infer capabilities. Multi-match allowed.
8
+
9
+ | Signal | Keywords | Role | Prefix | Responsibility |
10
+ |--------|----------|------|--------|---------------|
11
+ | Research | investigate, explore, compare, survey, find, research, discover, benchmark, study | researcher | RESEARCH | exploration |
12
+ | Writing | write, draft, document, article, report, blog, describe, explain, summarize, content | writer | DRAFT | code-gen (docs) |
13
+ | Coding | implement, build, code, fix, refactor, develop, create app, program, migrate, port | developer | IMPL | code-gen (code) |
14
+ | Design | design, architect, plan, structure, blueprint, model, schema, wireframe, layout | designer | DESIGN | orchestration |
15
+ | Analysis | analyze, review, audit, assess, evaluate, inspect, examine, diagnose, profile | analyst | ANALYSIS | read-only |
16
+ | Testing | test, verify, validate, QA, quality, check, assert, coverage, regression | tester | TEST | validation |
17
+ | Planning | plan, breakdown, organize, schedule, decompose, roadmap, strategy, prioritize | planner | PLAN | orchestration |
18
+
19
+ **No match**: Default to single `general` role with `TASK` prefix.
20
+
21
+ **Max 5 roles** per session. Merge overlapping capabilities if exceeded.
22
+
23
+ ## 2. Wave Tier Mapping
24
+
25
+ | Tier | Wave | Roles | Description |
26
+ |------|------|-------|-------------|
27
+ | 0 | 1 | researcher, planner | Knowledge gathering (always executes) |
28
+ | 1 | 2 | designer, analyst | Design + evaluation (evaluated) |
29
+ | 2 | 3 | developer, writer | Creation (evaluated) |
30
+ | 3 | 4 | tester, analyst | Validation (evaluated) |
31
+
32
+ **general** role: assigned to wave matching its task's natural tier.
33
+
34
+ ## 3. Evaluation Criteria Templates
35
+
36
+ Wave 1 tasks always get `"always"`. Wave 2+ tasks get conditional criteria:
37
+
38
+ | Wave | Default Criteria | When to Skip |
39
+ |------|-----------------|--------------|
40
+ | 2 (Design) | `"if wave_1 findings indicate design or architecture needed"` | Research found no design needs |
41
+ | 3 (Implement) | `"if task requires code changes or document creation"` | Pure analysis task, no implementation |
42
+ | 4 (Validate) | `"if wave_3 produced testable artifacts (files_modified non-empty)"` | No artifacts to validate |
43
+
44
+ Coordinator MAY customize criteria per-task based on task description specifics.
45
+
46
+ ## 4. Role Behavior Guide
47
+
48
+ Each role adopts a specific perspective when executing tasks. This section is referenced by the `instruction` parameter of `spawn_agents_on_csv`.
49
+
50
+ | Role | Perspective | Typical Output |
51
+ |------|------------|----------------|
52
+ | researcher | Systematic investigation, evidence-driven, hypothesis testing | Research findings, exploration notes |
53
+ | developer | Implementation-focused, code modification, testing | Source files, implementation summaries |
54
+ | analyst | Multi-dimensional evaluation, scoring, gap identification | Analysis reports, severity matrices |
55
+ | designer | Architecture, structure, interface, data model design | Design specs, architecture docs |
56
+ | tester | Validation, test creation, regression, coverage analysis | Test results, coverage reports |
57
+ | planner | Decomposition, sequencing, risk assessment, prioritization | Execution plans, task breakdowns |
58
+ | writer | Documentation, content creation, clarity, consistency | Written documents, guides |
59
+ | general | Adapt to task requirements | Task-specific deliverables |
60
+
61
+ ## 5. Behavioral Traits (Quality Contract)
62
+
63
+ All agents — regardless of dynamically assigned role — MUST follow these traits. Embedded into the shared `instruction` parameter.
64
+
65
+ ### Accuracy
66
+
67
+ - Files claimed as **created** → Read to confirm file exists and has content
68
+ - Files claimed as **modified** → Read to confirm content actually changed
69
+ - Analysis claimed as **complete** → verify deliverable exists
70
+
71
+ ### Quality Gate
72
+
73
+ - Verify actual output (not planned output) before reporting
74
+ - Verification fails → retry execution (max 2 retries)
75
+ - Still fails → report `blocked` with details, NOT `completed`
76
+
77
+ ### Error Protocol
78
+
79
+ - Primary approach fails → try alternative approach
80
+ - 2 retries exhausted → report `failed` with evidence
81
+ - NEVER skip verification and report completed
82
+
83
+ ## 6. Quality Scoring
84
+
85
+ | Result | Score | Action |
86
+ |--------|-------|--------|
87
+ | Pass | >= 80% | result_status = completed |
88
+ | Review | 60-79% | result_status = completed (with findings noting warnings) |
89
+ | Fail | < 60% | Retry (max 2), then result_status = blocked |
90
+
91
+ **Scoring Dimensions** (25% each):
92
+ - **Completeness**: All required outputs present with substantive content
93
+ - **Consistency**: Terminology, formatting, cross-references uniform
94
+ - **Accuracy**: Factually correct and verifiable
95
+ - **Depth**: Sufficient detail for downstream consumers
96
+
97
+ ## 7. Output Type Derivation
98
+
99
+ | Task Signal | Output Type | Description |
100
+ |-------------|-------------|-------------|
101
+ | "write report", "analyze", "research" | artifact | New files in session directory |
102
+ | "implement", "modify code", "fix bug" | codebase | Modify existing project files |
103
+ | "implement feature + write summary" | mixed | Code changes + session artifact |
104
+
105
+ ## 8. Key File Inference
106
+
107
+ For task decomposition, infer relevant files from capability and keywords:
108
+
109
+ | Role | Strategy |
110
+ |------|----------|
111
+ | researcher | Domain keywords → likely directories (e.g., "auth" → `src/auth/**`) |
112
+ | developer | Feature/module keywords → source files |
113
+ | designer | Architecture keywords → config/schema files |
114
+ | analyst | Target keywords → files under analysis |
115
+ | tester | Test target → source + test files |
116
+ | writer | Documentation target → relevant source for context |
117
+ | planner | No specific files (abstract planning) |
118
+
119
+ ## 9. Complexity Scoring
120
+
121
+ | Factor | Weight |
122
+ |--------|--------|
123
+ | Capability count | +1 each |
124
+ | Cross-domain (3+ tiers) | +2 |
125
+ | Parallel tracks | +1 each |
126
+ | Serial depth | +1 per level |
127
+
128
+ | Total | Level | Role Limit |
129
+ |-------|-------|------------|
130
+ | 1-3 | Low | 1-2 roles |
131
+ | 4-6 | Medium | 2-3 roles |
132
+ | 7+ | High | 3-5 roles |