@enterpriseai/cli 3.19.0 → 3.19.1

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 (362) hide show
  1. package/package.json +1 -1
  2. package/resources/gofer/.gofer-version +4 -357
  3. package/resources/gofer/agents-skills/eai/SKILL.md +365 -0
  4. package/resources/gofer/agents-skills/eai-update/SKILL.md +56 -0
  5. package/resources/gofer/agents-skills/gofer-documentation/SKILL.md +93 -0
  6. package/resources/gofer/bash-scripts/create-new-feature.sh +3 -1
  7. package/resources/gofer/bash-scripts/sync-implementation-status.sh +4 -3
  8. package/resources/gofer/bash-scripts/update-agent-context.sh +7 -8
  9. package/resources/gofer/bash-scripts/validate-artifact.sh +10 -6
  10. package/resources/gofer/bash-scripts/verify-object-type-routing-workspace.sh +184 -0
  11. package/resources/gofer/claude-commands/eai-update.md +46 -0
  12. package/resources/gofer/claude-commands/eai.md +355 -0
  13. package/resources/gofer/claude-skills/eai/SKILL.md +365 -0
  14. package/resources/gofer/claude-skills/eai-update/SKILL.md +56 -0
  15. package/resources/gofer/claude-skills/gofer-documentation/SKILL.md +93 -0
  16. package/resources/gofer/commands/0_gofer_start.md +440 -99
  17. package/resources/gofer/commands/0a_problem_validation.md +187 -27
  18. package/resources/gofer/commands/10_gofer_cloud.md +183 -23
  19. package/resources/gofer/commands/1_gofer_research.md +239 -30
  20. package/resources/gofer/commands/2_gofer_specify.md +239 -35
  21. package/resources/gofer/commands/3_gofer_plan.md +259 -43
  22. package/resources/gofer/commands/4_gofer_tasks.md +401 -81
  23. package/resources/gofer/commands/5_gofer_implement.md +375 -84
  24. package/resources/gofer/commands/6_gofer_validate.md +284 -53
  25. package/resources/gofer/commands/7_gofer_save.md +187 -26
  26. package/resources/gofer/commands/7a_stakeholder_comms.md +183 -23
  27. package/resources/gofer/commands/8_gofer_branding.md +183 -23
  28. package/resources/gofer/commands/9_gofer_tests.md +212 -23
  29. package/resources/gofer/commands/gofer_bootstrap_workspace.md +121 -8
  30. package/resources/gofer/commands/gofer_check_workspace.md +123 -8
  31. package/resources/gofer/commands/gofer_constitution.md +183 -23
  32. package/resources/gofer/commands/gofer_diagnose.md +183 -23
  33. package/resources/gofer/commands/gofer_eai_first_run.md +254 -25
  34. package/resources/gofer/commands/gofer_hydrate.md +183 -23
  35. package/resources/gofer/commands/gofer_personality.md +117 -6
  36. package/resources/gofer/commands/gofer_plan.md +117 -6
  37. package/resources/gofer/commands/gofer_side.md +117 -6
  38. package/resources/gofer/commands/gofer_spec_summary.md +183 -23
  39. package/resources/gofer/commands/gofer_tdd.md +183 -23
  40. package/resources/gofer/commands/gofer_vocabulary.md +185 -25
  41. package/resources/gofer/commands/gofer_zoom_out.md +183 -23
  42. package/resources/gofer/config/typesafe-learning-review.json +16 -0
  43. package/resources/gofer/config/typesafe-semantic-review.json +9 -0
  44. package/resources/gofer/copilot-instructions/gofer-cost.instructions.md +15 -6
  45. package/resources/gofer/copilot-instructions/typescript.instructions.md +1 -1
  46. package/resources/gofer/copilot-prompts/eai-update.prompt.md +58 -0
  47. package/resources/gofer/copilot-prompts/eai.prompt.md +367 -0
  48. package/resources/gofer/gemini/commands/gofer/eai-update.md +22 -0
  49. package/resources/gofer/gemini/commands/gofer/eai-update.toml +2 -0
  50. package/resources/gofer/gemini/commands/gofer/eai.md +357 -0
  51. package/resources/gofer/gemini/commands/gofer/eai.toml +2 -0
  52. package/resources/gofer/gemini/commands/gofer/manifest.json +3 -27
  53. package/resources/gofer/gemini/extension.json +4 -4
  54. package/resources/gofer/github-agents/eai.agent.md +83 -0
  55. package/resources/gofer/github-agents/gofer-business.agent.md +73 -4
  56. package/resources/gofer/github-agents/gofer-implement.agent.md +71 -2
  57. package/resources/gofer/github-agents/gofer-plan.agent.md +72 -2
  58. package/resources/gofer/github-agents/gofer-research.agent.md +72 -2
  59. package/resources/gofer/github-agents/gofer-validate.agent.md +72 -2
  60. package/resources/gofer/github-skills/eai/SKILL.md +365 -0
  61. package/resources/gofer/github-skills/eai-update/SKILL.md +56 -0
  62. package/resources/gofer/github-skills/gofer-documentation/SKILL.md +93 -0
  63. package/resources/gofer/grok-skills/eai/SKILL.md +267 -14
  64. package/resources/gofer/grok-skills/eai-update/SKILL.md +56 -0
  65. package/resources/gofer/hook-scripts/user-prompt-submit.mjs +58 -13
  66. package/resources/gofer/instruction-templates/base/agents-base.md +8 -4
  67. package/resources/gofer/instruction-templates/gofer/gofer-claude.md +7 -5
  68. package/resources/gofer/instruction-templates/gofer/gofer-copilot.md +10 -8
  69. package/resources/gofer/memory/constitution.md +9 -7
  70. package/resources/gofer/memory/gofer-model-policy.yaml +23 -1
  71. package/resources/gofer/memory/lessons.md +0 -31
  72. package/resources/gofer/node-scripts/canonical-descriptions.mjs +1 -1
  73. package/resources/gofer/node-scripts/check-version-alignment.mjs +4 -7
  74. package/resources/gofer/node-scripts/delivery-lineage-corpus.mjs +156 -0
  75. package/resources/gofer/node-scripts/generate-commands.mjs +1073 -265
  76. package/resources/gofer/node-scripts/gofer-acceptance-check.mjs +143 -0
  77. package/resources/gofer/node-scripts/gofer-agent-catalog.mjs +271 -0
  78. package/resources/gofer/node-scripts/gofer-benchmark-executor.mjs +123 -0
  79. package/resources/gofer/node-scripts/gofer-benchmark-sign.mjs +62 -0
  80. package/resources/gofer/node-scripts/gofer-benchmark-signer.mjs +89 -0
  81. package/resources/gofer/node-scripts/gofer-benchmark.mjs +76 -0
  82. package/resources/gofer/node-scripts/gofer-blocker-control.mjs +274 -0
  83. package/resources/gofer/node-scripts/gofer-claude-adapter.mjs +154 -0
  84. package/resources/gofer/node-scripts/gofer-closed-loop-audit.mjs +19 -2
  85. package/resources/gofer/node-scripts/gofer-delivery-check.mjs +121 -0
  86. package/resources/gofer/node-scripts/gofer-encrypted-key.mjs +58 -0
  87. package/resources/gofer/node-scripts/gofer-execution-metrics.mjs +477 -0
  88. package/resources/gofer/node-scripts/gofer-execution-recovery.mjs +334 -0
  89. package/resources/gofer/node-scripts/gofer-grok-adapter.mjs +184 -0
  90. package/resources/gofer/node-scripts/gofer-heldout-corpus.mjs +73 -0
  91. package/resources/gofer/node-scripts/gofer-heldout-snapshot.mjs +286 -0
  92. package/resources/gofer/node-scripts/gofer-heldout-verifier.mjs +211 -0
  93. package/resources/gofer/node-scripts/gofer-host-capability.mjs +335 -0
  94. package/resources/gofer/node-scripts/gofer-independent-reviewer.mjs +130 -0
  95. package/resources/gofer/node-scripts/gofer-live-routing.mjs +109 -0
  96. package/resources/gofer/node-scripts/gofer-local-capability-issuer.mjs +71 -0
  97. package/resources/gofer/node-scripts/gofer-local-isolation.mjs +175 -0
  98. package/resources/gofer/node-scripts/gofer-local-settings-cleanup.mjs +388 -0
  99. package/resources/gofer/node-scripts/gofer-loop-audit.mjs +54 -3
  100. package/resources/gofer/node-scripts/gofer-native-adapter.mjs +567 -0
  101. package/resources/gofer/node-scripts/gofer-native-benchmark-dispatch.mjs +145 -0
  102. package/resources/gofer/node-scripts/gofer-native-runtime.mjs +169 -0
  103. package/resources/gofer/node-scripts/gofer-pre-edit-check.mjs +204 -0
  104. package/resources/gofer/node-scripts/gofer-priority-check.mjs +214 -0
  105. package/resources/gofer/node-scripts/gofer-response-check.mjs +56 -0
  106. package/resources/gofer/node-scripts/gofer-reviewed-learning.mjs +1232 -0
  107. package/resources/gofer/node-scripts/gofer-run-verified-task.mjs +330 -0
  108. package/resources/gofer/node-scripts/gofer-runtime-ledger.mjs +289 -0
  109. package/resources/gofer/node-scripts/gofer-semantic-drift.mjs +584 -0
  110. package/resources/gofer/node-scripts/gofer-surface-update.mjs +1178 -0
  111. package/resources/gofer/node-scripts/gofer-trust-bootstrap.mjs +77 -0
  112. package/resources/gofer/node-scripts/gofer-trusted-benchmark.mjs +102 -0
  113. package/resources/gofer/node-scripts/gofer-trusted-evaluator.mjs +274 -0
  114. package/resources/gofer/node-scripts/gofer-tty-prompt.mjs +34 -0
  115. package/resources/gofer/node-scripts/gofer-typesafe-credentials.mjs +435 -0
  116. package/resources/gofer/node-scripts/gofer-ui-preview.mjs +1212 -0
  117. package/resources/gofer/node-scripts/gofer-verified-execution.mjs +484 -0
  118. package/resources/gofer/node-scripts/gofer-verifier-key-ceremony.mjs +101 -0
  119. package/resources/gofer/node-scripts/gofer-worktree-layout.mjs +32 -0
  120. package/resources/gofer/node-scripts/object-type-routing-phase-bundle.mjs +360 -0
  121. package/resources/gofer/node-scripts/package-agent-plugin.mjs +574 -82
  122. package/resources/gofer/node-scripts/parse-stage-command.mjs +1 -1
  123. package/resources/gofer/node-scripts/render-delivery-lineage.mjs +178 -0
  124. package/resources/gofer/node-scripts/sync-extension-resources.mjs +78 -2
  125. package/resources/gofer/node-scripts/validate-object-type-identifiers.mjs +767 -0
  126. package/resources/gofer/node-scripts/validate-object-type-routing-workspace.mjs +1325 -0
  127. package/resources/gofer/node-scripts/validate-v4-resource-contract.d.mts +44 -0
  128. package/resources/gofer/node-scripts/validate-v4-resource-contract.mjs +957 -0
  129. package/resources/gofer/node-scripts/workspace-bootstrap-lib.mjs +685 -116
  130. package/resources/gofer/references/agent-catalog.json +126 -0
  131. package/resources/gofer/references/blocker-mediation.md +156 -0
  132. package/resources/gofer/references/business-updates-and-goal-checks.md +109 -0
  133. package/resources/gofer/references/delivery-lineage.md +48 -0
  134. package/resources/gofer/references/mvp-capability-validation.md +102 -0
  135. package/resources/gofer/references/platform/README.md +1 -1
  136. package/resources/gofer/references/platform/eai-app-template.md +15 -13
  137. package/resources/gofer/references/platform/eai-auth-access.md +104 -0
  138. package/resources/gofer/references/platform/eai-config-driven-ui.md +5 -5
  139. package/resources/gofer/references/platform/eai-error-catalog.yaml +77 -19
  140. package/resources/gofer/references/platform/eai-repo-contract.md +61 -23
  141. package/resources/gofer/references/platform/eai-service-patterns.md +102 -105
  142. package/resources/gofer/references/platform/eai.md +44 -8
  143. package/resources/gofer/references/platform/vertical-template.md +10 -9
  144. package/resources/gofer/references/priority-outcome-protection.md +152 -0
  145. package/resources/gofer/references/verified-agent-execution.md +179 -0
  146. package/resources/gofer/schemas/gofer-learning-trace-v1.json +70 -0
  147. package/resources/gofer/specify-commands/0_gofer_start.md +440 -99
  148. package/resources/gofer/specify-commands/0a_problem_validation.md +187 -27
  149. package/resources/gofer/specify-commands/10_gofer_cloud.md +183 -23
  150. package/resources/gofer/specify-commands/1_gofer_research.md +239 -30
  151. package/resources/gofer/specify-commands/2_gofer_specify.md +239 -35
  152. package/resources/gofer/specify-commands/3_gofer_plan.md +259 -43
  153. package/resources/gofer/specify-commands/4_gofer_tasks.md +401 -81
  154. package/resources/gofer/specify-commands/5_gofer_implement.md +375 -84
  155. package/resources/gofer/specify-commands/6_gofer_validate.md +284 -53
  156. package/resources/gofer/specify-commands/7_gofer_save.md +187 -26
  157. package/resources/gofer/specify-commands/7a_stakeholder_comms.md +183 -23
  158. package/resources/gofer/specify-commands/8_gofer_branding.md +183 -23
  159. package/resources/gofer/specify-commands/9_gofer_tests.md +212 -23
  160. package/resources/gofer/specify-commands/gofer_bootstrap_workspace.md +121 -8
  161. package/resources/gofer/specify-commands/gofer_check_workspace.md +123 -8
  162. package/resources/gofer/specify-commands/gofer_constitution.md +183 -23
  163. package/resources/gofer/specify-commands/gofer_diagnose.md +183 -23
  164. package/resources/gofer/specify-commands/gofer_eai_first_run.md +254 -25
  165. package/resources/gofer/specify-commands/gofer_hydrate.md +183 -23
  166. package/resources/gofer/specify-commands/gofer_personality.md +117 -6
  167. package/resources/gofer/specify-commands/gofer_plan.md +117 -6
  168. package/resources/gofer/specify-commands/gofer_side.md +117 -6
  169. package/resources/gofer/specify-commands/gofer_spec_summary.md +183 -23
  170. package/resources/gofer/specify-commands/gofer_tdd.md +183 -23
  171. package/resources/gofer/specify-commands/gofer_vocabulary.md +185 -25
  172. package/resources/gofer/specify-commands/gofer_zoom_out.md +183 -23
  173. package/resources/gofer/specify-config/object-type-routing.json +24 -0
  174. package/resources/gofer/specify-config/typesafe-learning-review.json +16 -0
  175. package/resources/gofer/specify-config/typesafe-semantic-review.json +9 -0
  176. package/resources/gofer/system-skills/eai/SKILL.md +365 -0
  177. package/resources/gofer/system-skills/eai-update/SKILL.md +56 -0
  178. package/resources/gofer/system-skills/gofer-documentation/SKILL.md +93 -0
  179. package/resources/gofer/templates/build-map-template.md +64 -0
  180. package/resources/gofer/templates/business-scenarios-template.json +14 -0
  181. package/resources/gofer/templates/ciso-security-summary-template.md +3 -3
  182. package/resources/gofer/templates/context-bundle-template.md +4 -3
  183. package/resources/gofer/templates/contract-pack-template.md +8 -8
  184. package/resources/gofer/templates/cto-architecture-summary-template.md +3 -3
  185. package/resources/gofer/templates/delivery-lineage-template.json +8 -0
  186. package/resources/gofer/templates/eai-preflight-template.md +109 -68
  187. package/resources/gofer/templates/goal-ledger-template.json +1 -1
  188. package/resources/gofer/templates/gofer-model-policy.yaml +28 -6
  189. package/resources/gofer/templates/loop-contract-template.json +3 -1
  190. package/resources/gofer/templates/plan-template.md +8 -7
  191. package/resources/gofer/templates/priority-plan-template.json +29 -0
  192. package/resources/gofer/templates/proposal-review-template.md +6 -3
  193. package/resources/gofer/templates/release-capability-ledger-template.md +24 -0
  194. package/resources/gofer/templates/research-template.md +7 -6
  195. package/resources/gofer/templates/spec-summary-template.md +1 -1
  196. package/resources/gofer/templates/spec-template.md +45 -6
  197. package/resources/gofer/templates/tasks-template.md +12 -3
  198. package/resources/gofer/templates/ui-preview-brief-template.md +55 -5
  199. package/resources/gofer/templates/ui-review-log-template.md +21 -3
  200. package/resources/gofer/templates/ui-show-and-tell-template.md +46 -0
  201. package/resources/gofer/templates/visuals/capability-heatmap-template.md +2 -2
  202. package/resources/gofer/templates/working-backwards-prfaq-template.md +9 -8
  203. package/resources/linked-sources.json +2 -2
  204. package/resources/gofer/agents-skills/0_gofer_start/SKILL.md +0 -1287
  205. package/resources/gofer/agents-skills/0a_problem_validation/SKILL.md +0 -429
  206. package/resources/gofer/agents-skills/10_gofer_cloud/SKILL.md +0 -635
  207. package/resources/gofer/agents-skills/1_gofer_research/SKILL.md +0 -1159
  208. package/resources/gofer/agents-skills/2_gofer_specify/SKILL.md +0 -860
  209. package/resources/gofer/agents-skills/3_gofer_plan/SKILL.md +0 -899
  210. package/resources/gofer/agents-skills/4_gofer_tasks/SKILL.md +0 -760
  211. package/resources/gofer/agents-skills/5_gofer_implement/SKILL.md +0 -944
  212. package/resources/gofer/agents-skills/6_gofer_validate/SKILL.md +0 -2302
  213. package/resources/gofer/agents-skills/7_gofer_save/SKILL.md +0 -423
  214. package/resources/gofer/agents-skills/7a_stakeholder_comms/SKILL.md +0 -508
  215. package/resources/gofer/agents-skills/8_gofer_branding/SKILL.md +0 -315
  216. package/resources/gofer/agents-skills/9_gofer_tests/SKILL.md +0 -558
  217. package/resources/gofer/agents-skills/gofer_bootstrap_workspace/SKILL.md +0 -148
  218. package/resources/gofer/agents-skills/gofer_check_workspace/SKILL.md +0 -119
  219. package/resources/gofer/agents-skills/gofer_constitution/SKILL.md +0 -612
  220. package/resources/gofer/agents-skills/gofer_diagnose/SKILL.md +0 -114
  221. package/resources/gofer/agents-skills/gofer_eai_first_run/SKILL.md +0 -397
  222. package/resources/gofer/agents-skills/gofer_hydrate/SKILL.md +0 -561
  223. package/resources/gofer/agents-skills/gofer_personality/SKILL.md +0 -44
  224. package/resources/gofer/agents-skills/gofer_plan/SKILL.md +0 -40
  225. package/resources/gofer/agents-skills/gofer_side/SKILL.md +0 -45
  226. package/resources/gofer/agents-skills/gofer_spec_summary/SKILL.md +0 -112
  227. package/resources/gofer/agents-skills/gofer_tdd/SKILL.md +0 -112
  228. package/resources/gofer/agents-skills/gofer_vocabulary/SKILL.md +0 -112
  229. package/resources/gofer/agents-skills/gofer_zoom_out/SKILL.md +0 -112
  230. package/resources/gofer/claude-commands/0_gofer_start.md +0 -1282
  231. package/resources/gofer/claude-commands/0a_problem_validation.md +0 -424
  232. package/resources/gofer/claude-commands/10_gofer_cloud.md +0 -630
  233. package/resources/gofer/claude-commands/1_gofer_research.md +0 -1154
  234. package/resources/gofer/claude-commands/2_gofer_specify.md +0 -855
  235. package/resources/gofer/claude-commands/3_gofer_plan.md +0 -894
  236. package/resources/gofer/claude-commands/4_gofer_tasks.md +0 -755
  237. package/resources/gofer/claude-commands/5_gofer_implement.md +0 -939
  238. package/resources/gofer/claude-commands/6_gofer_validate.md +0 -2297
  239. package/resources/gofer/claude-commands/7_gofer_save.md +0 -418
  240. package/resources/gofer/claude-commands/7a_stakeholder_comms.md +0 -503
  241. package/resources/gofer/claude-commands/8_gofer_branding.md +0 -310
  242. package/resources/gofer/claude-commands/9_gofer_tests.md +0 -553
  243. package/resources/gofer/claude-commands/gofer_bootstrap_workspace.md +0 -143
  244. package/resources/gofer/claude-commands/gofer_check_workspace.md +0 -114
  245. package/resources/gofer/claude-commands/gofer_constitution.md +0 -607
  246. package/resources/gofer/claude-commands/gofer_diagnose.md +0 -109
  247. package/resources/gofer/claude-commands/gofer_eai_first_run.md +0 -392
  248. package/resources/gofer/claude-commands/gofer_hydrate.md +0 -556
  249. package/resources/gofer/claude-commands/gofer_personality.md +0 -39
  250. package/resources/gofer/claude-commands/gofer_plan.md +0 -35
  251. package/resources/gofer/claude-commands/gofer_side.md +0 -40
  252. package/resources/gofer/claude-commands/gofer_spec_summary.md +0 -107
  253. package/resources/gofer/claude-commands/gofer_tdd.md +0 -107
  254. package/resources/gofer/claude-commands/gofer_vocabulary.md +0 -107
  255. package/resources/gofer/claude-commands/gofer_zoom_out.md +0 -107
  256. package/resources/gofer/claude-skills/eai-gofer/SKILL.md +0 -56
  257. package/resources/gofer/copilot-prompts/0_gofer_start.prompt.md +0 -1308
  258. package/resources/gofer/copilot-prompts/0a_problem_validation.prompt.md +0 -429
  259. package/resources/gofer/copilot-prompts/10_gofer_cloud.prompt.md +0 -644
  260. package/resources/gofer/copilot-prompts/1_gofer_research.prompt.md +0 -1177
  261. package/resources/gofer/copilot-prompts/2_gofer_specify.prompt.md +0 -878
  262. package/resources/gofer/copilot-prompts/3_gofer_plan.prompt.md +0 -917
  263. package/resources/gofer/copilot-prompts/4_gofer_tasks.prompt.md +0 -778
  264. package/resources/gofer/copilot-prompts/5_gofer_implement.prompt.md +0 -962
  265. package/resources/gofer/copilot-prompts/6_gofer_validate.prompt.md +0 -2310
  266. package/resources/gofer/copilot-prompts/7_gofer_save.prompt.md +0 -433
  267. package/resources/gofer/copilot-prompts/7a_stakeholder_comms.prompt.md +0 -516
  268. package/resources/gofer/copilot-prompts/8_gofer_branding.prompt.md +0 -323
  269. package/resources/gofer/copilot-prompts/9_gofer_tests.prompt.md +0 -566
  270. package/resources/gofer/copilot-prompts/gofer_bootstrap_workspace.prompt.md +0 -161
  271. package/resources/gofer/copilot-prompts/gofer_check_workspace.prompt.md +0 -132
  272. package/resources/gofer/copilot-prompts/gofer_constitution.prompt.md +0 -621
  273. package/resources/gofer/copilot-prompts/gofer_diagnose.prompt.md +0 -127
  274. package/resources/gofer/copilot-prompts/gofer_eai_first_run.prompt.md +0 -410
  275. package/resources/gofer/copilot-prompts/gofer_hydrate.prompt.md +0 -571
  276. package/resources/gofer/copilot-prompts/gofer_personality.prompt.md +0 -57
  277. package/resources/gofer/copilot-prompts/gofer_plan.prompt.md +0 -53
  278. package/resources/gofer/copilot-prompts/gofer_side.prompt.md +0 -58
  279. package/resources/gofer/copilot-prompts/gofer_spec_summary.prompt.md +0 -125
  280. package/resources/gofer/copilot-prompts/gofer_tdd.prompt.md +0 -125
  281. package/resources/gofer/copilot-prompts/gofer_vocabulary.prompt.md +0 -125
  282. package/resources/gofer/copilot-prompts/gofer_zoom_out.prompt.md +0 -125
  283. package/resources/gofer/gemini/commands/gofer/0_gofer_start.md +0 -1282
  284. package/resources/gofer/gemini/commands/gofer/0_gofer_start.toml +0 -2
  285. package/resources/gofer/gemini/commands/gofer/0a_problem_validation.md +0 -424
  286. package/resources/gofer/gemini/commands/gofer/0a_problem_validation.toml +0 -2
  287. package/resources/gofer/gemini/commands/gofer/10_gofer_cloud.md +0 -630
  288. package/resources/gofer/gemini/commands/gofer/10_gofer_cloud.toml +0 -2
  289. package/resources/gofer/gemini/commands/gofer/1_gofer_research.md +0 -1154
  290. package/resources/gofer/gemini/commands/gofer/1_gofer_research.toml +0 -2
  291. package/resources/gofer/gemini/commands/gofer/2_gofer_specify.md +0 -855
  292. package/resources/gofer/gemini/commands/gofer/2_gofer_specify.toml +0 -2
  293. package/resources/gofer/gemini/commands/gofer/3_gofer_plan.md +0 -894
  294. package/resources/gofer/gemini/commands/gofer/3_gofer_plan.toml +0 -2
  295. package/resources/gofer/gemini/commands/gofer/4_gofer_tasks.md +0 -755
  296. package/resources/gofer/gemini/commands/gofer/4_gofer_tasks.toml +0 -2
  297. package/resources/gofer/gemini/commands/gofer/5_gofer_implement.md +0 -939
  298. package/resources/gofer/gemini/commands/gofer/5_gofer_implement.toml +0 -2
  299. package/resources/gofer/gemini/commands/gofer/6_gofer_validate.md +0 -2297
  300. package/resources/gofer/gemini/commands/gofer/6_gofer_validate.toml +0 -2
  301. package/resources/gofer/gemini/commands/gofer/7_gofer_save.md +0 -418
  302. package/resources/gofer/gemini/commands/gofer/7_gofer_save.toml +0 -2
  303. package/resources/gofer/gemini/commands/gofer/7a_stakeholder_comms.md +0 -503
  304. package/resources/gofer/gemini/commands/gofer/7a_stakeholder_comms.toml +0 -2
  305. package/resources/gofer/gemini/commands/gofer/8_gofer_branding.md +0 -310
  306. package/resources/gofer/gemini/commands/gofer/8_gofer_branding.toml +0 -2
  307. package/resources/gofer/gemini/commands/gofer/9_gofer_tests.md +0 -553
  308. package/resources/gofer/gemini/commands/gofer/9_gofer_tests.toml +0 -2
  309. package/resources/gofer/gemini/commands/gofer/gofer_bootstrap_workspace.md +0 -143
  310. package/resources/gofer/gemini/commands/gofer/gofer_bootstrap_workspace.toml +0 -2
  311. package/resources/gofer/gemini/commands/gofer/gofer_check_workspace.md +0 -114
  312. package/resources/gofer/gemini/commands/gofer/gofer_check_workspace.toml +0 -2
  313. package/resources/gofer/gemini/commands/gofer/gofer_constitution.md +0 -607
  314. package/resources/gofer/gemini/commands/gofer/gofer_constitution.toml +0 -2
  315. package/resources/gofer/gemini/commands/gofer/gofer_diagnose.md +0 -109
  316. package/resources/gofer/gemini/commands/gofer/gofer_diagnose.toml +0 -2
  317. package/resources/gofer/gemini/commands/gofer/gofer_eai_first_run.md +0 -392
  318. package/resources/gofer/gemini/commands/gofer/gofer_eai_first_run.toml +0 -2
  319. package/resources/gofer/gemini/commands/gofer/gofer_hydrate.md +0 -556
  320. package/resources/gofer/gemini/commands/gofer/gofer_hydrate.toml +0 -2
  321. package/resources/gofer/gemini/commands/gofer/gofer_personality.md +0 -39
  322. package/resources/gofer/gemini/commands/gofer/gofer_personality.toml +0 -2
  323. package/resources/gofer/gemini/commands/gofer/gofer_plan.md +0 -35
  324. package/resources/gofer/gemini/commands/gofer/gofer_plan.toml +0 -2
  325. package/resources/gofer/gemini/commands/gofer/gofer_side.md +0 -40
  326. package/resources/gofer/gemini/commands/gofer/gofer_side.toml +0 -2
  327. package/resources/gofer/gemini/commands/gofer/gofer_spec_summary.md +0 -107
  328. package/resources/gofer/gemini/commands/gofer/gofer_spec_summary.toml +0 -2
  329. package/resources/gofer/gemini/commands/gofer/gofer_tdd.md +0 -107
  330. package/resources/gofer/gemini/commands/gofer/gofer_tdd.toml +0 -2
  331. package/resources/gofer/gemini/commands/gofer/gofer_vocabulary.md +0 -107
  332. package/resources/gofer/gemini/commands/gofer/gofer_vocabulary.toml +0 -2
  333. package/resources/gofer/gemini/commands/gofer/gofer_zoom_out.md +0 -107
  334. package/resources/gofer/gemini/commands/gofer/gofer_zoom_out.toml +0 -2
  335. package/resources/gofer/github-skills/eai-gofer/SKILL.md +0 -56
  336. package/resources/gofer/system-skills/0_gofer_start/SKILL.md +0 -1287
  337. package/resources/gofer/system-skills/0a_problem_validation/SKILL.md +0 -429
  338. package/resources/gofer/system-skills/10_gofer_cloud/SKILL.md +0 -635
  339. package/resources/gofer/system-skills/1_gofer_research/SKILL.md +0 -1159
  340. package/resources/gofer/system-skills/2_gofer_specify/SKILL.md +0 -860
  341. package/resources/gofer/system-skills/3_gofer_plan/SKILL.md +0 -899
  342. package/resources/gofer/system-skills/4_gofer_tasks/SKILL.md +0 -760
  343. package/resources/gofer/system-skills/5_gofer_implement/SKILL.md +0 -944
  344. package/resources/gofer/system-skills/6_gofer_validate/SKILL.md +0 -2302
  345. package/resources/gofer/system-skills/7_gofer_save/SKILL.md +0 -423
  346. package/resources/gofer/system-skills/7a_stakeholder_comms/SKILL.md +0 -508
  347. package/resources/gofer/system-skills/8_gofer_branding/SKILL.md +0 -315
  348. package/resources/gofer/system-skills/9_gofer_tests/SKILL.md +0 -558
  349. package/resources/gofer/system-skills/gofer_bootstrap_workspace/SKILL.md +0 -148
  350. package/resources/gofer/system-skills/gofer_check_workspace/SKILL.md +0 -119
  351. package/resources/gofer/system-skills/gofer_constitution/SKILL.md +0 -612
  352. package/resources/gofer/system-skills/gofer_diagnose/SKILL.md +0 -114
  353. package/resources/gofer/system-skills/gofer_eai_first_run/SKILL.md +0 -397
  354. package/resources/gofer/system-skills/gofer_hydrate/SKILL.md +0 -561
  355. package/resources/gofer/system-skills/gofer_personality/SKILL.md +0 -44
  356. package/resources/gofer/system-skills/gofer_plan/SKILL.md +0 -40
  357. package/resources/gofer/system-skills/gofer_side/SKILL.md +0 -45
  358. package/resources/gofer/system-skills/gofer_spec_summary/SKILL.md +0 -112
  359. package/resources/gofer/system-skills/gofer_tdd/SKILL.md +0 -112
  360. package/resources/gofer/system-skills/gofer_vocabulary/SKILL.md +0 -112
  361. package/resources/gofer/system-skills/gofer_zoom_out/SKILL.md +0 -112
  362. package/resources/gofer/templates/ui-approval-template.md +0 -32
@@ -1,755 +0,0 @@
1
- ## Workspace Preflight
2
-
3
- Before doing stage/helper work:
4
-
5
- 1. Resolve the repository root.
6
- 2. Check the core Gofer sentinels:
7
- - `.specify/.gofer-version`
8
- - `.specify/commands/0_gofer_start.md`
9
- - `.specify/templates/spec-template.md`
10
- - `.specify/templates/loop-contract-template.json`
11
- - `.specify/templates/working-backwards-prfaq-template.md`
12
- - `.specify/templates/business-owner-summary-template.md`
13
- - `.specify/templates/cto-architecture-summary-template.md`
14
- - `.specify/templates/ciso-security-summary-template.md`
15
- - `.specify/templates/stakeholder-review-index-template.md`
16
- - `.specify/scripts/bash/create-new-feature.sh`
17
- - `.specify/scripts/node/parse-stage-command.mjs`
18
- - `.specify/scripts/node/gofer-loop-audit.mjs`
19
- - `.specify/scripts/hooks/post-tool-use.mjs`
20
- - `.specify/scripts/powershell/install-optional-tools.ps1`
21
- - `.specify/templates/gofer-model-policy.yaml`
22
- - `.specify/memory/gofer-model-policy.yaml`
23
- - `.specify/specs/`
24
- - `.specify/memory/`
25
- 3. Check host-specific repo-owned files when relevant:
26
- - Claude: `AGENTS.md`, `CLAUDE.md`, `.claude/settings.json`
27
- - Codex: `AGENTS.md`
28
- - Copilot: `.github/copilot-instructions.md`
29
- - VS Code extension mirrors Claude/Copilot/Gemini resources itself and should still keep the core scaffold healthy
30
- 4. If the repo already has the workspace checker script, prefer running:
31
- - `node .specify/scripts/node/gofer-workspace-check.mjs --host claude --json`
32
- 5. If the workspace is missing or stale, ask exactly:
33
- - **"This repo is missing or stale for Gofer. Initialize/update it now?"**
34
- 6. If the user says yes, run the Gofer workspace bootstrap helper and then resume this command from the top.
35
- 7. If the user says no, stop and explain that Gofer stage/helper work depends on the repo-owned scaffold.
36
-
37
- ---
38
- description: Generate actionable task breakdown from implementation plan
39
- ---
40
-
41
- # Gofer Tasks
42
-
43
- ## EAI Platform Session Preflight
44
-
45
- Before any Gofer stage/helper command does pipeline work:
46
-
47
- 1. Treat durable delivery as EAI Platform delivery by default, with Azure second
48
- and every other stack only by explicit exception.
49
- 2. Run `eai whoami` and confirm the EAI CLI is installed, the user is logged in,
50
- and an active workspace is visible.
51
- 3. If `eai` is missing, `eai whoami` fails, the token is expired, or no active
52
- workspace is available, stop and run `/gofer:eai-first-run` or ask the user to
53
- approve login/setup before continuing.
54
- 4. For EAI app delivery, do not continue into research, specification, planning,
55
- tasks, implementation, or validation until
56
- `.specify/specs/{feature}/eai-preflight.md` records login, workspace, template,
57
- app-readiness, and next-action evidence.
58
- 5. Do not write tokens, secrets, private workspace IDs, Entra/CIAM authority tenant IDs, or local `.env` values into
59
- Gofer artifacts; record only product-safe readiness status and evidence.
60
-
61
- ## Token And Cost Policy
62
- <!-- gofer:token-cost-policy:start -->
63
-
64
- Before spawning agents, calling tools, or loading large files:
65
-
66
- 1. Treat `.specify/memory/gofer-model-policy.yaml` as the repo-owned source of truth for simple, medium, hard, and arbiter model routing. If it is missing, run `/gofer:bootstrap-workspace` before continuing.
67
- 2. Use the cheapest capable model first.
68
- - Claude: Haiku for scouting/extraction; Sonnet for normal implementation, synthesis, validation, and security; Opus for high-risk arbitration or release-critical failures.
69
- - Codex/OpenAI: GPT mini for simple coding; GPT nano only for locate/classify/summarize/mechanical work; GPT-5.3-Codex or flagship GPT for tool-heavy coding, architecture, and release-critical validation.
70
- - Gemini: Flash-Lite for cheap large-context scan/summarize; Flash for default research synthesis; Pro for large-context architecture or high-risk arbitration.
71
- - Copilot: prefer Auto for simple and default work; ask the user before choosing a paid/high-tier picker model for hard security, architecture, or release gates.
72
- 3. Keep raw tool output out of the main conversation context. Save stable findings to `.specify/specs/{feature}/context-bundle.md`, then work from summaries.
73
- 4. Use provider prompt/context caching only for stable, non-secret prefixes: Gofer scaffold, AGENTS/CLAUDE/Copilot instructions, constitution, repo map, stage contracts, and validation rubric.
74
- 5. Before continuing after large research, planning, implementation, or validation bursts, checkpoint the durable artifacts and compact/clear/resume context when the host supports it.
75
- 6. Escalate model tier only when a cheaper pass is low-confidence, contradictory, security-sensitive, or blocking release quality.
76
- <!-- gofer:token-cost-policy:end -->
77
-
78
- ## User Input
79
-
80
- ```text
81
- $ARGUMENTS
82
- ```
83
-
84
- You **MUST** consider the user input before proceeding (if not empty).
85
-
86
- ## Execution Profile And Task Sizing
87
-
88
- Preserve the selected depth from earlier stages:
89
-
90
- - **fast**: for `docs-only` or very small low-risk changes, generate a short
91
- task list with only the work needed to deliver the change and its
92
- verification.
93
- - **standard**: generate normal dependency-ordered tasks with tests and
94
- traceability.
95
- - **full**: add tasks for contract compatibility, security review, migration or
96
- config safety, rollout/rollback, and blast-radius verification.
97
- - **dynamic**: require `workflow-dag.md`, then generate shard-aligned tasks,
98
- reducer tasks, verifier/refuter tasks, budget/stop-condition checks, and a
99
- resumable progress ledger before implementation starts.
100
-
101
- Every task should name a real file or directory when known. If ownership or
102
- files are unknown, mark that as `unknown` and add a discovery task instead of
103
- fabricating a path. Keep optional artifacts out of the plan unless they support
104
- the selected risk label. Do not convert dynamic shard tasks into implementation
105
- work until the DAG confirmation gate is resolved.
106
-
107
- ## Prerequisites
108
-
109
- This command expects in `.specify/specs/{feature}/`:
110
-
111
- - `research.md` - Codebase analysis (from /1_gofer_research)
112
- - `spec.md` - Feature specification (from /2_gofer_specify)
113
- - `plan.md` - Implementation plan (from /3_gofer_plan)
114
- - `goal-ledger.json` - Goal and re-loop contract (from /1 and /2)
115
- - `loop-contract.json` - Bounded evaluation and stop-condition contract (from /1 and /3)
116
-
117
- If missing, prompt user to run the prerequisite stage.
118
-
119
- ---
120
-
121
- ## Spec Artifact Guard
122
-
123
- Before task generation, `.specify/scripts/bash/check-prerequisites.sh --json`
124
- must confirm that `{FEATURE_DIR}/spec.md` exists, is non-empty, and is not the
125
- unfilled spec template. If the helper reports `spec.md` as missing, empty, or
126
- `template`, stop and run `/2_gofer_specify` before generating tasks. Do not
127
- infer tasks from `plan.md` alone because acceptance criteria and protected
128
- boundaries live in the spec.
129
-
130
- ## Outline
131
-
132
- 1. Context health check
133
- 2. Load context (lightweight)
134
- 3. Dispatch task generation agents (sub-agents handle heavy generation)
135
- 4. Review agent outputs
136
- 5. Engineer review gate
137
- 6. Optional multi-perspective review
138
- 7. Approval gate
139
- 8. Output: `tasks.md`, `traceability.md`, `issues.md`,
140
- `working-backwards-prfaq.md`, `prfaq-history/04-tasks.md`, and
141
- `stakeholder-review-index.md`
142
-
143
- ---
144
-
145
- ## Step 0: Context Health Check
146
-
147
- Before generating tasks, assess context window health:
148
-
149
- ```bash
150
- .specify/scripts/bash/check-context-health.sh
151
- ```
152
-
153
- - If **< 50%**: Proceed normally
154
- - If **50-70%**: Consider `/compact` before loading all artifacts
155
- - If **> 70%**: Start new session with handoff summary
156
-
157
- Task generation dispatches agents — keep main context lightweight.
158
-
159
- ---
160
-
161
- ## Step 1: Load Context (Lightweight)
162
-
163
- 1. **Run setup script**:
164
-
165
- ```bash
166
- .specify/scripts/bash/check-prerequisites.sh --json
167
- ```
168
-
169
- Parse JSON for FEATURE_DIR, AVAILABLE_DOCS
170
-
171
- 2. **Scan available documents** (do NOT load full content — agents read
172
- directly):
173
- - Note feature name from FEATURE_DIR
174
- - Note which optional docs exist: data-model.md, contracts/, quickstart.md
175
- - Note whether `loop-contract.json` exists. If missing, initialize it with
176
- `node .specify/scripts/node/gofer-loop-audit.mjs --feature-dir {FEATURE_DIR} --stage 4_tasks --init --json`
177
- - Note the tasks template path: `.specify/templates/tasks-template.md`
178
-
179
- ---
180
-
181
- ## Step 2: Dispatch Task Generation Agents
182
-
183
- **CRITICAL**: You **MUST** launch these agents using the Task tool. Do NOT
184
- perform this work inline in the main context. The main context should only
185
- orchestrate and review agent outputs.
186
-
187
- ### Agent 1: Task Breakdown Generator
188
-
189
- ```
190
- Task: subagent_type="general-purpose", model="sonnet"
191
- Prompt: "Generate a complete, dependency-ordered task breakdown for [FEATURE_NAME].
192
-
193
- Feature directory: {FEATURE_DIR}
194
-
195
- Read these files for full context:
196
- - {FEATURE_DIR}/plan.md — Implementation phases, architecture, file structure
197
- - {FEATURE_DIR}/spec.md — User stories with priorities and acceptance criteria
198
- - {FEATURE_DIR}/data-model.md — Entity definitions (read if exists)
199
- - {FEATURE_DIR}/contracts/ — API contracts (read all .md files if exists)
200
- - {FEATURE_DIR}/research.md — Technology decisions (read if exists)
201
- - {FEATURE_DIR}/loop-contract.json — eval commands, max iterations, stop conditions, and human escalation rules
202
- - .specify/templates/tasks-template.md — Task template structure
203
-
204
- Generate tasks.md organized by user story to enable independent implementation:
205
-
206
- Task Organization (REQUIRED structure):
207
- 1. Phase 1: Setup — Project initialization, shared infrastructure
208
- 2. Phase 2: Foundational — Blocking prerequisites for all user stories
209
- 3. Phase 3+: User Stories — One phase per story in priority order (P1 first)
210
- 4. Final Phase: Polish — Cross-cutting concerns, documentation
211
-
212
- Task Format (REQUIRED for every task):
213
- - [ ] [TaskID] [P?] [Story?] Description with exact file path
214
- Where:
215
- - TaskID: Sequential (T001, T002...)
216
- - [P]: Only if parallelizable with other tasks in same phase
217
- - [Story]: [US1], [US2] etc. for user story phases only
218
- - Description: Clear action with the exact file path to create/modify
219
-
220
- Each phase MUST include:
221
- - Goal statement
222
- - Independent Test Criteria (for user story phases)
223
- - Verification checklist at the end
224
-
225
- Include these sections:
226
- 1. YAML frontmatter: feature, spec, plan, status: ready, created (ISO date)
227
- 2. Overview: Total tasks, parallel opportunities, user story count
228
- 3. Dependencies: Mermaid graph showing phase dependencies
229
- 4. All phases with tasks
230
- 5. Parallel Execution Guide: Which [P] tasks can run concurrently
231
- 6. Implementation Strategy: MVP first, incremental delivery, polish last
232
- 7. Loop Evidence Tasks:
233
- - Task(s) to run each loop-contract eval command at the right phase boundary
234
- - Task(s) to append `loop-ledger.jsonl` records after each check-repair cycle
235
- - Task(s) to stop and escalate if maxIterations or stop conditions trigger
236
-
237
- Validation checks before writing:
238
- - Every plan phase has at least one task (GAP-02)
239
- - Every plan task item has a corresponding task
240
- - Every acceptance criterion maps to at least one task (GAP-03)
241
- - Every data model entity has implementing tasks
242
- - Every API contract endpoint has implementing tasks
243
- - Every loop-contract eval command maps to at least one task or verification
244
- checklist item
245
- - Every implementation phase explains what ledger evidence will be recorded
246
- - Task file paths match plan.md File Structure section
247
- - For CLI-driven platform mutations, task order must reflect authoritative
248
- store setup before orchestrator writes, orchestrator writes before CLI
249
- consumption, and platform persistence before local mirror patching.
250
-
251
- Write the complete task breakdown to {FEATURE_DIR}/tasks.md.
252
-
253
- Return a structured summary:
254
- - Total task count
255
- - Tasks per phase
256
- - Parallel opportunity count
257
- - Plan phase coverage: N/N phases covered
258
- - Acceptance criteria coverage: N/N criteria covered
259
- - Any coverage gaps found"
260
- ```
261
-
262
- ### Agent 2: Traceability Analyzer
263
-
264
- ```
265
- Task: subagent_type="general-purpose", model="haiku"
266
- Prompt: "Generate a requirement traceability artifact for [FEATURE_NAME].
267
-
268
- Feature directory: {FEATURE_DIR}
269
-
270
- Read these files:
271
- - {FEATURE_DIR}/spec.md — User stories, acceptance criteria, functional requirements
272
- - {FEATURE_DIR}/plan.md — Implementation phases, components
273
- - {FEATURE_DIR}/goal-ledger.json — goals, metrics, delivery states, re-loop triggers
274
- - {FEATURE_DIR}/loop-contract.json — loop eval commands, max iterations, stop conditions, and escalation rules
275
- - {FEATURE_DIR}/tasks.md — Task breakdown (read after Agent 1 writes it)
276
- - {FEATURE_DIR}/data-model.md — Entity definitions (read if exists)
277
- - {FEATURE_DIR}/contracts/ — API contracts (read if exists)
278
-
279
- Generate {FEATURE_DIR}/traceability.md with:
280
-
281
- 1. Goal → Story → Requirement Mapping:
282
- | Goal ID | Metric / Target | User Story | Requirement IDs | Task IDs |
283
-
284
- 2. Requirement Trace Matrix:
285
- | Requirement ID | Goal ID | Plan Phase | Task IDs | Planned Code | Planned Tests | Status |
286
-
287
- 3. Acceptance Criteria Detail:
288
- | ID | Criterion | Task(s) | Planned Code | Planned Tests | Phase |
289
-
290
- 4. Plan Phase Coverage:
291
- | Phase | Task Count | Coverage % |
292
-
293
- 5. Data Entity Coverage (if data-model.md exists):
294
- | Entity | Implementing Task(s) | Fields Covered? |
295
-
296
- 6. API Contract Coverage (if contracts/ exists):
297
- | Endpoint | Contract File | Implementing Task(s) |
298
-
299
- 7. Loop Evidence Coverage:
300
- | Eval Command | Phase Boundary | Task IDs | Ledger Evidence | Stop/Escalation Rule |
301
-
302
- 8. Coverage Summary:
303
- - Plan Phases: N/N covered
304
- - User Stories: N/N covered
305
- - Acceptance Criteria: N/N covered
306
- - Requirements with code targets: N/N covered
307
- - Requirements with test targets: N/N covered
308
- - Loop eval commands: N/N covered
309
- - Data Entities: N/N covered
310
- - API Endpoints: N/N covered
311
- - Status: VALIDATION PASSED or VALIDATION FAILED
312
-
313
- Return: overall coverage percentages and any MISSING items"
314
- ```
315
-
316
- **Run Agent 1 first**, then Agent 2 after tasks.md is written.
317
-
318
- ---
319
-
320
- ## Step 3: Review Agent Outputs
321
-
322
- After both agents complete:
323
-
324
- 1. **Review tasks.md** — Verify from Agent 1:
325
- - Tasks are specific enough for LLM execution
326
- - File paths reference real locations in the codebase
327
- - Phase dependencies make sense
328
- - Every user story phase is independently testable
329
- - Parallel markers [P] are correct (no dependency conflicts)
330
-
331
- 2. **Review traceability.md** — Check from Agent 2:
332
- - If VALIDATION FAILED: identify which coverage gaps exist
333
- - Add missing tasks for uncovered acceptance criteria
334
- - Add missing tasks for uncovered plan phases
335
- - Add missing planned code/test targets for uncovered requirements
336
- - Re-run Agent 2 if tasks.md was modified
337
-
338
- 3. **Fix coverage gaps** — Max 3 correction iterations
339
-
340
- ---
341
-
342
- ## Step 4: Engineering Review Gate (Up to 5 cycles)
343
-
344
- Before proceeding to the approval gate, run an iterative engineering review to
345
- catch misalignment early.
346
-
347
- ### Review Cycle (repeat up to 5 times)
348
-
349
- **You MUST dispatch 3 review agents in parallel** using the Task tool:
350
-
351
- **Agent 1**: engineer-review (sonnet) — cross-check spec↔plan↔tasks alignment
352
-
353
- ```
354
- Task: subagent_type="engineer-review", model="sonnet"
355
- Prompt: "Review alignment between spec.md, plan.md, and tasks.md in {FEATURE_DIR}.
356
- Find every gap, inconsistency, and misalignment. Report Red/Yellow/Gray findings."
357
- ```
358
-
359
- **Agent 2**: codebase-analyzer (sonnet) — verify file paths and code patterns
360
-
361
- ```
362
- Task: subagent_type="codebase-analyzer", model="sonnet"
363
- Prompt: "Verify that the tasks at {FEATURE_DIR}/tasks.md reference correct
364
- file paths and follow existing codebase patterns from {FEATURE_DIR}/research.md.
365
- Report Red/Yellow/Gray findings."
366
- ```
367
-
368
- **Agent 3**: validation-correctness (sonnet) — verify acceptance criteria
369
- coverage
370
-
371
- ```
372
- Task: subagent_type="validation-correctness", model="sonnet"
373
- Prompt: "Verify that every acceptance criterion in {FEATURE_DIR}/spec.md
374
- is covered by at least one task in {FEATURE_DIR}/tasks.md.
375
- Report Red/Yellow/Gray findings with coverage gaps."
376
- ```
377
-
378
- **After agents return:**
379
-
380
- 1. Classify findings: Red (blocking) / Yellow (should fix) / Gray
381
- (informational)
382
- 2. If NO Red or Yellow findings → PASS → proceed to approval gate
383
- 3. If Red or Yellow findings exist: a. Fix findings directly in tasks.md (Red
384
- first, then Yellow) b. Increment cycle counter c. If cycle <= 5 → re-run
385
- review agents d. If cycle > 5 → log remaining findings, proceed with warnings
386
-
387
- ---
388
-
389
- ## Step 5: Multi-Perspective Task Review (Optional)
390
-
391
- After task validation, optionally run multi-perspective strategies. **Skip if
392
- time-constrained.**
393
-
394
- ### Strategy #14: Cross-Cutting Concern Scanner
395
-
396
- Spawn 5 agents scanning for missing cross-cutting concerns:
397
-
398
- ```
399
- Task: subagent_type="tasks-cross-cutting-scanner", model="haiku"
400
- Prompt: "Scan tasks.md at [FEATURE_DIR]/tasks.md for missing cross-cutting concerns.
401
- Dimension [1-5]:
402
- 1: Logging/observability 2: Accessibility 3: Internationalization
403
- 4: Backward compatibility 5: Documentation
404
- Spec: [FEATURE_DIR]/spec.md"
405
- ```
406
-
407
- Run all 5 in parallel, then synthesize with judge:
408
-
409
- ```
410
- Task: subagent_type="multi-perspective-judge", model="opus"
411
- Prompt: "Judge verdict type: cross-cutting concern gap analysis.
412
- Identify which missing concerns should be added as tasks before implementation.
413
- [paste all 5 agent outputs]"
414
- ```
415
-
416
- Add HIGH priority missing tasks to tasks.md if the judge recommends them.
417
-
418
- ### Strategy #18: Rollback Strategy Planner
419
-
420
- Plan rollback for each implementation phase:
421
-
422
- ```
423
- Task: subagent_type="tasks-rollback-planner", model="haiku"
424
- Prompt: "Analyze tasks.md at [FEATURE_DIR]/tasks.md.
425
- For each phase, design a rollback plan. Identify irreversible steps that need checkpoints."
426
- ```
427
-
428
- Include rollback notes in the task document's "Implementation Strategy" section.
429
-
430
- ---
431
-
432
- ## Step 6: Generate GitHub Issues
433
-
434
- Run the issues generator:
435
-
436
- ```bash
437
- node .specify/scripts/node/generate-issues.js "$FEATURE_DIR"
438
- ```
439
-
440
- This creates `{FEATURE_DIR}/issues.md` with GitHub-ready issue definitions.
441
-
442
- ### 6.5 Update Working Backwards PR/FAQ Delivery Plan
443
-
444
- Before the approval gate:
445
-
446
- 1. Update `{FEATURE_DIR}/working-backwards-prfaq.md`.
447
- - Add Delivery / Operations FAQ content from `tasks.md`,
448
- `traceability.md`, `issues.md`, dependencies, phase ordering, launch
449
- gates, rollback/support notes, and loop eval tasks.
450
- - Update Evidence Links for `tasks.md`, `traceability.md`,
451
- `loop-contract.json`, and `issues.md`.
452
- 2. Write `{FEATURE_DIR}/prfaq-history/04-tasks.md` as an immutable snapshot.
453
- 3. Update `{FEATURE_DIR}/stakeholder-review-index.md`.
454
- - Mark Business Owner and CTO decisions that changed because of task
455
- sequencing or scope boundaries.
456
- - Add Delivery review ask for dependencies, protected files, MVP scope,
457
- parallel work, release gates, and rollback/support plan.
458
- 4. Do not remove or weaken the task approval gate. The PR/FAQ and review index
459
- summarize what is ready; `tasks.md` remains the implementation authority.
460
-
461
- ---
462
-
463
- ## Step 7: Approval Gate
464
-
465
- **IMPORTANT**: Tasks MUST be reviewed and approved before implementation begins.
466
-
467
- ### 7.1 Update Task Status
468
-
469
- Set the frontmatter status to `review`:
470
-
471
- ```yaml
472
- ---
473
- feature: [Feature Name]
474
- spec: spec.md
475
- plan: plan.md
476
- status: review # Changed from 'draft' to 'review'
477
- created: [ISO date]
478
- ---
479
- ```
480
-
481
- ### 7.2 Present for Approval
482
-
483
- Display the task summary and request explicit approval:
484
-
485
- ```
486
- ════════════════════════════════════════════════════════════════
487
- TASKS READY FOR REVIEW: [Feature Name]
488
- ════════════════════════════════════════════════════════════════
489
-
490
- Task Summary:
491
- - Total tasks: [N]
492
- - Tasks by story:
493
- - US1 (P1): [N] tasks
494
- - US2 (P2): [N] tasks
495
- - ...
496
- - Parallel opportunities: [N] tasks
497
- - MVP scope: Phase 1-3 (Setup + Foundation + US1)
498
-
499
- Files created:
500
- - {FEATURE_DIR}/tasks.md
501
- - {FEATURE_DIR}/traceability.md
502
- - {FEATURE_DIR}/loop-contract.json (updated if evaluation commands changed)
503
- - {FEATURE_DIR}/issues.md ([N] GitHub issues)
504
- - {FEATURE_DIR}/working-backwards-prfaq.md
505
- - {FEATURE_DIR}/prfaq-history/04-tasks.md
506
- - {FEATURE_DIR}/stakeholder-review-index.md
507
-
508
- ════════════════════════════════════════════════════════════════
509
- APPROVAL REQUIRED BEFORE IMPLEMENTATION
510
- ════════════════════════════════════════════════════════════════
511
-
512
- Please review tasks.md and confirm:
513
- 1. Task breakdown is complete and accurate
514
- 2. Protected files list is correct
515
- 3. Phase dependencies make sense
516
- 4. Scope boundaries are appropriate
517
-
518
- Reply with:
519
- - "approved" or "lgtm" to proceed to implementation
520
- - "modify [feedback]" to request changes
521
- - "stop" to halt the pipeline
522
-
523
- ════════════════════════════════════════════════════════════════
524
- ```
525
-
526
- ### 7.3 Handle Approval Response
527
-
528
- | Response | Action |
529
- | --------------------------- | ------------------------------------------------------------ |
530
- | `approved` / `lgtm` / `yes` | Update status to `approved`, proceed to `/5_gofer_implement` |
531
- | `modify [feedback]` | Update tasks based on feedback, re-present for approval |
532
- | `stop` | Halt pipeline, document reason in tasks.md |
533
-
534
- ### 7.4 Record Approval
535
-
536
- When approved, update frontmatter:
537
-
538
- ```yaml
539
- ---
540
- feature: [Feature Name]
541
- spec: spec.md
542
- plan: plan.md
543
- status: approved
544
- approvedBy: '[user]'
545
- approvedAt: '[ISO timestamp]'
546
- created: [ISO date]
547
- ---
548
- ```
549
-
550
- ---
551
-
552
- ## Step 8: Continue to Implementation
553
-
554
- After approval received:
555
-
556
- ```
557
- ✓ Tasks APPROVED: {FEATURE_DIR}/tasks.md
558
-
559
- Engineering Review: PASSED (cycle [N] of 5)
560
- ```
561
-
562
- **AUTO-CHAIN (MANDATORY)**: You MUST immediately invoke the next pipeline stage
563
- by calling the Skill tool with skill="/5_gofer_implement". Do NOT ask the user
564
- for confirmation. Do NOT output "Ready for next stage". Just invoke the skill
565
- NOW.
566
-
567
- ---
568
-
569
- ## Ordered Runnable Task-Generation Guidance
570
-
571
- The standard Gofer workflow is the public default. EnterpriseAI task generation
572
- is migration-only and used only when `workflowProfile` is explicitly
573
- `enterpriseai`.
574
-
575
- When the workflow profile is explicitly `enterpriseai`,
576
- `tasks.md` MUST emit deployment
577
- tasks in the following ordered chain. Each task is independently runnable and
578
- the ordering enforces scaffold before deployment so that runtime contract and
579
- deploy-doctor evidence exist before any deploy command runs.
580
-
581
- 0. **EAI readiness unblock -> `eai-preflight.md`**
582
- - If `{FEATURE_DIR}/eai-preflight.md` is missing, stale, or blocked, emit
583
- only the smallest runnable unblock tasks before normal build tasks:
584
- install/update `eai`, run `eai login`, run `eai workspace select`, confirm a
585
- workspace admin membership (platform role ID `tenant-admin`) with `eai workspace list --format json`, initialize
586
- the EAI app template with `eai init <app-name> --skip-prompts
587
- --company-workspace <workspace-id>` when confirmed, and confirm app enrollment
588
- with `eai app list/create/select`.
589
- - Do not emit object-type, UI, implementation, deployment, or service-fit
590
- tasks until EAI readiness is `ready` or explicitly deferred by the user.
591
- - Never invent workspace IDs, app keys, app URLs, or platform capabilities.
592
- Use `eai --describe`, public EAI docs, and the user's confirmed workspace/app
593
- selection as evidence.
594
- - Do not emit tasks that establish a non-EAI primary runtime, database,
595
- hosting platform, or app framework. Non-EAI technologies can appear only as
596
- approved integration/migration/exception tasks after the EAI Platform/Azure
597
- fit is recorded.
598
- 1. **EAI App Template scaffolding -> `eai init`**
599
- - Command: `eai init <app-name> --skip-prompts --company-workspace <workspace-id>`
600
- - Produces the working directory and provider-neutral `eai.runtime.json`
601
- expected by subsequent runtime and deployment tasks.
602
- 2. **Local validation -> `eai runtime validate` and `eai verify`**
603
- - Commands: `eai runtime validate` and `eai verify`
604
- - Confirms the runtime contract, workspace/workflow configuration, and platform
605
- readiness before any deploy attempt.
606
- - For selected EAI-maintained source, include a read-only source validation
607
- task before implementation and after app edits:
608
- `node .specify/scripts/node/eai-app-template-readiness.mjs --root . --source eai-managed --json`.
609
- Verify `eai deploy source validate --help` first. Preserve an explicitly
610
- selected CLI with `--cli <executable>`. Include all customer-authored app
611
- files, including runners, tests, backend code, scripts, documentation, and
612
- supported dot configuration. Preserve protected EAI authentication,
613
- platform-service, deployment, and workflow controls from
614
- `.specify/references/platform/eai-app-template.md`.
615
- A failed check blocks managed-source readiness and publication. Never omit
616
- business changes or customer app files, or restore files automatically.
617
- Unsupported custom runtimes must fail explicitly, never trigger source omission.
618
- 3. **Pinned `eai major.minor` deployment tasks -> `eai deploy`**
619
- - Command: `eai deploy trigger --repo <org/repo>`
620
- - Inherits the `major.minor` pin recorded in `plan.md`.
621
- 4. **Post-deploy smoke gate -> `eai deploy doctor`**
622
- - Command: `mkdir -p .eai && eai deploy doctor --url <deployed-url> --format json > .eai/deploy-doctor.json`
623
- - Captures black-box runtime smoke evidence for `/health`, Auth.js,
624
- PublicAPI/BFF reachability, workspace/workflow config, and declared smoke
625
- tests.
626
-
627
- <!-- prettier-ignore -->
628
- The ordering above is non-negotiable: tasks.md MUST instruct the pipeline to scaffold before deployment, validate before deploy, invoke pinned `eai major.minor` deployment tasks, and then capture deploy-doctor evidence. Breaking the order causes deployment preflight gating in `/5_gofer_implement` to fail.
629
-
630
- ### App-Delivery Preconditions Inside Shared Stages
631
-
632
- For **application delivery**, task generation MUST treat the UI-first gate as a
633
- precondition to downstream implementation tasks:
634
-
635
- - If `{FEATURE_DIR}/ui-approval.md` does not exist or is not approved, emit
636
- only the blocking preview/approval tasks needed to reach approval; do **not**
637
- emit downstream implementation tasks as if the UI were already settled.
638
- - If `{FEATURE_DIR}/service-fit-matrix.md` is missing or does not distinguish
639
- accessible now vs purchasable vs unavailable platform capabilities, emit a
640
- blocking service-fit task group before normal build tasks.
641
- - The first normal build tasks must use the EAI app template, EAI CLI, EAI
642
- platform services, and Azure-compatible deployment/supporting services before
643
- any custom or third-party implementation task.
644
- - Use the EAI App Template already scaffolded by `eai` as the default UI
645
- lego-block source. Any create-new UI concept must appear as an explicit
646
- exception task with rationale.
647
- - Add a block-catalog task before any UI implementation task. It MUST run
648
- `eai --describe`, `eai blocks list`, `eai blocks describe <id>` for selected
649
- blocks, and `eai resources schema --format json`; task notes must cite block
650
- IDs, resource fields, data/action bindings, package lane, coupling status,
651
- Storybook story IDs, theme override points, and approved custom-block
652
- exceptions.
653
- - Add package-profile tasks that lock the external/internal/hybrid profile
654
- choice and the package lane before any public, shared, or app-local block
655
- implementation begins.
656
- - Add block-porting tasks for every selected EAI App Template block that must
657
- move into a reusable package lane, including Storybook story ID coverage,
658
- theme override points, exports, and compatibility checks.
659
- - Add source-platform decoupling tasks whenever a block or package lane is not
660
- restricted-source and still depends on source-platform internals; the task must define the
661
- resource-schema or adapter boundary and the regression proof that source-platform coupling is no
662
- longer required by the public surface.
663
- - Add public-readiness tasks for external and hybrid profiles covering public
664
- exports, docs/examples where already part of the package surface,
665
- accessibility/theming contracts, consumer smoke tests, and unsupported
666
- custom-block exceptions.
667
- - For **non-app work**, keep the shared numbered stages but skip these
668
- preview/approval/service-fit prerequisites.
669
-
670
- ### EnterpriseAI Contract, Reuse, and Red/Green Tasks
671
-
672
- `tasks.md` MUST also include:
673
-
674
- - EAI readiness unblock -> `eai-preflight.md` before any remote platform task.
675
- - App resource provisioning -> `eai app provision` before any claim of
676
- object-type seeding or preview readiness.
677
- - Object-type publish -> `eai types seed` only after provisioning and
678
- validation are complete.
679
- - Schema and storage health -> `eai resources schema` / storage diagnostics / `eai verify`
680
- before preview/runtime signoff.
681
- - Pinned `eai major.minor` deployment tasks whenever deployment, rollout, or
682
- environment coordination depends on a specific EAI CLI generation.
683
- - Contract-pack coverage tasks for actors, object types, workflows/journeys,
684
- permissions/workspace boundaries, APIs/events, deployment assumptions, and
685
- acceptance tests.
686
- - AI-augmented journey tasks for app delivery: one task group for each of the
687
- four-or-fewer journey steps covering user experience, chatbot/voice/
688
- accessibility/translation support, contextual prefill, completion validation,
689
- human review, audit trail, and fallback/escalation.
690
- - App-delivery preview/approval tasks that:
691
- - build the first MVP from EAI App Template blocks
692
- - select only known `eai blocks` IDs unless a custom-block exception exists
693
- - preserve package lane, external/internal/hybrid profile choice, coupling
694
- status, Storybook story IDs, and theme override points from the approved
695
- preview brief
696
- - apply approved branding/logo work when in scope
697
- - collect screenshot or Playwright-style self-review evidence
698
- - update `ui-review-log.md`
699
- - block downstream work until `ui-approval.md` is approved
700
- - App-delivery service-fit tasks that update `service-fit-matrix.md` using
701
- workspace context evidence from `eai --describe`, `eai whoami`, `eai workspace
702
- select`, `eai resources schema --format json`, `eai workflow readiness
703
- --format json`, `eai verify calls --format json`, or equivalent approved
704
- platform evidence.
705
- - A scope-control task that checks whether any user-facing app process exceeds
706
- four steps and either combines/automates extra steps or records the approved
707
- exception and rationale.
708
- - Reuse-before-create tasks before any new EnterpriseAI object type, API/event,
709
- workflow, module, or spec concept is created.
710
- - Test-first red/green tasks: generate spec-derived tests, verify they fail
711
- against missing or incomplete implementation, implement in a separate task,
712
- then re-run validation.
713
- - Audit-history tasks that preserve stable finding IDs, recurring findings,
714
- accepted exceptions, owner, expiry, and review cadence.
715
-
716
- ### CLI-Driven Platform State Ordering
717
-
718
- When a command-line workflow is expected to update platform state, `tasks.md`
719
- MUST order work like this unless the plan proves a different authoritative
720
- dependency:
721
-
722
- 0. Respect the real EAI app gates before any claim of seeding, schema
723
- readiness, or preview readiness.
724
- 1. Define or extend the authoritative storage model.
725
- 2. Implement platform-side orchestrator writes into those stores.
726
- 3. Implement secret/config persistence if secrets or environment state are part
727
- of the success contract.
728
- 4. Implement CLI or UX consumption of the new platform response.
729
- 5. Add regression tests for create, repair, recovery, and failure gates.
730
-
731
- The CLI must not be treated as the source of truth when the plan says the
732
- platform owns persistence.
733
-
734
- ---
735
-
736
- ## Observability Logging
737
-
738
- At stage completion, log metrics:
739
-
740
- ```bash
741
- .specify/scripts/bash/log-stage.sh 4_tasks --complete --tokens [N] --compactions [N]
742
- ```
743
-
744
- Logs to: `.specify/logs/pipeline.jsonl`
745
-
746
- ---
747
-
748
- ## Key Rules
749
-
750
- - Use absolute paths for all file references
751
- - Every task must have a file path
752
- - Tasks must be specific enough for LLM execution
753
- - Each user story phase must be independently testable
754
- - Tests are OPTIONAL - only include if specified in requirements
755
- - Log stage completion for observability tracking