@thierrynakoa/fire-flow 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/.claude-plugin/plugin.json +64 -0
  2. package/ARCHITECTURE-DIAGRAM.md +440 -0
  3. package/COMMAND-REFERENCE.md +172 -0
  4. package/DOMINION-FLOW-OVERVIEW.md +421 -0
  5. package/LICENSE +21 -0
  6. package/QUICK-START.md +351 -0
  7. package/README.md +398 -0
  8. package/TROUBLESHOOTING.md +264 -0
  9. package/agents/fire-codebase-mapper.md +484 -0
  10. package/agents/fire-debugger.md +535 -0
  11. package/agents/fire-executor.md +949 -0
  12. package/agents/fire-fact-checker.md +276 -0
  13. package/agents/fire-learncoding-explainer.md +237 -0
  14. package/agents/fire-learncoding-walker.md +147 -0
  15. package/agents/fire-planner.md +675 -0
  16. package/agents/fire-project-researcher.md +155 -0
  17. package/agents/fire-research-synthesizer.md +166 -0
  18. package/agents/fire-researcher.md +723 -0
  19. package/agents/fire-reviewer.md +499 -0
  20. package/agents/fire-roadmapper.md +203 -0
  21. package/agents/fire-verifier.md +880 -0
  22. package/bin/cli.js +208 -0
  23. package/commands/fire-0-orient.md +476 -0
  24. package/commands/fire-1-new.md +281 -0
  25. package/commands/fire-1a-discuss.md +455 -0
  26. package/commands/fire-2-plan.md +527 -0
  27. package/commands/fire-3-execute.md +1303 -0
  28. package/commands/fire-4-verify.md +845 -0
  29. package/commands/fire-5-handoff.md +515 -0
  30. package/commands/fire-6-resume.md +501 -0
  31. package/commands/fire-7-review.md +409 -0
  32. package/commands/fire-add-new-skill.md +598 -0
  33. package/commands/fire-analytics.md +499 -0
  34. package/commands/fire-assumptions.md +78 -0
  35. package/commands/fire-autonomous.md +528 -0
  36. package/commands/fire-brainstorm.md +413 -0
  37. package/commands/fire-complete-milestone.md +270 -0
  38. package/commands/fire-dashboard.md +375 -0
  39. package/commands/fire-debug.md +663 -0
  40. package/commands/fire-discover.md +616 -0
  41. package/commands/fire-double-check.md +460 -0
  42. package/commands/fire-execute-plan.md +182 -0
  43. package/commands/fire-learncoding.md +242 -0
  44. package/commands/fire-loop-resume.md +272 -0
  45. package/commands/fire-loop-stop.md +198 -0
  46. package/commands/fire-loop.md +1168 -0
  47. package/commands/fire-map-codebase.md +313 -0
  48. package/commands/fire-new-milestone.md +356 -0
  49. package/commands/fire-reflect.md +235 -0
  50. package/commands/fire-research.md +246 -0
  51. package/commands/fire-search.md +330 -0
  52. package/commands/fire-security-audit-repo.md +293 -0
  53. package/commands/fire-security-scan.md +484 -0
  54. package/commands/fire-session-summary.md +252 -0
  55. package/commands/fire-skills-diff.md +506 -0
  56. package/commands/fire-skills-history.md +388 -0
  57. package/commands/fire-skills-rollback.md +408 -0
  58. package/commands/fire-skills-sync.md +470 -0
  59. package/commands/fire-test.md +520 -0
  60. package/commands/fire-todos.md +335 -0
  61. package/commands/fire-transition.md +186 -0
  62. package/commands/fire-update.md +312 -0
  63. package/commands/fire-verify-uat.md +146 -0
  64. package/commands/fire-vuln-scan.md +493 -0
  65. package/hooks/hooks.json +16 -0
  66. package/hooks/run-hook.cmd +69 -0
  67. package/hooks/run-hook.sh +8 -0
  68. package/hooks/run-session-end.cmd +49 -0
  69. package/hooks/run-session-end.sh +7 -0
  70. package/hooks/session-end.sh +90 -0
  71. package/hooks/session-start.sh +111 -0
  72. package/package.json +52 -0
  73. package/plugin.json +7 -0
  74. package/references/auto-skill-extraction.md +136 -0
  75. package/references/behavioral-directives.md +365 -0
  76. package/references/blocker-tracking.md +155 -0
  77. package/references/checkpoints.md +165 -0
  78. package/references/circuit-breaker.md +410 -0
  79. package/references/context-engineering.md +587 -0
  80. package/references/decision-time-guidance.md +289 -0
  81. package/references/error-classification.md +326 -0
  82. package/references/execution-mode-intelligence.md +242 -0
  83. package/references/git-integration.md +217 -0
  84. package/references/honesty-protocols.md +304 -0
  85. package/references/integration-architecture.md +470 -0
  86. package/references/issue-to-pr-pipeline.md +150 -0
  87. package/references/metrics-and-trends.md +234 -0
  88. package/references/playwright-e2e-testing.md +326 -0
  89. package/references/questioning.md +125 -0
  90. package/references/research-improvements.md +110 -0
  91. package/references/skills-usage-guide.md +429 -0
  92. package/references/tdd.md +131 -0
  93. package/references/testing-enforcement.md +192 -0
  94. package/references/ui-brand.md +383 -0
  95. package/references/validation-checklist.md +456 -0
  96. package/references/verification-patterns.md +187 -0
  97. package/references/warrior-principles.md +173 -0
  98. package/skills-library/SKILLS-INDEX.md +588 -0
  99. package/skills-library/_general/frontend/html-visual-reports.md +292 -0
  100. package/skills-library/_general/methodology/debug-swarm-researcher-escape-hatch.md +240 -0
  101. package/skills-library/_general/methodology/learncoding-agentic-pattern.md +114 -0
  102. package/skills-library/_general/methodology/shell-autonomous-loop-fixplan.md +238 -0
  103. package/skills-library/basics/api-rest-basics.md +162 -0
  104. package/skills-library/basics/env-variables.md +96 -0
  105. package/skills-library/basics/error-handling-basics.md +125 -0
  106. package/skills-library/basics/git-commit-conventions.md +106 -0
  107. package/skills-library/basics/readme-template.md +108 -0
  108. package/skills-library/common-tasks/async-await-patterns.md +157 -0
  109. package/skills-library/common-tasks/auth-jwt-basics.md +164 -0
  110. package/skills-library/common-tasks/database-schema-design.md +166 -0
  111. package/skills-library/common-tasks/file-upload-basics.md +166 -0
  112. package/skills-library/common-tasks/form-validation.md +159 -0
  113. package/skills-library/debugging/FAILURE_TAXONOMY_CLASSIFICATION.md +117 -0
  114. package/skills-library/debugging/THREE_AGENT_HYPOTHESIS_DEBUGGING.md +86 -0
  115. package/skills-library/methodology/BREATH_BASED_PARALLEL_EXECUTION.md +678 -0
  116. package/skills-library/methodology/CONFIDENCE_GATED_EXECUTION.md +243 -0
  117. package/skills-library/methodology/EVIDENCE_BASED_VALIDATION.md +308 -0
  118. package/skills-library/methodology/MULTI_PERSPECTIVE_CODE_REVIEW.md +330 -0
  119. package/skills-library/methodology/PATH_VERIFICATION_GATE.md +211 -0
  120. package/skills-library/methodology/REFLEXION_MEMORY_PATTERN.md +183 -0
  121. package/skills-library/methodology/RESEARCH_BACKED_WORKFLOW_UPGRADE.md +263 -0
  122. package/skills-library/methodology/SABBATH_REST_PATTERN.md +267 -0
  123. package/skills-library/methodology/STONE_AND_SCAFFOLD.md +220 -0
  124. package/skills-library/performance/cache-augmented-generation.md +172 -0
  125. package/skills-library/quality-safety/debugging-steps.md +147 -0
  126. package/skills-library/quality-safety/deployment-checklist.md +155 -0
  127. package/skills-library/quality-safety/security-checklist.md +204 -0
  128. package/skills-library/quality-safety/testing-basics.md +180 -0
  129. package/skills-library/security/agent-security-scanner.md +445 -0
  130. package/skills-library/specialists/api-architecture/api-designer.md +49 -0
  131. package/skills-library/specialists/api-architecture/graphql-architect.md +49 -0
  132. package/skills-library/specialists/api-architecture/mcp-developer.md +51 -0
  133. package/skills-library/specialists/api-architecture/microservices-architect.md +50 -0
  134. package/skills-library/specialists/api-architecture/websocket-engineer.md +48 -0
  135. package/skills-library/specialists/backend/django-expert.md +52 -0
  136. package/skills-library/specialists/backend/fastapi-expert.md +52 -0
  137. package/skills-library/specialists/backend/laravel-specialist.md +52 -0
  138. package/skills-library/specialists/backend/nestjs-expert.md +51 -0
  139. package/skills-library/specialists/backend/rails-expert.md +53 -0
  140. package/skills-library/specialists/backend/spring-boot-engineer.md +56 -0
  141. package/skills-library/specialists/data-ml/fine-tuning-expert.md +48 -0
  142. package/skills-library/specialists/data-ml/ml-pipeline.md +47 -0
  143. package/skills-library/specialists/data-ml/pandas-pro.md +47 -0
  144. package/skills-library/specialists/data-ml/rag-architect.md +51 -0
  145. package/skills-library/specialists/data-ml/spark-engineer.md +47 -0
  146. package/skills-library/specialists/frontend/angular-architect.md +52 -0
  147. package/skills-library/specialists/frontend/flutter-expert.md +51 -0
  148. package/skills-library/specialists/frontend/nextjs-developer.md +54 -0
  149. package/skills-library/specialists/frontend/react-native-expert.md +50 -0
  150. package/skills-library/specialists/frontend/vue-expert.md +51 -0
  151. package/skills-library/specialists/infrastructure/chaos-engineer.md +74 -0
  152. package/skills-library/specialists/infrastructure/cloud-architect.md +70 -0
  153. package/skills-library/specialists/infrastructure/database-optimizer.md +64 -0
  154. package/skills-library/specialists/infrastructure/devops-engineer.md +70 -0
  155. package/skills-library/specialists/infrastructure/kubernetes-specialist.md +52 -0
  156. package/skills-library/specialists/infrastructure/monitoring-expert.md +70 -0
  157. package/skills-library/specialists/infrastructure/sre-engineer.md +70 -0
  158. package/skills-library/specialists/infrastructure/terraform-engineer.md +51 -0
  159. package/skills-library/specialists/languages/cpp-pro.md +74 -0
  160. package/skills-library/specialists/languages/csharp-developer.md +69 -0
  161. package/skills-library/specialists/languages/dotnet-core-expert.md +54 -0
  162. package/skills-library/specialists/languages/golang-pro.md +51 -0
  163. package/skills-library/specialists/languages/java-architect.md +49 -0
  164. package/skills-library/specialists/languages/javascript-pro.md +68 -0
  165. package/skills-library/specialists/languages/kotlin-specialist.md +68 -0
  166. package/skills-library/specialists/languages/php-pro.md +49 -0
  167. package/skills-library/specialists/languages/python-pro.md +52 -0
  168. package/skills-library/specialists/languages/react-expert.md +51 -0
  169. package/skills-library/specialists/languages/rust-engineer.md +50 -0
  170. package/skills-library/specialists/languages/sql-pro.md +56 -0
  171. package/skills-library/specialists/languages/swift-expert.md +69 -0
  172. package/skills-library/specialists/languages/typescript-pro.md +51 -0
  173. package/skills-library/specialists/platform/atlassian-mcp.md +52 -0
  174. package/skills-library/specialists/platform/embedded-systems.md +53 -0
  175. package/skills-library/specialists/platform/game-developer.md +53 -0
  176. package/skills-library/specialists/platform/salesforce-developer.md +53 -0
  177. package/skills-library/specialists/platform/shopify-expert.md +49 -0
  178. package/skills-library/specialists/platform/wordpress-pro.md +49 -0
  179. package/skills-library/specialists/quality/code-documenter.md +51 -0
  180. package/skills-library/specialists/quality/code-reviewer.md +67 -0
  181. package/skills-library/specialists/quality/debugging-wizard.md +51 -0
  182. package/skills-library/specialists/quality/fullstack-guardian.md +51 -0
  183. package/skills-library/specialists/quality/legacy-modernizer.md +50 -0
  184. package/skills-library/specialists/quality/playwright-expert.md +65 -0
  185. package/skills-library/specialists/quality/spec-miner.md +56 -0
  186. package/skills-library/specialists/quality/test-master.md +65 -0
  187. package/skills-library/specialists/security/secure-code-guardian.md +55 -0
  188. package/skills-library/specialists/security/security-reviewer.md +53 -0
  189. package/skills-library/specialists/workflow/architecture-designer.md +53 -0
  190. package/skills-library/specialists/workflow/cli-developer.md +70 -0
  191. package/skills-library/specialists/workflow/feature-forge.md +65 -0
  192. package/skills-library/specialists/workflow/prompt-engineer.md +54 -0
  193. package/skills-library/specialists/workflow/the-fool.md +62 -0
  194. package/templates/ASSUMPTIONS.md +125 -0
  195. package/templates/BLOCKERS.md +73 -0
  196. package/templates/DECISION_LOG.md +116 -0
  197. package/templates/UAT.md +96 -0
  198. package/templates/blueprint.md +94 -0
  199. package/templates/brainstorm.md +185 -0
  200. package/templates/conscience.md +92 -0
  201. package/templates/fire-handoff.md +159 -0
  202. package/templates/metrics.md +67 -0
  203. package/templates/phase-prompt.md +142 -0
  204. package/templates/record.md +131 -0
  205. package/templates/review-report.md +117 -0
  206. package/templates/skills-index.md +157 -0
  207. package/templates/verification.md +149 -0
  208. package/templates/vision.md +79 -0
  209. package/validation-config.yml +793 -0
  210. package/version.json +7 -0
  211. package/workflows/execute-phase.md +732 -0
  212. package/workflows/handoff-session.md +678 -0
  213. package/workflows/new-project.md +578 -0
  214. package/workflows/plan-phase.md +592 -0
  215. package/workflows/verify-phase.md +874 -0
@@ -0,0 +1,732 @@
1
+ # Workflow: Phase Execution Orchestration
2
+
3
+ <purpose>
4
+ Execute all plans in a specified phase using breath-based parallel execution. Each plan is handled by a fire-executor agent that applies honesty protocols, references skills, creates atomic commits, and produces unified handoff documentation. This workflow ensures work is done correctly while maintaining complete context for verification and session continuity.
5
+ </purpose>
6
+
7
+ ---
8
+
9
+ <core_principle>
10
+ **Execute honestly, commit atomically, document thoroughly.** Every task gets a commit. Every uncertainty gets documented. Every skill application gets cited. The handoff document should enable any AI or human to continue exactly where you left off.
11
+ </core_principle>
12
+
13
+ ---
14
+
15
+ <required_reading>
16
+ Before executing this workflow, load:
17
+ ```markdown
18
+ @.planning/CONSCIENCE.md # Current project position
19
+ @.planning/phases/{N}-{name}/*-BLUEPRINT.md # All plans for this phase
20
+ @agents/fire-executor.md # Executor agent configuration
21
+ @agents/fire-verifier.md # Verifier agent configuration
22
+ @templates/fire-handoff.md # Unified handoff format
23
+ @references/honesty-protocols.md # Execution honesty guidance
24
+ ```
25
+ </required_reading>
26
+
27
+ ---
28
+
29
+ <process>
30
+
31
+ ## Step 1: Load Context and Validate
32
+
33
+ **Purpose:** Ensure we have valid plans to execute.
34
+
35
+ ```
36
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
37
+ DOMINION FLOW > PHASE {N} EXECUTION
38
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
39
+ ```
40
+
41
+ **Load CONSCIENCE.md:**
42
+ ```markdown
43
+ @.planning/CONSCIENCE.md
44
+
45
+ Extract:
46
+ - Current phase and status
47
+ - Completed plans (if resuming with --continue)
48
+ - Session context
49
+ - Skills applied so far
50
+ ```
51
+
52
+ **Parse Arguments:**
53
+ ```yaml
54
+ required:
55
+ phase_number: integer
56
+
57
+ optional:
58
+ --breath: "Execute only a specific breath (e.g., --breath 2)"
59
+ --plan: "Execute only a specific plan (e.g., --plan 03-02)"
60
+ --skip-verify: "Skip verification after execution (not recommended)"
61
+ --continue: "Continue from last checkpoint (for interrupted execution)"
62
+ ```
63
+
64
+ ---
65
+
66
+ ## Step 2: Discover and Parse Plans
67
+
68
+ **Purpose:** Build execution manifest from plan files.
69
+
70
+ ```bash
71
+ # Find all plans for this phase
72
+ ls .planning/phases/{N}-{name}/{N}-*-BLUEPRINT.md
73
+
74
+ # Parse each plan's frontmatter for breath assignment
75
+ for plan in plans:
76
+ extract: breath, depends_on, autonomous, files_to_create, files_to_modify
77
+ ```
78
+
79
+ **Build Execution Manifest:**
80
+ ```markdown
81
+ ## Phase {N} Execution Manifest
82
+
83
+ ### Plans Discovered
84
+ | Plan | Name | Breath | Dependencies | Autonomous | Status |
85
+ |------|------|------|--------------|------------|--------|
86
+ | {N}-01 | {name} | 1 | none | true | pending |
87
+ | {N}-02 | {name} | 1 | none | true | pending |
88
+ | {N}-03 | {name} | 2 | {N}-01 | true | pending |
89
+ | {N}-04 | {name} | 2 | {N}-01, {N}-02 | false | pending |
90
+
91
+ ### Breath Summary
92
+ - **Breath 1:** 2 plans (can run in parallel)
93
+ - **Breath 2:** 2 plans (depends on Breath 1)
94
+ ```
95
+
96
+ ---
97
+
98
+ ## Step 3: Group Plans by Breath
99
+
100
+ **Purpose:** Organize plans for parallel execution within breaths.
101
+
102
+ **Breath Grouping Rules:**
103
+ 1. Plans in same breath execute in parallel
104
+ 2. Breath N+1 waits for ALL Breath N plans to complete
105
+ 3. Dependencies must be in earlier breaths (validated during planning)
106
+ 4. If `--breath` flag: execute only that breath
107
+ 5. If `--plan` flag: execute only that plan (ignore breath)
108
+
109
+ **Display Execution Plan:**
110
+ ```
111
+ Execution Plan
112
+ Breath 1: 2 plans (parallel)
113
+ |- {N}-01: {description}
114
+ |- {N}-02: {description}
115
+ Breath 2: 2 plans
116
+ |- {N}-03: {description} (depends on {N}-01)
117
+ |- {N}-04: {description} (depends on {N}-01, {N}-02)
118
+ ```
119
+
120
+ **Handle --continue Flag:**
121
+ ```bash
122
+ # If continuing from checkpoint
123
+ if [ "$CONTINUE" = true ]; then
124
+ # Read .continue-here.md if exists
125
+ if [ -f ".planning/phases/{N}-{name}/.continue-here.md" ]; then
126
+ # Load context, skip completed plans
127
+ COMPLETED_PLANS=$(extract completed from .continue-here.md)
128
+ fi
129
+ fi
130
+ ```
131
+
132
+ ---
133
+
134
+ ## Step 4: Execute Breath
135
+
136
+ **Purpose:** Run all plans in current breath (parallel within breath, sequential across breaths).
137
+
138
+ For each breath:
139
+
140
+ ```
141
+ ━━━ DOMINION FLOW > BREATH {W} EXECUTION ━━━
142
+ ```
143
+
144
+ ### Spawn fire-executor Agents (Parallel)
145
+
146
+ ```
147
+ Spawning executors for Breath {W}...
148
+ fire-executor: Plan {N}-01 - {description}
149
+ fire-executor: Plan {N}-02 - {description}
150
+ ```
151
+
152
+ **Per-Executor Context Injection:**
153
+ ```markdown
154
+ <plan_context>
155
+ @.planning/phases/{N}-{name}/{N}-{NN}-BLUEPRINT.md
156
+ </plan_context>
157
+
158
+ <skills_context>
159
+ Skills to apply for this plan:
160
+ @skills-library/{category}/{skill-1}.md
161
+ @skills-library/{category}/{skill-2}.md
162
+
163
+ Apply these patterns during implementation.
164
+ Document which skills you actually used and how.
165
+ </skills_context>
166
+
167
+ <state_context>
168
+ @.planning/CONSCIENCE.md
169
+ Current project position and accumulated context.
170
+ </state_context>
171
+
172
+ <honesty_protocol>
173
+ While executing tasks:
174
+
175
+ **If uncertain:**
176
+ 1. Document the uncertainty immediately
177
+ 2. Search skills library: /fire-search "[topic]"
178
+ 3. Research if needed (WebSearch as last resort)
179
+ 4. Document what you learned
180
+ 5. Proceed with transparency, add comments
181
+
182
+ **If blocked:**
183
+ 1. Admit the blocker explicitly - don't work around silently
184
+ 2. Document what's blocking in detail
185
+ 3. Create .continue-here.md with full context
186
+ 4. Do NOT fake progress
187
+
188
+ **If assuming:**
189
+ 1. Document the assumption
190
+ 2. Add code comment: // ASSUMPTION: [reason]
191
+ 3. Add to handoff Issues section for review
192
+ 4. Proceed transparently
193
+ </honesty_protocol>
194
+
195
+ <commit_rules>
196
+ **CRITICAL: Atomic commits per task**
197
+
198
+ After completing each task:
199
+ 1. Stage only files related to this task
200
+ 2. Commit with conventional commit format
201
+ 3. Reference plan and task number
202
+ 4. Cite skills applied
203
+
204
+ Format:
205
+ ```
206
+ {type}({scope}): {description}
207
+
208
+ - {change 1}
209
+ - {change 2}
210
+ - Applied skill: {skill-name}
211
+
212
+ Task {X} of Plan {N}-{NN}
213
+
214
+ Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
215
+ ```
216
+ </commit_rules>
217
+
218
+ <deviation_rules>
219
+ **When implementation deviates from plan:**
220
+
221
+ **Auto-fix (no user input needed):**
222
+ - Minor syntax adjustments
223
+ - Import path corrections
224
+ - Variable naming improvements
225
+ - Additional error handling
226
+
227
+ **Ask user (require checkpoint):**
228
+ - Different approach than planned
229
+ - New dependencies needed
230
+ - Scope changes
231
+ - Missing requirements discovered
232
+ - Architectural decisions
233
+
234
+ **Document ALL deviations in handoff, regardless of type.**
235
+ </deviation_rules>
236
+ ```
237
+
238
+ ---
239
+
240
+ ## Step 5: Power-Executor Task Execution
241
+
242
+ **Purpose:** Each executor implements its plan's tasks with full transparency.
243
+
244
+ ### Per-Task Execution Flow
245
+
246
+ ```markdown
247
+ ## Executing Task {X}: {Task Name}
248
+
249
+ ### Pre-Task Honesty Check
250
+ - What I know: {relevant experience/code I've reviewed}
251
+ - What I'm uncertain about: {gaps identified}
252
+ - Skills to apply: {skill-category/skill-name}
253
+
254
+ ### Skill Application
255
+ **Applying:** {category/skill-name}
256
+ **Pattern Used:** {specific pattern from skill}
257
+ **Adaptation:** {how adapted for this context}
258
+ **Code Location:** {file:lines where applied}
259
+
260
+ ### Implementation
261
+ {Actual code changes with file:line references}
262
+
263
+ Created: {file} ({lines} lines)
264
+ ```typescript
265
+ // Key code snippet showing implementation
266
+ ```
267
+
268
+ Modified: {file}
269
+ - Lines X-Y: {change description}
270
+
271
+ ### Verification
272
+ ```bash
273
+ {Run verification commands from plan}
274
+ ```
275
+ **Result:** PASS | FAIL
276
+
277
+ ### Commit
278
+ ```bash
279
+ git add {files}
280
+ git commit -m "$(cat <<'EOF'
281
+ {type}({scope}): {description}
282
+
283
+ - {change 1}
284
+ - {change 2}
285
+ - Applied skill: {skill-name}
286
+
287
+ Task {X} of Plan {N}-{NN}
288
+
289
+ Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
290
+ EOF
291
+ )"
292
+ ```
293
+ **Commit:** {hash}
294
+
295
+ ### Task Honesty Status
296
+ - **Certainty Level:** High | Medium | Low
297
+ - **Gaps Encountered:** {list or "none"}
298
+ - **Assumptions Made:** {list or "none"}
299
+ - **Skills Applied:** {list}
300
+ - **Blockers:** {list or "none"}
301
+ - **Deviations:** {list or "none"}
302
+ ```
303
+
304
+ ### Handle Checkpoints
305
+
306
+ For `checkpoint:human-verify` tasks:
307
+
308
+ ```markdown
309
+ ## CHECKPOINT: Human Verification Required
310
+
311
+ ### What Was Built
312
+ {Summary of completed work up to this point}
313
+
314
+ ### Files Created/Modified
315
+ - {file1.ts} - {description}
316
+ - {file2.ts} - {description}
317
+
318
+ ### How to Verify
319
+ 1. {Specific step 1}
320
+ 2. {Specific step 2}
321
+ 3. {Specific step 3}
322
+
323
+ ### Expected Results
324
+ - {Expected behavior 1}
325
+ - {Expected behavior 2}
326
+
327
+ ### Commands to Run
328
+ ```bash
329
+ {verification commands}
330
+ ```
331
+
332
+ ### Resume Command
333
+ Type "approved" to continue execution
334
+ Type "issues: [description]" to report problems
335
+ ```
336
+
337
+ ---
338
+
339
+ ## Step 6: Handle Blocking Issues
340
+
341
+ **Purpose:** Gracefully handle situations where execution cannot proceed.
342
+
343
+ ### Create .continue-here.md
344
+
345
+ ```markdown
346
+ # Continue Here: Plan {N}-{NN}
347
+
348
+ ## Blocked At
349
+ **Task:** {task number and description}
350
+ **Time:** {timestamp}
351
+
352
+ ## Blocker Details
353
+ **Type:** {missing-info | missing-access | dependency-issue | technical-issue}
354
+ **Description:** {detailed explanation}
355
+
356
+ ## What's Complete
357
+ - [x] Task 1: {description} (commit: {hash})
358
+ - [x] Task 2: {description} (commit: {hash})
359
+ - [ ] Task 3: {BLOCKED}
360
+ - [ ] Task 4: {not started}
361
+
362
+ ## What's Needed to Continue
363
+ 1. {Specific requirement 1}
364
+ 2. {Specific requirement 2}
365
+
366
+ ## Attempts Made
367
+ - {Attempt 1}: {result}
368
+ - {Attempt 2}: {result}
369
+
370
+ ## Context for Resumption
371
+ {Any important context the next session needs}
372
+
373
+ ## Files in Progress
374
+ - {file}: {state - partial implementation at line X}
375
+
376
+ ## Resume Command
377
+ ```bash
378
+ /fire-3-execute {N} --continue
379
+ ```
380
+
381
+ ---
382
+ *Created: {timestamp}*
383
+ ```
384
+
385
+ ---
386
+
387
+ ## Step 7: Wait for Breath Completion
388
+
389
+ **Purpose:** Ensure all parallel executors finish before proceeding.
390
+
391
+ ```
392
+ Breath {W} in progress...
393
+ |- fire-executor Plan {N}-01: Running (backend)
394
+ |- fire-executor Plan {N}-02: Running (frontend)
395
+
396
+ [Updates as executors complete]
397
+
398
+ |- fire-executor Plan {N}-01: Complete (12 min)
399
+ |- fire-executor Plan {N}-02: Running (frontend)
400
+
401
+ [After all complete]
402
+
403
+ Breath {W} complete
404
+ |- Plan {N}-01: Complete (12 min, 4 commits)
405
+ |- Plan {N}-02: Complete (8 min, 3 commits)
406
+ ```
407
+
408
+ **Breath Completion Checks:**
409
+ - [ ] All executors finished (success or documented failure)
410
+ - [ ] All RECORD.md files created
411
+ - [ ] No unresolved blocking errors
412
+ - [ ] No undocumented deviations
413
+
414
+ **If Any Executor Blocked:**
415
+ - Pause breath execution
416
+ - Display blocking issue
417
+ - Create consolidated .continue-here.md
418
+ - Offer options: resolve and continue, skip plan, create handoff
419
+
420
+ ---
421
+
422
+ ## Step 8: Create fire-handoff.md (Per Plan)
423
+
424
+ **Purpose:** Each executor creates comprehensive handoff documentation.
425
+
426
+ **Output Location:**
427
+ ```
428
+ .planning/phases/{N}-{name}/{N}-{NN}-RECORD.md
429
+ ```
430
+
431
+ **Unified fire-handoff Format:**
432
+ ```markdown
433
+ ---
434
+ # Dominion Flow Execution Metadata
435
+ phase: {N}-{name}
436
+ plan: {NN}
437
+ subsystem: {category}
438
+ duration: "{X} min"
439
+ start_time: "{ISO timestamp}"
440
+ end_time: "{ISO timestamp}"
441
+
442
+ # WARRIOR Skills & Quality
443
+ skills_applied:
444
+ - "{category}/{skill-name}"
445
+ honesty_checkpoints:
446
+ - task: {N}
447
+ gap: "{what was uncertain}"
448
+ action: "{how it was resolved}"
449
+ validation_score: "{preliminary}/70"
450
+
451
+ # Dominion Flow Dependency Tracking
452
+ requires: ["dependency1"]
453
+ provides: ["capability1", "capability2"]
454
+ affects: ["component1"]
455
+ tech_stack_added: ["package@version"]
456
+ patterns_established: ["pattern-name"]
457
+
458
+ # Files Changed
459
+ key_files:
460
+ created:
461
+ - "path/to/file.ts"
462
+ modified:
463
+ - "path/to/existing.ts"
464
+
465
+ # Decisions
466
+ key_decisions:
467
+ - "Decision: {what} | Rationale: {why}"
468
+ ---
469
+
470
+ # Power Handoff: Plan {N}-{NN} - {Name}
471
+
472
+ ## Quick Summary
473
+ {1-2 sentence summary of what was accomplished}
474
+
475
+ ---
476
+
477
+ ## Dominion Flow Accomplishments
478
+
479
+ ### Task Commits
480
+ | Task | Description | Commit | Duration | Status |
481
+ |------|-------------|--------|----------|--------|
482
+ | 1 | {description} | {hash} | {X min} | Complete |
483
+ | 2 | {description} | {hash} | {X min} | Complete |
484
+
485
+ ### Files Created
486
+ | File | Lines | Purpose |
487
+ |------|-------|---------|
488
+ | {path} | {count} | {purpose} |
489
+
490
+ ### Files Modified
491
+ | File | Changes | Purpose |
492
+ |------|---------|---------|
493
+ | {path} | {description} | {purpose} |
494
+
495
+ ### Decisions Made
496
+ 1. **{Decision}:** {rationale}
497
+
498
+ ---
499
+
500
+ ## Skills Applied (WARRIOR)
501
+
502
+ ### {category/skill-name}
503
+ - **Problem:** {what problem this solved}
504
+ - **Pattern Applied:** {specific pattern from skill}
505
+ - **Code Location:** {file:lines}
506
+ - **Result:** {measurable improvement or outcome}
507
+
508
+ ---
509
+
510
+ ## WARRIOR 7-Step Handoff
511
+
512
+ ### W - Work Completed
513
+ {Detailed list of accomplishments with file:line references}
514
+
515
+ ### A - Assessment
516
+ - **Completion:** {X}% of plan tasks
517
+ - **Quality:** {assessment}
518
+ - **Tests:** {status}
519
+
520
+ ### R - Resources
521
+ {Environment variables, database state, external services}
522
+
523
+ ### R - Readiness
524
+ - **Ready For:** {what can proceed}
525
+ - **Blocked On:** {blockers if any}
526
+
527
+ ### I - Issues
528
+ - **Known Issues:** {list}
529
+ - **Assumptions:** {list}
530
+ - **Technical Debt:** {list}
531
+
532
+ ### O - Outlook
533
+ - **Next Steps:** {what should happen next}
534
+
535
+ ### R - References
536
+ - **Skills Used:** {list with links}
537
+ - **Commits:** {list with hashes}
538
+ - **Related Docs:** {links}
539
+
540
+ ---
541
+
542
+ ## Metrics
543
+ | Metric | Value |
544
+ |--------|-------|
545
+ | Duration | {X} min |
546
+ | Tasks Completed | {X}/{Y} |
547
+ | Commits | {count} |
548
+ | Files Created | {count} |
549
+ | Files Modified | {count} |
550
+ | Skills Applied | {count} |
551
+ | Honesty Checkpoints | {count} |
552
+ ```
553
+
554
+ ---
555
+
556
+ ## Step 9: Spawn fire-verifier (After All Breaths)
557
+
558
+ **Purpose:** Validate completed work meets requirements.
559
+
560
+ ```
561
+ ━━━ DOMINION FLOW > PHASE {N} VERIFICATION ━━━
562
+
563
+ Spawning fire-verifier for Phase {N}...
564
+ ```
565
+
566
+ **Verifier Context:**
567
+ ```markdown
568
+ <verification_scope>
569
+ Phase: {N} - {name}
570
+ Plans Executed: {list}
571
+ Total Must-Haves: {count aggregated from all plans}
572
+ WARRIOR Checks: 60 items across 6 categories
573
+ </verification_scope>
574
+
575
+ <must_haves>
576
+ {Aggregated must_haves from all {N}-*-BLUEPRINT.md files}
577
+ </must_haves>
578
+
579
+ <warrior_checklist>
580
+ @references/validation-checklist.md
581
+ </warrior_checklist>
582
+ ```
583
+
584
+ **Verification Outputs:**
585
+ - `{N}-VERIFICATION.md` with detailed results
586
+ - Gap analysis if any checks fail
587
+ - Routing recommendation
588
+
589
+ **Route Based on Result:**
590
+ - **PASS:** Proceed to Step 10 (completion)
591
+ - **FAIL with gaps:** Display gaps, offer `/fire-2-plan {N} --gaps`
592
+
593
+ ---
594
+
595
+ ## Step 10: Update CONSCIENCE.md and SKILLS-INDEX.md
596
+
597
+ **Purpose:** Reflect execution completion in project state.
598
+
599
+ ### CONSCIENCE.md Updates
600
+ ```markdown
601
+ ## Current Position
602
+ - **Phase:** {N} of {total}
603
+ - **Breath:** Complete
604
+ - **Status:** {Complete | Complete with gaps}
605
+ - **Last activity:** {timestamp} - Phase {N} execution complete
606
+ - **Progress:** [{progress_bar}] {progress_percent}%
607
+
608
+ ## Dominion Flow Progress Tracking
609
+ ### Phase Status
610
+ | Phase | Name | Status | Plans | Completed |
611
+ |-------|------|--------|-------|-----------|
612
+ | {N} | {name} | Complete | {X} | {X} |
613
+
614
+ ## WARRIOR Integration
615
+ - **Skills Applied:** {new_total} total
616
+ - {skill-1} (Phase {N}, Plan {NN})
617
+ - {skill-2} (Phase {N}, Plan {NN})
618
+ - **Honesty Checkpoints:** {count}
619
+ - **Validation Status:** Phase {N} {passed/failed} {X}/70 checks
620
+ ```
621
+
622
+ ### SKILLS-INDEX.md Updates
623
+ ```markdown
624
+ ## By Phase
625
+
626
+ ### Phase {N}: {name}
627
+ **Plan {N}-01:**
628
+ - {category}/{skill-1} - {brief note on application}
629
+ - {category}/{skill-2}
630
+
631
+ **Plan {N}-02:**
632
+ - {category}/{skill-3}
633
+ ```
634
+
635
+ ---
636
+
637
+ ## Step 11: Display Completion Summary
638
+
639
+ **Purpose:** Confirm execution success and provide next steps.
640
+
641
+ ```
642
+ ╔══════════════════════════════════════════════════════════════════════════════╗
643
+ ║ PHASE {N} EXECUTION COMPLETE ║
644
+ ╠══════════════════════════════════════════════════════════════════════════════╣
645
+ ║ ║
646
+ ║ Phase: {N} - {name} ║
647
+ ║ Plans Executed: {count} ║
648
+ ║ Breaths: {wave_count} ║
649
+ ║ Total Time: {duration} ║
650
+ ║ ║
651
+ ║ Execution Summary: ║
652
+ ║ Breath 1: ║
653
+ ║ {N}-01 - {description} (12 min, 4 commits) ║
654
+ ║ {N}-02 - {description} (8 min, 3 commits) ║
655
+ ║ Breath 2: ║
656
+ ║ {N}-03 - {description} (15 min, 5 commits) ║
657
+ ║ ║
658
+ ║ Commits: {total_commits} ║
659
+ ║ Files Created: {count} ║
660
+ ║ Files Modified: {count} ║
661
+ ║ Skills Applied: {count} ║
662
+ ║ Honesty Checkpoints: {count} ║
663
+ ║ Validation: {X}/70 checks passed ║
664
+ ║ ║
665
+ ╠══════════════════════════════════════════════════════════════════════════════╣
666
+ ║ NEXT UP ║
667
+ ├──────────────────────────────────────────────────────────────────────────────┤
668
+ ║ ║
669
+ ║ Run `/fire-4-verify {N}` for detailed validation report ║
670
+ ║ Or run `/fire-2-plan {N+1}` to plan next phase ║
671
+ ║ Or run `/fire-5-handoff` to create session handoff ║
672
+ ║ ║
673
+ ╚══════════════════════════════════════════════════════════════════════════════╝
674
+ ```
675
+
676
+ </process>
677
+
678
+ ---
679
+
680
+ ## Agent Spawning Summary
681
+
682
+ | Agent | When | Quantity | Purpose |
683
+ |-------|------|----------|---------|
684
+ | **fire-executor** | Per plan in breath | Parallel within breath | Implement plan tasks |
685
+ | **fire-verifier** | After all breaths | One | Validate completed work |
686
+
687
+ ---
688
+
689
+ ## Success Criteria
690
+
691
+ ### Required Outputs
692
+ - [ ] All plans in phase executed (or documented as blocked)
693
+ - [ ] Atomic commits per task (not batch commits)
694
+ - [ ] All `{N}-{NN}-RECORD.md` files created (fire-handoff format)
695
+ - [ ] All verification commands from plans executed
696
+ - [ ] SKILLS-INDEX.md updated with skills applied
697
+ - [ ] CONSCIENCE.md updated with execution status
698
+ - [ ] `{N}-VERIFICATION.md` created
699
+
700
+ ### Quality Checks
701
+ - [ ] No "silent struggling" - all uncertainties documented
702
+ - [ ] No hidden assumptions - all assumptions in code comments and handoff
703
+ - [ ] Skills properly cited with code locations
704
+ - [ ] Deviations from plan documented with rationale
705
+ - [ ] Checkpoint tasks handled appropriately
706
+
707
+ ---
708
+
709
+ ## Error Handling
710
+
711
+ ### Executor Blocked
712
+ Create .continue-here.md, pause execution, display options to user.
713
+
714
+ ### Verification Failed
715
+ Display gaps with severity, route to `/fire-2-plan {N} --gaps` or accept and proceed.
716
+
717
+ ### Breath Timeout
718
+ Display status of each executor, offer to continue waiting or interrupt.
719
+
720
+ ### Git Commit Failure
721
+ Resolve conflict, document in handoff, continue execution.
722
+
723
+ ---
724
+
725
+ ## References
726
+
727
+ - **Agent:** `@agents/fire-executor.md` - Execution agent with honesty protocols
728
+ - **Agent:** `@agents/fire-verifier.md` - Verification agent with combined checks
729
+ - **Template:** `@templates/fire-handoff.md` - Unified summary format
730
+ - **Protocol:** `@references/honesty-protocols.md` - Execution honesty guidance
731
+ - **Checklist:** `@references/validation-checklist.md` - 70-point validation
732
+ - **Brand:** `@references/ui-brand.md` - Visual output standards