maestro-flow 0.3.2 → 0.3.4

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 (187) hide show
  1. package/.claude/CLAUDE.md +2 -2
  2. package/.claude/agents/cli-explore-agent.md +1 -1
  3. package/.claude/agents/team-worker.md +237 -237
  4. package/.claude/commands/maestro-coordinate.md +65 -65
  5. package/.claude/commands/maestro-link-coordinate.md +71 -71
  6. package/.claude/commands/manage-issue-execute.md +73 -73
  7. package/.claude/commands/quality-business-test.md +110 -0
  8. package/.claude/skills/team-coordinate/SKILL.md +266 -266
  9. package/.claude/skills/team-lifecycle-v4/SKILL.md +209 -209
  10. package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +94 -94
  11. package/.claude/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -62
  12. package/.claude/skills/team-lifecycle-v4/roles/planner/role.md +85 -85
  13. package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +95 -95
  14. package/.claude/skills/team-quality-assurance/SKILL.md +147 -147
  15. package/.claude/skills/team-quality-assurance/roles/scout/role.md +75 -75
  16. package/.claude/skills/team-review/SKILL.md +147 -147
  17. package/.claude/skills/team-review/roles/reviewer/role.md +68 -68
  18. package/.claude/skills/team-review/roles/scanner/role.md +79 -79
  19. package/.claude/skills/team-tech-debt/SKILL.md +128 -128
  20. package/.claude/skills/team-tech-debt/roles/executor/role.md +76 -76
  21. package/.claude/skills/team-tech-debt/roles/scanner/role.md +90 -90
  22. package/.claude/skills/team-tech-debt/roles/validator/role.md +78 -78
  23. package/.claude/skills/team-testing/SKILL.md +143 -143
  24. package/.claude/skills/team-testing/roles/executor/role.md +99 -99
  25. package/.claude/skills/team-testing/roles/generator/role.md +98 -98
  26. package/.codex/skills/maestro-coordinate/SKILL.md +1 -1
  27. package/.codex/skills/manage-issue-analyze/SKILL.md +3 -3
  28. package/.codex/skills/manage-issue-execute/SKILL.md +4 -4
  29. package/.codex/skills/manage-issue-plan/SKILL.md +2 -2
  30. package/.codex/skills/quality-business-test/SKILL.md +223 -0
  31. package/.codex/skills/team-coordinate/SKILL.md +7 -7
  32. package/.codex/skills/team-coordinate/roles/coordinator/role.md +1 -1
  33. package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -2
  34. package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +2 -2
  35. package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
  36. package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +2 -2
  37. package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +1 -1
  38. package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +2 -2
  39. package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  40. package/.codex/skills/team-quality-assurance/SKILL.md +2 -2
  41. package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +2 -2
  42. package/.codex/skills/team-quality-assurance/roles/scout/role.md +2 -2
  43. package/.codex/skills/team-review/SKILL.md +2 -2
  44. package/.codex/skills/team-review/roles/coordinator/role.md +2 -2
  45. package/.codex/skills/team-review/roles/reviewer/role.md +1 -1
  46. package/.codex/skills/team-review/roles/scanner/role.md +1 -1
  47. package/.codex/skills/team-tech-debt/SKILL.md +2 -2
  48. package/.codex/skills/team-tech-debt/roles/coordinator/role.md +1 -1
  49. package/.codex/skills/team-tech-debt/roles/executor/role.md +1 -1
  50. package/.codex/skills/team-tech-debt/roles/scanner/role.md +1 -1
  51. package/.codex/skills/team-tech-debt/roles/validator/role.md +1 -1
  52. package/.codex/skills/team-testing/SKILL.md +2 -2
  53. package/.codex/skills/team-testing/roles/coordinator/role.md +2 -2
  54. package/.codex/skills/team-testing/roles/executor/role.md +1 -1
  55. package/.codex/skills/team-testing/roles/generator/role.md +1 -1
  56. package/README.md +31 -2
  57. package/README.zh-CN.md +23 -1
  58. package/chains/_intent-map.json +6 -0
  59. package/chains/_router.json +14 -0
  60. package/chains/full-lifecycle.json +15 -0
  61. package/chains/quality-loop.json +16 -1
  62. package/chains/singles/business-test.json +26 -0
  63. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +16 -2
  64. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
  65. package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.d.ts +1 -1
  66. package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js +25 -9
  67. package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js.map +1 -1
  68. package/dashboard/dist-server/src/agents/cli-agent-runner.d.ts +3 -0
  69. package/dashboard/dist-server/src/agents/cli-agent-runner.js +78 -61
  70. package/dashboard/dist-server/src/agents/cli-agent-runner.js.map +1 -1
  71. package/dashboard/dist-server/src/agents/cli-history-store.d.ts +14 -1
  72. package/dashboard/dist-server/src/agents/cli-history-store.js +24 -2
  73. package/dashboard/dist-server/src/agents/cli-history-store.js.map +1 -1
  74. package/dashboard/dist-server/src/commands/delegate.js +142 -6
  75. package/dashboard/dist-server/src/commands/delegate.js.map +1 -1
  76. package/dist/src/agents/cli-agent-runner.d.ts +3 -0
  77. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  78. package/dist/src/agents/cli-agent-runner.js +78 -61
  79. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  80. package/dist/src/agents/cli-history-store.d.ts +14 -1
  81. package/dist/src/agents/cli-history-store.d.ts.map +1 -1
  82. package/dist/src/agents/cli-history-store.js +24 -2
  83. package/dist/src/agents/cli-history-store.js.map +1 -1
  84. package/dist/src/commands/delegate.d.ts.map +1 -1
  85. package/dist/src/commands/delegate.js +142 -6
  86. package/dist/src/commands/delegate.js.map +1 -1
  87. package/dist/src/commands/hooks.d.ts +15 -0
  88. package/dist/src/commands/hooks.d.ts.map +1 -1
  89. package/dist/src/commands/hooks.js +29 -2
  90. package/dist/src/commands/hooks.js.map +1 -1
  91. package/dist/src/commands/install-backend.d.ts +15 -0
  92. package/dist/src/commands/install-backend.d.ts.map +1 -1
  93. package/dist/src/commands/install-backend.js +67 -0
  94. package/dist/src/commands/install-backend.js.map +1 -1
  95. package/dist/src/commands/install-ui/BackupConfig.d.ts +6 -4
  96. package/dist/src/commands/install-ui/BackupConfig.d.ts.map +1 -1
  97. package/dist/src/commands/install-ui/BackupConfig.js +39 -12
  98. package/dist/src/commands/install-ui/BackupConfig.js.map +1 -1
  99. package/dist/src/commands/install-ui/ConfigPanel.d.ts.map +1 -1
  100. package/dist/src/commands/install-ui/ConfigPanel.js +1 -1
  101. package/dist/src/commands/install-ui/ConfigPanel.js.map +1 -1
  102. package/dist/src/commands/install-ui/InstallConfirm.d.ts +3 -0
  103. package/dist/src/commands/install-ui/InstallConfirm.d.ts.map +1 -1
  104. package/dist/src/commands/install-ui/InstallConfirm.js +5 -1
  105. package/dist/src/commands/install-ui/InstallConfirm.js.map +1 -1
  106. package/dist/src/commands/install-ui/InstallExecution.d.ts +2 -0
  107. package/dist/src/commands/install-ui/InstallExecution.d.ts.map +1 -1
  108. package/dist/src/commands/install-ui/InstallExecution.js +30 -5
  109. package/dist/src/commands/install-ui/InstallExecution.js.map +1 -1
  110. package/dist/src/commands/install-ui/InstallFlow.d.ts +1 -1
  111. package/dist/src/commands/install-ui/InstallFlow.d.ts.map +1 -1
  112. package/dist/src/commands/install-ui/InstallFlow.js +31 -6
  113. package/dist/src/commands/install-ui/InstallFlow.js.map +1 -1
  114. package/dist/src/commands/install-ui/InstallHub.d.ts +5 -0
  115. package/dist/src/commands/install-ui/InstallHub.d.ts.map +1 -1
  116. package/dist/src/commands/install-ui/InstallHub.js +24 -0
  117. package/dist/src/commands/install-ui/InstallHub.js.map +1 -1
  118. package/dist/src/commands/install-ui/InstallResult.d.ts.map +1 -1
  119. package/dist/src/commands/install-ui/InstallResult.js +1 -1
  120. package/dist/src/commands/install-ui/InstallResult.js.map +1 -1
  121. package/dist/src/commands/install-ui/StatuslineConfig.d.ts +9 -0
  122. package/dist/src/commands/install-ui/StatuslineConfig.d.ts.map +1 -0
  123. package/dist/src/commands/install-ui/StatuslineConfig.js +13 -0
  124. package/dist/src/commands/install-ui/StatuslineConfig.js.map +1 -0
  125. package/dist/src/commands/install-ui/index.d.ts +1 -1
  126. package/dist/src/commands/install-ui/index.d.ts.map +1 -1
  127. package/dist/src/commands/install-ui/types.d.ts +6 -0
  128. package/dist/src/commands/install-ui/types.d.ts.map +1 -1
  129. package/dist/src/commands/install-ui/types.js +3 -0
  130. package/dist/src/commands/install-ui/types.js.map +1 -1
  131. package/dist/src/commands/install.d.ts.map +1 -1
  132. package/dist/src/commands/install.js +6 -1
  133. package/dist/src/commands/install.js.map +1 -1
  134. package/dist/src/commands/overlay.d.ts.map +1 -1
  135. package/dist/src/commands/overlay.js +45 -1
  136. package/dist/src/commands/overlay.js.map +1 -1
  137. package/dist/src/commands/team.d.ts +10 -0
  138. package/dist/src/commands/team.d.ts.map +1 -1
  139. package/dist/src/commands/team.js +436 -42
  140. package/dist/src/commands/team.js.map +1 -1
  141. package/dist/src/core/manifest.d.ts.map +1 -1
  142. package/dist/src/core/manifest.js +58 -0
  143. package/dist/src/core/manifest.js.map +1 -1
  144. package/dist/src/core/overlay/applier.d.ts +4 -0
  145. package/dist/src/core/overlay/applier.d.ts.map +1 -1
  146. package/dist/src/core/overlay/applier.js.map +1 -1
  147. package/dist/src/hooks/delegate-monitor.js +1 -1
  148. package/dist/src/hooks/delegate-monitor.js.map +1 -1
  149. package/dist/src/hooks/plugins/spec-injection-plugin.d.ts.map +1 -1
  150. package/dist/src/hooks/plugins/spec-injection-plugin.js +17 -1
  151. package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
  152. package/dist/src/hooks/spec-injector.d.ts +2 -1
  153. package/dist/src/hooks/spec-injector.d.ts.map +1 -1
  154. package/dist/src/hooks/spec-injector.js +19 -2
  155. package/dist/src/hooks/spec-injector.js.map +1 -1
  156. package/dist/src/hooks/team-monitor.d.ts.map +1 -1
  157. package/dist/src/hooks/team-monitor.js +17 -0
  158. package/dist/src/hooks/team-monitor.js.map +1 -1
  159. package/dist/src/i18n/locales/en.d.ts.map +1 -1
  160. package/dist/src/i18n/locales/en.js +25 -1
  161. package/dist/src/i18n/locales/en.js.map +1 -1
  162. package/dist/src/i18n/locales/zh.d.ts.map +1 -1
  163. package/dist/src/i18n/locales/zh.js +25 -1
  164. package/dist/src/i18n/locales/zh.js.map +1 -1
  165. package/dist/src/i18n/types.d.ts +22 -0
  166. package/dist/src/i18n/types.d.ts.map +1 -1
  167. package/dist/src/mcp/delegate-channel-relay.d.ts.map +1 -1
  168. package/dist/src/mcp/delegate-channel-relay.js +9 -9
  169. package/dist/src/mcp/delegate-channel-relay.js.map +1 -1
  170. package/dist/src/tools/index.d.ts.map +1 -1
  171. package/dist/src/tools/index.js +11 -2
  172. package/dist/src/tools/index.js.map +1 -1
  173. package/dist/src/tools/namespace-guard.d.ts +37 -0
  174. package/dist/src/tools/namespace-guard.d.ts.map +1 -0
  175. package/dist/src/tools/namespace-guard.js +126 -0
  176. package/dist/src/tools/namespace-guard.js.map +1 -0
  177. package/dist/src/tools/spec-loader.d.ts +17 -1
  178. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  179. package/dist/src/tools/spec-loader.js +71 -13
  180. package/dist/src/tools/spec-loader.js.map +1 -1
  181. package/dist/src/tools/team-members.d.ts +16 -0
  182. package/dist/src/tools/team-members.d.ts.map +1 -1
  183. package/dist/src/tools/team-members.js +31 -0
  184. package/dist/src/tools/team-members.js.map +1 -1
  185. package/package.json +2 -2
  186. package/templates/business-test-report.json +68 -0
  187. package/workflows/delegate-usage.md +330 -0
@@ -1,147 +1,147 @@
1
- ---
2
- name: team-quality-assurance
3
- description: Unified team skill for quality assurance. Full closed-loop QA combining issue discovery and software testing. Triggers on "team quality-assurance", "team qa".
4
- allowed-tools: TeamCreate(*), TeamDelete(*), SendMessage(*), TaskCreate(*), TaskUpdate(*), TaskList(*), TaskGet(*), Agent(*), AskUserQuestion(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*), mcp__ccw-tools__team_msg(*)
5
- ---
6
-
7
- # Team Quality Assurance
8
-
9
- Orchestrate multi-agent QA: scout -> strategist -> generator -> executor -> analyst. Supports discovery, testing, and full closed-loop modes with parallel generation and GC loops.
10
-
11
- ## Architecture
12
-
13
- ```
14
- Skill(skill="team-quality-assurance", args="task description")
15
- |
16
- SKILL.md (this file) = Router
17
- |
18
- +--------------+--------------+
19
- | |
20
- no --role flag --role <name>
21
- | |
22
- Coordinator Worker
23
- roles/coordinator/role.md roles/<name>/role.md
24
- |
25
- +-- analyze -> dispatch -> spawn workers -> STOP
26
- |
27
- +-------+-------+-------+-------+-------+
28
- v v v v v
29
- [scout] [strat] [gen] [exec] [analyst]
30
- team-worker agents, each loads roles/<role>/role.md
31
- ```
32
-
33
- ## Role Registry
34
-
35
- | Role | Path | Prefix | Inner Loop |
36
- |------|------|--------|------------|
37
- | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
38
- | scout | [roles/scout/role.md](roles/scout/role.md) | SCOUT-* | false |
39
- | strategist | [roles/strategist/role.md](roles/strategist/role.md) | QASTRAT-* | false |
40
- | generator | [roles/generator/role.md](roles/generator/role.md) | QAGEN-* | false |
41
- | executor | [roles/executor/role.md](roles/executor/role.md) | QARUN-* | true |
42
- | analyst | [roles/analyst/role.md](roles/analyst/role.md) | QAANA-* | false |
43
-
44
- ## Role Router
45
-
46
- Parse `$ARGUMENTS`:
47
- - Has `--role <name>` -> Read `roles/<name>/role.md`, execute Phase 2-4
48
- - No `--role` -> `@roles/coordinator/role.md`, execute entry router
49
-
50
- ## Shared Constants
51
-
52
- - **Session prefix**: `QA`
53
- - **Session path**: `.workflow/.team/QA-<slug>-<date>/`
54
- - **Team name**: `quality-assurance`
55
- - **CLI tools**: `maestro cli --mode analysis` (read-only), `maestro cli --mode write` (modifications)
56
- - **Message bus**: `mcp__ccw-tools__team_msg(session_id=<session-id>, ...)`
57
-
58
- ## Worker Spawn Template
59
-
60
- Coordinator spawns workers using this template:
61
-
62
- ```
63
- Agent({
64
- subagent_type: "team-worker",
65
- description: "Spawn <role> worker",
66
- team_name: "quality-assurance",
67
- name: "<role>",
68
- run_in_background: true,
69
- prompt: `## Role Assignment
70
- role: <role>
71
- role_spec: <skill_root>/roles/<role>/role.md
72
- session: <session-folder>
73
- session_id: <session-id>
74
- team_name: quality-assurance
75
- requirement: <task-description>
76
- inner_loop: <true|false>
77
-
78
- ## Progress Milestones
79
- session_id: <session-id>
80
- Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
81
- Report blockers immediately via team_msg type="blocker".
82
- Report completion via team_msg type="task_complete" after final SendMessage.
83
-
84
- Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
85
- Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
86
- })
87
- ```
88
-
89
- ## User Commands
90
-
91
- | Command | Action |
92
- |---------|--------|
93
- | `check` / `status` | View pipeline status graph |
94
- | `resume` / `continue` | Advance to next step |
95
- | `--mode=discovery` | Force discovery mode |
96
- | `--mode=testing` | Force testing mode |
97
- | `--mode=full` | Force full QA mode |
98
-
99
- ## Completion Action
100
-
101
- When pipeline completes, coordinator presents:
102
-
103
- ```
104
- AskUserQuestion({
105
- questions: [{
106
- question: "Quality Assurance pipeline complete. What would you like to do?",
107
- header: "Completion",
108
- multiSelect: false,
109
- options: [
110
- { label: "Archive & Clean (Recommended)", description: "Archive session, clean up team" },
111
- { label: "Keep Active", description: "Keep session for follow-up work" },
112
- { label: "Export Results", description: "Export deliverables to target directory" }
113
- ]
114
- }]
115
- })
116
- ```
117
-
118
- ## Session Directory
119
-
120
- ```
121
- .workflow/.team/QA-<slug>-<date>/
122
- ├── .msg/messages.jsonl # Team message bus
123
- ├── .msg/meta.json # Session state + shared memory
124
- ├── wisdom/ # Cross-task knowledge
125
- ├── scan/ # Scout output
126
- ├── strategy/ # Strategist output
127
- ├── tests/ # Generator output (L1/, L2/, L3/)
128
- ├── results/ # Executor output
129
- └── analysis/ # Analyst output
130
- ```
131
-
132
- ## Specs Reference
133
-
134
- - [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
135
- - [specs/team-config.json](specs/team-config.json) — Team configuration and shared memory schema
136
-
137
- ## Error Handling
138
-
139
- | Scenario | Resolution |
140
- |----------|------------|
141
- | Unknown --role value | Error with available role list |
142
- | Role not found | Error with expected path (roles/<name>/role.md) |
143
- | CLI tool fails | Worker fallback to direct implementation |
144
- | Scout finds no issues | Report clean scan, skip to testing mode |
145
- | GC loop exceeded | Accept current coverage with warning |
146
- | Fast-advance conflict | Coordinator reconciles on next callback |
147
- | Completion action fails | Default to Keep Active |
1
+ ---
2
+ name: team-quality-assurance
3
+ description: Unified team skill for quality assurance. Full closed-loop QA combining issue discovery and software testing. Triggers on "team quality-assurance", "team qa".
4
+ allowed-tools: TeamCreate(*), TeamDelete(*), SendMessage(*), TaskCreate(*), TaskUpdate(*), TaskList(*), TaskGet(*), Agent(*), AskUserQuestion(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*), mcp__ccw-tools__team_msg(*)
5
+ ---
6
+
7
+ # Team Quality Assurance
8
+
9
+ Orchestrate multi-agent QA: scout -> strategist -> generator -> executor -> analyst. Supports discovery, testing, and full closed-loop modes with parallel generation and GC loops.
10
+
11
+ ## Architecture
12
+
13
+ ```
14
+ Skill(skill="team-quality-assurance", args="task description")
15
+ |
16
+ SKILL.md (this file) = Router
17
+ |
18
+ +--------------+--------------+
19
+ | |
20
+ no --role flag --role <name>
21
+ | |
22
+ Coordinator Worker
23
+ roles/coordinator/role.md roles/<name>/role.md
24
+ |
25
+ +-- analyze -> dispatch -> spawn workers -> STOP
26
+ |
27
+ +-------+-------+-------+-------+-------+
28
+ v v v v v
29
+ [scout] [strat] [gen] [exec] [analyst]
30
+ team-worker agents, each loads roles/<role>/role.md
31
+ ```
32
+
33
+ ## Role Registry
34
+
35
+ | Role | Path | Prefix | Inner Loop |
36
+ |------|------|--------|------------|
37
+ | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
38
+ | scout | [roles/scout/role.md](roles/scout/role.md) | SCOUT-* | false |
39
+ | strategist | [roles/strategist/role.md](roles/strategist/role.md) | QASTRAT-* | false |
40
+ | generator | [roles/generator/role.md](roles/generator/role.md) | QAGEN-* | false |
41
+ | executor | [roles/executor/role.md](roles/executor/role.md) | QARUN-* | true |
42
+ | analyst | [roles/analyst/role.md](roles/analyst/role.md) | QAANA-* | false |
43
+
44
+ ## Role Router
45
+
46
+ Parse `$ARGUMENTS`:
47
+ - Has `--role <name>` -> Read `roles/<name>/role.md`, execute Phase 2-4
48
+ - No `--role` -> `@roles/coordinator/role.md`, execute entry router
49
+
50
+ ## Shared Constants
51
+
52
+ - **Session prefix**: `QA`
53
+ - **Session path**: `.workflow/.team/QA-<slug>-<date>/`
54
+ - **Team name**: `quality-assurance`
55
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
56
+ - **Message bus**: `mcp__ccw-tools__team_msg(session_id=<session-id>, ...)`
57
+
58
+ ## Worker Spawn Template
59
+
60
+ Coordinator spawns workers using this template:
61
+
62
+ ```
63
+ Agent({
64
+ subagent_type: "team-worker",
65
+ description: "Spawn <role> worker",
66
+ team_name: "quality-assurance",
67
+ name: "<role>",
68
+ run_in_background: true,
69
+ prompt: `## Role Assignment
70
+ role: <role>
71
+ role_spec: <skill_root>/roles/<role>/role.md
72
+ session: <session-folder>
73
+ session_id: <session-id>
74
+ team_name: quality-assurance
75
+ requirement: <task-description>
76
+ inner_loop: <true|false>
77
+
78
+ ## Progress Milestones
79
+ session_id: <session-id>
80
+ Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
81
+ Report blockers immediately via team_msg type="blocker".
82
+ Report completion via team_msg type="task_complete" after final SendMessage.
83
+
84
+ Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
85
+ Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
86
+ })
87
+ ```
88
+
89
+ ## User Commands
90
+
91
+ | Command | Action |
92
+ |---------|--------|
93
+ | `check` / `status` | View pipeline status graph |
94
+ | `resume` / `continue` | Advance to next step |
95
+ | `--mode=discovery` | Force discovery mode |
96
+ | `--mode=testing` | Force testing mode |
97
+ | `--mode=full` | Force full QA mode |
98
+
99
+ ## Completion Action
100
+
101
+ When pipeline completes, coordinator presents:
102
+
103
+ ```
104
+ AskUserQuestion({
105
+ questions: [{
106
+ question: "Quality Assurance pipeline complete. What would you like to do?",
107
+ header: "Completion",
108
+ multiSelect: false,
109
+ options: [
110
+ { label: "Archive & Clean (Recommended)", description: "Archive session, clean up team" },
111
+ { label: "Keep Active", description: "Keep session for follow-up work" },
112
+ { label: "Export Results", description: "Export deliverables to target directory" }
113
+ ]
114
+ }]
115
+ })
116
+ ```
117
+
118
+ ## Session Directory
119
+
120
+ ```
121
+ .workflow/.team/QA-<slug>-<date>/
122
+ ├── .msg/messages.jsonl # Team message bus
123
+ ├── .msg/meta.json # Session state + shared memory
124
+ ├── wisdom/ # Cross-task knowledge
125
+ ├── scan/ # Scout output
126
+ ├── strategy/ # Strategist output
127
+ ├── tests/ # Generator output (L1/, L2/, L3/)
128
+ ├── results/ # Executor output
129
+ └── analysis/ # Analyst output
130
+ ```
131
+
132
+ ## Specs Reference
133
+
134
+ - [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
135
+ - [specs/team-config.json](specs/team-config.json) — Team configuration and shared memory schema
136
+
137
+ ## Error Handling
138
+
139
+ | Scenario | Resolution |
140
+ |----------|------------|
141
+ | Unknown --role value | Error with available role list |
142
+ | Role not found | Error with expected path (roles/<name>/role.md) |
143
+ | CLI tool fails | Worker fallback to direct implementation |
144
+ | Scout finds no issues | Report clean scan, skip to testing mode |
145
+ | GC loop exceeded | Accept current coverage with warning |
146
+ | Fast-advance conflict | Coordinator reconciles on next callback |
147
+ | Completion action fails | Default to Keep Active |
@@ -1,75 +1,75 @@
1
- ---
2
- role: scout
3
- prefix: SCOUT
4
- inner_loop: false
5
- message_types:
6
- success: scan_ready
7
- error: error
8
- issues: issues_found
9
- ---
10
-
11
- # Multi-Perspective Scout
12
-
13
- Scan codebase from multiple perspectives (bug, security, test-coverage, code-quality, UX) to discover potential issues. Produce structured scan results with severity-ranked findings.
14
-
15
- ## Phase 2: Context & Scope Assessment
16
-
17
- | Input | Source | Required |
18
- |-------|--------|----------|
19
- | Task description | From task subject/description | Yes |
20
- | Session path | Extracted from task description | Yes |
21
- | .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
22
-
23
- 1. Extract session path and target scope from task description
24
- 2. Determine scan scope: explicit scope from task or `**/*` default
25
- 3. Get recent changed files: `git diff --name-only HEAD~5 2>/dev/null || echo ""`
26
- 4. Read .msg/meta.json for historical defect patterns (`defect_patterns`)
27
- 5. Select scan perspectives based on task description:
28
- - Default: `["bug", "security", "test-coverage", "code-quality"]`
29
- - Add `"ux"` if task mentions UX/UI
30
- 6. Assess complexity to determine scan strategy:
31
-
32
- | Complexity | Condition | Strategy |
33
- |------------|-----------|----------|
34
- | Low | < 5 changed files, no specific keywords | ACE search + Grep inline |
35
- | Medium | 5-15 files or specific perspective requested | CLI fan-out (3 core perspectives) |
36
- | High | > 15 files or full-project scan | CLI fan-out (all perspectives) |
37
-
38
- ## Phase 3: Multi-Perspective Scan
39
-
40
- **Low complexity**: Use `mcp__ace-tool__search_context` for quick pattern-based scan.
41
-
42
- **Medium/High complexity**: CLI fan-out -- one `maestro cli --mode analysis` per perspective:
43
-
44
- For each active perspective, build prompt:
45
- ```
46
- PURPOSE: Scan code from <perspective> perspective to discover potential issues
47
- TASK: Analyze code patterns for <perspective> problems, identify anti-patterns, check for common issues
48
- MODE: analysis
49
- CONTEXT: @<scan-scope>
50
- EXPECTED: List of findings with severity (critical/high/medium/low), file:line references, description
51
- CONSTRAINTS: Focus on actionable findings only
52
- ```
53
- Execute via: `maestro cli -p "<prompt>" --tool gemini --mode analysis`
54
-
55
- After all perspectives complete:
56
- - Parse CLI outputs into structured findings
57
- - Deduplicate by file:line (merge perspectives for same location)
58
- - Compare against known defect patterns from .msg/meta.json
59
- - Rank by severity: critical > high > medium > low
60
-
61
- ### Tech Profile Scan
62
-
63
- After scanning, emit context-aware trigger signals (based on detected codebase characteristics):
64
-
65
- 1. Check scan findings → signals (`sql_detected`, `auth_detected`, `injection_risk`, `eval_usage`)
66
- 2. Check quality issues → risk signals (`test_gap`, `legacy_patterns`, `perf_sensitive`)
67
- 3. Include `tech_profile` in Phase 5 state_update data
68
-
69
- ## Phase 4: Result Aggregation
70
-
71
- 1. Build `discoveredIssues` array from critical + high findings (with id, severity, perspective, file, line, description)
72
- 2. Write scan results to `<session>/scan/scan-results.json`:
73
- - scan_date, perspectives scanned, total findings, by_severity counts, findings detail, issues_created count
74
- 3. Update `<session>/wisdom/.msg/meta.json`: merge `discovered_issues` field
75
- 4. Contribute to wisdom/issues.md if new patterns found
1
+ ---
2
+ role: scout
3
+ prefix: SCOUT
4
+ inner_loop: false
5
+ message_types:
6
+ success: scan_ready
7
+ error: error
8
+ issues: issues_found
9
+ ---
10
+
11
+ # Multi-Perspective Scout
12
+
13
+ Scan codebase from multiple perspectives (bug, security, test-coverage, code-quality, UX) to discover potential issues. Produce structured scan results with severity-ranked findings.
14
+
15
+ ## Phase 2: Context & Scope Assessment
16
+
17
+ | Input | Source | Required |
18
+ |-------|--------|----------|
19
+ | Task description | From task subject/description | Yes |
20
+ | Session path | Extracted from task description | Yes |
21
+ | .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
22
+
23
+ 1. Extract session path and target scope from task description
24
+ 2. Determine scan scope: explicit scope from task or `**/*` default
25
+ 3. Get recent changed files: `git diff --name-only HEAD~5 2>/dev/null || echo ""`
26
+ 4. Read .msg/meta.json for historical defect patterns (`defect_patterns`)
27
+ 5. Select scan perspectives based on task description:
28
+ - Default: `["bug", "security", "test-coverage", "code-quality"]`
29
+ - Add `"ux"` if task mentions UX/UI
30
+ 6. Assess complexity to determine scan strategy:
31
+
32
+ | Complexity | Condition | Strategy |
33
+ |------------|-----------|----------|
34
+ | Low | < 5 changed files, no specific keywords | ACE search + Grep inline |
35
+ | Medium | 5-15 files or specific perspective requested | CLI fan-out (3 core perspectives) |
36
+ | High | > 15 files or full-project scan | CLI fan-out (all perspectives) |
37
+
38
+ ## Phase 3: Multi-Perspective Scan
39
+
40
+ **Low complexity**: Use `mcp__ace-tool__search_context` for quick pattern-based scan.
41
+
42
+ **Medium/High complexity**: CLI fan-out -- one `maestro delegate --mode analysis` per perspective:
43
+
44
+ For each active perspective, build prompt:
45
+ ```
46
+ PURPOSE: Scan code from <perspective> perspective to discover potential issues
47
+ TASK: Analyze code patterns for <perspective> problems, identify anti-patterns, check for common issues
48
+ MODE: analysis
49
+ CONTEXT: @<scan-scope>
50
+ EXPECTED: List of findings with severity (critical/high/medium/low), file:line references, description
51
+ CONSTRAINTS: Focus on actionable findings only
52
+ ```
53
+ Execute via: `maestro delegate "<prompt>" --to gemini --mode analysis`
54
+
55
+ After all perspectives complete:
56
+ - Parse CLI outputs into structured findings
57
+ - Deduplicate by file:line (merge perspectives for same location)
58
+ - Compare against known defect patterns from .msg/meta.json
59
+ - Rank by severity: critical > high > medium > low
60
+
61
+ ### Tech Profile Scan
62
+
63
+ After scanning, emit context-aware trigger signals (based on detected codebase characteristics):
64
+
65
+ 1. Check scan findings → signals (`sql_detected`, `auth_detected`, `injection_risk`, `eval_usage`)
66
+ 2. Check quality issues → risk signals (`test_gap`, `legacy_patterns`, `perf_sensitive`)
67
+ 3. Include `tech_profile` in Phase 5 state_update data
68
+
69
+ ## Phase 4: Result Aggregation
70
+
71
+ 1. Build `discoveredIssues` array from critical + high findings (with id, severity, perspective, file, line, description)
72
+ 2. Write scan results to `<session>/scan/scan-results.json`:
73
+ - scan_date, perspectives scanned, total findings, by_severity counts, findings detail, issues_created count
74
+ 3. Update `<session>/wisdom/.msg/meta.json`: merge `discovered_issues` field
75
+ 4. Contribute to wisdom/issues.md if new patterns found