@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,917 +0,0 @@
1
- ---
2
- name: 3_gofer_plan
3
- description: Create a detailed technical implementation plan with architecture, data model, and contracts.
4
- agent: copilot-workspace
5
- tools:
6
- - Read
7
- - Grep
8
- - Glob
9
- - Bash
10
- - WebSearch
11
- argument-hint: feature-name-or-description
12
- gofer:
13
- workflowProfile: standard
14
- canonicalSource: .specify/commands/3_gofer_plan.md
15
- canonicalChecksum: 509ac99f326d64be668588439436215d80808244661c2096db75068eb1fc372f
16
- metadataSource: scripts/generate-commands.ts
17
- ---
18
-
19
- ## Workspace Preflight
20
-
21
- Before doing stage/helper work:
22
-
23
- 1. Resolve the repository root.
24
- 2. Check the core Gofer sentinels:
25
- - `.specify/.gofer-version`
26
- - `.specify/commands/0_gofer_start.md`
27
- - `.specify/templates/spec-template.md`
28
- - `.specify/templates/loop-contract-template.json`
29
- - `.specify/templates/working-backwards-prfaq-template.md`
30
- - `.specify/templates/business-owner-summary-template.md`
31
- - `.specify/templates/cto-architecture-summary-template.md`
32
- - `.specify/templates/ciso-security-summary-template.md`
33
- - `.specify/templates/stakeholder-review-index-template.md`
34
- - `.specify/scripts/bash/create-new-feature.sh`
35
- - `.specify/scripts/node/parse-stage-command.mjs`
36
- - `.specify/scripts/node/gofer-loop-audit.mjs`
37
- - `.specify/scripts/hooks/post-tool-use.mjs`
38
- - `.specify/scripts/powershell/install-optional-tools.ps1`
39
- - `.specify/templates/gofer-model-policy.yaml`
40
- - `.specify/memory/gofer-model-policy.yaml`
41
- - `.specify/specs/`
42
- - `.specify/memory/`
43
- 3. Check host-specific repo-owned files when relevant:
44
- - Claude: `AGENTS.md`, `CLAUDE.md`, `.claude/settings.json`
45
- - Codex: `AGENTS.md`
46
- - Copilot: `.github/copilot-instructions.md`
47
- - VS Code extension mirrors Claude/Copilot/Gemini resources itself and should still keep the core scaffold healthy
48
- 4. If the repo already has the workspace checker script, prefer running:
49
- - `node .specify/scripts/node/gofer-workspace-check.mjs --host copilot --json`
50
- 5. If the workspace is missing or stale, ask exactly:
51
- - **"This repo is missing or stale for Gofer. Initialize/update it now?"**
52
- 6. If the user says yes, run the Gofer workspace bootstrap helper and then resume this command from the top.
53
- 7. If the user says no, stop and explain that Gofer stage/helper work depends on the repo-owned scaffold.
54
-
55
-
56
- # Gofer Plan
57
-
58
- ## EAI Platform Session Preflight
59
-
60
- Before any Gofer stage/helper command does pipeline work:
61
-
62
- 1. Treat durable delivery as EAI Platform delivery by default, with Azure second
63
- and every other stack only by explicit exception.
64
- 2. Run `eai whoami` and confirm the EAI CLI is installed, the user is logged in,
65
- and an active workspace is visible.
66
- 3. If `eai` is missing, `eai whoami` fails, the token is expired, or no active
67
- workspace is available, stop and run `/gofer:eai-first-run` or ask the user to
68
- approve login/setup before continuing.
69
- 4. For EAI app delivery, do not continue into research, specification, planning,
70
- tasks, implementation, or validation until
71
- `.specify/specs/{feature}/eai-preflight.md` records login, workspace, template,
72
- app-readiness, and next-action evidence.
73
- 5. Do not write tokens, secrets, private workspace IDs, Entra/CIAM authority tenant IDs, or local `.env` values into
74
- Gofer artifacts; record only product-safe readiness status and evidence.
75
-
76
- ## Token And Cost Policy
77
- <!-- gofer:token-cost-policy:start -->
78
-
79
- Before spawning agents, calling tools, or loading large files:
80
-
81
- 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.
82
- 2. Use the cheapest capable model first.
83
- - Claude: Haiku for scouting/extraction; Sonnet for normal implementation, synthesis, validation, and security; Opus for high-risk arbitration or release-critical failures.
84
- - 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.
85
- - Gemini: Flash-Lite for cheap large-context scan/summarize; Flash for default research synthesis; Pro for large-context architecture or high-risk arbitration.
86
- - 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.
87
- 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.
88
- 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.
89
- 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.
90
- 6. Escalate model tier only when a cheaper pass is low-confidence, contradictory, security-sensitive, or blocking release quality.
91
- <!-- gofer:token-cost-policy:end -->
92
-
93
- ## User Input
94
-
95
- ```text
96
- $ARGUMENTS
97
- ```
98
-
99
- You **MUST** consider the user input before proceeding (if not empty).
100
-
101
- ## Execution Profile And Planning Surface
102
-
103
- Use the research/spec risk classification to choose planning depth:
104
-
105
- - **fast**: produce the smallest viable plan, only for docs-only or very small
106
- low-risk work.
107
- - **standard**: produce the normal plan, data/contracts only when relevant, and
108
- a concrete test strategy. Standard is the catch-all for work that is not fast,
109
- full, or dynamic.
110
- - **full**: include contract compatibility, auth/security, data migration,
111
- infra/config, rollback, and release sequencing where the generic risk labels
112
- require them.
113
- - **dynamic**: produce a workflow DAG, shard plan, reducer plan,
114
- verifier/refuter pass, resumable progress ledger, budget limits, and stop
115
- conditions before implementation starts.
116
-
117
- Avoid artifact churn. Optional diagrams, extended architecture councils,
118
- generated issue packs, and broad release plans are only warranted when risk is
119
- full/dynamic-depth or the user asks for them.
120
-
121
- ## Prerequisites
122
-
123
- This command expects in `.specify/specs/{feature}/`:
124
-
125
- - `research.md` - Codebase analysis (from #1_gofer_research)
126
- - `spec.md` - Feature specification (from #2_gofer_specify)
127
- - `goal-ledger.json` - Objective ledger and re-loop triggers (from /1 and /2)
128
- - `loop-contract.json` - Bounded check-repair contract (from /1 and /2)
129
-
130
- If missing, prompt user to run the prerequisite stage.
131
-
132
- ---
133
-
134
- ## Spec Artifact Guard
135
-
136
- `spec.md` is the source of truth for scope, acceptance criteria, protected
137
- boundaries, and downstream traceability. Before planning, the setup script must
138
- confirm `{FEATURE_DIR}/spec.md` exists, is non-empty, and is not the raw
139
- `spec-template.md` placeholder seeded by feature bootstrap. If
140
- `.specify/scripts/bash/setup-plan.sh --json` reports that `spec.md` is missing,
141
- empty, or `template`, stop and run `#2_gofer_specify`; do not create or refresh
142
- `plan.md` from research alone.
143
-
144
- ## Outline
145
-
146
- 1. Context health check
147
- 2. Load context (lightweight)
148
- 3. Dispatch parallel planning agents (sub-agents handle heavy generation)
149
- 4. Review agent outputs
150
- 5. Optional multi-perspective review
151
- 6. Spec coverage validation
152
- 7. Output: `plan.md`, `data-model.md`, `contracts/`, `quickstart.md`
153
- 8. Stakeholder PR/FAQ output: `working-backwards-prfaq.md`,
154
- `prfaq-history/03-plan.md`, `cto-architecture-summary.md`, and
155
- `stakeholder-review-index.md`
156
- 9. EnterpriseAI profile output: task-ready references to `context-bundle.md`,
157
- `contract-pack.md`, `reuse-scan.md`, `audit-history.md`, and for app
158
- delivery `ui-review-log.md`, `ui-approval.md`, and
159
- `service-fit-matrix.md`, including public-readiness, block-porting, source platform
160
- decoupling, Storybook, theme override, and package-profile decisions
161
- 10. Dynamic-only output: `workflow-dag.md` with shards, inputs, outputs,
162
- reducer expectations, verifier/refuter evidence, budget limits, stop
163
- conditions, and resumable progress location
164
-
165
- ---
166
-
167
- ## Step 0: Context Health Check
168
-
169
- Before starting planning, assess context window health:
170
-
171
- ```bash
172
- .specify/scripts/bash/check-context-health.sh
173
- ```
174
-
175
- - If **< 50%**: Proceed normally
176
- - If **50-70%**: Consider `/compact` - planning loads multiple documents
177
- - If **> 70%**: Start new session with handoff summary
178
-
179
- Planning dispatches multiple agents — keep main context lightweight.
180
-
181
- ---
182
-
183
- ## Step 1: Load Context (Lightweight)
184
-
185
- 1. **Run setup script**:
186
-
187
- ```bash
188
- .specify/scripts/bash/setup-plan.sh --json
189
- ```
190
-
191
- Parse JSON for FEATURE_DIR, FEATURE_SPEC, BRANCH
192
-
193
- 2. **Scan existing documents** (do NOT load full content — agents read
194
- directly):
195
- - Note feature name from FEATURE_DIR
196
- - Note whether `discovery.md`, `.specify/memory/constitution.md` exist
197
- - Note whether `ui-preview-brief.md`, `ui-review-log.md`,
198
- `ui-approval.md`, and `service-fit-matrix.md` exist
199
- - Note external/internal/hybrid profile choice, package lane, coupling
200
- status, Storybook story IDs, theme override points, custom-block
201
- exceptions, and public-readiness status when app delivery applies
202
- - Note whether `goal-ledger.json` exists and which goals, delivery states,
203
- and re-loop triggers must remain valid through planning
204
- - Note whether `loop-contract.json` exists and which evaluation commands,
205
- maximum iterations, stop conditions, and escalation triggers must be
206
- reflected in implementation phases
207
- - If loop-contract.json is missing, initialize it with
208
- `node .specify/scripts/node/gofer-loop-audit.mjs --feature-dir {FEATURE_DIR} --stage 3_plan --init --json`
209
- - Note whether `{FEATURE_DIR}/sequence-diagrams/selected-option.md` exists
210
-
211
- 3. **Note template path**: `.specify/templates/plan-template.md`
212
-
213
- ---
214
-
215
- ## Step 2: Dispatch Planning Agents
216
-
217
- **CRITICAL**: You **MUST** launch these agents using the Task tool. Do NOT
218
- perform this work inline in the main context. The main context should only
219
- orchestrate and review agent outputs. Each agent reads source documents
220
- independently and writes its output artifact.
221
-
222
- ### Agent 1: Implementation Plan Writer
223
-
224
- ```
225
- Task: subagent_type="general-purpose", model="sonnet"
226
- Prompt: "Generate a complete technical implementation plan for [FEATURE_NAME].
227
-
228
- Feature directory: {FEATURE_DIR}
229
-
230
- Read these files for full context:
231
- - {FEATURE_DIR}/research.md — Technology decisions, integration points, patterns, constraints
232
- - {FEATURE_DIR}/spec.md — User stories, requirements, success criteria
233
- - {FEATURE_DIR}/goal-ledger.json — business goals, metrics, delivery states, and re-loop triggers
234
- - {FEATURE_DIR}/loop-contract.json — bounded loop objective, evaluation commands, max iterations, stop conditions, and escalation rules
235
- - {FEATURE_DIR}/ui-preview-brief.md — app-delivery preview brief (read if exists, skip if not)
236
- - {FEATURE_DIR}/ui-review-log.md — app-delivery preview iteration history (read if exists, skip if not)
237
- - {FEATURE_DIR}/ui-approval.md — app-delivery approval state (read if exists, skip if not)
238
- - {FEATURE_DIR}/service-fit-matrix.md — app-delivery capability selections (read if exists, skip if not)
239
- - .specify/templates/plan-template.md — Plan template structure
240
- - .specify/memory/constitution.md — Project principles (read if exists)
241
- - {FEATURE_DIR}/sequence-diagrams/selected-option.md — Selected approach (read if exists)
242
-
243
- Generate the COMPLETE plan.md with these sections:
244
-
245
- 1. YAML frontmatter: feature, spec, research, status: ready, created (ISO date)
246
- 2. Technical Context:
247
- - Tech Stack (language, framework, database, testing — from research)
248
- - Architecture (how components fit together, with diagram description)
249
- - Integration Points table (Component | File | Integration Type)
250
- - Key Dependencies (existing modules, libraries)
251
- 3. Selected Implementation Approach (if selected-option.md exists):
252
- - Option number, scores, Gen AI touchpoints
253
- 4. Constitution Check (if constitution.md exists):
254
- - Verify alignment with each project principle
255
- 5. Implementation Phases (5 phases):
256
- - Phase 1: Setup & Foundation (directory structure, config, deps, base types)
257
- - Phase 2: Data Layer (entities, persistence, validation)
258
- - Phase 3: Business Logic (services per user story, business rules, integrations)
259
- - Phase 4: API/Interface Layer (endpoints per contracts, validation, auth)
260
- - Phase 5: Polish & Integration (logging, docs, performance, final testing)
261
- Each phase must have: Goal, Tasks (checkboxed), Verification criteria
262
- 6. File Structure (tree diagram of all new/modified files)
263
- 7. Risk Assessment table (Risk | Impact | Mitigation)
264
- 8. Spec Traceability:
265
- - User Story Coverage (Story | Status | Plan References)
266
- - Requirement Coverage (FR-ID | Status | Plan Reference)
267
- Verify 100% coverage of all user stories and functional requirements.
268
- 9. Goal Reconciliation And Dual-State Delivery:
269
- - Goal IDs, outcome metrics, target thresholds, and where they are delivered
270
- - Delivery states (`mock`, `hybrid`, `live`) plus promotion criteria
271
- - Re-loop triggers that should send the feature back to specify, plan, tasks,
272
- or validate when contracts, UX scope, assumptions, or implementation drift
273
- 10. Loop Engineering Plan:
274
- - Evaluation commands from loop-contract.json and where they run
275
- - Maximum check-repair iteration count per implementation/validation loop
276
- - Stop conditions and human escalation triggers
277
- - Required ledger evidence to append after each focused loop
278
- 11. AI-Readable Blocks Bridge:
279
- - Package profile choice: external, internal, or hybrid
280
- - Package lane for each UI block or package surface
281
- - Coupling status, including source-platform decoupling boundary or approved
282
- restricted-source exception
283
- - Block porting plan with stable block IDs, Storybook story IDs, theme
284
- override points, and custom-block exceptions
285
- - Public-readiness tasks required before an external or hybrid package is
286
- considered complete
287
-
288
- Rules:
289
- - Every user story from spec.md MUST have plan coverage
290
- - Every acceptance criterion MUST map to a plan component
291
- - Every functional requirement MUST be addressed
292
- - Reference specific file paths for all components
293
- - Plan must be specific enough for task generation
294
- - Resolve all unknowns — no NEEDS CLARIFICATION in the plan
295
- - App-delivery plans MUST make public-readiness, block porting, source platform
296
- decoupling, Storybook coverage, theme overrides, and package-profile work
297
- visible enough for `#4_gofer_tasks` to emit first-class runnable tasks
298
- - Keep `goal-ledger.json` aligned with any planning-level changes to goals,
299
- delivery states, or re-loop triggers
300
- - Keep `loop-contract.json` aligned with plan-level verification commands, stop
301
- conditions, and release-critical escalation paths
302
-
303
- Write the complete plan to {FEATURE_DIR}/plan.md.
304
-
305
- Return a structured summary:
306
- - Phase count and task count per phase
307
- - User story coverage: N/N covered
308
- - FR coverage: N/N covered
309
- - Key architecture decisions made
310
- - Any risks flagged as HIGH"
311
- ```
312
-
313
- ### Agent 2: Data Model Designer
314
-
315
- ```
316
- Task: subagent_type="general-purpose", model="sonnet"
317
- Prompt: "Design the data model for feature [FEATURE_NAME].
318
-
319
- Feature directory: {FEATURE_DIR}
320
-
321
- Read these files:
322
- - {FEATURE_DIR}/spec.md — User stories, requirements, key entities
323
- - {FEATURE_DIR}/research.md — Existing data patterns, database context
324
-
325
- If spec.md defines Key Entities or the feature involves data:
326
-
327
- Generate {FEATURE_DIR}/data-model.md with:
328
- 1. Entity definitions with field tables (Field | Type | Required | Description)
329
- 2. Validation rules for each entity
330
- 3. Relationships between entities
331
- 4. State transition diagrams (Mermaid stateDiagram-v2) where applicable
332
- 5. Database considerations (indexing, migration approach)
333
- 6. Entity-to-UserStory mapping (which stories need which entities)
334
-
335
- If the feature does NOT involve data entities:
336
- Write a minimal data-model.md noting 'No data entities required for this feature.'
337
-
338
- Return: entity count, relationship count, entities with state machines"
339
- ```
340
-
341
- ### Agent 3: API Contract Designer
342
-
343
- ```
344
- Task: subagent_type="general-purpose", model="sonnet"
345
- Prompt: "Design API contracts for feature [FEATURE_NAME].
346
-
347
- Feature directory: {FEATURE_DIR}
348
-
349
- Read these files:
350
- - {FEATURE_DIR}/spec.md — Functional requirements implying API endpoints
351
- - {FEATURE_DIR}/research.md — Existing API patterns, conventions
352
-
353
- If spec.md implies API endpoints (REST, internal, events):
354
-
355
- Create contract files in {FEATURE_DIR}/contracts/:
356
- - api.md — For REST/HTTP endpoints
357
- - internal-api.md — For service-to-service contracts
358
- - events.md — For event-based contracts
359
-
360
- Each endpoint must include:
361
- - Method and path
362
- - Description
363
- - Request schema (JSON example)
364
- - Response schema (JSON example with status code)
365
- - Error codes table (Code | Description)
366
- - Which user story/FR it serves
367
-
368
- If the feature has NO APIs:
369
- Create {FEATURE_DIR}/contracts/api.md noting 'No API endpoints required.'
370
-
371
- Return: endpoint count, contract files created, user stories served"
372
- ```
373
-
374
- ### Agent 4: Quickstart Guide Writer
375
-
376
- ```
377
- Task: subagent_type="general-purpose", model="haiku"
378
- Prompt: "Generate a quickstart testing guide for feature [FEATURE_NAME].
379
-
380
- Feature directory: {FEATURE_DIR}
381
-
382
- Read these files:
383
- - {FEATURE_DIR}/spec.md — What to test (acceptance criteria)
384
- - {FEATURE_DIR}/research.md — Tech stack and testing framework info
385
-
386
- Write {FEATURE_DIR}/quickstart.md with:
387
- 1. Prerequisites (what needs to be installed/configured)
388
- 2. Setup steps (how to get the feature running)
389
- 3. Manual Testing section (step-by-step test scenarios from acceptance criteria)
390
- 4. Automated Tests section (test commands)
391
- 5. Key Files table (File | Purpose)
392
- 6. Common Issues section (anticipated problems and solutions)
393
-
394
- Return: scenario count, prerequisite count"
395
- ```
396
-
397
- **Run all 4 agents in parallel.** Agents 2-4 read spec.md independently while
398
- Agent 1 generates the plan.
399
-
400
- ### Agent 5-7: Visual Writers (Persona-Pack)
401
-
402
- After the planning agents complete and write plan.md, data-model.md, and
403
- contracts, dispatch three visual-writer sub-agents in parallel to produce the
404
- developer-persona-pack visuals:
405
-
406
- ```
407
- Task: subagent_type="visual-c4-writer", model="haiku"
408
- Prompt: "Generate C4 Context and Container diagrams for {FEATURE_NAME}.
409
- Feature dir: {FEATURE_DIR}. Read spec.md, research.md, plan.md.
410
- Output to {FEATURE_DIR}/visuals/c4-context.md and c4-container.md."
411
-
412
- Task: subagent_type="visual-bounded-context-writer", model="haiku"
413
- Prompt: "Generate bounded-context map for {FEATURE_NAME}.
414
- Feature dir: {FEATURE_DIR}. Read plan.md, data-model.md, contracts/.
415
- Output to {FEATURE_DIR}/visuals/bounded-context.md."
416
-
417
- Task: subagent_type="visual-erd-writer", model="haiku"
418
- Prompt: "Generate data-model ERD for {FEATURE_NAME}.
419
- Feature dir: {FEATURE_DIR}. Read data-model.md.
420
- Output to {FEATURE_DIR}/visuals/data-model-erd.md."
421
- ```
422
-
423
- These three artifacts (c4-container.md, bounded-context.md, data-model-erd.md)
424
- are required for the developer persona pack. The persona-pack completeness gate
425
- at #4_gofer_tasks start will warn if any are missing.
426
-
427
- Visual quality requirements for all planning visuals:
428
-
429
- - Answer one review question per visual; split rather than crowding when a
430
- diagram has more than about seven primary nodes or steps.
431
- - Include a plain-language preamble, audience, source inputs, and how to read
432
- the visual.
433
- - Use C4 context/container for boundaries and runtime units, ERD for data,
434
- sequence/state for flows, heatmaps for risk/capability priority, and
435
- screenshots/storyboards for UI behavior.
436
- - Keep visuals source-controlled and renderable via Mermaid/D2/Structurizr-style
437
- text where practical; otherwise include a markdown-table/text fallback.
438
- - Generate Marp slide output when stakeholder review needs a simple presentation
439
- story; skip it only for small docs-only or mechanical changes where Markdown is
440
- clearer.
441
- - Ensure every human-facing document produced by planning starts with a
442
- three-to-five-bullet executive summary in plain language.
443
- - Link each visual to the requirement, plan decision, contract, code/test path,
444
- EAI service/template asset, or validation evidence it summarizes.
445
- - Do not include workspace-private data, secrets, customer identifiers, or
446
- screenshots containing private content.
447
-
448
- ### Dynamic-Only: Workflow DAG Writer
449
-
450
- When `effectiveProfile=dynamic`, write `{FEATURE_DIR}/workflow-dag.md` before
451
- task generation. It must define:
452
-
453
- - independent shards and why they can run separately
454
- - input artifacts each shard may read
455
- - output artifacts each shard must produce
456
- - reducer synthesis expectations
457
- - verifier/refuter checks for contradictions or overreach
458
- - budget limits, stop conditions, and confirmation gates
459
- - resumable progress location outside the chat transcript
460
-
461
- ---
462
-
463
- ## Step 3: Review Agent Outputs
464
-
465
- After all agents complete:
466
-
467
- 1. **Review plan.md** — Verify from Agent 1:
468
- - All user stories have plan coverage (check Spec Traceability section)
469
- - All functional requirements are addressed
470
- - Implementation phases are specific enough for task generation
471
- - File structure is consistent with existing codebase patterns
472
-
473
- 2. **Review data-model.md** — Verify from Agent 2:
474
- - All spec entities are covered
475
- - Relationships make sense
476
- - Validation rules are complete
477
-
478
- 3. **Review contracts** — Verify from Agent 3:
479
- - All implied API endpoints are defined
480
- - Request/response schemas are realistic
481
- - Error codes are appropriate
482
-
483
- 4. **Review quickstart.md** — Verify from Agent 4:
484
- - Test scenarios cover key acceptance criteria
485
- - Setup steps are realistic
486
-
487
- 5. **Fix any gaps** — Make targeted edits to any artifact with missing coverage
488
-
489
- ---
490
-
491
- ## Step 4: Spec Coverage Validation (GAP-01)
492
-
493
- Dispatch a validator agent to cross-check plan against spec:
494
-
495
- ```
496
- Task: subagent_type="general-purpose", model="haiku"
497
- Prompt: "Validate plan coverage of specification for feature at {FEATURE_DIR}.
498
-
499
- Read:
500
- - {FEATURE_DIR}/spec.md — Source of truth for requirements
501
- - {FEATURE_DIR}/plan.md — Implementation plan to validate
502
- - {FEATURE_DIR}/data-model.md — Data model to validate
503
- - {FEATURE_DIR}/contracts/ — API contracts to validate (read all .md files)
504
-
505
- Check these coverage dimensions:
506
-
507
- 1. USER STORY COVERAGE: Every user story in spec.md has at least one plan phase
508
- 2. ACCEPTANCE CRITERIA MAPPING: Every AC maps to a plan component
509
- 3. FUNCTIONAL REQUIREMENT COVERAGE: Every FR-XXX is addressed in plan
510
- 4. DATA MODEL COMPLETENESS: All Key Entities from spec appear in data-model.md
511
- 5. API CONTRACT COMPLETENESS: All implied APIs from spec have contracts
512
-
513
- For each dimension, report:
514
- - COVERED items with references
515
- - MISSING items (ERROR — must be fixed)
516
-
517
- Return:
518
- - Coverage percentage per dimension
519
- - List of MISSING items
520
- - Overall PASS/FAIL status"
521
- ```
522
-
523
- If validator reports MISSING items:
524
-
525
- - Add missing components to the appropriate artifact
526
- - Re-validate (max 3 iterations)
527
- - **Proceed only when ALL spec items are traced to plan components**
528
-
529
- ---
530
-
531
- ## Step 5: Multi-Perspective Plan Review (Optional)
532
-
533
- After generating the initial plan, optionally run multi-perspective strategies
534
- to stress-test architectural decisions. **Skip this step if the plan is
535
- straightforward or time-constrained.**
536
-
537
- ### Strategy #2: Solution Architecture Diverger
538
-
539
- For features with significant architectural decisions, spawn 5 agents each using
540
- a different pattern:
541
-
542
- ```
543
- Task: subagent_type="plan-architecture-diverger", model="sonnet"
544
- Prompt: "Design architecture for [FEATURE] using Pattern [1-5].
545
- Pattern 1: Microservices/modular 2: Monolithic/cohesive 3: Event-sourced
546
- 4: CQRS 5: Plugin-based
547
- Spec: [FEATURE_DIR]/spec.md Plan context: [summary of current plan]"
548
- ```
549
-
550
- Run all 5 in parallel, then judge:
551
-
552
- ```
553
- Task: subagent_type="multi-perspective-judge", model="opus"
554
- Prompt: "Judge verdict type: architecture selection.
555
- Select the best architecture for this feature considering codebase fit, complexity, and testability.
556
- [paste all 5 agent outputs]"
557
- ```
558
-
559
- ### Strategy #5: API Design Comparator
560
-
561
- For features with API surfaces, compare paradigms:
562
-
563
- ```
564
- Task: subagent_type="plan-api-comparator", model="sonnet"
565
- Prompt: "Design API for [FEATURE] using Paradigm [1-4].
566
- Paradigm 1: REST 2: GraphQL 3: RPC 4: Event-based
567
- Requirements: [API requirements from spec]"
568
- ```
569
-
570
- Run 3-4 in parallel, then judge:
571
-
572
- ```
573
- Task: subagent_type="multi-perspective-judge", model="opus"
574
- Prompt: "Judge verdict type: API paradigm selection.
575
- [paste all agent outputs]"
576
- ```
577
-
578
- ### Strategy #7: Refactor vs Rewrite Advisor
579
-
580
- For features that modify existing code significantly:
581
-
582
- ```
583
- Task: subagent_type="plan-refactor-rewrite-advisor", model="sonnet"
584
- Prompt: "Perspective [1/2] for changing [CODE AREA].
585
- Perspective 1: Plan minimal incremental refactor
586
- Perspective 2: Plan clean rewrite
587
- Current code: [file paths and summary]"
588
- ```
589
-
590
- Run both in parallel, then judge:
591
-
592
- ```
593
- Task: subagent_type="multi-perspective-judge", model="opus"
594
- Prompt: "Judge verdict type: refactor vs rewrite decision.
595
- [paste both agent outputs]"
596
- ```
597
-
598
- ### Strategy #12: Migration Path Finder
599
-
600
- When the feature requires migrating existing code or data:
601
-
602
- ```
603
- Task: subagent_type="plan-migration-path-finder", model="sonnet"
604
- Prompt: "Design migration for [CHANGE] using Strategy [1-4].
605
- Strategy 1: Big bang 2: Strangler fig 3: Feature-flagged 4: Adapter/facade
606
- Migration scope: [what needs changing]"
607
- ```
608
-
609
- Run all 4 in parallel, then judge:
610
-
611
- ```
612
- Task: subagent_type="multi-perspective-judge", model="opus"
613
- Prompt: "Judge verdict type: migration strategy selection.
614
- [paste all 4 agent outputs]"
615
- ```
616
-
617
- ### Strategy #16: Data Model Stress Tester
618
-
619
- For features with data models, stress-test before finalizing:
620
-
621
- ```
622
- Task: subagent_type="plan-data-model-stress-tester", model="haiku"
623
- Prompt: "Stress-test data model from Perspective [1-4].
624
- Perspective 1: 10x scale 2: Concurrent access 3: Schema evolution 4: Edge-case shapes
625
- Data model: [entities and relationships from plan]"
626
- ```
627
-
628
- Run all 4 in parallel, then judge:
629
-
630
- ```
631
- Task: subagent_type="multi-perspective-judge", model="opus"
632
- Prompt: "Judge verdict type: data model robustness assessment.
633
- [paste all 4 agent outputs]"
634
- ```
635
-
636
- Incorporate judge recommendations into the plan before proceeding to validation.
637
-
638
- ---
639
-
640
- ## Step 6: Update Agent Context
641
-
642
- Run the agent context update script:
643
-
644
- ```bash
645
- .specify/scripts/bash/update-agent-context.sh claude
646
- ```
647
-
648
- This updates AI agent context files with new technology from this plan.
649
-
650
- ---
651
-
652
- ## Step 7: Engineering Review Gate (Up to 5 cycles)
653
-
654
- Before proceeding to the next stage, run an iterative engineering review to
655
- catch misalignment early.
656
-
657
- ### Review Cycle (repeat up to 5 times)
658
-
659
- **You MUST dispatch 3 review agents in parallel** using the Task tool:
660
-
661
- **Agent 1**: engineer-review (sonnet) — cross-check spec↔plan alignment
662
-
663
- ```
664
- Task: subagent_type="engineer-review", model="sonnet"
665
- Prompt: "Review alignment between spec.md and plan.md in {FEATURE_DIR}.
666
- Find every gap, inconsistency, and misalignment between the specification
667
- and the implementation plan. Report Red/Yellow/Gray findings."
668
- ```
669
-
670
- **Agent 2**: codebase-analyzer (sonnet) — verify file paths and code patterns
671
-
672
- ```
673
- Task: subagent_type="codebase-analyzer", model="sonnet"
674
- Prompt: "Verify that the plan at {FEATURE_DIR}/plan.md references correct
675
- file paths and follows existing codebase patterns from {FEATURE_DIR}/research.md.
676
- Report Red/Yellow/Gray findings."
677
- ```
678
-
679
- **Agent 3**: validation-correctness (sonnet) — verify acceptance criteria
680
- coverage
681
-
682
- ```
683
- Task: subagent_type="validation-correctness", model="sonnet"
684
- Prompt: "Verify that every acceptance criterion in {FEATURE_DIR}/spec.md
685
- is addressed by the plan at {FEATURE_DIR}/plan.md.
686
- Report Red/Yellow/Gray findings with coverage gaps."
687
- ```
688
-
689
- **After agents return:**
690
-
691
- 1. Classify findings: Red (blocking) / Yellow (should fix) / Gray
692
- (informational)
693
- 2. If NO Red or Yellow findings → PASS → proceed to auto-chain
694
- 3. If Red or Yellow findings exist: a. Fix findings directly in plan artifacts
695
- (Red first, then Yellow) b. Increment cycle counter c. If cycle <= 5 → re-run
696
- review agents d. If cycle > 5 → log remaining findings, proceed with warnings
697
-
698
- ---
699
-
700
- ## Step 8: Report and Continue
701
-
702
- Before reporting completion, update the stakeholder-facing architecture pack:
703
-
704
- 1. Update `{FEATURE_DIR}/working-backwards-prfaq.md`.
705
- - Add the current architecture story to Internal FAQ CTO / Architecture.
706
- - Explain how the solution uses EAI Platform first, the EAI App Template
707
- when app delivery applies, Azure as the preferred supporting substrate,
708
- and any approved exception.
709
- - Summarize auth, authorization, workspace boundary, data model, integration,
710
- contract, and deployment assumptions in plain language.
711
- 2. Write `{FEATURE_DIR}/prfaq-history/03-plan.md` as an immutable snapshot.
712
- 3. Create or update `{FEATURE_DIR}/cto-architecture-summary.md` from
713
- `.specify/templates/cto-architecture-summary-template.md` using
714
- `plan.md`, `contract-pack.md`, `data-model.md`, C4 diagrams,
715
- `service-fit-matrix.md`, and `eai-preflight.md` when present.
716
- 4. Update `{FEATURE_DIR}/stakeholder-review-index.md` and explicitly ask
717
- CTO / Architecture to approve, revise, or defer the architecture,
718
- EAI/Azure fit, auth/workspace model, data model, and integration contracts.
719
- 5. Preserve the existing loop contract: if planning changed eval commands,
720
- stop conditions, or escalation rules, update `loop-contract.json` and keep
721
- those changes visible in the stakeholder index rather than replacing loop
722
- audit behavior.
723
-
724
- After all artifacts are created and review gate passes:
725
-
726
- ```
727
- ✓ Plan complete: {FEATURE_DIR}/plan.md
728
-
729
- Artifacts created:
730
- - plan.md: Implementation phases and architecture
731
- - loop-contract.json: Bounded evaluation commands and stop rules
732
- - data-model.md: Entity definitions
733
- - contracts/: API specifications
734
- - quickstart.md: Testing guide
735
- - working-backwards-prfaq.md: Updated product release PR/FAQ
736
- - prfaq-history/03-plan.md: Architecture-stage PR/FAQ snapshot
737
- - cto-architecture-summary.md: CTO/EAI Platform architecture review summary
738
- - stakeholder-review-index.md: Review status and approval asks
739
- - workflow-dag.md: Dynamic shard/reducer plan (only when effectiveProfile=dynamic)
740
-
741
- Engineering Review: PASSED (cycle [N] of 5)
742
- ```
743
-
744
-
745
- ---
746
-
747
- ## EnterpriseAI Deployment Convention and EAI CLI Pinning Requirements
748
-
749
- Before planning app implementation, read the managed-source boundary in
750
- `.specify/references/platform/eai-app-template.md`. Include all customer-authored
751
- app files, including custom runners, tests, backend code, scripts, documentation,
752
- and supported dot configuration. Preserve protected EAI authentication,
753
- platform-service, deployment, and workflow controls. The installed CLI owns the
754
- normalized source boundary; do not maintain a second allowlist.
755
- When EAI-maintained source is selected, verify the installed CLI advertises
756
- `eai deploy source validate --help`, then run
757
- `node .specify/scripts/node/eai-app-template-readiness.mjs --root . --source eai-managed --json`.
758
- Preserve an explicitly selected CLI with `--cli <executable>`. Resolve a failed
759
- source check before promising EAI-maintained delivery. Unsupported custom runtimes
760
- must fail explicitly; never omit business changes or customer app files.
761
-
762
- > When `gofer.workflowProfile=enterpriseai`, the following conventions apply.
763
- > standard profile outputs remain unchanged.
764
-
765
- When the workflow profile is `enterpriseai`, `plan.md` MUST capture:
766
-
767
- 1. **EAI CLI version pin** — record the installed `eai` version as a
768
- `major.minor` pin (for example `2.0`). The plan stage resolves the local
769
- version via `eai --version`, strips the patch component, and writes the
770
- pin to the `EnterpriseAI Profile Metadata` block of `plan-template.md` so
771
- every downstream task is reproducible. Plans MUST apply
772
- `pin guidance to `major.minor`` and never to a specific patch release.
773
- If `{FEATURE_DIR}/eai-preflight.md` exists, use its CLI version/install
774
- evidence as the primary source and re-run `eai --version` only to confirm
775
- local drift.
776
- 2. **EAI app-readiness handoff** — for EAI app delivery, reference
777
- `{FEATURE_DIR}/eai-preflight.md` before making platform or template
778
- assumptions. The plan MUST preserve:
779
- - whether the user is logged in or still needs an EAI Platform account
780
- - the selected workspace role/readiness and whether app enrollment is allowed
781
- - whether the repo already has EAI template markers or still needs
782
- `eai init <app-name>`
783
- - whether app creation/selection is confirmed, deferred, or blocked
784
- - block-catalog readiness and package-profile compatibility evidence
785
- - the last completed gate, blocked gate, and next recovery command from the
786
- EAI preflight artifact
787
- If EAI readiness is blocked, plan only the smallest unblock task group and
788
- do not invent object types, workspace IDs, app keys, or platform capabilities.
789
- 3. **EAI app lifecycle ordering handoff** — keep the platform lifecycle
790
- explicit inside the plan. Resource provisioning, object-type publish,
791
- schema/storage health, workflow readiness, and preview readiness must remain
792
- distinct gates with the recovery path carried forward from
793
- `{FEATURE_DIR}/eai-preflight.md`.
794
- 4. **EAI Platform/Azure app stack decision** — for app delivery, the plan MUST
795
- use EAI Platform, including the EAI app template, as the primary app
796
- substrate and Azure as the preferred cloud/supporting substrate. The plan MUST
797
- NOT select Firebase, Supabase, Vercel as the primary runtime, AWS, GCP,
798
- bespoke backends, unmanaged databases, or unrelated SaaS platforms as the
799
- default app stack. Any non-EAI technology must be recorded as an integration
800
- target, migration reference, or approved exception with rationale, owner,
801
- expiry, and validation evidence.
802
- Capabilities unavailable in EAI Platform/Azure must be recorded in
803
- `{FEATURE_DIR}/service-fit-matrix.md` as platform work, operator-required, or
804
- upgrade-required rather than substituted silently.
805
- 5. **Deployment convention** — reference the configured deployment
806
- documentation for the target project and note which environment
807
- (dev/staging/prod) each deliverable targets.
808
- 6. **Integration map handoff** — restate the App → EAI Services →
809
- Deployment Target chain from `spec.md` and bind each link to a task
810
- identifier in `tasks.md`.
811
- 7. **Contract pack handoff** — reference `{FEATURE_DIR}/contract-pack.md` and
812
- bind each actor, object type, workflow/journey, permission boundary,
813
- API/event, runtime assumption, and acceptance test to plan sections and
814
- downstream tasks.
815
- 8. **AI-augmented journey handoff** — for app delivery, reference
816
- `{FEATURE_DIR}/journeys/base-journey.md` and plan the four-step-or-fewer
817
- user-facing process as the default scope spine. Each step must include the
818
- business goal, generative AI assistance mode, screen/user/data context used,
819
- completion signal, user controls, audit trail, and fallback/escalation path.
820
- If the plan expands beyond four user-facing steps, document why those steps
821
- cannot be combined, automated, or handled by the AI assistant.
822
- 9. **UI-first approval gate handoff** — for app delivery, reference
823
- `{FEATURE_DIR}/ui-preview-brief.md` and require the planning stage to lock
824
- the preview loop before plan/tasks are considered complete. The plan MUST:
825
- - keep the first preview constrained to EAI App Template blocks unless an
826
- approved extension is recorded
827
- - cite `eai blocks describe <id>` evidence for every selected block ID,
828
- plus the ResourceAPI/Object Type fields from `eai resources schema` that
829
- feed each block
830
- - record override points for theme tokens, `presentationConfig`, copy,
831
- data/action bindings, and client extension blocks
832
- - capture whether client branding/logos are in scope
833
- - require screenshot, local render proof, or Playwright-style self-review
834
- evidence before stakeholder presentation
835
- - update `{FEATURE_DIR}/ui-review-log.md` for each iteration and require
836
- explicit stakeholder approval in `{FEATURE_DIR}/ui-approval.md`
837
- 10. **EnterpriseAI service-fit handoff** — for app delivery, the plan MUST
838
- produce or update `{FEATURE_DIR}/service-fit-matrix.md` after UI approval and
839
- before tasks are treated as complete. The matrix must distinguish:
840
- - accessible now
841
- - purchasable but unavailable now
842
- - unavailable without new platform work
843
- The plan must source this evidence from `eai --describe`, `eai whoami`,
844
- `eai workspace select`, `eai resources schema --format json`,
845
- `eai verify calls --format json`, `eai workflow readiness [workflow-key]
846
- --format json`, `eai workflow status <workflow-key>`, `eai workflow request
847
- <workflow-key>`, `eai provision entra --rotate-secret`, or documented
848
- equivalent public platform evidence.
849
- 11. **Reuse-before-create decision log** — reference `{FEATURE_DIR}/reuse-scan.md`
850
- for every new or extended EnterpriseAI object type, API/event, workflow, or
851
- module.
852
- 12. **Audit history seed** — create or update `{FEATURE_DIR}/audit-history.md`
853
- with stable finding IDs, decision exceptions, owner, expiry, and review
854
- cadence so validation can track recurring issues.
855
- 13. **Public/private knowledge split** — identify which implementation facts
856
- are safe for public docs, Gofer guidance, EAI CLI help, or EAI App Template
857
- comments, and which facts are restricted-source. Plans must express blocked
858
- states as public-safe actions (`operator_required`, `upgrade_required`, or
859
- documented support URL) rather than exposing private service topology.
860
-
861
- ### EnterpriseAI Flow and Journey Separation
862
-
863
- Plan both:
864
-
865
- - **External user journeys**: the business/user-facing path, decision points,
866
- adoption impact, and measurable value.
867
- - **AI-augmented app process**: for application delivery, the four-step-or-fewer
868
- journey with AI assistance, contextual prefill, conversational support,
869
- completion checks, and human controls at each step.
870
- - **App-delivery preview and approval loop**: for application delivery, the
871
- local preview creation, self-review, stakeholder feedback, branding updates,
872
- and approval-gate behavior that must occur before plan/tasks are finalized.
873
- - **EnterpriseAI service-fit gate**: for application delivery, the post-approval
874
- capability-selection discussion that binds chosen platform services to the
875
- approved UI and distinguishes accessible now vs purchasable vs unavailable.
876
- - **Internal orchestration flows**: platform services, ResourceAPI calls,
877
- events, data movement, workspace boundaries, deployment steps, and observability.
878
-
879
- ### Competitive / market analysis reference
880
-
881
- When `includeCompetitiveAnalysis=true`, `plan.md` MUST link to
882
- `market-analysis.md`. When disabled, the competitive-analysis section is omitted
883
- and standard profile outputs remain unchanged.
884
-
885
- ---
886
-
887
- ## Observability Logging
888
-
889
- At stage completion, log metrics:
890
-
891
- ```bash
892
- .specify/scripts/bash/log-stage.sh 3_plan --complete --tokens [N] --compactions [N]
893
- ```
894
-
895
- Logs to: `.specify/logs/pipeline.jsonl`
896
-
897
- ---
898
-
899
-
900
-
901
- ## Pipeline Continuation
902
-
903
- This completes the 3_gofer_plan stage. To continue the Gofer pipeline:
904
-
905
- **Next Command:** `#4_gofer_tasks`
906
-
907
- The next stage will read the artifacts from this stage and continue the workflow automatically.
908
-
909
- **Note:** Copilot Chat supports context preservation. Your conversation history will be maintained as you progress through pipeline stages.
910
-
911
- ## Key Rules
912
-
913
- - Use absolute paths for all file references
914
- - ERROR if constitution gates fail without justification
915
- - All NEEDS CLARIFICATION must be resolved before completing
916
- - Plan must be specific enough for task generation
917
- - Log stage completion for observability tracking