takt 0.41.0 → 0.43.0

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 (541) hide show
  1. package/README.md +59 -28
  2. package/builtins/en/config.yaml +9 -1
  3. package/builtins/en/facets/instructions/dual-team-leader-implement.md +7 -2
  4. package/builtins/en/facets/instructions/fix-maintenance.md +43 -0
  5. package/builtins/en/facets/instructions/implement-maintenance.md +72 -0
  6. package/builtins/en/facets/instructions/plan-maintenance.md +51 -0
  7. package/builtins/en/facets/instructions/review-coding.md +8 -0
  8. package/builtins/en/facets/instructions/supervise-maintenance.md +110 -0
  9. package/builtins/en/facets/instructions/team-leader-implement.md +6 -1
  10. package/builtins/en/facets/instructions/write-tests-first.md +5 -0
  11. package/builtins/en/facets/instructions/write-tests-maintenance.md +45 -0
  12. package/builtins/en/facets/knowledge/architecture.md +18 -13
  13. package/builtins/en/facets/knowledge/cqrs-es.md +48 -0
  14. package/builtins/en/facets/knowledge/existing-system.md +70 -0
  15. package/builtins/en/facets/knowledge/frontend.md +25 -0
  16. package/builtins/en/facets/knowledge/react.md +35 -0
  17. package/builtins/en/facets/output-contracts/coding-review.md +41 -0
  18. package/builtins/en/facets/output-contracts/frontend-review.md +1 -0
  19. package/builtins/en/facets/output-contracts/maintenance-scope.md +29 -0
  20. package/builtins/en/facets/personas/coding-reviewer.md +27 -0
  21. package/builtins/en/facets/personas/dual-supervisor.md +1 -1
  22. package/builtins/en/facets/policies/ai-antipattern.md +59 -0
  23. package/builtins/en/facets/policies/coding.md +85 -3
  24. package/builtins/en/facets/policies/existing-system-respect.md +73 -0
  25. package/builtins/en/facets/policies/qa.md +3 -1
  26. package/builtins/en/facets/policies/review.md +25 -12
  27. package/builtins/en/facets/policies/testing.md +33 -0
  28. package/builtins/en/workflow-categories.yaml +1 -0
  29. package/builtins/en/workflows/auto-improvement-loop.yaml +20 -4
  30. package/builtins/en/workflows/default-peer-review.yaml +25 -3
  31. package/builtins/en/workflows/frontend-maintenance.yaml +499 -0
  32. package/builtins/en/workflows/peer-review.yaml +23 -1
  33. package/builtins/en/workflows/review-fix-takt-default.yaml +30 -2
  34. package/builtins/ja/config.yaml +9 -1
  35. package/builtins/ja/facets/instructions/dual-team-leader-implement.md +7 -2
  36. package/builtins/ja/facets/instructions/fix-maintenance.md +43 -0
  37. package/builtins/ja/facets/instructions/implement-maintenance.md +72 -0
  38. package/builtins/ja/facets/instructions/plan-maintenance.md +51 -0
  39. package/builtins/ja/facets/instructions/review-coding.md +8 -0
  40. package/builtins/ja/facets/instructions/supervise-maintenance.md +110 -0
  41. package/builtins/ja/facets/instructions/team-leader-implement.md +6 -1
  42. package/builtins/ja/facets/instructions/write-tests-first.md +5 -0
  43. package/builtins/ja/facets/instructions/write-tests-maintenance.md +45 -0
  44. package/builtins/ja/facets/knowledge/architecture.md +18 -13
  45. package/builtins/ja/facets/knowledge/cqrs-es.md +48 -0
  46. package/builtins/ja/facets/knowledge/existing-system.md +70 -0
  47. package/builtins/ja/facets/knowledge/frontend.md +25 -0
  48. package/builtins/ja/facets/knowledge/react.md +35 -0
  49. package/builtins/ja/facets/output-contracts/coding-review.md +41 -0
  50. package/builtins/ja/facets/output-contracts/frontend-review.md +1 -0
  51. package/builtins/ja/facets/output-contracts/maintenance-scope.md +29 -0
  52. package/builtins/ja/facets/personas/coding-reviewer.md +27 -0
  53. package/builtins/ja/facets/personas/dual-supervisor.md +2 -2
  54. package/builtins/ja/facets/policies/ai-antipattern.md +59 -0
  55. package/builtins/ja/facets/policies/coding.md +85 -3
  56. package/builtins/ja/facets/policies/existing-system-respect.md +73 -0
  57. package/builtins/ja/facets/policies/qa.md +3 -1
  58. package/builtins/ja/facets/policies/review.md +25 -12
  59. package/builtins/ja/facets/policies/testing.md +33 -0
  60. package/builtins/ja/workflow-categories.yaml +1 -0
  61. package/builtins/ja/workflows/auto-improvement-loop.yaml +20 -4
  62. package/builtins/ja/workflows/default-peer-review.yaml +25 -3
  63. package/builtins/ja/workflows/frontend-maintenance.yaml +499 -0
  64. package/builtins/ja/workflows/peer-review.yaml +23 -1
  65. package/builtins/ja/workflows/review-fix-takt-default.yaml +30 -2
  66. package/builtins/skill/references/yaml-schema.md +8 -3
  67. package/builtins/skill-codex/references/yaml-schema.md +8 -3
  68. package/dist/agents/decompose-task-usecase.d.ts.map +1 -1
  69. package/dist/agents/decompose-task-usecase.js +3 -2
  70. package/dist/agents/decompose-task-usecase.js.map +1 -1
  71. package/dist/agents/judge-status-usecase.d.ts.map +1 -1
  72. package/dist/agents/judge-status-usecase.js +4 -3
  73. package/dist/agents/judge-status-usecase.js.map +1 -1
  74. package/dist/agents/provider-call-options.d.ts +4 -0
  75. package/dist/agents/provider-call-options.d.ts.map +1 -0
  76. package/dist/agents/provider-call-options.js +9 -0
  77. package/dist/agents/provider-call-options.js.map +1 -0
  78. package/dist/agents/runner.js +1 -1
  79. package/dist/agents/runner.js.map +1 -1
  80. package/dist/agents/structured-caller/prompt-based-structured-caller.d.ts.map +1 -1
  81. package/dist/agents/structured-caller/prompt-based-structured-caller.js +5 -4
  82. package/dist/agents/structured-caller/prompt-based-structured-caller.js.map +1 -1
  83. package/dist/agents/team-leader-structured-output.d.ts.map +1 -1
  84. package/dist/agents/team-leader-structured-output.js +21 -0
  85. package/dist/agents/team-leader-structured-output.js.map +1 -1
  86. package/dist/app/cli/commands.js +7 -1
  87. package/dist/app/cli/commands.js.map +1 -1
  88. package/dist/app/cli/program.js +1 -1
  89. package/dist/app/cli/program.js.map +1 -1
  90. package/dist/app/cli/routing.d.ts.map +1 -1
  91. package/dist/app/cli/routing.js +8 -1
  92. package/dist/app/cli/routing.js.map +1 -1
  93. package/dist/core/models/assistant-config.d.ts +4 -0
  94. package/dist/core/models/assistant-config.d.ts.map +1 -0
  95. package/dist/core/models/assistant-config.js +4 -0
  96. package/dist/core/models/assistant-config.js.map +1 -0
  97. package/dist/core/models/config-schemas.d.ts +160 -9
  98. package/dist/core/models/config-schemas.d.ts.map +1 -1
  99. package/dist/core/models/config-schemas.js +12 -2
  100. package/dist/core/models/config-schemas.js.map +1 -1
  101. package/dist/core/models/config-types.d.ts +30 -4
  102. package/dist/core/models/config-types.d.ts.map +1 -1
  103. package/dist/core/models/index.d.ts +1 -1
  104. package/dist/core/models/index.d.ts.map +1 -1
  105. package/dist/core/models/index.js.map +1 -1
  106. package/dist/core/models/provider-profiles.d.ts +1 -1
  107. package/dist/core/models/provider-profiles.d.ts.map +1 -1
  108. package/dist/core/models/quality-gate-defaults.d.ts +2 -0
  109. package/dist/core/models/quality-gate-defaults.d.ts.map +1 -0
  110. package/dist/core/models/quality-gate-defaults.js +2 -0
  111. package/dist/core/models/quality-gate-defaults.js.map +1 -0
  112. package/dist/core/models/response.d.ts +1 -1
  113. package/dist/core/models/response.d.ts.map +1 -1
  114. package/dist/core/models/response.js +1 -1
  115. package/dist/core/models/response.js.map +1 -1
  116. package/dist/core/models/schema-base.d.ts +80 -3
  117. package/dist/core/models/schema-base.d.ts.map +1 -1
  118. package/dist/core/models/schema-base.js +76 -2
  119. package/dist/core/models/schema-base.js.map +1 -1
  120. package/dist/core/models/types.d.ts +2 -2
  121. package/dist/core/models/types.d.ts.map +1 -1
  122. package/dist/core/models/workflow-provider-options.d.ts +7 -0
  123. package/dist/core/models/workflow-provider-options.d.ts.map +1 -1
  124. package/dist/core/models/workflow-schemas.d.ts +368 -51
  125. package/dist/core/models/workflow-schemas.d.ts.map +1 -1
  126. package/dist/core/models/workflow-system-input-types.d.ts +8 -1
  127. package/dist/core/models/workflow-system-input-types.d.ts.map +1 -1
  128. package/dist/core/models/workflow-system-schemas.d.ts +7 -1
  129. package/dist/core/models/workflow-system-schemas.d.ts.map +1 -1
  130. package/dist/core/models/workflow-system-schemas.js +12 -1
  131. package/dist/core/models/workflow-system-schemas.js.map +1 -1
  132. package/dist/core/models/workflow-types.d.ts +13 -5
  133. package/dist/core/models/workflow-types.d.ts.map +1 -1
  134. package/dist/core/models/workflow-types.js.map +1 -1
  135. package/dist/core/workflow/engine/OptionsBuilder.d.ts +1 -0
  136. package/dist/core/workflow/engine/OptionsBuilder.d.ts.map +1 -1
  137. package/dist/core/workflow/engine/OptionsBuilder.js +9 -4
  138. package/dist/core/workflow/engine/OptionsBuilder.js.map +1 -1
  139. package/dist/core/workflow/engine/ParallelRunner.d.ts +11 -0
  140. package/dist/core/workflow/engine/ParallelRunner.d.ts.map +1 -1
  141. package/dist/core/workflow/engine/ParallelRunner.js +139 -19
  142. package/dist/core/workflow/engine/ParallelRunner.js.map +1 -1
  143. package/dist/core/workflow/engine/TeamLeaderRunner.d.ts.map +1 -1
  144. package/dist/core/workflow/engine/TeamLeaderRunner.js +55 -23
  145. package/dist/core/workflow/engine/TeamLeaderRunner.js.map +1 -1
  146. package/dist/core/workflow/engine/WorkflowEngine.d.ts +1 -0
  147. package/dist/core/workflow/engine/WorkflowEngine.d.ts.map +1 -1
  148. package/dist/core/workflow/engine/WorkflowEngine.js +29 -4
  149. package/dist/core/workflow/engine/WorkflowEngine.js.map +1 -1
  150. package/dist/core/workflow/engine/WorkflowEngineSetup.d.ts.map +1 -1
  151. package/dist/core/workflow/engine/WorkflowEngineSetup.js +2 -0
  152. package/dist/core/workflow/engine/WorkflowEngineSetup.js.map +1 -1
  153. package/dist/core/workflow/engine/WorkflowRunLoop.d.ts +8 -0
  154. package/dist/core/workflow/engine/WorkflowRunLoop.d.ts.map +1 -1
  155. package/dist/core/workflow/engine/WorkflowRunLoop.js +78 -7
  156. package/dist/core/workflow/engine/WorkflowRunLoop.js.map +1 -1
  157. package/dist/core/workflow/engine/team-leader-execution.d.ts +1 -0
  158. package/dist/core/workflow/engine/team-leader-execution.d.ts.map +1 -1
  159. package/dist/core/workflow/engine/team-leader-execution.js +22 -0
  160. package/dist/core/workflow/engine/team-leader-execution.js.map +1 -1
  161. package/dist/core/workflow/engine/team-leader-timeout-fallback.d.ts +13 -0
  162. package/dist/core/workflow/engine/team-leader-timeout-fallback.d.ts.map +1 -0
  163. package/dist/core/workflow/engine/team-leader-timeout-fallback.js +125 -0
  164. package/dist/core/workflow/engine/team-leader-timeout-fallback.js.map +1 -0
  165. package/dist/core/workflow/instruction/InstructionBuilder.d.ts.map +1 -1
  166. package/dist/core/workflow/instruction/InstructionBuilder.js +4 -3
  167. package/dist/core/workflow/instruction/InstructionBuilder.js.map +1 -1
  168. package/dist/core/workflow/observability/workflowSpans.d.ts +28 -0
  169. package/dist/core/workflow/observability/workflowSpans.d.ts.map +1 -0
  170. package/dist/core/workflow/observability/workflowSpans.js +107 -0
  171. package/dist/core/workflow/observability/workflowSpans.js.map +1 -0
  172. package/dist/core/workflow/part-definition-validator.d.ts.map +1 -1
  173. package/dist/core/workflow/part-definition-validator.js +4 -0
  174. package/dist/core/workflow/part-definition-validator.js.map +1 -1
  175. package/dist/core/workflow/permission-profile-resolution.d.ts.map +1 -1
  176. package/dist/core/workflow/permission-profile-resolution.js +1 -0
  177. package/dist/core/workflow/permission-profile-resolution.js.map +1 -1
  178. package/dist/core/workflow/phase-runner.d.ts +1 -3
  179. package/dist/core/workflow/phase-runner.d.ts.map +1 -1
  180. package/dist/core/workflow/phase-runner.js.map +1 -1
  181. package/dist/core/workflow/quality-gates/commandGateMessage.d.ts +4 -0
  182. package/dist/core/workflow/quality-gates/commandGateMessage.d.ts.map +1 -0
  183. package/dist/core/workflow/quality-gates/commandGateMessage.js +84 -0
  184. package/dist/core/workflow/quality-gates/commandGateMessage.js.map +1 -0
  185. package/dist/core/workflow/quality-gates/commandGateRunner.d.ts +3 -0
  186. package/dist/core/workflow/quality-gates/commandGateRunner.d.ts.map +1 -0
  187. package/dist/core/workflow/quality-gates/commandGateRunner.js +242 -0
  188. package/dist/core/workflow/quality-gates/commandGateRunner.js.map +1 -0
  189. package/dist/core/workflow/quality-gates/qualityGateRunner.d.ts +3 -0
  190. package/dist/core/workflow/quality-gates/qualityGateRunner.d.ts.map +1 -0
  191. package/dist/core/workflow/quality-gates/qualityGateRunner.js +29 -0
  192. package/dist/core/workflow/quality-gates/qualityGateRunner.js.map +1 -0
  193. package/dist/core/workflow/quality-gates/types.d.ts +41 -0
  194. package/dist/core/workflow/quality-gates/types.d.ts.map +1 -0
  195. package/dist/core/workflow/quality-gates/types.js +2 -0
  196. package/dist/core/workflow/quality-gates/types.js.map +1 -0
  197. package/dist/core/workflow/report-phase-runner.d.ts.map +1 -1
  198. package/dist/core/workflow/report-phase-runner.js +3 -2
  199. package/dist/core/workflow/report-phase-runner.js.map +1 -1
  200. package/dist/core/workflow/run/run-meta.d.ts +3 -1
  201. package/dist/core/workflow/run/run-meta.d.ts.map +1 -1
  202. package/dist/core/workflow/run/run-meta.js +2 -0
  203. package/dist/core/workflow/run/run-meta.js.map +1 -1
  204. package/dist/core/workflow/run/run-slug.d.ts +2 -0
  205. package/dist/core/workflow/run/run-slug.d.ts.map +1 -0
  206. package/dist/core/workflow/run/run-slug.js +19 -0
  207. package/dist/core/workflow/run/run-slug.js.map +1 -0
  208. package/dist/core/workflow/status-judgment-phase.d.ts.map +1 -1
  209. package/dist/core/workflow/status-judgment-phase.js +7 -3
  210. package/dist/core/workflow/status-judgment-phase.js.map +1 -1
  211. package/dist/core/workflow/system/system-step-effect-runner.d.ts.map +1 -1
  212. package/dist/core/workflow/system/system-step-effect-runner.js +16 -1
  213. package/dist/core/workflow/system/system-step-effect-runner.js.map +1 -1
  214. package/dist/core/workflow/team-leader-continuation-ids.d.ts +3 -0
  215. package/dist/core/workflow/team-leader-continuation-ids.d.ts.map +1 -0
  216. package/dist/core/workflow/team-leader-continuation-ids.js +6 -0
  217. package/dist/core/workflow/team-leader-continuation-ids.js.map +1 -0
  218. package/dist/core/workflow/types.d.ts +7 -1
  219. package/dist/core/workflow/types.d.ts.map +1 -1
  220. package/dist/features/interactive/assistantInitFiles.d.ts +2 -0
  221. package/dist/features/interactive/assistantInitFiles.d.ts.map +1 -0
  222. package/dist/features/interactive/assistantInitFiles.js +110 -0
  223. package/dist/features/interactive/assistantInitFiles.js.map +1 -0
  224. package/dist/features/interactive/conversationLoop.d.ts +5 -1
  225. package/dist/features/interactive/conversationLoop.d.ts.map +1 -1
  226. package/dist/features/interactive/conversationLoop.js +33 -11
  227. package/dist/features/interactive/conversationLoop.js.map +1 -1
  228. package/dist/features/interactive/imageAttachments.d.ts +20 -0
  229. package/dist/features/interactive/imageAttachments.d.ts.map +1 -0
  230. package/dist/features/interactive/imageAttachments.js +75 -0
  231. package/dist/features/interactive/imageAttachments.js.map +1 -0
  232. package/dist/features/interactive/index.d.ts +2 -1
  233. package/dist/features/interactive/index.d.ts.map +1 -1
  234. package/dist/features/interactive/index.js +1 -1
  235. package/dist/features/interactive/index.js.map +1 -1
  236. package/dist/features/interactive/inlineImagePaste.d.ts +21 -0
  237. package/dist/features/interactive/inlineImagePaste.d.ts.map +1 -0
  238. package/dist/features/interactive/inlineImagePaste.js +136 -0
  239. package/dist/features/interactive/inlineImagePaste.js.map +1 -0
  240. package/dist/features/interactive/instructModeTypes.d.ts +23 -0
  241. package/dist/features/interactive/instructModeTypes.d.ts.map +1 -0
  242. package/dist/features/interactive/instructModeTypes.js +2 -0
  243. package/dist/features/interactive/instructModeTypes.js.map +1 -0
  244. package/dist/features/interactive/interactive-summary.d.ts +1 -1
  245. package/dist/features/interactive/interactive-summary.d.ts.map +1 -1
  246. package/dist/features/interactive/interactive-summary.js +4 -3
  247. package/dist/features/interactive/interactive-summary.js.map +1 -1
  248. package/dist/features/interactive/interactive.d.ts +8 -3
  249. package/dist/features/interactive/interactive.d.ts.map +1 -1
  250. package/dist/features/interactive/interactive.js +4 -0
  251. package/dist/features/interactive/interactive.js.map +1 -1
  252. package/dist/features/interactive/interactiveInput.d.ts +2 -1
  253. package/dist/features/interactive/interactiveInput.d.ts.map +1 -1
  254. package/dist/features/interactive/interactiveInput.js +5 -1
  255. package/dist/features/interactive/interactiveInput.js.map +1 -1
  256. package/dist/features/interactive/lineEditor.d.ts +2 -0
  257. package/dist/features/interactive/lineEditor.d.ts.map +1 -1
  258. package/dist/features/interactive/lineEditor.js +130 -9
  259. package/dist/features/interactive/lineEditor.js.map +1 -1
  260. package/dist/features/interactive/passthroughMode.d.ts.map +1 -1
  261. package/dist/features/interactive/passthroughMode.js +8 -4
  262. package/dist/features/interactive/passthroughMode.js.map +1 -1
  263. package/dist/features/interactive/promptSections.d.ts +2 -0
  264. package/dist/features/interactive/promptSections.d.ts.map +1 -1
  265. package/dist/features/interactive/promptSections.js +7 -1
  266. package/dist/features/interactive/promptSections.js.map +1 -1
  267. package/dist/features/interactive/quietMode.d.ts.map +1 -1
  268. package/dist/features/interactive/quietMode.js +12 -8
  269. package/dist/features/interactive/quietMode.js.map +1 -1
  270. package/dist/features/interactive/retryMode.d.ts +10 -13
  271. package/dist/features/interactive/retryMode.d.ts.map +1 -1
  272. package/dist/features/interactive/retryMode.js +42 -22
  273. package/dist/features/interactive/retryMode.js.map +1 -1
  274. package/dist/features/interactive/slashCommandRegistry.d.ts.map +1 -1
  275. package/dist/features/interactive/slashCommandRegistry.js +1 -0
  276. package/dist/features/interactive/slashCommandRegistry.js.map +1 -1
  277. package/dist/features/tasks/add/index.d.ts +4 -0
  278. package/dist/features/tasks/add/index.d.ts.map +1 -1
  279. package/dist/features/tasks/add/index.js +12 -29
  280. package/dist/features/tasks/add/index.js.map +1 -1
  281. package/dist/features/tasks/attachments.d.ts +19 -0
  282. package/dist/features/tasks/attachments.d.ts.map +1 -0
  283. package/dist/features/tasks/attachments.js +129 -0
  284. package/dist/features/tasks/attachments.js.map +1 -0
  285. package/dist/features/tasks/execute/resolveTask.d.ts.map +1 -1
  286. package/dist/features/tasks/execute/resolveTask.js +4 -3
  287. package/dist/features/tasks/execute/resolveTask.js.map +1 -1
  288. package/dist/features/tasks/execute/runMeta.d.ts +5 -1
  289. package/dist/features/tasks/execute/runMeta.d.ts.map +1 -1
  290. package/dist/features/tasks/execute/runMeta.js +10 -4
  291. package/dist/features/tasks/execute/runMeta.js.map +1 -1
  292. package/dist/features/tasks/execute/selectAndExecute.d.ts.map +1 -1
  293. package/dist/features/tasks/execute/selectAndExecute.js +48 -4
  294. package/dist/features/tasks/execute/selectAndExecute.js.map +1 -1
  295. package/dist/features/tasks/execute/taskSpecContext.d.ts +7 -2
  296. package/dist/features/tasks/execute/taskSpecContext.d.ts.map +1 -1
  297. package/dist/features/tasks/execute/taskSpecContext.js +23 -36
  298. package/dist/features/tasks/execute/taskSpecContext.js.map +1 -1
  299. package/dist/features/tasks/execute/taskWorkflowExecution.d.ts.map +1 -1
  300. package/dist/features/tasks/execute/taskWorkflowExecution.js +2 -1
  301. package/dist/features/tasks/execute/taskWorkflowExecution.js.map +1 -1
  302. package/dist/features/tasks/execute/traceReportRedaction.d.ts +0 -1
  303. package/dist/features/tasks/execute/traceReportRedaction.d.ts.map +1 -1
  304. package/dist/features/tasks/execute/traceReportRedaction.js +1 -9
  305. package/dist/features/tasks/execute/traceReportRedaction.js.map +1 -1
  306. package/dist/features/tasks/execute/types.d.ts +8 -0
  307. package/dist/features/tasks/execute/types.d.ts.map +1 -1
  308. package/dist/features/tasks/execute/workflowExecution.d.ts.map +1 -1
  309. package/dist/features/tasks/execute/workflowExecution.js +12 -1
  310. package/dist/features/tasks/execute/workflowExecution.js.map +1 -1
  311. package/dist/features/tasks/execute/workflowExecutionBootstrap.d.ts +5 -1
  312. package/dist/features/tasks/execute/workflowExecutionBootstrap.d.ts.map +1 -1
  313. package/dist/features/tasks/execute/workflowExecutionBootstrap.js +7 -2
  314. package/dist/features/tasks/execute/workflowExecutionBootstrap.js.map +1 -1
  315. package/dist/features/tasks/index.d.ts +1 -0
  316. package/dist/features/tasks/index.d.ts.map +1 -1
  317. package/dist/features/tasks/index.js +1 -0
  318. package/dist/features/tasks/index.js.map +1 -1
  319. package/dist/features/tasks/list/instructMode.d.ts +2 -20
  320. package/dist/features/tasks/list/instructMode.d.ts.map +1 -1
  321. package/dist/features/tasks/list/instructMode.js +15 -4
  322. package/dist/features/tasks/list/instructMode.js.map +1 -1
  323. package/dist/features/tasks/list/retryTaskSpecAttachments.d.ts +8 -0
  324. package/dist/features/tasks/list/retryTaskSpecAttachments.d.ts.map +1 -0
  325. package/dist/features/tasks/list/retryTaskSpecAttachments.js +87 -0
  326. package/dist/features/tasks/list/retryTaskSpecAttachments.js.map +1 -0
  327. package/dist/features/tasks/list/taskInstructionActions.d.ts.map +1 -1
  328. package/dist/features/tasks/list/taskInstructionActions.js +20 -2
  329. package/dist/features/tasks/list/taskInstructionActions.js.map +1 -1
  330. package/dist/features/tasks/list/taskRetryActions.d.ts.map +1 -1
  331. package/dist/features/tasks/list/taskRetryActions.js +24 -6
  332. package/dist/features/tasks/list/taskRetryActions.js.map +1 -1
  333. package/dist/features/tasks/resume/directInstructMode.d.ts +13 -0
  334. package/dist/features/tasks/resume/directInstructMode.d.ts.map +1 -0
  335. package/dist/features/tasks/resume/directInstructMode.js +67 -0
  336. package/dist/features/tasks/resume/directInstructMode.js.map +1 -0
  337. package/dist/features/tasks/resume/directRunFinder.d.ts +7 -0
  338. package/dist/features/tasks/resume/directRunFinder.d.ts.map +1 -0
  339. package/dist/features/tasks/resume/directRunFinder.js +43 -0
  340. package/dist/features/tasks/resume/directRunFinder.js.map +1 -0
  341. package/dist/features/tasks/resume/index.d.ts +3 -0
  342. package/dist/features/tasks/resume/index.d.ts.map +1 -0
  343. package/dist/features/tasks/resume/index.js +229 -0
  344. package/dist/features/tasks/resume/index.js.map +1 -0
  345. package/dist/features/tasks/taskSpecFile.d.ts +2 -0
  346. package/dist/features/tasks/taskSpecFile.d.ts.map +1 -0
  347. package/dist/features/tasks/taskSpecFile.js +38 -0
  348. package/dist/features/tasks/taskSpecFile.js.map +1 -0
  349. package/dist/infra/claude/executor.d.ts.map +1 -1
  350. package/dist/infra/claude/executor.js +27 -6
  351. package/dist/infra/claude/executor.js.map +1 -1
  352. package/dist/infra/claude/mcp-config.d.ts +7 -0
  353. package/dist/infra/claude/mcp-config.d.ts.map +1 -0
  354. package/dist/infra/claude/mcp-config.js +30 -0
  355. package/dist/infra/claude/mcp-config.js.map +1 -0
  356. package/dist/infra/claude-headless/client.d.ts.map +1 -1
  357. package/dist/infra/claude-headless/client.js +5 -40
  358. package/dist/infra/claude-headless/client.js.map +1 -1
  359. package/dist/infra/claude-headless/result-response.js +1 -1
  360. package/dist/infra/claude-headless/result-response.js.map +1 -1
  361. package/dist/infra/claude-terminal/client.d.ts +4 -0
  362. package/dist/infra/claude-terminal/client.d.ts.map +1 -0
  363. package/dist/infra/claude-terminal/client.js +314 -0
  364. package/dist/infra/claude-terminal/client.js.map +1 -0
  365. package/dist/infra/claude-terminal/command.d.ts +4 -0
  366. package/dist/infra/claude-terminal/command.d.ts.map +1 -0
  367. package/dist/infra/claude-terminal/command.js +50 -0
  368. package/dist/infra/claude-terminal/command.js.map +1 -0
  369. package/dist/infra/claude-terminal/response-normalizer.d.ts +14 -0
  370. package/dist/infra/claude-terminal/response-normalizer.d.ts.map +1 -0
  371. package/dist/infra/claude-terminal/response-normalizer.js +118 -0
  372. package/dist/infra/claude-terminal/response-normalizer.js.map +1 -0
  373. package/dist/infra/claude-terminal/tmux-backend.d.ts +7 -0
  374. package/dist/infra/claude-terminal/tmux-backend.d.ts.map +1 -0
  375. package/dist/infra/claude-terminal/tmux-backend.js +177 -0
  376. package/dist/infra/claude-terminal/tmux-backend.js.map +1 -0
  377. package/dist/infra/claude-terminal/transcript-reader.d.ts +13 -0
  378. package/dist/infra/claude-terminal/transcript-reader.d.ts.map +1 -0
  379. package/dist/infra/claude-terminal/transcript-reader.js +329 -0
  380. package/dist/infra/claude-terminal/transcript-reader.js.map +1 -0
  381. package/dist/infra/claude-terminal/types.d.ts +106 -0
  382. package/dist/infra/claude-terminal/types.d.ts.map +1 -0
  383. package/dist/infra/claude-terminal/types.js +2 -0
  384. package/dist/infra/claude-terminal/types.js.map +1 -0
  385. package/dist/infra/codex/CodexStreamHandler.d.ts +4 -2
  386. package/dist/infra/codex/CodexStreamHandler.d.ts.map +1 -1
  387. package/dist/infra/codex/CodexStreamHandler.js +55 -21
  388. package/dist/infra/codex/CodexStreamHandler.js.map +1 -1
  389. package/dist/infra/codex/client.d.ts +2 -0
  390. package/dist/infra/codex/client.d.ts.map +1 -1
  391. package/dist/infra/codex/client.js +42 -6
  392. package/dist/infra/codex/client.js.map +1 -1
  393. package/dist/infra/config/configNormalizers.d.ts +23 -16
  394. package/dist/infra/config/configNormalizers.d.ts.map +1 -1
  395. package/dist/infra/config/configNormalizers.js +69 -7
  396. package/dist/infra/config/configNormalizers.js.map +1 -1
  397. package/dist/infra/config/env/global-current-env-specs.d.ts.map +1 -1
  398. package/dist/infra/config/env/global-current-env-specs.js +7 -0
  399. package/dist/infra/config/env/global-current-env-specs.js.map +1 -1
  400. package/dist/infra/config/env/project-current-env-specs.d.ts.map +1 -1
  401. package/dist/infra/config/env/project-current-env-specs.js +7 -0
  402. package/dist/infra/config/env/project-current-env-specs.js.map +1 -1
  403. package/dist/infra/config/global/globalConfigCore.d.ts.map +1 -1
  404. package/dist/infra/config/global/globalConfigCore.js +5 -0
  405. package/dist/infra/config/global/globalConfigCore.js.map +1 -1
  406. package/dist/infra/config/global/globalConfigSerializer.d.ts.map +1 -1
  407. package/dist/infra/config/global/globalConfigSerializer.js +10 -0
  408. package/dist/infra/config/global/globalConfigSerializer.js.map +1 -1
  409. package/dist/infra/config/global/initialization.d.ts +1 -1
  410. package/dist/infra/config/global/initialization.d.ts.map +1 -1
  411. package/dist/infra/config/global/initialization.js +1 -0
  412. package/dist/infra/config/global/initialization.js.map +1 -1
  413. package/dist/infra/config/loaders/qualityGateOverrides.d.ts +3 -2
  414. package/dist/infra/config/loaders/qualityGateOverrides.d.ts.map +1 -1
  415. package/dist/infra/config/loaders/qualityGateOverrides.js +42 -3
  416. package/dist/infra/config/loaders/qualityGateOverrides.js.map +1 -1
  417. package/dist/infra/config/loaders/workflowFileLoader.d.ts.map +1 -1
  418. package/dist/infra/config/loaders/workflowFileLoader.js +2 -2
  419. package/dist/infra/config/loaders/workflowFileLoader.js.map +1 -1
  420. package/dist/infra/config/loaders/workflowNormalizationPolicies.d.ts +3 -1
  421. package/dist/infra/config/loaders/workflowNormalizationPolicies.d.ts.map +1 -1
  422. package/dist/infra/config/loaders/workflowNormalizationPolicies.js +28 -0
  423. package/dist/infra/config/loaders/workflowNormalizationPolicies.js.map +1 -1
  424. package/dist/infra/config/loaders/workflowParser.d.ts +2 -2
  425. package/dist/infra/config/loaders/workflowParser.d.ts.map +1 -1
  426. package/dist/infra/config/loaders/workflowParser.js +3 -2
  427. package/dist/infra/config/loaders/workflowParser.js.map +1 -1
  428. package/dist/infra/config/loaders/workflowStepNormalizer.d.ts.map +1 -1
  429. package/dist/infra/config/loaders/workflowStepNormalizer.js +2 -1
  430. package/dist/infra/config/loaders/workflowStepNormalizer.js.map +1 -1
  431. package/dist/infra/config/observabilityConfig.d.ts +13 -0
  432. package/dist/infra/config/observabilityConfig.d.ts.map +1 -0
  433. package/dist/infra/config/observabilityConfig.js +52 -0
  434. package/dist/infra/config/observabilityConfig.js.map +1 -0
  435. package/dist/infra/config/project/projectConfig.d.ts.map +1 -1
  436. package/dist/infra/config/project/projectConfig.js +23 -5
  437. package/dist/infra/config/project/projectConfig.js.map +1 -1
  438. package/dist/infra/config/project/projectConfigTransforms.d.ts +5 -1
  439. package/dist/infra/config/project/projectConfigTransforms.d.ts.map +1 -1
  440. package/dist/infra/config/project/projectConfigTransforms.js +8 -0
  441. package/dist/infra/config/project/projectConfigTransforms.js.map +1 -1
  442. package/dist/infra/config/providerOptions.d.ts +8 -2
  443. package/dist/infra/config/providerOptions.d.ts.map +1 -1
  444. package/dist/infra/config/providerOptions.js +49 -1
  445. package/dist/infra/config/providerOptions.js.map +1 -1
  446. package/dist/infra/config/providerOptionsContract.d.ts +3 -3
  447. package/dist/infra/config/providerOptionsContract.d.ts.map +1 -1
  448. package/dist/infra/config/providerOptionsContract.js +14 -0
  449. package/dist/infra/config/providerOptionsContract.js.map +1 -1
  450. package/dist/infra/config/resolveConfigValue.d.ts.map +1 -1
  451. package/dist/infra/config/resolveConfigValue.js +18 -0
  452. package/dist/infra/config/resolveConfigValue.js.map +1 -1
  453. package/dist/infra/config/resolvedConfig.d.ts +2 -1
  454. package/dist/infra/config/resolvedConfig.d.ts.map +1 -1
  455. package/dist/infra/config/traced/tracedConfigSchema.d.ts.map +1 -1
  456. package/dist/infra/config/traced/tracedConfigSchema.js +16 -0
  457. package/dist/infra/config/traced/tracedConfigSchema.js.map +1 -1
  458. package/dist/infra/git/format.d.ts.map +1 -1
  459. package/dist/infra/git/format.js +75 -8
  460. package/dist/infra/git/format.js.map +1 -1
  461. package/dist/infra/git/index.d.ts +1 -1
  462. package/dist/infra/git/index.d.ts.map +1 -1
  463. package/dist/infra/git/types.d.ts +5 -0
  464. package/dist/infra/git/types.d.ts.map +1 -1
  465. package/dist/infra/github/pr.d.ts.map +1 -1
  466. package/dist/infra/github/pr.js +174 -28
  467. package/dist/infra/github/pr.js.map +1 -1
  468. package/dist/infra/observability/otelFoundation.d.ts +6 -0
  469. package/dist/infra/observability/otelFoundation.d.ts.map +1 -0
  470. package/dist/infra/observability/otelFoundation.js +89 -0
  471. package/dist/infra/observability/otelFoundation.js.map +1 -0
  472. package/dist/infra/opencode/client.d.ts.map +1 -1
  473. package/dist/infra/opencode/client.js +19 -15
  474. package/dist/infra/opencode/client.js.map +1 -1
  475. package/dist/infra/providers/claude-terminal.d.ts +6 -0
  476. package/dist/infra/providers/claude-terminal.d.ts.map +1 -0
  477. package/dist/infra/providers/claude-terminal.js +70 -0
  478. package/dist/infra/providers/claude-terminal.js.map +1 -0
  479. package/dist/infra/providers/index.d.ts.map +1 -1
  480. package/dist/infra/providers/index.js +2 -0
  481. package/dist/infra/providers/index.js.map +1 -1
  482. package/dist/infra/providers/provider-capabilities.d.ts +1 -0
  483. package/dist/infra/providers/provider-capabilities.d.ts.map +1 -1
  484. package/dist/infra/providers/provider-capabilities.js +16 -0
  485. package/dist/infra/providers/provider-capabilities.js.map +1 -1
  486. package/dist/infra/rate-limit/detection.d.ts +2 -0
  487. package/dist/infra/rate-limit/detection.d.ts.map +1 -1
  488. package/dist/infra/rate-limit/detection.js +14 -1
  489. package/dist/infra/rate-limit/detection.js.map +1 -1
  490. package/dist/infra/task/clone-base-branch.d.ts +11 -0
  491. package/dist/infra/task/clone-base-branch.d.ts.map +1 -1
  492. package/dist/infra/task/clone-base-branch.js +34 -4
  493. package/dist/infra/task/clone-base-branch.js.map +1 -1
  494. package/dist/infra/task/clone.d.ts +2 -1
  495. package/dist/infra/task/clone.d.ts.map +1 -1
  496. package/dist/infra/task/clone.js +20 -3
  497. package/dist/infra/task/clone.js.map +1 -1
  498. package/dist/infra/task/index.d.ts +1 -1
  499. package/dist/infra/task/index.d.ts.map +1 -1
  500. package/dist/infra/task/index.js +1 -1
  501. package/dist/infra/task/index.js.map +1 -1
  502. package/dist/infra/task/projectLocalTaktSync.d.ts.map +1 -1
  503. package/dist/infra/task/projectLocalTaktSync.js +6 -2
  504. package/dist/infra/task/projectLocalTaktSync.js.map +1 -1
  505. package/dist/infra/task/runner.d.ts +2 -2
  506. package/dist/infra/task/runner.d.ts.map +1 -1
  507. package/dist/infra/task/runner.js +4 -4
  508. package/dist/infra/task/runner.js.map +1 -1
  509. package/dist/infra/task/taskRecordMutations.d.ts +1 -1
  510. package/dist/infra/task/taskRecordMutations.d.ts.map +1 -1
  511. package/dist/infra/task/taskRecordMutations.js +5 -1
  512. package/dist/infra/task/taskRecordMutations.js.map +1 -1
  513. package/dist/infra/task/taskRetryService.d.ts +2 -2
  514. package/dist/infra/task/taskRetryService.d.ts.map +1 -1
  515. package/dist/infra/task/taskRetryService.js +4 -4
  516. package/dist/infra/task/taskRetryService.js.map +1 -1
  517. package/dist/infra/workflow/system/system-enqueue-effect.d.ts +2 -2
  518. package/dist/infra/workflow/system/system-enqueue-effect.d.ts.map +1 -1
  519. package/dist/infra/workflow/system/system-enqueue-effect.js +5 -2
  520. package/dist/infra/workflow/system/system-enqueue-effect.js.map +1 -1
  521. package/dist/shared/constants.d.ts +1 -0
  522. package/dist/shared/constants.d.ts.map +1 -1
  523. package/dist/shared/constants.js +1 -0
  524. package/dist/shared/constants.js.map +1 -1
  525. package/dist/shared/i18n/labels_en.yaml +3 -1
  526. package/dist/shared/i18n/labels_ja.yaml +3 -1
  527. package/dist/shared/prompts/en/score_direct_instruct_system_prompt.md +63 -0
  528. package/dist/shared/prompts/en/score_retry_system_prompt.md +2 -2
  529. package/dist/shared/prompts/ja/score_direct_instruct_system_prompt.md +63 -0
  530. package/dist/shared/prompts/ja/score_retry_system_prompt.md +2 -2
  531. package/dist/shared/types/provider.d.ts +1 -1
  532. package/dist/shared/types/provider.d.ts.map +1 -1
  533. package/dist/shared/utils/debug.d.ts +2 -0
  534. package/dist/shared/utils/debug.d.ts.map +1 -1
  535. package/dist/shared/utils/debug.js +1 -0
  536. package/dist/shared/utils/debug.js.map +1 -1
  537. package/dist/shared/utils/sensitiveText.d.ts +2 -0
  538. package/dist/shared/utils/sensitiveText.d.ts.map +1 -0
  539. package/dist/shared/utils/sensitiveText.js +40 -0
  540. package/dist/shared/utils/sensitiveText.js.map +1 -0
  541. package/package.json +4 -2
@@ -0,0 +1,499 @@
1
+ name: frontend-maintenance
2
+ description: Strict frontend maintenance workflow for existing production systems
3
+ workflow_config:
4
+ provider_options:
5
+ codex:
6
+ network_access: true
7
+ opencode:
8
+ network_access: true
9
+ max_steps: 30
10
+ initial_step: plan
11
+ loop_monitors:
12
+ - cycle:
13
+ - ai-antipattern-review-1st
14
+ - ai-antipattern-fix
15
+ threshold: 3
16
+ judge:
17
+ persona: supervisor
18
+ instruction: loop-monitor-ai-antipattern-fix
19
+ rules:
20
+ - condition: Healthy (making progress)
21
+ next: ai-antipattern-review-1st
22
+ - condition: Unproductive (no improvement)
23
+ next: reviewers_1
24
+ - cycle:
25
+ - reviewers_1
26
+ - fix
27
+ threshold: 3
28
+ judge:
29
+ persona: supervisor
30
+ instruction: loop-monitor-reviewers-fix
31
+ rules:
32
+ - condition: converging (findings decreasing, fixes applied)
33
+ next: reviewers_1
34
+ - condition: unproductive (same findings repeating)
35
+ next: supervise
36
+ steps:
37
+ - name: plan
38
+ edit: false
39
+ persona: planner
40
+ policy:
41
+ - design-planning
42
+ - existing-system-respect
43
+ knowledge:
44
+ - frontend
45
+ - react
46
+ - architecture
47
+ - existing-system
48
+ provider_options:
49
+ claude:
50
+ allowed_tools:
51
+ - Read
52
+ - Glob
53
+ - Grep
54
+ - Bash
55
+ - WebSearch
56
+ - WebFetch
57
+ instruction: plan-maintenance
58
+ rules:
59
+ - condition: Task analysis and planning is complete
60
+ next: write_tests
61
+ - condition: Requirements are unclear and planning cannot proceed
62
+ next: ABORT
63
+ output_contracts:
64
+ report:
65
+ - name: plan.md
66
+ format: plan-frontend
67
+ - name: write_tests
68
+ edit: true
69
+ persona: coder
70
+ policy:
71
+ - coding
72
+ - testing
73
+ - existing-system-respect
74
+ knowledge:
75
+ - frontend
76
+ - react
77
+ - architecture
78
+ - unit-testing
79
+ - e2e-testing
80
+ - existing-system
81
+ provider_options:
82
+ claude:
83
+ allowed_tools:
84
+ - Read
85
+ - Glob
86
+ - Grep
87
+ - Edit
88
+ - Write
89
+ - Bash
90
+ - WebSearch
91
+ - WebFetch
92
+ required_permission_mode: edit
93
+ instruction: write-tests-maintenance
94
+ rules:
95
+ - condition: Test creation is complete
96
+ next: implement
97
+ - condition: Skipping test creation as target is not yet implemented
98
+ next: implement
99
+ - condition: Cannot proceed with test creation
100
+ next: plan
101
+ - condition: User input required for clarification
102
+ next: write_tests
103
+ requires_user_input: true
104
+ interactive_only: true
105
+ output_contracts:
106
+ report:
107
+ - name: test-report.md
108
+ format: test-report
109
+ - name: implement
110
+ edit: true
111
+ persona: coder
112
+ policy:
113
+ - coding
114
+ - testing
115
+ - design-fidelity
116
+ - existing-system-respect
117
+ session: refresh
118
+ knowledge:
119
+ - frontend
120
+ - react
121
+ - security
122
+ - architecture
123
+ - existing-system
124
+ provider_options:
125
+ claude:
126
+ allowed_tools:
127
+ - Read
128
+ - Glob
129
+ - Grep
130
+ - Edit
131
+ - Write
132
+ - Bash
133
+ - WebSearch
134
+ - WebFetch
135
+ instruction: implement-maintenance
136
+ rules:
137
+ - condition: Implementation is complete
138
+ next: ai-antipattern-review-1st
139
+ - condition: No implementation (report only)
140
+ next: ai-antipattern-review-1st
141
+ - condition: Cannot proceed with implementation
142
+ next: ai-antipattern-review-1st
143
+ - condition: User input required
144
+ next: implement
145
+ requires_user_input: true
146
+ interactive_only: true
147
+ output_contracts:
148
+ report:
149
+ - name: maintenance-scope.md
150
+ format: maintenance-scope
151
+ - name: coder-decisions.md
152
+ format: coder-decisions
153
+ - name: ai-antipattern-review-1st
154
+ edit: false
155
+ persona: ai-antipattern-reviewer
156
+ policy:
157
+ - review
158
+ - ai-antipattern
159
+ - existing-system-respect
160
+ provider_options:
161
+ claude:
162
+ allowed_tools:
163
+ - Read
164
+ - Glob
165
+ - Grep
166
+ - WebSearch
167
+ - WebFetch
168
+ instruction: ai-antipattern-review
169
+ rules:
170
+ - condition: No AI-specific issues found
171
+ next: reviewers_1
172
+ - condition: AI-specific issues detected
173
+ next: ai-antipattern-fix
174
+ output_contracts:
175
+ report:
176
+ - name: ai-antipattern-review.md
177
+ format: ai-antipattern-review
178
+ knowledge:
179
+ - existing-system
180
+ - name: ai-antipattern-fix
181
+ edit: true
182
+ persona: coder
183
+ policy:
184
+ - coding
185
+ - testing
186
+ - design-fidelity
187
+ - existing-system-respect
188
+ session: refresh
189
+ knowledge:
190
+ - frontend
191
+ - react
192
+ - security
193
+ - architecture
194
+ - existing-system
195
+ provider_options:
196
+ claude:
197
+ allowed_tools:
198
+ - Read
199
+ - Glob
200
+ - Grep
201
+ - Edit
202
+ - Write
203
+ - Bash
204
+ - WebSearch
205
+ - WebFetch
206
+ instruction: ai-antipattern-fix
207
+ pass_previous_response: false
208
+ rules:
209
+ - condition: AI Reviewer's issues have been fixed
210
+ next: ai-antipattern-review-1st
211
+ - condition: No fix needed (verified target files/spec)
212
+ next: ai-antipattern-no-fix
213
+ - condition: Unable to proceed with fixes
214
+ next: ai-antipattern-no-fix
215
+ - name: ai-antipattern-no-fix
216
+ edit: false
217
+ persona: architecture-reviewer
218
+ policy:
219
+ - review
220
+ - existing-system-respect
221
+ provider_options:
222
+ claude:
223
+ allowed_tools:
224
+ - Read
225
+ - Glob
226
+ - Grep
227
+ rules:
228
+ - condition: ai-antipattern-review-1st's findings are valid (fix required)
229
+ next: ai-antipattern-fix
230
+ - condition: ai-antipattern-fix's judgment is valid (no fix needed)
231
+ next: reviewers_1
232
+ instruction: arbitrate
233
+ knowledge:
234
+ - existing-system
235
+ - name: reviewers_1
236
+ parallel:
237
+ - name: arch-review
238
+ edit: false
239
+ persona: architecture-reviewer
240
+ policy:
241
+ - review
242
+ - existing-system-respect
243
+ knowledge:
244
+ - architecture
245
+ - frontend
246
+ - react
247
+ - existing-system
248
+ provider_options:
249
+ claude:
250
+ allowed_tools:
251
+ - Read
252
+ - Glob
253
+ - Grep
254
+ - WebSearch
255
+ - WebFetch
256
+ rules:
257
+ - condition: approved
258
+ - condition: needs_fix
259
+ instruction: review-arch
260
+ output_contracts:
261
+ report:
262
+ - name: architect-review.md
263
+ format: architecture-review
264
+ - name: frontend-review
265
+ edit: false
266
+ persona: frontend-reviewer
267
+ policy:
268
+ - review
269
+ - design-fidelity
270
+ - existing-system-respect
271
+ knowledge:
272
+ - frontend
273
+ - react
274
+ - existing-system
275
+ provider_options:
276
+ claude:
277
+ allowed_tools:
278
+ - Read
279
+ - Glob
280
+ - Grep
281
+ - WebSearch
282
+ - WebFetch
283
+ rules:
284
+ - condition: approved
285
+ - condition: needs_fix
286
+ instruction: review-frontend
287
+ output_contracts:
288
+ report:
289
+ - name: frontend-review.md
290
+ format: frontend-review
291
+ - name: testing-review
292
+ edit: false
293
+ persona: testing-reviewer
294
+ policy:
295
+ - review
296
+ - testing
297
+ - existing-system-respect
298
+ knowledge:
299
+ - unit-testing
300
+ - e2e-testing
301
+ - existing-system
302
+ provider_options:
303
+ claude:
304
+ allowed_tools:
305
+ - Read
306
+ - Glob
307
+ - Grep
308
+ - WebSearch
309
+ - WebFetch
310
+ rules:
311
+ - condition: approved
312
+ - condition: needs_fix
313
+ instruction: review-test
314
+ output_contracts:
315
+ report:
316
+ - name: testing-review.md
317
+ format: testing-review
318
+ - name: ai-antipattern-review-2nd
319
+ edit: false
320
+ persona: ai-antipattern-reviewer
321
+ policy:
322
+ - review
323
+ - ai-antipattern
324
+ - existing-system-respect
325
+ provider_options:
326
+ claude:
327
+ allowed_tools:
328
+ - Read
329
+ - Glob
330
+ - Grep
331
+ - WebSearch
332
+ - WebFetch
333
+ instruction: ai-antipattern-review
334
+ rules:
335
+ - condition: approved
336
+ - condition: needs_fix
337
+ output_contracts:
338
+ report:
339
+ - name: ai-antipattern-review.md
340
+ format: ai-antipattern-review
341
+ knowledge:
342
+ - existing-system
343
+ rules:
344
+ - condition: all("approved")
345
+ next: reviewers_2
346
+ - condition: any("needs_fix")
347
+ next: fix
348
+ - name: reviewers_2
349
+ parallel:
350
+ - name: security-review
351
+ edit: false
352
+ persona: security-reviewer
353
+ policy:
354
+ - review
355
+ - existing-system-respect
356
+ knowledge:
357
+ - security
358
+ - existing-system
359
+ provider_options:
360
+ claude:
361
+ allowed_tools:
362
+ - Read
363
+ - Glob
364
+ - Grep
365
+ - WebSearch
366
+ - WebFetch
367
+ rules:
368
+ - condition: approved
369
+ - condition: needs_fix
370
+ instruction: review-security
371
+ output_contracts:
372
+ report:
373
+ - name: security-review.md
374
+ format: security-review
375
+ - name: qa-review
376
+ edit: false
377
+ persona: qa-reviewer
378
+ policy:
379
+ - review
380
+ - qa
381
+ - existing-system-respect
382
+ provider_options:
383
+ claude:
384
+ allowed_tools:
385
+ - Read
386
+ - Glob
387
+ - Grep
388
+ - WebSearch
389
+ - WebFetch
390
+ rules:
391
+ - condition: approved
392
+ - condition: needs_fix
393
+ instruction: review-qa
394
+ output_contracts:
395
+ report:
396
+ - name: qa-review.md
397
+ format: qa-review
398
+ knowledge:
399
+ - existing-system
400
+ rules:
401
+ - condition: all("approved")
402
+ next: supervise
403
+ - condition: any("needs_fix")
404
+ next: fix
405
+ - name: fix
406
+ edit: true
407
+ persona: coder
408
+ policy:
409
+ - coding
410
+ - testing
411
+ - design-fidelity
412
+ - existing-system-respect
413
+ knowledge:
414
+ - frontend
415
+ - react
416
+ - security
417
+ - architecture
418
+ - existing-system
419
+ provider_options:
420
+ claude:
421
+ allowed_tools:
422
+ - Read
423
+ - Glob
424
+ - Grep
425
+ - Edit
426
+ - Write
427
+ - Bash
428
+ - WebSearch
429
+ - WebFetch
430
+ required_permission_mode: edit
431
+ pass_previous_response: false
432
+ rules:
433
+ - condition: Fix complete
434
+ next: reviewers_1
435
+ - condition: Cannot proceed, insufficient info
436
+ next: plan
437
+ instruction: fix-maintenance
438
+ - name: supervise
439
+ edit: false
440
+ persona: dual-supervisor
441
+ policy:
442
+ - review
443
+ - existing-system-respect
444
+ provider_options:
445
+ claude:
446
+ allowed_tools:
447
+ - Read
448
+ - Glob
449
+ - Grep
450
+ - WebSearch
451
+ - WebFetch
452
+ instruction: supervise-maintenance
453
+ pass_previous_response: false
454
+ rules:
455
+ - condition: All validations pass and ready to merge
456
+ next: COMPLETE
457
+ - condition: Issues detected during final review
458
+ next: fix_supervisor
459
+ output_contracts:
460
+ report:
461
+ - name: supervisor-validation.md
462
+ format: supervisor-validation
463
+ - name: summary.md
464
+ format: summary
465
+ use_judge: false
466
+ knowledge:
467
+ - existing-system
468
+ - name: fix_supervisor
469
+ edit: true
470
+ persona: coder
471
+ policy:
472
+ - coding
473
+ - testing
474
+ - design-fidelity
475
+ - existing-system-respect
476
+ knowledge:
477
+ - frontend
478
+ - react
479
+ - security
480
+ - architecture
481
+ - existing-system
482
+ provider_options:
483
+ claude:
484
+ allowed_tools:
485
+ - Read
486
+ - Glob
487
+ - Grep
488
+ - Edit
489
+ - Write
490
+ - Bash
491
+ - WebSearch
492
+ - WebFetch
493
+ instruction: fix-maintenance
494
+ pass_previous_response: false
495
+ rules:
496
+ - condition: Supervisor's issues have been fixed
497
+ next: supervise
498
+ - condition: Unable to proceed with fixes
499
+ next: plan
@@ -1,5 +1,5 @@
1
1
  name: peer-review
2
- description: takt-default Phase 2. Five parallel peer reviewers (+ ai-antipattern-review-2nd) ⇄ fix loop.
2
+ description: takt-default Phase 2. Six parallel peer reviewers (+ ai-antipattern-review-2nd) ⇄ fix loop.
3
3
  subworkflow:
4
4
  callable: true
5
5
  visibility: internal
@@ -151,6 +151,28 @@ steps:
151
151
  report:
152
152
  - name: requirements-review.md
153
153
  format: requirements-review
154
+ - name: coding-review
155
+ edit: false
156
+ persona: coding-reviewer
157
+ policy: review
158
+ pass_previous_response: false
159
+ provider_options:
160
+ claude:
161
+ allowed_tools:
162
+ - Read
163
+ - Glob
164
+ - Grep
165
+ - Bash
166
+ - WebSearch
167
+ - WebFetch
168
+ instruction: review-coding
169
+ rules:
170
+ - condition: approved
171
+ - condition: needs_fix
172
+ output_contracts:
173
+ report:
174
+ - name: coding-review.md
175
+ format: coding-review
154
176
  - name: ai-antipattern-review-2nd
155
177
  edit: false
156
178
  persona: ai-antipattern-reviewer
@@ -1,5 +1,5 @@
1
1
  name: review-fix-takt-default
2
- description: "TAKT-focused multi-perspective review + fix loop (6-parallel initial review, AI antipattern pre-review on fix iterations)"
2
+ description: "TAKT-focused multi-perspective review + fix loop (6-parallel initial review, AI antipattern pre-review on fix iterations, supervisor-finding fixes)"
3
3
  workflow_config:
4
4
  provider_options:
5
5
  codex:
@@ -334,7 +334,7 @@ steps:
334
334
  - condition: All checks passed
335
335
  next: COMPLETE
336
336
  - condition: Requirements unmet, tests failing, build errors
337
- next: ABORT
337
+ next: fix_supervisor
338
338
  output_contracts:
339
339
  report:
340
340
  - name: supervisor-validation.md
@@ -342,3 +342,31 @@ steps:
342
342
  - name: summary.md
343
343
  format: summary
344
344
  use_judge: false
345
+ - name: fix_supervisor
346
+ edit: true
347
+ persona: coder
348
+ policy:
349
+ - coding
350
+ - testing
351
+ knowledge:
352
+ - takt
353
+ - architecture
354
+ provider_options:
355
+ claude:
356
+ allowed_tools:
357
+ - Read
358
+ - Glob
359
+ - Grep
360
+ - Edit
361
+ - Write
362
+ - Bash
363
+ - WebSearch
364
+ - WebFetch
365
+ required_permission_mode: edit
366
+ instruction: fix-supervisor
367
+ pass_previous_response: false
368
+ rules:
369
+ - condition: Fixes for supervisor findings complete
370
+ next: supervise
371
+ - condition: Unable to proceed with fixes
372
+ next: supervise
@@ -91,10 +91,18 @@ language: ja # 表示言語: ja | en
91
91
  # runtime:
92
92
  # prepare: [node, gradle, ./custom-script.sh]
93
93
 
94
+ # workflow YAML command gate ポリシー
95
+ # workflow_command_gates:
96
+ # custom_scripts: false
97
+
94
98
  # ワークフローレベルのオーバーライド
95
99
  # workflow_overrides:
96
100
  # quality_gates:
97
- # - "All tests pass"
101
+ # - "All tests pass" # AI への完了条件
102
+ # - type: command # step 完了時に機械実行される gate
103
+ # name: quality-check
104
+ # command: "./.takt/quality-gates/check.sh"
105
+ # timeout_ms: 300000
98
106
  # quality_gates_edit_only: true
99
107
  # steps:
100
108
  # review:
@@ -6,10 +6,13 @@
6
6
 
7
7
  1. 分解の可否を判断する
8
8
  - 変更対象ファイルを特定し、ファイル間の依存関係を確認する
9
- - 横断的関心事(共有型・ID・イベント)がある場合は分解せず1パートで実装する
9
+ - まず並行可能な責務境界を探す
10
+ - 横断的関心事(共有型・ID・イベント)がある場合も、基盤 part → 消費 part → 検証 part に段階分けできるか検討する
10
11
  - 変更ファイル数が少ない場合、リファクタ・リネーム系の場合も1パートで実装する
12
+ - `parts.length === 1` になる場合も、検証分離や段階分けができないか先に検討する
13
+ - 「実装と検証」のような巨大な単一 part は避ける
11
14
 
12
- 2. 分解する場合: フロントエンドとバックエンドでの分割を優先的に検討する
15
+ 2. 分解する場合: フロントエンドとバックエンドでの分割を優先的に検討し、難しい場合はファイルをレイヤー/モジュール単位でグループ化する
13
16
  - **デザイン参照があり、バックエンド変更が明示要件でない場合は分解しない。** UI の見た目・構造・文言・間隔は相互依存が強く、分割すると忠実再現を壊しやすいため、1パートでまとめて実装する
14
17
  - **デザイン参照がある場合、同一画面を構成する UI コンポーネント群は同じパートにまとめる。** ヘッダー・フィルタ・カード・バナー・モーダルなど、見た目の整合性に関わる要素を別パートへ分散しない
15
18
  - フロントエンド(UI・コンポーネント・スタイル)とバックエンド(API・ロジック・データ層)で分けるのが最も自然な分割軸
@@ -19,6 +22,7 @@
19
22
  - 型・インターフェースの依存がある場合は、依存元と依存先を同じグループにまとめる
20
23
  - 1つのファイルを複数のパートに割り当てない
21
24
  - テストファイルと実装ファイルは同じパートにまとめる
25
+ - 実装 part と検証 part を分ける
22
26
 
23
27
  3. 各パートに排他的なファイル担当を割り当てる
24
28
  - 各パートの instruction に以下を必ず明記する:
@@ -32,6 +36,7 @@
32
36
  - テスト済みの場合は「既存テストがパスするよう実装する」と明記する
33
37
  - 品質ゲート(Quality Gates)を参照し、必要な検証は専用の単独パートとして計画する
34
38
  - 並列の実装パートには、全体ビルド・全体テストを重複して実行させない
39
+ - npm test / npm run test:e2e:mock は各実装 part に重複して持たせない
35
40
 
36
41
  **制約:**
37
42
  - テストやビルドが必要な場合は、他パートの変更が揃った後に、単独の検証パートで実行する
@@ -0,0 +1,43 @@
1
+ Report Directory内のレビューレポートを確認し、指摘事項を既存契約を保つ最小差分で修正してください。
2
+
3
+ **修正の原則:**
4
+ - 指摘の「修正案」が示されている場合はそれに沿った対応を優先し、独自の迂回策を取らない
5
+ - 指摘の対象コードを直接修正すること。テストやドキュメントの追加で指摘を回避しない
6
+ - 指摘を「修正必須」「確認のみ」「要求外」に分ける
7
+ - 修正必須の指摘だけを対象にする
8
+ - 指摘対象外のリファクタ、改名、コメント削除、テスト期待値変更を混ぜない
9
+
10
+ **レポート参照方針:**
11
+ - Report Directory内の最新レビューレポートを一次情報として参照してください。
12
+ - 過去イテレーションのレポートは `{ファイル名}.{タイムスタンプ}` 形式で同ディレクトリに保存されています(例: `architect-review.md.20260304T123456Z`)。各レポートについて `{レポート名}.*` パターンで Glob を実行し、タイムスタンプ降順で最大2件まで読み、persists / reopened の傾向を把握してから修正に入ること。
13
+
14
+ **完了条件(以下をすべて満たすこと):**
15
+ - 今回受け取った全指摘(new / reopened)のうち、修正必須のものを修正したこと
16
+ - 同一 `family_tag` の潜在箇所を同時に修正したこと(部分修正で再発させない)
17
+ - `family_tag` ごとに最低1件の再発防止テストを追加したこと(config契約/境界チェック系は必須)
18
+ - 複数レビュアーから同一 `family_tag` の指摘が届いている場合は1件に統合して対応したこと
19
+ - 修正後に全差分を確認し、指摘や要求と無関係な変更を戻したこと
20
+
21
+ **重要**: 修正後、ビルド(型チェック)とテストを必ず実行してください。
22
+
23
+ **必須出力(見出しを含める)**
24
+ ## 作業結果
25
+ - {実施内容の要約}
26
+ ## 指摘への対応
27
+ - {修正必須、確認のみ、要求外の分類と対応}
28
+ ## 変更内容
29
+ - {必須変更と関連変更の要約}
30
+ ## 戻した不要変更
31
+ - {戻した変更。なければ「なし」}
32
+ ## ビルド結果
33
+ - {ビルド実行結果}
34
+ ## テスト結果
35
+ - {テスト実行コマンドと結果}
36
+ ## 収束ゲート
37
+ | 指標 | 件数 |
38
+ |------|------|
39
+ | new(今回修正) | {N} |
40
+ | reopened(再発修正) | {N} |
41
+ | persists(前回から継続、今回未着手) | {N} |
42
+ ## 証拠
43
+ - {確認したファイル/検索/差分/ログの要点を列挙}