maestro-flow 0.4.8 → 0.4.10

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 (280) hide show
  1. package/.agy/agents/cli-explore-agent.md +186 -0
  2. package/.agy/agents/conceptual-planning-agent.md +244 -0
  3. package/.agy/agents/impeccable-agent.md +97 -0
  4. package/.agy/agents/team-supervisor.md +142 -0
  5. package/.agy/agents/team-worker.md +236 -0
  6. package/.agy/agents/ui-design-agent.md +286 -0
  7. package/.agy/agents/workflow-analyzer.md +114 -0
  8. package/.agy/agents/workflow-codebase-mapper.md +76 -0
  9. package/.agy/agents/workflow-collab-planner.md +142 -0
  10. package/.agy/agents/workflow-debugger.md +102 -0
  11. package/.agy/agents/workflow-executor.md +131 -0
  12. package/.agy/agents/workflow-external-researcher.md +86 -0
  13. package/.agy/agents/workflow-integration-checker.md +82 -0
  14. package/.agy/agents/workflow-nyquist-auditor.md +84 -0
  15. package/.agy/agents/workflow-phase-researcher.md +84 -0
  16. package/.agy/agents/workflow-plan-checker.md +89 -0
  17. package/.agy/agents/workflow-planner.md +194 -0
  18. package/.agy/agents/workflow-project-researcher.md +73 -0
  19. package/.agy/agents/workflow-research-synthesizer.md +70 -0
  20. package/.agy/agents/workflow-reviewer.md +81 -0
  21. package/.agy/agents/workflow-roadmapper.md +81 -0
  22. package/.agy/agents/workflow-verifier.md +119 -0
  23. package/.agy/skills/codify-to-knowhow/SKILL.md +172 -0
  24. package/.agy/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
  25. package/.agy/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
  26. package/.agy/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
  27. package/.agy/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
  28. package/.agy/skills/learn-decompose/SKILL.md +118 -0
  29. package/.agy/skills/learn-follow/SKILL.md +129 -0
  30. package/.agy/skills/learn-investigate/SKILL.md +154 -0
  31. package/.agy/skills/learn-retro/SKILL.md +159 -0
  32. package/.agy/skills/learn-second-opinion/SKILL.md +124 -0
  33. package/.agy/skills/maestro/SKILL.md +221 -0
  34. package/.agy/skills/maestro-amend/SKILL.md +162 -0
  35. package/.agy/skills/maestro-analyze/SKILL.md +135 -0
  36. package/.agy/skills/maestro-brainstorm/SKILL.md +118 -0
  37. package/.agy/skills/maestro-collab/SKILL.md +174 -0
  38. package/.agy/skills/maestro-composer/SKILL.md +180 -0
  39. package/.agy/skills/maestro-execute/SKILL.md +133 -0
  40. package/.agy/skills/maestro-fork/SKILL.md +88 -0
  41. package/.agy/skills/maestro-guard/SKILL.md +101 -0
  42. package/.agy/skills/maestro-help/SKILL.md +267 -0
  43. package/.agy/skills/maestro-help/index/catalog.json +184 -0
  44. package/.agy/skills/maestro-help/phases/01-parse-intent.md +122 -0
  45. package/.agy/skills/maestro-help/phases/02-search-present.md +181 -0
  46. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +186 -0
  47. package/.agy/skills/maestro-impeccable/SKILL.md +250 -0
  48. package/.agy/skills/maestro-init/SKILL.md +80 -0
  49. package/.agy/skills/maestro-learn/SKILL.md +142 -0
  50. package/.agy/skills/maestro-merge/SKILL.md +66 -0
  51. package/.agy/skills/maestro-milestone-audit/SKILL.md +70 -0
  52. package/.agy/skills/maestro-milestone-complete/SKILL.md +77 -0
  53. package/.agy/skills/maestro-milestone-release/SKILL.md +98 -0
  54. package/.agy/skills/maestro-overlay/SKILL.md +177 -0
  55. package/.agy/skills/maestro-plan/SKILL.md +172 -0
  56. package/.agy/skills/maestro-player/SKILL.md +176 -0
  57. package/.agy/skills/maestro-quick/SKILL.md +67 -0
  58. package/.agy/skills/maestro-ralph/SKILL.md +546 -0
  59. package/.agy/skills/maestro-ralph-execute/SKILL.md +255 -0
  60. package/.agy/skills/maestro-roadmap/SKILL.md +170 -0
  61. package/.agy/skills/maestro-tools-execute/SKILL.md +119 -0
  62. package/.agy/skills/maestro-tools-register/SKILL.md +159 -0
  63. package/.agy/skills/maestro-ui-codify/SKILL.md +81 -0
  64. package/.agy/skills/maestro-update/SKILL.md +175 -0
  65. package/.agy/skills/maestro-verify/SKILL.md +111 -0
  66. package/.agy/skills/manage-codebase-rebuild/SKILL.md +77 -0
  67. package/.agy/skills/manage-codebase-refresh/SKILL.md +59 -0
  68. package/.agy/skills/manage-harvest/SKILL.md +96 -0
  69. package/.agy/skills/manage-issue/SKILL.md +72 -0
  70. package/.agy/skills/manage-issue-discover/SKILL.md +83 -0
  71. package/.agy/skills/manage-knowhow/SKILL.md +76 -0
  72. package/.agy/skills/manage-knowhow-capture/SKILL.md +78 -0
  73. package/.agy/skills/manage-learn/SKILL.md +64 -0
  74. package/.agy/skills/manage-status/SKILL.md +51 -0
  75. package/.agy/skills/manage-wiki/SKILL.md +61 -0
  76. package/.agy/skills/quality-auto-test/SKILL.md +135 -0
  77. package/.agy/skills/quality-debug/SKILL.md +122 -0
  78. package/.agy/skills/quality-refactor/SKILL.md +69 -0
  79. package/.agy/skills/quality-retrospective/SKILL.md +79 -0
  80. package/.agy/skills/quality-review/SKILL.md +130 -0
  81. package/.agy/skills/quality-sync/SKILL.md +53 -0
  82. package/.agy/skills/quality-test/SKILL.md +119 -0
  83. package/.agy/skills/security-audit/SKILL.md +157 -0
  84. package/.agy/skills/skill-iter-tune/SKILL.md +381 -0
  85. package/.agy/skills/skill-iter-tune/phases/01-setup.md +144 -0
  86. package/.agy/skills/skill-iter-tune/phases/02-execute.md +292 -0
  87. package/.agy/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
  88. package/.agy/skills/skill-iter-tune/phases/04-improve.md +198 -0
  89. package/.agy/skills/skill-iter-tune/phases/05-report.md +166 -0
  90. package/.agy/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
  91. package/.agy/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
  92. package/.agy/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
  93. package/.agy/skills/spec-add/SKILL.md +67 -0
  94. package/.agy/skills/spec-load/SKILL.md +70 -0
  95. package/.agy/skills/spec-remove/SKILL.md +50 -0
  96. package/.agy/skills/spec-setup/SKILL.md +47 -0
  97. package/.agy/skills/team-coordinate/SKILL.md +267 -0
  98. package/.agy/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
  99. package/.agy/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
  100. package/.agy/skills/team-coordinate/roles/coordinator/commands/monitor.md +348 -0
  101. package/.agy/skills/team-coordinate/roles/coordinator/role.md +362 -0
  102. package/.agy/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
  103. package/.agy/skills/team-coordinate/specs/pipelines.md +97 -0
  104. package/.agy/skills/team-coordinate/specs/quality-gates.md +112 -0
  105. package/.agy/skills/team-coordinate/specs/role-spec-template.md +198 -0
  106. package/.agy/skills/team-executor/SKILL.md +180 -0
  107. package/.agy/skills/team-executor/roles/executor/commands/monitor.md +235 -0
  108. package/.agy/skills/team-executor/roles/executor/role.md +171 -0
  109. package/.agy/skills/team-executor/specs/session-schema.md +264 -0
  110. package/.agy/skills/team-lifecycle-v4/SKILL.md +189 -0
  111. package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +92 -0
  112. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
  113. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
  114. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
  115. package/.agy/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
  116. package/.agy/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
  117. package/.agy/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
  118. package/.agy/skills/team-lifecycle-v4/roles/executor/role.md +64 -0
  119. package/.agy/skills/team-lifecycle-v4/roles/planner/role.md +82 -0
  120. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
  121. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
  122. package/.agy/skills/team-lifecycle-v4/roles/reviewer/role.md +65 -0
  123. package/.agy/skills/team-lifecycle-v4/roles/supervisor/role.md +188 -0
  124. package/.agy/skills/team-lifecycle-v4/roles/tester/role.md +84 -0
  125. package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +92 -0
  126. package/.agy/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
  127. package/.agy/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
  128. package/.agy/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
  129. package/.agy/skills/team-lifecycle-v4/templates/architecture.md +254 -0
  130. package/.agy/skills/team-lifecycle-v4/templates/epics.md +196 -0
  131. package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
  132. package/.agy/skills/team-lifecycle-v4/templates/requirements.md +224 -0
  133. package/.agy/skills/team-quality-assurance/SKILL.md +148 -0
  134. package/.agy/skills/team-quality-assurance/roles/analyst/role.md +85 -0
  135. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
  136. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
  137. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +235 -0
  138. package/.agy/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
  139. package/.agy/skills/team-quality-assurance/roles/executor/role.md +62 -0
  140. package/.agy/skills/team-quality-assurance/roles/generator/role.md +65 -0
  141. package/.agy/skills/team-quality-assurance/roles/scout/role.md +72 -0
  142. package/.agy/skills/team-quality-assurance/roles/strategist/role.md +69 -0
  143. package/.agy/skills/team-quality-assurance/specs/pipelines.md +115 -0
  144. package/.agy/skills/team-quality-assurance/specs/team-config.json +131 -0
  145. package/.agy/skills/team-review/SKILL.md +149 -0
  146. package/.agy/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
  147. package/.agy/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
  148. package/.agy/skills/team-review/roles/coordinator/commands/monitor.md +209 -0
  149. package/.agy/skills/team-review/roles/coordinator/role.md +132 -0
  150. package/.agy/skills/team-review/roles/fixer/role.md +74 -0
  151. package/.agy/skills/team-review/roles/reviewer/role.md +66 -0
  152. package/.agy/skills/team-review/roles/scanner/role.md +77 -0
  153. package/.agy/skills/team-review/specs/dimensions.md +82 -0
  154. package/.agy/skills/team-review/specs/finding-schema.json +82 -0
  155. package/.agy/skills/team-review/specs/pipelines.md +102 -0
  156. package/.agy/skills/team-review/specs/team-config.json +27 -0
  157. package/.agy/skills/team-tech-debt/SKILL.md +133 -0
  158. package/.agy/skills/team-tech-debt/roles/assessor/role.md +76 -0
  159. package/.agy/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
  160. package/.agy/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
  161. package/.agy/skills/team-tech-debt/roles/coordinator/commands/monitor.md +198 -0
  162. package/.agy/skills/team-tech-debt/roles/coordinator/role.md +123 -0
  163. package/.agy/skills/team-tech-debt/roles/executor/role.md +76 -0
  164. package/.agy/skills/team-tech-debt/roles/planner/role.md +68 -0
  165. package/.agy/skills/team-tech-debt/roles/scanner/role.md +90 -0
  166. package/.agy/skills/team-tech-debt/roles/validator/role.md +78 -0
  167. package/.agy/skills/team-tech-debt/specs/pipelines.md +47 -0
  168. package/.agy/skills/team-tech-debt/specs/team-config.json +129 -0
  169. package/.agy/skills/team-testing/SKILL.md +144 -0
  170. package/.agy/skills/team-testing/roles/analyst/role.md +101 -0
  171. package/.agy/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
  172. package/.agy/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
  173. package/.agy/skills/team-testing/roles/coordinator/commands/monitor.md +242 -0
  174. package/.agy/skills/team-testing/roles/coordinator/role.md +134 -0
  175. package/.agy/skills/team-testing/roles/executor/role.md +95 -0
  176. package/.agy/skills/team-testing/roles/generator/role.md +95 -0
  177. package/.agy/skills/team-testing/roles/strategist/role.md +81 -0
  178. package/.agy/skills/team-testing/specs/pipelines.md +101 -0
  179. package/.agy/skills/team-testing/specs/team-config.json +93 -0
  180. package/.agy/skills/wiki-connect/SKILL.md +64 -0
  181. package/.agy/skills/wiki-digest/SKILL.md +70 -0
  182. package/.agy/skills/workflow-skill-designer/SKILL.md +506 -0
  183. package/.agy/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
  184. package/.agy/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
  185. package/.agy/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
  186. package/.agy/skills/workflow-skill-designer/phases/04-validation.md +471 -0
  187. package/dashboard/dist/assets/{ArtifactsPage-CVh0Z2I2.js → ArtifactsPage-BLvAqQlQ.js} +1 -1
  188. package/dashboard/dist/assets/{ChatInput-CBI3qHQQ.js → ChatInput-DU9YGZKX.js} +1 -1
  189. package/dashboard/dist/assets/{ChatPage-BjJ9CYox.js → ChatPage-DYHfheXC.js} +1 -1
  190. package/dashboard/dist/assets/{CollabPage-CprGGO9y.js → CollabPage-CSlmvEa-.js} +1 -1
  191. package/dashboard/dist/assets/{ExecutionPanel-CClxD7cH.js → ExecutionPanel-RYWf0dYC.js} +1 -1
  192. package/dashboard/dist/assets/{KanbanPage-copqjdPg.js → KanbanPage-N55Iv0-X.js} +1 -1
  193. package/dashboard/dist/assets/{MaestroCoordinatePage-CioZjQ9N.js → MaestroCoordinatePage-BxwZ6yy5.js} +1 -1
  194. package/dashboard/dist/assets/{MarkdownRenderer-CtUhoxCT.js → MarkdownRenderer-ZGtOY7Ti.js} +1 -1
  195. package/dashboard/dist/assets/{McpPage-BcPPcJpr.js → McpPage-Im6s4pGR.js} +1 -1
  196. package/dashboard/dist/assets/{MeetingRoomPage-BgmAKxU-.js → MeetingRoomPage-CxHRn1xx.js} +1 -1
  197. package/dashboard/dist/assets/{OutputPanel-DgT3gMyp.js → OutputPanel-DaL8c1i5.js} +1 -1
  198. package/dashboard/dist/assets/{ProblemsPanel-BmG7rxoG.js → ProblemsPanel-BQTd5812.js} +1 -1
  199. package/dashboard/dist/assets/{RequirementBoardPage-k8YoeQ0r.js → RequirementBoardPage-22y9u1qh.js} +1 -1
  200. package/dashboard/dist/assets/{RequirementPage-Da2354px.js → RequirementPage-_mO743Xm.js} +1 -1
  201. package/dashboard/dist/assets/{RoomsPage-BtqDiYaU.js → RoomsPage-CExTbOGr.js} +1 -1
  202. package/dashboard/dist/assets/{SpecsPage-ByPVH_M3.js → SpecsPage-gr4KX51-.js} +1 -1
  203. package/dashboard/dist/assets/{TeamsPage-sFDLN30L.js → TeamsPage-BxEXLb5g.js} +1 -1
  204. package/dashboard/dist/assets/{TreeBrowser-oEx8YJXV.js → TreeBrowser-CVtPF5C9.js} +1 -1
  205. package/dashboard/dist/assets/{WorkflowPage-JrX7CVHh.js → WorkflowPage-BoN18Lhs.js} +1 -1
  206. package/dashboard/dist/assets/{arrow-left-DYvgSdIH.js → arrow-left-C5ROg97G.js} +1 -1
  207. package/dashboard/dist/assets/{check-jcgYBWVR.js → check-Bs8PM0tQ.js} +1 -1
  208. package/dashboard/dist/assets/{chevron-right-DvZ5sMOg.js → chevron-right-SmErd_1F.js} +1 -1
  209. package/dashboard/dist/assets/{circle-DYT-zoRZ.js → circle-CjpslL_D.js} +1 -1
  210. package/dashboard/dist/assets/{circle-alert-Bfbv3gt4.js → circle-alert-CuzAg2fd.js} +1 -1
  211. package/dashboard/dist/assets/{circle-check-D82WnpbI.js → circle-check-BIkDU5D5.js} +1 -1
  212. package/dashboard/dist/assets/{circle-check-big-CPVD1GKF.js → circle-check-big-CYctV8bK.js} +1 -1
  213. package/dashboard/dist/assets/{code-B3bKFGI4.js → code-DoB7rfxt.js} +1 -1
  214. package/dashboard/dist/assets/{columns-3-BeMAQCix.js → columns-3-Ch5KIyRa.js} +1 -1
  215. package/dashboard/dist/assets/{download-BCtpoWYB.js → download-DadtG2Nr.js} +1 -1
  216. package/dashboard/dist/assets/{folder-CTj6SNNu.js → folder-B8ODoZfb.js} +1 -1
  217. package/dashboard/dist/assets/{index-BxR_3IbJ.js → index-BL4h1OKY.js} +1 -1
  218. package/dashboard/dist/assets/{index-DpcPd-UG.js → index-DQIlX2w_.js} +4 -4
  219. package/dashboard/dist/assets/{index-CWBJLu42.js → index-DaFwSmVJ.js} +10 -10
  220. package/dashboard/dist/assets/{list-BMv8pIQn.js → list-CI-XIPZh.js} +1 -1
  221. package/dashboard/dist/assets/{loader-DdM4VOgF.js → loader-DpdMoQvh.js} +1 -1
  222. package/dashboard/dist/assets/{minus-D15s2E__.js → minus-BVbfXGrC.js} +1 -1
  223. package/dashboard/dist/assets/{pen-line-DO6o4xWz.js → pen-line-CR8GaHt-.js} +1 -1
  224. package/dashboard/dist/assets/{pencil-qGxg9jOe.js → pencil-I7GE0y29.js} +1 -1
  225. package/dashboard/dist/assets/{proxy-DOffTzwA.js → proxy-CcYyZZWI.js} +1 -1
  226. package/dashboard/dist/assets/{refresh-cw-C9UNdLCy.js → refresh-cw-BG9V_T4R.js} +1 -1
  227. package/dashboard/dist/assets/{rows-2-CifAA5SL.js → rows-2-DP6NjQFk.js} +1 -1
  228. package/dashboard/dist/assets/{search-pe7pU1YN.js → search-b78eLlw2.js} +1 -1
  229. package/dashboard/dist/assets/{shallow-r7YynQYA.js → shallow-CJEesgtu.js} +1 -1
  230. package/dashboard/dist/assets/{table-Bh772iIw.js → table-B_lk-a1d.js} +1 -1
  231. package/dashboard/dist/assets/{team-types-C_HqX2p2.js → team-types-Se7f9LfJ.js} +1 -1
  232. package/dashboard/dist/assets/{terminal-EpmtGBlw.js → terminal-DXx4tvzq.js} +1 -1
  233. package/dashboard/dist/assets/{trash-2-Xen46iNQ.js → trash-2-CVh9mnRj.js} +1 -1
  234. package/dashboard/dist/assets/{users-BLueDPxF.js → users-Da9zGME5.js} +1 -1
  235. package/dashboard/dist/assets/{zap-DsQCPF61.js → zap-C0zaC7gJ.js} +1 -1
  236. package/dashboard/dist/index.html +1 -1
  237. package/dashboard/dist-server/dashboard/src/server/agents/adapter-factory.js +4 -0
  238. package/dashboard/dist-server/dashboard/src/server/agents/adapter-factory.js.map +1 -1
  239. package/dashboard/dist-server/dashboard/src/server/agents/agy-adapter.d.ts +39 -0
  240. package/dashboard/dist-server/dashboard/src/server/agents/agy-adapter.js +423 -0
  241. package/dashboard/dist-server/dashboard/src/server/agents/agy-adapter.js.map +1 -0
  242. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.d.ts +6 -0
  243. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +109 -0
  244. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
  245. package/dashboard/dist-server/dashboard/src/shared/constants.js +2 -0
  246. package/dashboard/dist-server/dashboard/src/shared/constants.js.map +1 -1
  247. package/dashboard/dist-server/shared/agent-types.d.ts +1 -1
  248. package/dist/shared/agent-types.d.ts +1 -1
  249. package/dist/shared/agent-types.d.ts.map +1 -1
  250. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  251. package/dist/src/agents/cli-agent-runner.js +3 -0
  252. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  253. package/dist/src/commands/hooks.d.ts +64 -0
  254. package/dist/src/commands/hooks.d.ts.map +1 -1
  255. package/dist/src/commands/hooks.js +107 -0
  256. package/dist/src/commands/hooks.js.map +1 -1
  257. package/dist/src/commands/install.d.ts.map +1 -1
  258. package/dist/src/commands/install.js +17 -3
  259. package/dist/src/commands/install.js.map +1 -1
  260. package/dist/src/commands/update.d.ts.map +1 -1
  261. package/dist/src/commands/update.js +53 -0
  262. package/dist/src/commands/update.js.map +1 -1
  263. package/dist/src/config/cli-tools-config.d.ts +19 -5
  264. package/dist/src/config/cli-tools-config.d.ts.map +1 -1
  265. package/dist/src/config/cli-tools-config.js +77 -32
  266. package/dist/src/config/cli-tools-config.js.map +1 -1
  267. package/dist/src/config/cli-tools-defaults.json +2 -1
  268. package/dist/src/core/component-defs.d.ts.map +1 -1
  269. package/dist/src/core/component-defs.js +53 -0
  270. package/dist/src/core/component-defs.js.map +1 -1
  271. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  272. package/dist/src/tui/install-ui/InstallExecution.js +5 -3
  273. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  274. package/dist/src/utils/update-notices.d.ts +62 -0
  275. package/dist/src/utils/update-notices.d.ts.map +1 -0
  276. package/dist/src/utils/update-notices.js +178 -0
  277. package/dist/src/utils/update-notices.js.map +1 -0
  278. package/package.json +84 -82
  279. package/shared/agent-types.ts +1 -1
  280. package/workflows/agy-instructions.md +124 -0
@@ -0,0 +1,198 @@
1
+ # Dynamic Role-Spec Template
2
+
3
+ Template used by coordinator to generate lightweight worker role-spec files at runtime. Each generated role-spec is written to `<session>/role-specs/<role-name>.md`.
4
+
5
+ **Key difference from v1**: Role-specs contain ONLY Phase 2-4 domain logic + YAML frontmatter. All shared behavior (Phase 1 Task Discovery, Phase 5 Report/Fast-Advance, Message Bus, Consensus, Inner Loop) is built into the `team-worker` agent.
6
+
7
+ ## Template
8
+
9
+ ```markdown
10
+ ---
11
+ role: <role_name>
12
+ prefix: <PREFIX>
13
+ inner_loop: <true|false>
14
+ CLI tools: [<CLI tool-names>]
15
+ message_types:
16
+ success: <prefix>_complete
17
+ error: error
18
+ ---
19
+
20
+ # <Role Name> — Phase 2-4
21
+
22
+ ## Phase 2: <phase2_name>
23
+
24
+ <phase2_content>
25
+
26
+ ## Phase 3: <phase3_name>
27
+
28
+ <phase3_content>
29
+
30
+ ## Phase 4: <phase4_name>
31
+
32
+ <phase4_content>
33
+
34
+ ## Error Handling
35
+
36
+ | Scenario | Resolution |
37
+ |----------|------------|
38
+ <error_entries>
39
+ ```
40
+
41
+ ## Frontmatter Fields
42
+
43
+ | Field | Required | Description |
44
+ |-------|----------|-------------|
45
+ | `role` | Yes | Role name matching session registry |
46
+ | `prefix` | Yes | Task prefix to filter (e.g., RESEARCH, DRAFT, IMPL) |
47
+ | `inner_loop` | Yes | Whether team-worker loops through same-prefix tasks |
48
+ | `CLI tools` | No | Array of CLI tool types this role may call |
49
+ | `output_tag` | Yes | Output tag for all messages, e.g., `[researcher]` |
50
+ | `message_types` | Yes | Message type mapping for team_msg |
51
+ | `message_types.success` | Yes | Type string for successful completion |
52
+ | `message_types.error` | Yes | Type string for errors (usually "error") |
53
+
54
+ ## Design Rules
55
+
56
+ | Rule | Description |
57
+ |------|-------------|
58
+ | Phase 2-4 only | No Phase 1 (Task Discovery) or Phase 5 (Report) — team-worker handles these |
59
+ | No message bus code | No team_msg calls — team-worker handles logging |
60
+ | No consensus handling | No consensus_reached/blocked logic — team-worker handles routing |
61
+ | No inner loop logic | No Phase 5-L/5-F — team-worker handles looping |
62
+ | ~80 lines target | Lightweight, domain-focused |
63
+ | No pseudocode | Decision tables + text + tool calls only |
64
+ | `<placeholder>` notation | Use angle brackets for variable substitution |
65
+ | Reference CLI tools by name | team-worker resolves invocation from its delegation templates |
66
+
67
+ ## Generated Role-Spec Structure
68
+
69
+ Every generated role-spec MUST include these blocks:
70
+
71
+ ### Identity Block (mandatory — first section of generated spec)
72
+
73
+ ```
74
+ Tag: [<role_name>] | Prefix: <PREFIX>-*
75
+ Responsibility: <one-line from task analysis>
76
+ ```
77
+
78
+ ### Boundaries Block (mandatory — after Identity)
79
+
80
+ ```
81
+ ### MUST
82
+ - <3-5 rules derived from task analysis>
83
+
84
+ ### MUST NOT
85
+ - Execute work outside assigned prefix
86
+ - Modify artifacts from other roles
87
+ - Skip Phase 4 verification
88
+ ```
89
+
90
+ ## Behavioral Traits
91
+
92
+ All dynamically generated role-specs MUST embed these traits into Phase 4. Coordinator copies this section verbatim into every generated role-spec as a Phase 4 appendix.
93
+
94
+ **Design principle**: Constrain behavioral characteristics (accuracy, feedback, quality gates), NOT specific actions (which tool, which CLI tool, which path). Tasks are diverse — the coordinator composes task-specific Phase 2-3 instructions, while these traits ensure execution quality regardless of task type.
95
+
96
+ ### Accuracy — outputs must be verifiable
97
+
98
+ - Files claimed as **created** → Read to confirm file exists and has content
99
+ - Files claimed as **modified** → Read to confirm content actually changed
100
+ - Analysis claimed as **complete** → artifact file exists in `<session>/artifacts/`
101
+
102
+ ### Feedback Contract — completion report must include evidence
103
+
104
+ Phase 4 must produce a verification summary with these fields:
105
+
106
+ | Field | When Required | Content |
107
+ |-------|---------------|---------|
108
+ | `files_produced` | New files created | Path list |
109
+ | `files_modified` | Existing files changed | Path + before/after line count |
110
+ | `artifacts_written` | Always | Paths in `<session>/artifacts/` |
111
+ | `verification_method` | Always | How verified: Read confirm / syntax check / diff |
112
+
113
+ ### Quality Gate — verify before reporting complete
114
+
115
+ - Phase 4 MUST verify Phase 3's **actual output** (not planned output)
116
+ - Verification fails → retry Phase 3 (max 2 retries)
117
+ - Still fails → report `partial_completion` with details, NOT `completed`
118
+ - Update shared state via `team_msg(operation="log", type="state_update", data={...})` after verification passes
119
+
120
+ Quality thresholds from [specs/quality-gates.md](quality-gates.md):
121
+ - Pass >= 80%: report completed
122
+ - Review 60-79%: report completed with warnings
123
+ - Fail < 60%: retry Phase 3 (max 2)
124
+
125
+ ### Tech Profile Injection
126
+
127
+ When generating role-specs for analysis or exploration roles, append a Tech Profile Scan instruction after their Phase 3:
128
+ - Instruct the role to scan analysis results for codebase signals relevant to its domain
129
+ - Include `tech_profile` in state_update data for coordinator specialist injection evaluation
130
+
131
+ ### Error Protocol
132
+
133
+ - Primary approach fails → try alternative (different CLI tool / different tool)
134
+ - 2 retries exhausted → escalate to coordinator with failure details
135
+ - NEVER: skip verification and report completed
136
+
137
+ ---
138
+
139
+ ## Reference Patterns
140
+
141
+ Coordinator MAY reference these patterns when composing Phase 2-4 content for a role-spec. These are **structural guidance, not mandatory templates**. The task description determines specific behavior — patterns only suggest common phase structures.
142
+
143
+ ### Research / Exploration
144
+
145
+ - Phase 2: Define exploration scope + load prior knowledge from shared state and wisdom
146
+ - Phase 3: Explore via CLI tools, direct tool calls, or codebase search — approach chosen by agent
147
+ - Phase 4: Verify findings documented (Behavioral Traits) + update shared state
148
+
149
+ ### Document / Content
150
+
151
+ - Phase 2: Load upstream artifacts + read target files (if modifying existing docs)
152
+ - Phase 3: Create new documents OR modify existing documents — determined by task, not template
153
+ - Phase 4: Verify documents exist with expected content (Behavioral Traits) + update shared state
154
+
155
+ ### Code Implementation
156
+
157
+ - Phase 2: Load design/spec artifacts from upstream
158
+ - Phase 3: Implement code changes — CLI tool choice and approach determined by task complexity
159
+ - Phase 4: Syntax check + file verification (Behavioral Traits) + update shared state
160
+
161
+ ### Analysis / Audit
162
+
163
+ - Phase 2: Load analysis targets (artifacts or source files)
164
+ - Phase 3: Multi-dimension analysis — perspectives and depth determined by task
165
+ - Phase 4: Verify report exists + severity classification (Behavioral Traits) + update shared state
166
+
167
+ ### Validation / Testing
168
+
169
+ - Phase 2: Detect test framework + identify changed files from upstream
170
+ - Phase 3: Run test-fix cycle — iteration count and strategy determined by task
171
+ - Phase 4: Verify pass rate + coverage (Behavioral Traits) + update shared state
172
+
173
+ ---
174
+
175
+ ## Knowledge Transfer Protocol
176
+
177
+ Full protocol: [specs/knowledge-transfer.md](knowledge-transfer.md)
178
+
179
+ Generated role-specs Phase 2 MUST declare which upstream sources to load.
180
+ Generated role-specs Phase 4 MUST include state update and artifact publishing.
181
+
182
+ ---
183
+
184
+ ## Generated Role-Spec Validation
185
+
186
+ Coordinator verifies before writing each role-spec:
187
+
188
+ | Check | Criteria |
189
+ |-------|----------|
190
+ | Frontmatter complete | All required fields present (role, prefix, inner_loop, output_tag, message_types, CLI tools) |
191
+ | Identity block | Tag, prefix, responsibility defined |
192
+ | Boundaries | MUST and MUST NOT rules present |
193
+ | Phase 2 | Context loading sources specified |
194
+ | Phase 3 | Execution goal clear, not prescriptive about tools |
195
+ | Phase 4 | Behavioral Traits copied verbatim |
196
+ | Error Handling | Table with 3+ scenarios |
197
+ | Line count | Target ~80 lines (max 120) |
198
+ | No built-in overlap | No Phase 1/5, no message bus code, no consensus handling |
@@ -0,0 +1,180 @@
1
+ ---
2
+ name: team-executor
3
+ description: Lightweight session execution skill. Resumes existing team-coordinate sessions for pure execution via team-worker agents. No analysis, no role generation -- only loads and executes. Session path required. Triggers on "Team Executor".
4
+ agy-subagents:
5
+ - team-worker
6
+ ---
7
+
8
+ ## Sub-Agent Registration (Antigravity)
9
+
10
+ Before any `invoke_subagent` call below, register each sub-agent type once per session by reading the system_prompt from `<agy-agents-dir>/<name>.md` and passing it to `define_subagent`. The `<agy-agents-dir>` is:
11
+ - global install: `~/.gemini/antigravity-cli/agents/`
12
+ - workspace install: `<project>/.agents/agents/`
13
+
14
+ - `define_subagent(name="team-worker", description="<from agents/team-worker.md frontmatter>", system_prompt=<contents of agents/team-worker.md body>, enable_write_tools=true, enable_mcp_tools=true, enable_subagent_tools=false)`
15
+
16
+ **ConversationId tracking**: `invoke_subagent` returns a ConversationId per spawned instance. Subsequent `send_message(Recipient=<ConversationId>, Message=...)` calls require that ConversationId — never use the role name as the recipient.
17
+
18
+ ---
19
+
20
+ # Team Executor
21
+
22
+ Lightweight session execution skill: load session -> reconcile state -> spawn team-worker agents -> execute -> deliver. **No analysis, no role generation** -- only executes existing team-coordinate sessions.
23
+
24
+
25
+ ## Architecture
26
+
27
+ ```
28
+ +---------------------------------------------------+
29
+ | view_file(AbsolutePath="<agy-skills-dir>/team-executor/SKILL.md") + execute inline |
30
+ | args="--session=<path>" [REQUIRED] |
31
+ +-------------------+-------------------------------+
32
+ | Session Validation
33
+ +---- --session valid? ----+
34
+ | NO | YES
35
+ v v
36
+ Error immediately Orchestration Mode
37
+ (no session) -> executor
38
+ |
39
+ +-------+-------+-------+
40
+ v v v v
41
+ [team-worker agents loaded from session role-specs]
42
+ ```
43
+
44
+ ---
45
+
46
+ ## Session Validation (BEFORE routing)
47
+
48
+ **CRITICAL**: Session validation MUST occur before any execution.
49
+
50
+ ### Parse Arguments
51
+
52
+ Extract from `$ARGUMENTS`:
53
+ - `--session=<path>`: Path to team-coordinate session folder (REQUIRED)
54
+
55
+ ### Validation Steps
56
+
57
+ 1. **Check `--session` provided**:
58
+ - If missing -> **ERROR**: "Session required. Usage: --session=<path-to-TC-folder>"
59
+
60
+ 2. **Validate session structure** (see specs/session-schema.md):
61
+ - Directory exists at path
62
+ - `team-session.json` exists and valid JSON
63
+ - `task-analysis.json` exists and valid JSON
64
+ - `role-specs/` directory has at least one `.md` file
65
+ - Each role in `team-session.json#roles` has corresponding `.md` file in `role-specs/`
66
+
67
+ 3. **Validation failure**:
68
+ - Report specific missing component
69
+ - Suggest re-running team-coordinate or checking path
70
+
71
+ ---
72
+
73
+ ## Role Router
74
+
75
+ This skill is **executor-only**. Workers do NOT invoke this skill -- they are spawned as `team-worker` agents directly.
76
+
77
+ ### Dispatch Logic
78
+
79
+ | Scenario | Action |
80
+ |----------|--------|
81
+ | No `--session` | **ERROR** immediately |
82
+ | `--session` invalid | **ERROR** with specific reason |
83
+ | Valid session | Orchestration Mode -> executor |
84
+
85
+ ### Orchestration Mode
86
+
87
+ **Invocation**: `view_file(AbsolutePath="<agy-skills-dir>/team-executor/SKILL.md") + execute inline (args: "--session=<session-folder>")`
88
+
89
+ **Lifecycle**:
90
+ ```
91
+ Validate session
92
+ -> executor Phase 0: Reconcile state (reset interrupted, detect orphans)
93
+ -> executor Phase 1: Spawn first batch team-worker agents (background) -> STOP
94
+ -> Worker executes -> send_message callback -> executor advances next step
95
+ -> Loop until pipeline complete -> Phase 2 report + completion action
96
+ ```
97
+
98
+ **User Commands** (wake paused executor):
99
+
100
+ | Command | Action |
101
+ |---------|--------|
102
+ | `check` / `status` | Output execution status graph, no advancement |
103
+ | `resume` / `continue` | Check worker states, advance next step |
104
+
105
+ ---
106
+
107
+ ## Role Registry
108
+
109
+ | Role | File | Type |
110
+ |------|------|------|
111
+ | executor | [roles/executor/role.md](roles/executor/role.md) | built-in orchestrator |
112
+ | (dynamic) | `<session>/role-specs/<role-name>.md` | loaded from session |
113
+
114
+ ---
115
+
116
+ ## Executor Spawn Template
117
+
118
+ ### v2 Worker Spawn (all roles)
119
+
120
+ When executor spawns workers, use `team-worker` agent with role-spec path:
121
+
122
+ ```
123
+ invoke_subagent([{ TypeName: "team-worker", Role: "<role>", Prompt: "<Prompt>", Workspace: "inherit" }])
124
+ ```
125
+
126
+ ---
127
+
128
+ ## Completion Action
129
+
130
+ When pipeline completes (all tasks done), executor presents an interactive choice:
131
+
132
+ ```
133
+ ask_question({
134
+ questions: [{
135
+ question: "Team pipeline complete. What would you like to do?",
136
+ header: "Completion",
137
+ multiSelect: false,
138
+ options: [
139
+ { label: "Archive & Clean (Recommended)", description: "Archive session, clean up team" },
140
+ { label: "Keep Active", description: "Keep session for follow-up work" },
141
+ { label: "Export Results", description: "Export deliverables to target directory, then clean" }
142
+ ]
143
+ }]
144
+ })
145
+ ```
146
+
147
+ ### Action Handlers
148
+
149
+ | Choice | Steps |
150
+ |--------|-------|
151
+ | Archive & Clean | Update session status="completed" -> TeamDelete -> output final summary with artifact paths |
152
+ | Keep Active | Update session status="paused" -> output: "Resume with: view_file(AbsolutePath="<agy-skills-dir>/team-executor/SKILL.md") + execute inline (args: "--session=<path>")" |
153
+ | Export Results | ask_question(target path) -> copy artifacts to target -> Archive & Clean |
154
+
155
+ ---
156
+
157
+ ## Integration with team-coordinate
158
+
159
+ | Scenario | Skill |
160
+ |----------|-------|
161
+ | New task, no session | team-coordinate |
162
+ | Existing session, resume execution | **team-executor** |
163
+ | Session needs new roles | team-coordinate (with resume) |
164
+ | Pure execution, no analysis | **team-executor** |
165
+
166
+ ---
167
+
168
+ ## Error Handling
169
+
170
+ | Scenario | Resolution |
171
+ |----------|------------|
172
+ | No --session provided | ERROR immediately with usage message |
173
+ | Session directory not found | ERROR with path, suggest checking path |
174
+ | team-session.json missing | ERROR, session incomplete, suggest re-run team-coordinate |
175
+ | task-analysis.json missing | ERROR, session incomplete, suggest re-run team-coordinate |
176
+ | No role-specs in session | ERROR, session incomplete, suggest re-run team-coordinate |
177
+ | Role-spec file not found | ERROR with expected path |
178
+ | capability_gap reported | Warn only, cannot generate new role-specs |
179
+ | Fast-advance spawns wrong task | Executor reconciles on next callback |
180
+ | Completion action fails | Default to Keep Active, log warning |
@@ -0,0 +1,235 @@
1
+
2
+ ## Sub-Agent Registration (Antigravity)
3
+
4
+ Before any `invoke_subagent` call below, register each sub-agent type once per session by reading the system_prompt from `<agy-agents-dir>/<name>.md` and passing it to `define_subagent`. The `<agy-agents-dir>` is:
5
+ - global install: `~/.gemini/antigravity-cli/agents/`
6
+ - workspace install: `<project>/.agents/agents/`
7
+
8
+ - `define_subagent(name="team-worker", description="<from agents/team-worker.md frontmatter>", system_prompt=<contents of agents/team-worker.md body>, enable_write_tools=true, enable_mcp_tools=true, enable_subagent_tools=false)`
9
+
10
+ **ConversationId tracking**: `invoke_subagent` returns a ConversationId per spawned instance. Subsequent `send_message(Recipient=<ConversationId>, Message=...)` calls require that ConversationId — never use the role name as the recipient.
11
+
12
+ ---
13
+ # Command: monitor
14
+
15
+ ## Purpose
16
+
17
+ Event-driven pipeline coordination with Spawn-and-Stop pattern for team-executor v2. Role names are read from `team-session.json#roles`. Workers are spawned as `team-worker` agents with role-spec paths. **handleAdapt is LIMITED**: only warns, cannot generate new role-specs. Includes `handleComplete` for pipeline completion action.
18
+
19
+ ## Constants
20
+
21
+ | Constant | Value | Description |
22
+ |----------|-------|-------------|
23
+ | SPAWN_MODE | background | All workers spawned via `Task(run_in_background: true)` |
24
+ | ONE_STEP_PER_INVOCATION | true | Executor does one operation then STOPS |
25
+ | FAST_ADVANCE_AWARE | true | Workers may skip executor for simple linear successors |
26
+ | ROLE_GENERATION | disabled | handleAdapt cannot generate new role-specs |
27
+ | WORKER_AGENT | team-worker | All workers spawned as team-worker agents |
28
+
29
+ ## Phase 2: Context Loading
30
+
31
+ | Input | Source | Required |
32
+ |-------|--------|----------|
33
+ | Session file | `<session-folder>/team-session.json` | Yes |
34
+ | Task list | `TaskList()` | Yes |
35
+ | Active workers | session.active_workers[] | Yes |
36
+ | Role registry | session.roles[] | Yes |
37
+
38
+ **Dynamic role resolution**: Known worker roles are loaded from `session.roles[].name`. Role-spec paths are in `session.roles[].role_spec`.
39
+
40
+ ## Phase 3: Handler Routing
41
+
42
+ ### Wake-up Source Detection
43
+
44
+ Parse `$ARGUMENTS` to determine handler:
45
+
46
+ | Priority | Condition | Handler |
47
+ |----------|-----------|---------|
48
+ | 1 | Message contains `[<role-name>]` from session roles | handleCallback |
49
+ | 2 | Contains "capability_gap" | handleAdapt |
50
+ | 3 | Contains "check" or "status" | handleCheck |
51
+ | 4 | Contains "resume", "continue", or "next" | handleResume |
52
+ | 5 | Pipeline detected as complete | handleComplete |
53
+ | 6 | None of the above (initial spawn after dispatch) | handleSpawnNext |
54
+
55
+ ---
56
+
57
+ ### Handler: handleCallback
58
+
59
+ Worker completed a task. Verify completion, update state, auto-advance.
60
+
61
+ ```
62
+ Receive callback from [<role>]
63
+ +- Find matching active worker by role (from session.roles)
64
+ +- Is this a progress update (not final)?
65
+ | +- YES -> Update session state, do NOT remove from active_workers -> STOP
66
+ +- Task status = completed?
67
+ | +- YES -> remove from active_workers -> update session
68
+ | | +- -> handleSpawnNext
69
+ | +- NO -> progress message, do not advance -> STOP
70
+ +- No matching worker found
71
+ +- Scan all active workers for completed tasks
72
+ +- Found completed -> process each -> handleSpawnNext
73
+ +- None completed -> STOP
74
+ ```
75
+
76
+ **Fast-advance note**: Check if expected next task is already `in_progress` (fast-advanced). If yes -> skip spawning, sync active_workers.
77
+
78
+ ---
79
+
80
+ ### Handler: handleCheck
81
+
82
+ Read-only status report. No pipeline advancement.
83
+
84
+ ```
85
+ [executor] Pipeline Status
86
+ [executor] Progress: <completed>/<total> (<percent>%)
87
+
88
+ [executor] Execution Graph:
89
+ <visual representation with status icons>
90
+
91
+ done=completed >>>=running o=pending .=not created
92
+
93
+ [executor] Active Workers:
94
+ > <subject> (<role>) - running <elapsed>
95
+
96
+ [executor] Ready to spawn: <subjects>
97
+ [executor] Commands: 'resume' to advance | 'check' to refresh
98
+ ```
99
+
100
+ Then STOP.
101
+
102
+ ---
103
+
104
+ ### Handler: handleResume
105
+
106
+ Check active worker completion, process results, advance pipeline.
107
+
108
+ ```
109
+ Load active_workers from session
110
+ +- No active workers -> handleSpawnNext
111
+ +- Has active workers -> check each:
112
+ +- status = completed -> mark done, log
113
+ +- status = in_progress -> still running, log
114
+ +- other status -> worker failure -> reset to pending
115
+ After processing:
116
+ +- Some completed -> handleSpawnNext
117
+ +- All still running -> report status -> STOP
118
+ +- All failed -> handleSpawnNext (retry)
119
+ ```
120
+
121
+ ---
122
+
123
+ ### Handler: handleSpawnNext
124
+
125
+ Find all ready tasks, spawn team-worker agents in background, update session, STOP.
126
+
127
+ ```
128
+ Collect task states from TaskList()
129
+ +- completedSubjects: status = completed
130
+ +- inProgressSubjects: status = in_progress
131
+ +- readySubjects: pending + all blockedBy in completedSubjects
132
+
133
+ Ready tasks found?
134
+ +- NONE + work in progress -> report waiting -> STOP
135
+ +- NONE + nothing in progress -> PIPELINE_COMPLETE -> handleComplete
136
+ +- HAS ready tasks -> for each:
137
+ +- Is task owner an Inner Loop role AND already has active_worker?
138
+ | +- YES -> SKIP spawn (existing worker picks it up)
139
+ | +- NO -> normal spawn below
140
+ +- TaskUpdate -> in_progress
141
+ +- team_msg log -> task_unblocked (session_id=<session-id>)
142
+ +- Spawn team-worker (see spawn tool call below)
143
+ +- Add to session.active_workers
144
+ Update session file -> output summary -> STOP
145
+ ```
146
+
147
+ **Spawn worker tool call**:
148
+
149
+ ```
150
+ invoke_subagent([{ TypeName: "team-worker", Role: "<role>", Prompt: "<Prompt>", Workspace: "inherit" }])
151
+ ```
152
+
153
+ ---
154
+
155
+ ### Handler: handleComplete
156
+
157
+ Pipeline complete. Execute completion action.
158
+
159
+ ```
160
+ All tasks completed (no pending, no in_progress)
161
+ +- Generate pipeline summary (deliverables, stats, duration)
162
+ +- Read session.completion_action:
163
+ |
164
+ +- "interactive":
165
+ | ask_question -> user choice:
166
+ | +- "Archive & Clean": session status="completed" -> TeamDelete -> summary
167
+ | +- "Keep Active": session status="paused" -> resume command
168
+ | +- "Export Results": copy artifacts -> Archive & Clean
169
+ |
170
+ +- "auto_archive": Execute Archive & Clean
171
+ +- "auto_keep": Execute Keep Active
172
+ ```
173
+
174
+ **Fallback**: If completion action fails, default to Keep Active, log warning.
175
+
176
+ ---
177
+
178
+ ### Handler: handleAdapt (LIMITED)
179
+
180
+ **UNLIKE team-coordinate, executor CANNOT generate new role-specs.**
181
+
182
+ ```
183
+ Receive capability_gap from [<role>]
184
+ +- Log via team_msg (type: warning)
185
+ +- Check existing roles -> does any cover this?
186
+ | +- YES -> redirect to that role -> STOP
187
+ | +- NO -> genuine gap, report to user:
188
+ | "Capability gap detected. team-executor cannot generate new role-specs.
189
+ | Options: 1. Continue 2. Re-run team-coordinate 3. Manually add role-spec"
190
+ +- Continue execution with existing roles
191
+ ```
192
+
193
+ ---
194
+
195
+ ### Worker Failure Handling
196
+
197
+ 1. Reset task -> pending via TaskUpdate
198
+ 2. Log via team_msg (type: error)
199
+ 3. Report to user: task reset, will retry on next resume
200
+
201
+ ### Fast-Advance Failure Recovery
202
+
203
+ Detect orphaned tasks (in_progress without active_worker, > 5 minutes) -> reset to pending -> handleSpawnNext.
204
+
205
+ ### Consensus-Blocked Handling
206
+
207
+ ```
208
+ Route by severity:
209
+ +- HIGH: Create REVISION task (max 1). Already revised -> PAUSE for user
210
+ +- MEDIUM: Proceed with warning, log to wisdom/issues.md
211
+ +- LOW: Proceed normally as consensus_reached with notes
212
+ ```
213
+
214
+ ## Phase 4: Validation
215
+
216
+ | Check | Criteria |
217
+ |-------|----------|
218
+ | Session state consistent | active_workers matches TaskList in_progress tasks |
219
+ | No orphaned tasks | Every in_progress task has an active_worker entry |
220
+ | Dynamic roles valid | All task owners exist in session.roles |
221
+ | Completion detection | readySubjects=0 + inProgressSubjects=0 -> PIPELINE_COMPLETE |
222
+ | Fast-advance tracking | Detect fast-advanced tasks, sync to active_workers |
223
+
224
+ ## Error Handling
225
+
226
+ | Scenario | Resolution |
227
+ |----------|------------|
228
+ | Session file not found | Error, suggest re-run team-coordinate |
229
+ | Worker callback from unknown role | Log info, scan for other completions |
230
+ | All workers still running on resume | Report status, suggest check later |
231
+ | Pipeline stall | Check for missing tasks, report to user |
232
+ | Fast-advance conflict | Executor reconciles, no duplicate spawns |
233
+ | Role-spec file not found | Error, cannot proceed |
234
+ | capability_gap | WARN only, cannot generate new role-specs |
235
+ | Completion action fails | Default to Keep Active, log warning |