@thierrynakoa/fire-flow 10.0.0 → 12.2.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 (94) hide show
  1. package/.claude-plugin/plugin.json +9 -9
  2. package/ARCHITECTURE-DIAGRAM.md +7 -4
  3. package/COMMAND-REFERENCE.md +33 -13
  4. package/DOMINION-FLOW-OVERVIEW.md +581 -421
  5. package/QUICK-START.md +3 -3
  6. package/README.md +102 -45
  7. package/TROUBLESHOOTING.md +264 -264
  8. package/agents/fire-executor.md +200 -116
  9. package/agents/fire-fact-checker.md +276 -276
  10. package/agents/fire-phoenix-analyst.md +394 -0
  11. package/agents/fire-planner.md +145 -53
  12. package/agents/fire-project-researcher.md +155 -155
  13. package/agents/fire-research-synthesizer.md +166 -166
  14. package/agents/fire-researcher.md +144 -59
  15. package/agents/fire-roadmapper.md +215 -203
  16. package/agents/fire-verifier.md +247 -65
  17. package/agents/fire-vision-architect.md +381 -0
  18. package/commands/fire-0-orient.md +476 -476
  19. package/commands/fire-1a-new.md +216 -0
  20. package/commands/fire-1b-research.md +210 -0
  21. package/commands/fire-1c-setup.md +254 -0
  22. package/commands/{fire-1a-discuss.md → fire-1d-discuss.md} +35 -7
  23. package/commands/fire-3-execute.md +55 -2
  24. package/commands/fire-4-verify.md +61 -0
  25. package/commands/fire-5-handoff.md +2 -2
  26. package/commands/fire-6-resume.md +37 -2
  27. package/commands/fire-add-new-skill.md +2 -2
  28. package/commands/fire-autonomous.md +20 -3
  29. package/commands/fire-brainstorm.md +1 -1
  30. package/commands/fire-complete-milestone.md +2 -2
  31. package/commands/fire-cost.md +183 -0
  32. package/commands/fire-dashboard.md +2 -2
  33. package/commands/fire-debug.md +663 -663
  34. package/commands/fire-loop-resume.md +2 -2
  35. package/commands/fire-loop-stop.md +1 -1
  36. package/commands/fire-loop.md +1168 -1168
  37. package/commands/fire-map-codebase.md +3 -3
  38. package/commands/fire-new-milestone.md +356 -356
  39. package/commands/fire-phoenix.md +603 -0
  40. package/commands/fire-reflect.md +235 -235
  41. package/commands/fire-research.md +246 -246
  42. package/commands/fire-search.md +1 -1
  43. package/commands/fire-skills-diff.md +3 -3
  44. package/commands/fire-skills-history.md +3 -3
  45. package/commands/fire-skills-rollback.md +7 -7
  46. package/commands/fire-skills-sync.md +5 -5
  47. package/commands/fire-test.md +9 -9
  48. package/commands/fire-todos.md +1 -1
  49. package/commands/fire-update.md +5 -5
  50. package/hooks/hooks.json +16 -16
  51. package/hooks/run-hook.sh +8 -8
  52. package/hooks/run-session-end.sh +7 -7
  53. package/hooks/session-end.sh +90 -90
  54. package/hooks/session-start.sh +1 -1
  55. package/package.json +2 -2
  56. package/plugin.json +7 -7
  57. package/references/metrics-and-trends.md +1 -1
  58. package/skills-library/SKILLS-INDEX.md +588 -588
  59. package/skills-library/_general/methodology/AUTONOMOUS_ORCHESTRATION.md +182 -0
  60. package/skills-library/_general/methodology/BACKWARD_PLANNING_INTERVIEW.md +307 -0
  61. package/skills-library/_general/methodology/CIRCUIT_BREAKER_INTELLIGENCE.md +163 -0
  62. package/skills-library/_general/methodology/CONTEXT_ROTATION.md +151 -0
  63. package/skills-library/_general/methodology/DEAD_ENDS_SHELF.md +188 -0
  64. package/skills-library/_general/methodology/DESIGN_PHILOSOPHY_ENFORCEMENT.md +152 -0
  65. package/skills-library/_general/methodology/INTERNAL_CONSISTENCY_AUDIT.md +212 -0
  66. package/skills-library/_general/methodology/LIVE_BREADCRUMB_PROTOCOL.md +242 -0
  67. package/skills-library/_general/methodology/PHOENIX_REBUILD_METHODOLOGY.md +251 -0
  68. package/skills-library/_general/methodology/QUALITY_GATES_AND_VERIFICATION.md +157 -0
  69. package/skills-library/_general/methodology/RELIABILITY_PREDICTION.md +104 -0
  70. package/skills-library/_general/methodology/REQUIREMENTS_DECOMPOSITION.md +155 -0
  71. package/skills-library/_general/methodology/SELF_TESTING_FEEDBACK_LOOP.md +143 -0
  72. package/skills-library/_general/methodology/STACK_COMPATIBILITY_MATRIX.md +178 -0
  73. package/skills-library/_general/methodology/TIERED_CONTEXT_ARCHITECTURE.md +118 -0
  74. package/skills-library/_general/methodology/ZERO_FRICTION_CLI_SETUP.md +312 -0
  75. package/skills-library/_general/methodology/autonomous-multi-phase-build.md +133 -0
  76. package/skills-library/_general/methodology/claude-md-archival.md +280 -0
  77. package/skills-library/_general/methodology/debug-swarm-researcher-escape-hatch.md +240 -240
  78. package/skills-library/_general/methodology/git-worktrees-parallel.md +232 -0
  79. package/skills-library/_general/methodology/llm-judge-memory-crud.md +241 -0
  80. package/skills-library/_general/methodology/multi-project-autonomous-build.md +360 -0
  81. package/skills-library/_general/methodology/shell-autonomous-loop-fixplan.md +238 -238
  82. package/skills-library/_general/patterns-standards/GOF_DESIGN_PATTERNS_FOR_AI_AGENTS.md +358 -0
  83. package/skills-library/methodology/BREATH_BASED_PARALLEL_EXECUTION.md +1 -1
  84. package/skills-library/methodology/RESEARCH_BACKED_WORKFLOW_UPGRADE.md +1 -1
  85. package/skills-library/methodology/SABBATH_REST_PATTERN.md +1 -1
  86. package/templates/ASSUMPTIONS.md +1 -1
  87. package/templates/BLOCKERS.md +1 -1
  88. package/templates/DECISION_LOG.md +1 -1
  89. package/templates/phase-prompt.md +1 -1
  90. package/templates/phoenix-comparison.md +80 -0
  91. package/version.json +2 -2
  92. package/workflows/handoff-session.md +1 -1
  93. package/workflows/new-project.md +2 -2
  94. package/commands/fire-1-new.md +0 -281
@@ -1,264 +1,264 @@
1
- # Dominion Flow Troubleshooting Guide
2
-
3
- Common failure modes and their fixes.
4
-
5
- ---
6
-
7
- ## 1. Autonomous mode won't stop
8
-
9
- **Symptoms:**
10
- - `/fire-autonomous` or `/fire-loop` continues iterating past the point of usefulness
11
- - Agent ignores Sabbath Rest warnings and keeps working
12
- - Iteration count climbing with no meaningful progress
13
-
14
- **Likely Cause:**
15
- - `--max-iterations` set too high (default 50)
16
- - `--no-circuit-breaker` flag was passed, disabling the safety net
17
- - Completion promise text doesn't match actual output (e.g., "DONE" vs "Done")
18
-
19
- **Fix Steps:**
20
- 1. Press `Ctrl+C` to interrupt the current iteration
21
- 2. Run `/fire-loop-stop` to formally end the loop and save state
22
- 3. Check `.planning/loops/fire-loop-*.md` for the loop state file
23
- 4. Review the "Approaches Tried" section to see what was attempted
24
-
25
- **Prevention:**
26
- - Use `--max-iterations 20` for most tasks (30 max for complex work)
27
- - Never use `--no-circuit-breaker` unless you're monitoring closely
28
- - Write precise completion promises: `--completion-promise "ALL TESTS PASS"`
29
- - Use `--aggressive` for tighter stall/spin detection thresholds
30
-
31
- ---
32
-
33
- ## 2. Wrong files modified
34
-
35
- **Symptoms:**
36
- - Files in a different project were edited by a subagent
37
- - Changes landed in the wrong directory
38
- - Cross-project contamination (e.g., editing `my-other-project` instead of `my-project`)
39
-
40
- **Likely Cause:**
41
- - Working directory didn't match the project in CONSCIENCE.md
42
- - Subagent resolved a relative path to the wrong project
43
- - Multiple project directories open in the same session
44
-
45
- **Fix Steps:**
46
- 1. Run `git diff` in the affected project to see what changed
47
- 2. Run `git checkout -- .` to revert unwanted changes (or `git stash` to save them)
48
- 3. Check CONSCIENCE.md -- does it reference the correct project path?
49
- 4. Verify `pwd` matches the expected project root before re-running
50
-
51
- **Prevention:**
52
- - The Path Verification Gate (Step 3.5 in `/fire-3-execute`) catches this automatically
53
- - Always use absolute paths when working across multiple projects
54
- - Run `/fire-0-orient` at session start to confirm you're in the right place
55
- - When spawning subagents, the `<path_constraint>` block is injected automatically -- verify it matches
56
-
57
- ---
58
-
59
- ## 3. Memory features not working
60
-
61
- **Symptoms:**
62
- - Episodic memory injection (Step 7.1 in `/fire-loop`) returns no results
63
- - `/fire-reflect` can't search past reflections
64
- - "Connection refused" errors mentioning port 6335
65
-
66
- **Likely Cause:**
67
- - Qdrant is not running (native binary at `C:\path\to\qdrant\qdrant.exe`)
68
- - Qdrant is running but on the wrong port (6333 = Docker backup, 6335 = native primary)
69
- - Ollama embedding service is down (needed for `nomic-embed-text` 768d vectors)
70
-
71
- **Fix Steps:**
72
- 1. Check Qdrant health: `curl http://localhost:6335/healthz`
73
- 2. If down, start it: `C:\path\to\qdrant\qdrant.exe` (runs on port 6335)
74
- 3. Check Ollama: `curl http://localhost:11434/api/tags`
75
- 4. If Ollama is down: `ollama serve` in a separate terminal
76
- 5. Verify the collection exists: `curl http://localhost:6335/collections/power_flow_memory`
77
-
78
- **Prevention:**
79
- - Dominion Flow degrades gracefully: if Qdrant is unreachable, it falls back to file-based search across `~/.claude/warrior-handoffs/` and `~/.claude/reflections/`
80
- - The file-based fallback is slower but functional -- memory retrieval is never silently skipped
81
- - Add Qdrant to your system startup if you use memory features regularly
82
-
83
- ---
84
-
85
- ## 4. Verification always fails
86
-
87
- **Symptoms:**
88
- - `/fire-4-verify` consistently returns REJECTED or CONDITIONAL
89
- - Score stuck below 49 even for seemingly complete work
90
- - E2E (Playwright) category drags the score down on non-UI projects
91
-
92
- **Likely Cause:**
93
- - The 70-point checklist includes 10 points for E2E/Playwright testing -- irrelevant for CLI, API-only, or library projects
94
- - Documentation category (10 points) penalizes when README/JSDoc isn't written yet
95
- - Validation thresholds: 63-70 = APPROVED, 56-62 = APPROVED*, 49-55 = CONDITIONAL, <42 = REJECTED
96
-
97
- **Fix Steps:**
98
- 1. Check `.planning/phases/{N}-{name}/{N}-VERIFICATION.md` for the breakdown
99
- 2. Identify which categories are scoring zero
100
- 3. For non-UI projects: the E2E category should be redistributed to other categories by the verifier -- if it isn't, note this as a configuration issue
101
- 4. Focus on the must-haves first: if all must-haves pass, CONDITIONAL is often acceptable for early phases
102
-
103
- **Prevention:**
104
- - Run `/fire-4-verify` with awareness of what the 7 categories are: Code Quality /10, Testing /10, Security /10, Performance /10, Documentation /10, Infrastructure /10, E2E /10
105
- - For API-only projects, tell the verifier in the plan: "No E2E -- redistribute points to Testing and Security"
106
- - Use `/fire-double-check` for a quick sanity check before the full 70-point verification
107
-
108
- ---
109
-
110
- ## 5. Plans executed in wrong order
111
-
112
- **Symptoms:**
113
- - Breath 2 tasks fail because Breath 1 outputs don't exist yet
114
- - Tasks with dependencies execute before their dependencies complete
115
- - File conflicts between parallel executors
116
-
117
- **Likely Cause:**
118
- - `breath:` frontmatter in BLUEPRINT.md files is incorrectly assigned
119
- - `depends_on:` field missing or wrong in the plan files
120
- - Execution mode selected PARALLEL when it should have been SEQUENTIAL (file overlap)
121
-
122
- **Fix Steps:**
123
- 1. Open `.planning/phases/{N}-{name}/` and check each BLUEPRINT.md frontmatter
124
- 2. Verify `breath:` numbers -- all tasks in Breath 1 should have no external dependencies
125
- 3. Verify `depends_on:` lists reference only tasks in earlier breaths
126
- 4. Re-run `/fire-2-plan {N}` to regenerate plans with correct breath assignment
127
-
128
- **Prevention:**
129
- - The planner agent validates breath assignments during `/fire-2-plan`
130
- - `/fire-3-execute` auto-detects file overlap and downgrades from PARALLEL to SEQUENTIAL
131
- - Review the execution manifest at Step 2 before proceeding
132
-
133
- ---
134
-
135
- ## 6. Context window filling up fast
136
-
137
- **Symptoms:**
138
- - Claude starts forgetting earlier instructions mid-session
139
- - Output quality degrades after 10-15 iterations
140
- - Sabbath Rest triggers repeatedly at low iteration counts
141
-
142
- **Likely Cause:**
143
- - Large files loaded into context (reading entire source files instead of relevant sections)
144
- - Skills library injecting too many skills per iteration (max should be 3)
145
- - No `.powerignore` file to exclude noise (node_modules, build artifacts, etc.)
146
-
147
- **Fix Steps:**
148
- 1. Run `/compact` with a focus topic: `/compact Focus on phase 3 execution`
149
- 2. Delegate research tasks to subagents instead of doing them in the main context
150
- 3. Create a `.powerignore` file in the project root listing directories to exclude
151
- 4. For `/fire-loop`: if iteration > 15, accept the Sabbath Rest and `/fire-loop-resume` in a fresh context
152
-
153
- **Prevention:**
154
- - Keep iteration output concise -- the recitation block is capped at 30 lines for a reason
155
- - Use `/fire-search` to find relevant skills BEFORE starting work (don't search mid-loop)
156
- - Read only the relevant sections of large files (use line offsets)
157
- - After 2 failed approaches, `/clear` and restart with the lessons learned
158
-
159
- ---
160
-
161
- ## 7. Agent spawns fail
162
-
163
- **Symptoms:**
164
- - "Agent definition not found" error when running `/fire-3-execute` or `/fire-7-review`
165
- - Subagent starts but immediately errors out
166
- - SWARM mode fails to create team members
167
-
168
- **Likely Cause:**
169
- - Agent definition file missing from `agents/` directory
170
- - Agent file has incorrect frontmatter (missing `name:` or `description:`)
171
- - Agent's `tools:` list references unavailable tools
172
-
173
- **Fix Steps:**
174
- 1. Check that all agent files exist: `ls ~/.claude/plugins/dominion-flow/agents/`
175
- 2. Expected files: `fire-executor.md`, `fire-planner.md`, `fire-researcher.md`, `fire-verifier.md`, `fire-reviewer.md`
176
- 3. Verify each file has valid YAML frontmatter with `name:` and `description:`
177
- 4. If a file is missing, run `/fire-update` to pull the latest plugin version
178
-
179
- **Prevention:**
180
- - Don't manually edit agent files unless you know the frontmatter schema
181
- - After updating the plugin, verify agents: `ls ~/.claude/plugins/dominion-flow/agents/`
182
- - SWARM mode requires the experimental teams flag: `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`
183
-
184
- ---
185
-
186
- ## 8. Skills not found
187
-
188
- **Symptoms:**
189
- - `/fire-search` returns no results for queries that should match
190
- - Planner agent says "no relevant skills found" during `/fire-2-plan`
191
- - Skills referenced in plans don't exist at the expected path
192
-
193
- **Likely Cause:**
194
- - Skills library path misconfigured or missing
195
- - Project-local skills out of sync with global library
196
- - Skill was deleted or moved to a different category
197
-
198
- **Fix Steps:**
199
- 1. Check the skills library exists: `ls ~/.claude/plugins/dominion-flow/skills-library/`
200
- 2. Run `/fire-skills-sync --pull` to pull latest skills from global to project
201
- 3. Run `/fire-skills-sync --dry-run` to see what's out of sync
202
- 4. If a specific skill is missing, search by keyword: `/fire-search "{topic}"`
203
-
204
- **Prevention:**
205
- - Run `/fire-skills-sync --pull` at the start of each major session
206
- - After contributing a new skill, verify it appears: `/fire-search "{skill name}"`
207
- - Keep skills in their correct category directory -- don't move them manually
208
-
209
- ---
210
-
211
- ## 9. Circuit breaker tripped
212
-
213
- **Symptoms:**
214
- - Loop stops with "CIRCUIT BREAK" banner
215
- - State shows SPINNING or STALLED or DEGRADED
216
- - Message: "Error seen N times. Previous approaches: {list}"
217
-
218
- **Likely Cause:**
219
- - **STALLED:** No file changes for 3+ iterations -- agent is reading/thinking but not acting
220
- - **SPINNING:** Same error hash repeated 4+ times -- agent retrying the same failed approach
221
- - **DEGRADED:** Output volume declining 50%+ from baseline -- context rot setting in
222
-
223
- **Fix Steps:**
224
- 1. Read the loop state file: `.planning/loops/fire-loop-{ID}.md`
225
- 2. Check the "Approaches Tried" section -- these are what NOT to repeat
226
- 3. For STALLED: the fix is usually to try a fundamentally different approach
227
- 4. For SPINNING: read the error carefully -- the repeated error hash tells you exactly what's failing
228
- 5. For DEGRADED: accept the Sabbath Rest, `/clear`, then `/fire-loop-resume {ID}`
229
-
230
- **Prevention:**
231
- - Use `--aggressive` for tasks where you expect quick resolution (tighter thresholds)
232
- - Write clear completion criteria so the loop knows when it's done
233
- - Trust the circuit breaker -- forcing through a tripped breaker wastes iterations
234
- - After a trip, always read the loop file before resuming to understand what was tried
235
-
236
- ---
237
-
238
- ## 10. Handoff incomplete
239
-
240
- **Symptoms:**
241
- - `/fire-6-resume` can't find a handoff file or shows stale data
242
- - Handoff missing key sections (blockers, in-progress work, skills applied)
243
- - Next session agent doesn't have enough context to continue
244
-
245
- **Likely Cause:**
246
- - `/fire-5-handoff` wasn't run before ending the session
247
- - Handoff was created but CONSCIENCE.md was out of date at the time
248
- - Session ended abruptly (crash, Ctrl+C) before handoff could complete
249
-
250
- **Fix Steps:**
251
- 1. Run `/fire-5-handoff` manually to create a fresh handoff from current state
252
- 2. Check `.planning/` for any `POWER-HANDOFF-*.md` files -- there may be a partial one
253
- 3. If CONSCIENCE.md is stale, update it manually with current phase status
254
- 4. Verify the handoff follows WARRIOR 7-step format: What / Accomplished / Remaining / Resources / Issues / Observations / Recommendations
255
-
256
- **Prevention:**
257
- - Always run `/fire-5-handoff` before ending a session -- make it a habit
258
- - The `stop-verify.js` hook warns if tasks are incomplete when you exit
259
- - For long sessions, create intermediate handoffs every 2-3 hours
260
- - If using `/fire-loop`, the Sabbath Rest snapshot serves as an automatic partial handoff
261
-
262
- ---
263
-
264
- *If your issue isn't listed here, check the references directory for detailed protocol documentation, or run `/fire-debug` to systematically investigate.*
1
+ # Dominion Flow Troubleshooting Guide
2
+
3
+ Common failure modes and their fixes.
4
+
5
+ ---
6
+
7
+ ## 1. Autonomous mode won't stop
8
+
9
+ **Symptoms:**
10
+ - `/fire-autonomous` or `/fire-loop` continues iterating past the point of usefulness
11
+ - Agent ignores Sabbath Rest warnings and keeps working
12
+ - Iteration count climbing with no meaningful progress
13
+
14
+ **Likely Cause:**
15
+ - `--max-iterations` set too high (default 50)
16
+ - `--no-circuit-breaker` flag was passed, disabling the safety net
17
+ - Completion promise text doesn't match actual output (e.g., "DONE" vs "Done")
18
+
19
+ **Fix Steps:**
20
+ 1. Press `Ctrl+C` to interrupt the current iteration
21
+ 2. Run `/fire-loop-stop` to formally end the loop and save state
22
+ 3. Check `.planning/loops/fire-loop-*.md` for the loop state file
23
+ 4. Review the "Approaches Tried" section to see what was attempted
24
+
25
+ **Prevention:**
26
+ - Use `--max-iterations 20` for most tasks (30 max for complex work)
27
+ - Never use `--no-circuit-breaker` unless you're monitoring closely
28
+ - Write precise completion promises: `--completion-promise "ALL TESTS PASS"`
29
+ - Use `--aggressive` for tighter stall/spin detection thresholds
30
+
31
+ ---
32
+
33
+ ## 2. Wrong files modified
34
+
35
+ **Symptoms:**
36
+ - Files in a different project were edited by a subagent
37
+ - Changes landed in the wrong directory
38
+ - Cross-project contamination (e.g., editing `my-other-project` instead of `my-project`)
39
+
40
+ **Likely Cause:**
41
+ - Working directory didn't match the project in CONSCIENCE.md
42
+ - Subagent resolved a relative path to the wrong project
43
+ - Multiple project directories open in the same session
44
+
45
+ **Fix Steps:**
46
+ 1. Run `git diff` in the affected project to see what changed
47
+ 2. Run `git checkout -- .` to revert unwanted changes (or `git stash` to save them)
48
+ 3. Check CONSCIENCE.md -- does it reference the correct project path?
49
+ 4. Verify `pwd` matches the expected project root before re-running
50
+
51
+ **Prevention:**
52
+ - The Path Verification Gate (Step 3.5 in `/fire-3-execute`) catches this automatically
53
+ - Always use absolute paths when working across multiple projects
54
+ - Run `/fire-0-orient` at session start to confirm you're in the right place
55
+ - When spawning subagents, the `<path_constraint>` block is injected automatically -- verify it matches
56
+
57
+ ---
58
+
59
+ ## 3. Memory features not working
60
+
61
+ **Symptoms:**
62
+ - Episodic memory injection (Step 7.1 in `/fire-loop`) returns no results
63
+ - `/fire-reflect` can't search past reflections
64
+ - "Connection refused" errors mentioning port 6335
65
+
66
+ **Likely Cause:**
67
+ - Qdrant is not running (native binary at `C:\path\to\qdrant\qdrant.exe`)
68
+ - Qdrant is running but on the wrong port (6333 = Docker backup, 6335 = native primary)
69
+ - Ollama embedding service is down (needed for `nomic-embed-text` 768d vectors)
70
+
71
+ **Fix Steps:**
72
+ 1. Check Qdrant health: `curl http://localhost:6335/healthz`
73
+ 2. If down, start it: `C:\path\to\qdrant\qdrant.exe` (runs on port 6335)
74
+ 3. Check Ollama: `curl http://localhost:11434/api/tags`
75
+ 4. If Ollama is down: `ollama serve` in a separate terminal
76
+ 5. Verify the collection exists: `curl http://localhost:6335/collections/power_flow_memory`
77
+
78
+ **Prevention:**
79
+ - Dominion Flow degrades gracefully: if Qdrant is unreachable, it falls back to file-based search across `~/.claude/warrior-handoffs/` and `~/.claude/reflections/`
80
+ - The file-based fallback is slower but functional -- memory retrieval is never silently skipped
81
+ - Add Qdrant to your system startup if you use memory features regularly
82
+
83
+ ---
84
+
85
+ ## 4. Verification always fails
86
+
87
+ **Symptoms:**
88
+ - `/fire-4-verify` consistently returns REJECTED or CONDITIONAL
89
+ - Score stuck below 49 even for seemingly complete work
90
+ - E2E (Playwright) category drags the score down on non-UI projects
91
+
92
+ **Likely Cause:**
93
+ - The 70-point checklist includes 10 points for E2E/Playwright testing -- irrelevant for CLI, API-only, or library projects
94
+ - Documentation category (10 points) penalizes when README/JSDoc isn't written yet
95
+ - Validation thresholds: 63-70 = APPROVED, 56-62 = APPROVED*, 49-55 = CONDITIONAL, <42 = REJECTED
96
+
97
+ **Fix Steps:**
98
+ 1. Check `.planning/phases/{N}-{name}/{N}-VERIFICATION.md` for the breakdown
99
+ 2. Identify which categories are scoring zero
100
+ 3. For non-UI projects: the E2E category should be redistributed to other categories by the verifier -- if it isn't, note this as a configuration issue
101
+ 4. Focus on the must-haves first: if all must-haves pass, CONDITIONAL is often acceptable for early phases
102
+
103
+ **Prevention:**
104
+ - Run `/fire-4-verify` with awareness of what the 7 categories are: Code Quality /10, Testing /10, Security /10, Performance /10, Documentation /10, Infrastructure /10, E2E /10
105
+ - For API-only projects, tell the verifier in the plan: "No E2E -- redistribute points to Testing and Security"
106
+ - Use `/fire-double-check` for a quick sanity check before the full 70-point verification
107
+
108
+ ---
109
+
110
+ ## 5. Plans executed in wrong order
111
+
112
+ **Symptoms:**
113
+ - Breath 2 tasks fail because Breath 1 outputs don't exist yet
114
+ - Tasks with dependencies execute before their dependencies complete
115
+ - File conflicts between parallel executors
116
+
117
+ **Likely Cause:**
118
+ - `breath:` frontmatter in BLUEPRINT.md files is incorrectly assigned
119
+ - `depends_on:` field missing or wrong in the plan files
120
+ - Execution mode selected PARALLEL when it should have been SEQUENTIAL (file overlap)
121
+
122
+ **Fix Steps:**
123
+ 1. Open `.planning/phases/{N}-{name}/` and check each BLUEPRINT.md frontmatter
124
+ 2. Verify `breath:` numbers -- all tasks in Breath 1 should have no external dependencies
125
+ 3. Verify `depends_on:` lists reference only tasks in earlier breaths
126
+ 4. Re-run `/fire-2-plan {N}` to regenerate plans with correct breath assignment
127
+
128
+ **Prevention:**
129
+ - The planner agent validates breath assignments during `/fire-2-plan`
130
+ - `/fire-3-execute` auto-detects file overlap and downgrades from PARALLEL to SEQUENTIAL
131
+ - Review the execution manifest at Step 2 before proceeding
132
+
133
+ ---
134
+
135
+ ## 6. Context window filling up fast
136
+
137
+ **Symptoms:**
138
+ - Claude starts forgetting earlier instructions mid-session
139
+ - Output quality degrades after 10-15 iterations
140
+ - Sabbath Rest triggers repeatedly at low iteration counts
141
+
142
+ **Likely Cause:**
143
+ - Large files loaded into context (reading entire source files instead of relevant sections)
144
+ - Skills library injecting too many skills per iteration (max should be 3)
145
+ - No `.powerignore` file to exclude noise (node_modules, build artifacts, etc.)
146
+
147
+ **Fix Steps:**
148
+ 1. Run `/compact` with a focus topic: `/compact Focus on phase 3 execution`
149
+ 2. Delegate research tasks to subagents instead of doing them in the main context
150
+ 3. Create a `.powerignore` file in the project root listing directories to exclude
151
+ 4. For `/fire-loop`: if iteration > 15, accept the Sabbath Rest and `/fire-loop-resume` in a fresh context
152
+
153
+ **Prevention:**
154
+ - Keep iteration output concise -- the recitation block is capped at 30 lines for a reason
155
+ - Use `/fire-search` to find relevant skills BEFORE starting work (don't search mid-loop)
156
+ - Read only the relevant sections of large files (use line offsets)
157
+ - After 2 failed approaches, `/clear` and restart with the lessons learned
158
+
159
+ ---
160
+
161
+ ## 7. Agent spawns fail
162
+
163
+ **Symptoms:**
164
+ - "Agent definition not found" error when running `/fire-3-execute` or `/fire-7-review`
165
+ - Subagent starts but immediately errors out
166
+ - SWARM mode fails to create team members
167
+
168
+ **Likely Cause:**
169
+ - Agent definition file missing from `agents/` directory
170
+ - Agent file has incorrect frontmatter (missing `name:` or `description:`)
171
+ - Agent's `tools:` list references unavailable tools
172
+
173
+ **Fix Steps:**
174
+ 1. Check that all agent files exist: `ls ~/.claude/plugins/fire-flow/agents/`
175
+ 2. Expected files: `fire-executor.md`, `fire-planner.md`, `fire-researcher.md`, `fire-verifier.md`, `fire-reviewer.md`
176
+ 3. Verify each file has valid YAML frontmatter with `name:` and `description:`
177
+ 4. If a file is missing, run `/fire-update` to pull the latest plugin version
178
+
179
+ **Prevention:**
180
+ - Don't manually edit agent files unless you know the frontmatter schema
181
+ - After updating the plugin, verify agents: `ls ~/.claude/plugins/fire-flow/agents/`
182
+ - SWARM mode requires the experimental teams flag: `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`
183
+
184
+ ---
185
+
186
+ ## 8. Skills not found
187
+
188
+ **Symptoms:**
189
+ - `/fire-search` returns no results for queries that should match
190
+ - Planner agent says "no relevant skills found" during `/fire-2-plan`
191
+ - Skills referenced in plans don't exist at the expected path
192
+
193
+ **Likely Cause:**
194
+ - Skills library path misconfigured or missing
195
+ - Project-local skills out of sync with global library
196
+ - Skill was deleted or moved to a different category
197
+
198
+ **Fix Steps:**
199
+ 1. Check the skills library exists: `ls ~/.claude/plugins/fire-flow/skills-library/`
200
+ 2. Run `/fire-skills-sync --pull` to pull latest skills from global to project
201
+ 3. Run `/fire-skills-sync --dry-run` to see what's out of sync
202
+ 4. If a specific skill is missing, search by keyword: `/fire-search "{topic}"`
203
+
204
+ **Prevention:**
205
+ - Run `/fire-skills-sync --pull` at the start of each major session
206
+ - After contributing a new skill, verify it appears: `/fire-search "{skill name}"`
207
+ - Keep skills in their correct category directory -- don't move them manually
208
+
209
+ ---
210
+
211
+ ## 9. Circuit breaker tripped
212
+
213
+ **Symptoms:**
214
+ - Loop stops with "CIRCUIT BREAK" banner
215
+ - State shows SPINNING or STALLED or DEGRADED
216
+ - Message: "Error seen N times. Previous approaches: {list}"
217
+
218
+ **Likely Cause:**
219
+ - **STALLED:** No file changes for 3+ iterations -- agent is reading/thinking but not acting
220
+ - **SPINNING:** Same error hash repeated 4+ times -- agent retrying the same failed approach
221
+ - **DEGRADED:** Output volume declining 50%+ from baseline -- context rot setting in
222
+
223
+ **Fix Steps:**
224
+ 1. Read the loop state file: `.planning/loops/fire-loop-{ID}.md`
225
+ 2. Check the "Approaches Tried" section -- these are what NOT to repeat
226
+ 3. For STALLED: the fix is usually to try a fundamentally different approach
227
+ 4. For SPINNING: read the error carefully -- the repeated error hash tells you exactly what's failing
228
+ 5. For DEGRADED: accept the Sabbath Rest, `/clear`, then `/fire-loop-resume {ID}`
229
+
230
+ **Prevention:**
231
+ - Use `--aggressive` for tasks where you expect quick resolution (tighter thresholds)
232
+ - Write clear completion criteria so the loop knows when it's done
233
+ - Trust the circuit breaker -- forcing through a tripped breaker wastes iterations
234
+ - After a trip, always read the loop file before resuming to understand what was tried
235
+
236
+ ---
237
+
238
+ ## 10. Handoff incomplete
239
+
240
+ **Symptoms:**
241
+ - `/fire-6-resume` can't find a handoff file or shows stale data
242
+ - Handoff missing key sections (blockers, in-progress work, skills applied)
243
+ - Next session agent doesn't have enough context to continue
244
+
245
+ **Likely Cause:**
246
+ - `/fire-5-handoff` wasn't run before ending the session
247
+ - Handoff was created but CONSCIENCE.md was out of date at the time
248
+ - Session ended abruptly (crash, Ctrl+C) before handoff could complete
249
+
250
+ **Fix Steps:**
251
+ 1. Run `/fire-5-handoff` manually to create a fresh handoff from current state
252
+ 2. Check `.planning/` for any `POWER-HANDOFF-*.md` files -- there may be a partial one
253
+ 3. If CONSCIENCE.md is stale, update it manually with current phase status
254
+ 4. Verify the handoff follows WARRIOR 7-step format: What / Accomplished / Remaining / Resources / Issues / Observations / Recommendations
255
+
256
+ **Prevention:**
257
+ - Always run `/fire-5-handoff` before ending a session -- make it a habit
258
+ - The `stop-verify.js` hook warns if tasks are incomplete when you exit
259
+ - For long sessions, create intermediate handoffs every 2-3 hours
260
+ - If using `/fire-loop`, the Sabbath Rest snapshot serves as an automatic partial handoff
261
+
262
+ ---
263
+
264
+ *If your issue isn't listed here, check the references directory for detailed protocol documentation, or run `/fire-debug` to systematically investigate.*