gsd-opencode 1.22.1 → 1.33.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 (188) hide show
  1. package/agents/gsd-advisor-researcher.md +112 -0
  2. package/agents/gsd-assumptions-analyzer.md +110 -0
  3. package/agents/gsd-codebase-mapper.md +0 -2
  4. package/agents/gsd-debugger.md +117 -2
  5. package/agents/gsd-doc-verifier.md +207 -0
  6. package/agents/gsd-doc-writer.md +608 -0
  7. package/agents/gsd-executor.md +45 -4
  8. package/agents/gsd-integration-checker.md +0 -2
  9. package/agents/gsd-nyquist-auditor.md +0 -2
  10. package/agents/gsd-phase-researcher.md +191 -5
  11. package/agents/gsd-plan-checker.md +152 -5
  12. package/agents/gsd-planner.md +131 -157
  13. package/agents/gsd-project-researcher.md +28 -3
  14. package/agents/gsd-research-synthesizer.md +0 -2
  15. package/agents/gsd-roadmapper.md +29 -2
  16. package/agents/gsd-security-auditor.md +129 -0
  17. package/agents/gsd-ui-auditor.md +485 -0
  18. package/agents/gsd-ui-checker.md +305 -0
  19. package/agents/gsd-ui-researcher.md +368 -0
  20. package/agents/gsd-user-profiler.md +173 -0
  21. package/agents/gsd-verifier.md +207 -22
  22. package/commands/gsd/gsd-add-backlog.md +76 -0
  23. package/commands/gsd/gsd-analyze-dependencies.md +34 -0
  24. package/commands/gsd/gsd-audit-uat.md +24 -0
  25. package/commands/gsd/gsd-autonomous.md +45 -0
  26. package/commands/gsd/gsd-cleanup.md +5 -0
  27. package/commands/gsd/gsd-debug.md +29 -21
  28. package/commands/gsd/gsd-discuss-phase.md +15 -36
  29. package/commands/gsd/gsd-do.md +30 -0
  30. package/commands/gsd/gsd-docs-update.md +48 -0
  31. package/commands/gsd/gsd-execute-phase.md +24 -2
  32. package/commands/gsd/gsd-fast.md +30 -0
  33. package/commands/gsd/gsd-forensics.md +56 -0
  34. package/commands/gsd/gsd-help.md +2 -0
  35. package/commands/gsd/gsd-join-discord.md +2 -1
  36. package/commands/gsd/gsd-list-workspaces.md +19 -0
  37. package/commands/gsd/gsd-manager.md +40 -0
  38. package/commands/gsd/gsd-milestone-summary.md +51 -0
  39. package/commands/gsd/gsd-new-project.md +4 -0
  40. package/commands/gsd/gsd-new-workspace.md +44 -0
  41. package/commands/gsd/gsd-next.md +24 -0
  42. package/commands/gsd/gsd-note.md +34 -0
  43. package/commands/gsd/gsd-plan-phase.md +8 -1
  44. package/commands/gsd/gsd-plant-seed.md +28 -0
  45. package/commands/gsd/gsd-pr-branch.md +25 -0
  46. package/commands/gsd/gsd-profile-user.md +46 -0
  47. package/commands/gsd/gsd-quick.md +7 -3
  48. package/commands/gsd/gsd-reapply-patches.md +178 -45
  49. package/commands/gsd/gsd-remove-workspace.md +26 -0
  50. package/commands/gsd/gsd-research-phase.md +7 -12
  51. package/commands/gsd/gsd-review-backlog.md +62 -0
  52. package/commands/gsd/gsd-review.md +38 -0
  53. package/commands/gsd/gsd-secure-phase.md +35 -0
  54. package/commands/gsd/gsd-session-report.md +19 -0
  55. package/commands/gsd/gsd-set-profile.md +24 -23
  56. package/commands/gsd/gsd-ship.md +23 -0
  57. package/commands/gsd/gsd-stats.md +18 -0
  58. package/commands/gsd/gsd-thread.md +127 -0
  59. package/commands/gsd/gsd-ui-phase.md +34 -0
  60. package/commands/gsd/gsd-ui-review.md +32 -0
  61. package/commands/gsd/gsd-workstreams.md +71 -0
  62. package/get-shit-done/bin/gsd-tools.cjs +450 -90
  63. package/get-shit-done/bin/lib/commands.cjs +489 -24
  64. package/get-shit-done/bin/lib/config.cjs +329 -48
  65. package/get-shit-done/bin/lib/core.cjs +1143 -102
  66. package/get-shit-done/bin/lib/docs.cjs +267 -0
  67. package/get-shit-done/bin/lib/frontmatter.cjs +125 -43
  68. package/get-shit-done/bin/lib/init.cjs +918 -106
  69. package/get-shit-done/bin/lib/milestone.cjs +65 -33
  70. package/get-shit-done/bin/lib/model-profiles.cjs +70 -0
  71. package/get-shit-done/bin/lib/phase.cjs +434 -404
  72. package/get-shit-done/bin/lib/profile-output.cjs +1048 -0
  73. package/get-shit-done/bin/lib/profile-pipeline.cjs +539 -0
  74. package/get-shit-done/bin/lib/roadmap.cjs +156 -101
  75. package/get-shit-done/bin/lib/schema-detect.cjs +238 -0
  76. package/get-shit-done/bin/lib/security.cjs +384 -0
  77. package/get-shit-done/bin/lib/state.cjs +711 -79
  78. package/get-shit-done/bin/lib/template.cjs +2 -2
  79. package/get-shit-done/bin/lib/uat.cjs +282 -0
  80. package/get-shit-done/bin/lib/verify.cjs +254 -42
  81. package/get-shit-done/bin/lib/workstream.cjs +495 -0
  82. package/get-shit-done/references/agent-contracts.md +79 -0
  83. package/get-shit-done/references/artifact-types.md +113 -0
  84. package/get-shit-done/references/checkpoints.md +12 -10
  85. package/get-shit-done/references/context-budget.md +49 -0
  86. package/get-shit-done/references/continuation-format.md +15 -15
  87. package/get-shit-done/references/decimal-phase-calculation.md +2 -3
  88. package/get-shit-done/references/domain-probes.md +125 -0
  89. package/get-shit-done/references/gate-prompts.md +100 -0
  90. package/get-shit-done/references/git-integration.md +47 -0
  91. package/get-shit-done/references/model-profile-resolution.md +2 -0
  92. package/get-shit-done/references/model-profiles.md +62 -16
  93. package/get-shit-done/references/phase-argument-parsing.md +2 -2
  94. package/get-shit-done/references/planner-gap-closure.md +62 -0
  95. package/get-shit-done/references/planner-reviews.md +39 -0
  96. package/get-shit-done/references/planner-revision.md +87 -0
  97. package/get-shit-done/references/planning-config.md +18 -1
  98. package/get-shit-done/references/revision-loop.md +97 -0
  99. package/get-shit-done/references/ui-brand.md +2 -2
  100. package/get-shit-done/references/universal-anti-patterns.md +58 -0
  101. package/get-shit-done/references/user-profiling.md +681 -0
  102. package/get-shit-done/references/workstream-flag.md +111 -0
  103. package/get-shit-done/templates/SECURITY.md +61 -0
  104. package/get-shit-done/templates/UAT.md +21 -3
  105. package/get-shit-done/templates/UI-SPEC.md +100 -0
  106. package/get-shit-done/templates/VALIDATION.md +3 -3
  107. package/get-shit-done/templates/claude-md.md +145 -0
  108. package/get-shit-done/templates/config.json +14 -3
  109. package/get-shit-done/templates/context.md +61 -6
  110. package/get-shit-done/templates/debug-subagent-prompt.md +2 -6
  111. package/get-shit-done/templates/dev-preferences.md +21 -0
  112. package/get-shit-done/templates/discussion-log.md +63 -0
  113. package/get-shit-done/templates/phase-prompt.md +46 -5
  114. package/get-shit-done/templates/planner-subagent-prompt.md +2 -10
  115. package/get-shit-done/templates/project.md +2 -0
  116. package/get-shit-done/templates/state.md +2 -2
  117. package/get-shit-done/templates/user-profile.md +146 -0
  118. package/get-shit-done/workflows/add-phase.md +4 -4
  119. package/get-shit-done/workflows/add-tests.md +4 -4
  120. package/get-shit-done/workflows/add-todo.md +4 -4
  121. package/get-shit-done/workflows/analyze-dependencies.md +96 -0
  122. package/get-shit-done/workflows/audit-milestone.md +20 -16
  123. package/get-shit-done/workflows/audit-uat.md +109 -0
  124. package/get-shit-done/workflows/autonomous.md +1036 -0
  125. package/get-shit-done/workflows/check-todos.md +4 -4
  126. package/get-shit-done/workflows/cleanup.md +4 -4
  127. package/get-shit-done/workflows/complete-milestone.md +22 -10
  128. package/get-shit-done/workflows/diagnose-issues.md +21 -7
  129. package/get-shit-done/workflows/discovery-phase.md +2 -2
  130. package/get-shit-done/workflows/discuss-phase-assumptions.md +671 -0
  131. package/get-shit-done/workflows/discuss-phase-power.md +291 -0
  132. package/get-shit-done/workflows/discuss-phase.md +558 -47
  133. package/get-shit-done/workflows/do.md +104 -0
  134. package/get-shit-done/workflows/docs-update.md +1093 -0
  135. package/get-shit-done/workflows/execute-phase.md +741 -58
  136. package/get-shit-done/workflows/execute-plan.md +77 -12
  137. package/get-shit-done/workflows/fast.md +105 -0
  138. package/get-shit-done/workflows/forensics.md +265 -0
  139. package/get-shit-done/workflows/health.md +28 -6
  140. package/get-shit-done/workflows/help.md +127 -7
  141. package/get-shit-done/workflows/insert-phase.md +4 -4
  142. package/get-shit-done/workflows/list-phase-assumptions.md +2 -2
  143. package/get-shit-done/workflows/list-workspaces.md +56 -0
  144. package/get-shit-done/workflows/manager.md +363 -0
  145. package/get-shit-done/workflows/map-codebase.md +83 -44
  146. package/get-shit-done/workflows/milestone-summary.md +223 -0
  147. package/get-shit-done/workflows/new-milestone.md +133 -25
  148. package/get-shit-done/workflows/new-project.md +216 -54
  149. package/get-shit-done/workflows/new-workspace.md +237 -0
  150. package/get-shit-done/workflows/next.md +97 -0
  151. package/get-shit-done/workflows/node-repair.md +92 -0
  152. package/get-shit-done/workflows/note.md +156 -0
  153. package/get-shit-done/workflows/pause-work.md +132 -15
  154. package/get-shit-done/workflows/plan-milestone-gaps.md +6 -7
  155. package/get-shit-done/workflows/plan-phase.md +513 -62
  156. package/get-shit-done/workflows/plant-seed.md +169 -0
  157. package/get-shit-done/workflows/pr-branch.md +129 -0
  158. package/get-shit-done/workflows/profile-user.md +450 -0
  159. package/get-shit-done/workflows/progress.md +154 -29
  160. package/get-shit-done/workflows/quick.md +285 -111
  161. package/get-shit-done/workflows/remove-phase.md +2 -2
  162. package/get-shit-done/workflows/remove-workspace.md +90 -0
  163. package/get-shit-done/workflows/research-phase.md +13 -9
  164. package/get-shit-done/workflows/resume-project.md +37 -18
  165. package/get-shit-done/workflows/review.md +281 -0
  166. package/get-shit-done/workflows/secure-phase.md +154 -0
  167. package/get-shit-done/workflows/session-report.md +146 -0
  168. package/get-shit-done/workflows/set-profile.md +2 -2
  169. package/get-shit-done/workflows/settings.md +91 -11
  170. package/get-shit-done/workflows/ship.md +237 -0
  171. package/get-shit-done/workflows/stats.md +60 -0
  172. package/get-shit-done/workflows/transition.md +150 -23
  173. package/get-shit-done/workflows/ui-phase.md +292 -0
  174. package/get-shit-done/workflows/ui-review.md +183 -0
  175. package/get-shit-done/workflows/update.md +262 -30
  176. package/get-shit-done/workflows/validate-phase.md +14 -17
  177. package/get-shit-done/workflows/verify-phase.md +143 -11
  178. package/get-shit-done/workflows/verify-work.md +141 -39
  179. package/package.json +1 -1
  180. package/skills/gsd-audit-milestone/SKILL.md +29 -0
  181. package/skills/gsd-cleanup/SKILL.md +19 -0
  182. package/skills/gsd-complete-milestone/SKILL.md +131 -0
  183. package/skills/gsd-discuss-phase/SKILL.md +54 -0
  184. package/skills/gsd-execute-phase/SKILL.md +49 -0
  185. package/skills/gsd-plan-phase/SKILL.md +37 -0
  186. package/skills/gsd-ui-phase/SKILL.md +24 -0
  187. package/skills/gsd-ui-review/SKILL.md +24 -0
  188. package/skills/gsd-verify-work/SKILL.md +30 -0
@@ -0,0 +1,291 @@
1
+ <objective>
2
+ Power user mode for discuss-phase. Generates ALL questions upfront into a JSON state file and an HTML companion UI, then waits for the user to answer at their own pace. When the user signals readiness, processes all answers in one pass and generates CONTEXT.md.
3
+
4
+ **When to use:** Large phases with many gray areas, or when users prefer to answer questions offline / asynchronously rather than interactively in the chat session.
5
+ </objective>
6
+
7
+ <trigger>
8
+ This workflow executes when `--power` flag is present in ARGUMENTS to `/gsd-discuss-phase`.
9
+
10
+ The caller (discuss-phase.md) has already:
11
+ - Validated the phase exists
12
+ - Provided init context: `phase_dir`, `padded_phase`, `phase_number`, `phase_name`, `phase_slug`
13
+
14
+ Begin at **Step 1** immediately.
15
+ </trigger>
16
+
17
+ <step name="analyze">
18
+ Run the same gray area identification as standard discuss-phase mode.
19
+
20
+ 1. Load prior context (PROJECT.md, REQUIREMENTS.md, STATE.md, prior CONTEXT.md files)
21
+ 2. Scout codebase for reusable assets and patterns relevant to this phase
22
+ 3. read the phase goal from ROADMAP.md
23
+ 4. Identify ALL gray areas — specific implementation decisions the user should weigh in on
24
+ 5. For each gray area, generate 2–4 concrete options with tradeoff descriptions
25
+
26
+ Group questions by topic into sections (e.g., "Visual Style", "Data Model", "Interactions", "Error Handling"). Each section should have 2–6 questions.
27
+
28
+ Do NOT ask the user anything at this stage. Capture everything internally, then proceed to generate.
29
+ </step>
30
+
31
+ <step name="generate_json">
32
+ write all questions to:
33
+
34
+ ```
35
+ {phase_dir}/{padded_phase}-QUESTIONS.json
36
+ ```
37
+
38
+ **JSON structure:**
39
+
40
+ ```json
41
+ {
42
+ "phase": "{padded_phase}-{phase_slug}",
43
+ "generated_at": "ISO-8601 timestamp",
44
+ "stats": {
45
+ "total": 0,
46
+ "answered": 0,
47
+ "chat_more": 0,
48
+ "remaining": 0
49
+ },
50
+ "sections": [
51
+ {
52
+ "id": "section-slug",
53
+ "title": "Section Title",
54
+ "questions": [
55
+ {
56
+ "id": "Q-01",
57
+ "title": "Short question title",
58
+ "context": "Codebase info, prior decisions, or constraints relevant to this question",
59
+ "options": [
60
+ {
61
+ "id": "a",
62
+ "label": "Option label",
63
+ "description": "Tradeoff or elaboration for this option"
64
+ },
65
+ {
66
+ "id": "b",
67
+ "label": "Another option",
68
+ "description": "Tradeoff or elaboration"
69
+ },
70
+ {
71
+ "id": "c",
72
+ "label": "Custom",
73
+ "description": ""
74
+ }
75
+ ],
76
+ "answer": null,
77
+ "chat_more": "",
78
+ "status": "unanswered"
79
+ }
80
+ ]
81
+ }
82
+ ]
83
+ }
84
+ ```
85
+
86
+ **Field rules:**
87
+ - `stats.total`: count of all questions across all sections
88
+ - `stats.answered`: count where `answer` is not null and not empty string
89
+ - `stats.chat_more`: count where `chat_more` has content
90
+ - `stats.remaining`: `total - answered`
91
+ - `question.id`: sequential across all sections — Q-01, Q-02, Q-03, ...
92
+ - `question.context`: concrete codebase or prior-decision annotation (not generic)
93
+ - `question.answer`: null until user sets it; once answered, the selected option id or free-text
94
+ - `question.status`: "unanswered" | "answered" | "chat-more" (has chat_more but no answer yet)
95
+ </step>
96
+
97
+ <step name="generate_html">
98
+ write a self-contained HTML companion file to:
99
+
100
+ ```
101
+ {phase_dir}/{padded_phase}-QUESTIONS.html
102
+ ```
103
+
104
+ The file must be a single self-contained HTML file with inline CSS and JavaScript. No external dependencies.
105
+
106
+ **Layout:**
107
+
108
+ ```
109
+ ┌─────────────────────────────────────────────────────┐
110
+ │ Phase {N}: {phase_name} — Discussion Questions │
111
+ │ ┌──────────────────────────────────────────────┐ │
112
+ │ │ 12 total | 3 answered | 9 remaining │ │
113
+ │ └──────────────────────────────────────────────┘ │
114
+ ├─────────────────────────────────────────────────────┤
115
+ │ ▼ Visual Style (3 questions) │
116
+ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
117
+ │ │ Q-01 │ │ Q-02 │ │ Q-03 │ │
118
+ │ │ Layout │ │ Density │ │ Colors │ │
119
+ │ │ ... │ │ ... │ │ ... │ │
120
+ │ └──────────┘ └──────────┘ └──────────┘ │
121
+ │ ▼ Data Model (2 questions) │
122
+ │ ... │
123
+ └─────────────────────────────────────────────────────┘
124
+ ```
125
+
126
+ **Stats bar:**
127
+ - Total questions, answered count, remaining count
128
+ - A simple CSS progress bar (green fill = answered / total)
129
+
130
+ **Section headers:**
131
+ - Collapsible via click — show/hide questions in the section
132
+ - Show answered count for the section (e.g., "2/4 answered")
133
+
134
+ **question cards (3-column grid):**
135
+ Each card contains:
136
+ - question ID badge (e.g., "Q-01") and title
137
+ - Context annotation (gray italic text)
138
+ - Option list: radio buttons with bold label + description text
139
+ - Chat more textarea (orange border when content present)
140
+ - Card highlighted green when answered
141
+
142
+ **JavaScript behavior:**
143
+ - On radio button select: mark question as answered in page state; update stats bar
144
+ - On textarea input: update chat_more content in page state; show orange border if content present
145
+ - "Save answers" button at top and bottom: serializes page state back to the JSON file path
146
+
147
+ **Save mechanism:**
148
+ The Save button writes the updated JSON back using the File System Access API if available, otherwise generates a downloadable JSON file the user can save over the original. Include clear instructions in the UI:
149
+
150
+ ```
151
+ After answering, click "Save answers" — or download the JSON and replace the original file.
152
+ Then return to OpenCode and say "refresh" to process your answers.
153
+ ```
154
+
155
+ **Answered question styling:**
156
+ - Card border: `2px solid #22c55e` (green)
157
+ - Card background: `#f0fdf4` (light green tint)
158
+
159
+ **Unanswered question styling:**
160
+ - Card border: `1px solid #e2e8f0` (gray)
161
+ - Card background: `white`
162
+
163
+ **Chat more textarea:**
164
+ - Placeholder: "Add context, nuance, or clarification for this question..."
165
+ - Normal border: `1px solid #e2e8f0`
166
+ - Active (has content) border: `2px solid #f97316` (orange)
167
+ </step>
168
+
169
+ <step name="notify_user">
170
+ After writing both files, print this message to the user:
171
+
172
+ ```
173
+ Questions ready for Phase {N}: {phase_name}
174
+
175
+ HTML (open in browser/IDE): {phase_dir}/{padded_phase}-QUESTIONS.html
176
+ JSON (state file): {phase_dir}/{padded_phase}-QUESTIONS.json
177
+
178
+ {total} questions across {section_count} topics.
179
+
180
+ Open the HTML file, answer the questions at your own pace, then save.
181
+
182
+ When ready, tell me:
183
+ "refresh" — process your answers and update the file
184
+ "finalize" — generate CONTEXT.md from all answered questions
185
+ "explain Q-05" — elaborate on a specific question
186
+ "exit power mode" — return to standard one-by-one discussion (answers carry over)
187
+ ```
188
+ </step>
189
+
190
+ <step name="wait_loop">
191
+ Enter wait mode. OpenCode listens for user commands and handles each:
192
+
193
+ ---
194
+
195
+ **"refresh"** (or "process answers", "update", "re-read"):
196
+
197
+ 1. read `{phase_dir}/{padded_phase}-QUESTIONS.json`
198
+ 2. Recalculate stats: count answered, chat_more, remaining
199
+ 3. write updated stats back to the JSON
200
+ 4. Re-generate the HTML file with the updated state (answered cards highlighted green, progress bar updated)
201
+ 5. Report to user:
202
+
203
+ ```
204
+ Refreshed. Updated state:
205
+ Answered: {answered} / {total}
206
+ Remaining: {remaining}
207
+ Chat-more: {chat_more}
208
+
209
+ {phase_dir}/{padded_phase}-QUESTIONS.html updated.
210
+
211
+ Answer more questions, then say "refresh" again, or say "finalize" when done.
212
+ ```
213
+
214
+ ---
215
+
216
+ **"finalize"** (or "done", "generate context", "write context"):
217
+
218
+ Proceed to the **finalize** step.
219
+
220
+ ---
221
+
222
+ **"explain Q-{N}"** (or "more info on Q-{N}", "elaborate Q-{N}"):
223
+
224
+ 1. Find the question by ID in the JSON
225
+ 2. Provide a detailed explanation: why this decision matters, how it affects the downstream plan, what additional context from the codebase is relevant
226
+ 3. Return to wait mode
227
+
228
+ ---
229
+
230
+ **"exit power mode"** (or "switch to interactive"):
231
+
232
+ 1. read all currently answered questions from JSON
233
+ 2. Load answers into the internal accumulator as if they were answered interactively
234
+ 3. Continue with standard `discuss_areas` step from discuss-phase.md for any unanswered questions
235
+ 4. Generate CONTEXT.md as normal
236
+
237
+ ---
238
+
239
+ **Any other message:**
240
+ Respond helpfully, then remind the user of available commands:
241
+ ```
242
+ (Power mode active — say "refresh", "finalize", "explain Q-N", or "exit power mode")
243
+ ```
244
+ </step>
245
+
246
+ <step name="finalize">
247
+ Process all answered questions from the JSON file and generate CONTEXT.md.
248
+
249
+ 1. read `{phase_dir}/{padded_phase}-QUESTIONS.json`
250
+ 2. Filter to questions where `answer` is not null/empty
251
+ 3. Group decisions by section
252
+ 4. For each answered question, format as a decision entry:
253
+ - Decision: the selected option label (or custom text if free-form answer)
254
+ - Rationale: the option description, plus `chat_more` content if present
255
+ - Status: "Decided" if fully answered, "Needs clarification" if only chat_more with no option selected
256
+
257
+ 5. write CONTEXT.md using the standard context template format:
258
+ - `<decisions>` section with all answered questions grouped by section
259
+ - `<deferred_ideas>` section for unanswered questions (carry forward for future discussion)
260
+ - `<specifics>` section for any chat_more content that adds nuance
261
+ - `<code_context>` section with reusable assets found during analysis
262
+ - `<canonical_refs>` section (MANDATORY — paths to relevant specs/docs)
263
+
264
+ 6. If fewer than 50% of questions were answered, warn the user:
265
+ ```
266
+ Warning: Only {answered}/{total} questions answered ({pct}%).
267
+ CONTEXT.md generated with available decisions. Unanswered questions listed as deferred.
268
+ Consider running /gsd-discuss-phase {N} again to refine before planning.
269
+ ```
270
+
271
+ 7. Print completion message:
272
+ ```
273
+ CONTEXT.md written: {phase_dir}/{padded_phase}-CONTEXT.md
274
+
275
+ Decisions captured: {answered}
276
+ Deferred: {remaining}
277
+
278
+ Next step: /gsd-plan-phase {N}
279
+ ```
280
+ </step>
281
+
282
+ <success_criteria>
283
+ - Questions generated into well-structured JSON covering all identified gray areas
284
+ - HTML companion file is self-contained and usable without a server
285
+ - Stats bar accurately reflects answered/remaining counts after each refresh
286
+ - Answered questions highlighted green in HTML
287
+ - CONTEXT.md generated in the same format as standard discuss-phase output
288
+ - Unanswered questions preserved as deferred items (not silently dropped)
289
+ - `canonical_refs` section always present in CONTEXT.md (MANDATORY)
290
+ - User knows how to refresh, finalize, explain, or exit power mode
291
+ </success_criteria>