maxsimcli 5.0.7 → 5.1.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 (91) hide show
  1. package/README.md +101 -99
  2. package/dist/assets/CHANGELOG.md +7 -0
  3. package/dist/assets/hooks/maxsim-capture-learnings.cjs +128 -0
  4. package/dist/assets/hooks/maxsim-capture-learnings.cjs.map +1 -0
  5. package/dist/assets/hooks/maxsim-check-update.cjs +126 -88
  6. package/dist/assets/hooks/maxsim-check-update.cjs.map +1 -1
  7. package/dist/assets/hooks/maxsim-notification-sound.cjs +87 -43
  8. package/dist/assets/hooks/maxsim-notification-sound.cjs.map +1 -1
  9. package/dist/assets/hooks/maxsim-statusline.cjs +45 -171
  10. package/dist/assets/hooks/maxsim-statusline.cjs.map +1 -1
  11. package/dist/assets/hooks/maxsim-stop-sound.cjs +86 -43
  12. package/dist/assets/hooks/maxsim-stop-sound.cjs.map +1 -1
  13. package/dist/assets/hooks/maxsim-sync-reminder.cjs +72 -21
  14. package/dist/assets/hooks/maxsim-sync-reminder.cjs.map +1 -1
  15. package/dist/assets/templates/agents/AGENTS.md +62 -51
  16. package/dist/assets/templates/agents/executor.md +44 -59
  17. package/dist/assets/templates/agents/planner.md +36 -31
  18. package/dist/assets/templates/agents/researcher.md +35 -43
  19. package/dist/assets/templates/agents/verifier.md +29 -31
  20. package/dist/assets/templates/commands/maxsim/debug.md +20 -154
  21. package/dist/assets/templates/commands/maxsim/execute.md +19 -33
  22. package/dist/assets/templates/commands/maxsim/go.md +21 -20
  23. package/dist/assets/templates/commands/maxsim/help.md +5 -14
  24. package/dist/assets/templates/commands/maxsim/init.md +18 -40
  25. package/dist/assets/templates/commands/maxsim/plan.md +22 -37
  26. package/dist/assets/templates/commands/maxsim/progress.md +15 -16
  27. package/dist/assets/templates/commands/maxsim/quick.md +18 -29
  28. package/dist/assets/templates/commands/maxsim/settings.md +18 -26
  29. package/dist/assets/templates/references/continuation-format.md +2 -4
  30. package/dist/assets/templates/references/model-profiles.md +2 -2
  31. package/dist/assets/templates/references/planning-config.md +10 -11
  32. package/dist/assets/templates/references/self-improvement.md +120 -0
  33. package/dist/assets/templates/rules/conventions.md +1 -1
  34. package/dist/assets/templates/rules/verification-protocol.md +1 -1
  35. package/dist/assets/templates/skills/brainstorming/SKILL.md +35 -26
  36. package/dist/assets/templates/skills/code-review/SKILL.md +78 -55
  37. package/dist/assets/templates/skills/commit-conventions/SKILL.md +70 -36
  38. package/dist/assets/templates/skills/github-operations/SKILL.md +142 -0
  39. package/dist/assets/templates/skills/handoff-contract/SKILL.md +62 -28
  40. package/dist/assets/templates/skills/maxsim-batch/SKILL.md +68 -42
  41. package/dist/assets/templates/skills/maxsim-simplify/SKILL.md +65 -40
  42. package/dist/assets/templates/skills/project-memory/SKILL.md +121 -0
  43. package/dist/assets/templates/skills/research/SKILL.md +126 -0
  44. package/dist/assets/templates/skills/roadmap-writing/SKILL.md +71 -68
  45. package/dist/assets/templates/skills/systematic-debugging/SKILL.md +37 -25
  46. package/dist/assets/templates/skills/tdd/SKILL.md +36 -39
  47. package/dist/assets/templates/skills/using-maxsim/SKILL.md +69 -55
  48. package/dist/assets/templates/skills/verification/SKILL.md +167 -0
  49. package/dist/assets/templates/workflows/batch.md +249 -268
  50. package/dist/assets/templates/workflows/diagnose-issues.md +225 -151
  51. package/dist/assets/templates/workflows/execute-plan.md +191 -981
  52. package/dist/assets/templates/workflows/execute.md +350 -309
  53. package/dist/assets/templates/workflows/go.md +119 -138
  54. package/dist/assets/templates/workflows/health.md +71 -114
  55. package/dist/assets/templates/workflows/help.md +85 -147
  56. package/dist/assets/templates/workflows/init-existing.md +180 -1373
  57. package/dist/assets/templates/workflows/init.md +53 -165
  58. package/dist/assets/templates/workflows/new-milestone.md +91 -334
  59. package/dist/assets/templates/workflows/new-project.md +165 -1384
  60. package/dist/assets/templates/workflows/plan-create.md +182 -73
  61. package/dist/assets/templates/workflows/plan-discuss.md +89 -82
  62. package/dist/assets/templates/workflows/plan-research.md +191 -85
  63. package/dist/assets/templates/workflows/plan.md +122 -58
  64. package/dist/assets/templates/workflows/progress.md +76 -310
  65. package/dist/assets/templates/workflows/quick.md +70 -495
  66. package/dist/assets/templates/workflows/sdd.md +231 -221
  67. package/dist/assets/templates/workflows/settings.md +90 -120
  68. package/dist/assets/templates/workflows/verify-phase.md +296 -258
  69. package/dist/cli.cjs +17 -23465
  70. package/dist/cli.cjs.map +1 -1
  71. package/dist/install.cjs +356 -8358
  72. package/dist/install.cjs.map +1 -1
  73. package/package.json +16 -22
  74. package/dist/assets/templates/skills/agent-system-map/SKILL.md +0 -92
  75. package/dist/assets/templates/skills/evidence-collection/SKILL.md +0 -87
  76. package/dist/assets/templates/skills/github-artifact-protocol/SKILL.md +0 -67
  77. package/dist/assets/templates/skills/github-tools-guide/SKILL.md +0 -89
  78. package/dist/assets/templates/skills/input-validation/SKILL.md +0 -51
  79. package/dist/assets/templates/skills/memory-management/SKILL.md +0 -75
  80. package/dist/assets/templates/skills/research-methodology/SKILL.md +0 -137
  81. package/dist/assets/templates/skills/sdd/SKILL.md +0 -91
  82. package/dist/assets/templates/skills/tool-priority-guide/SKILL.md +0 -80
  83. package/dist/assets/templates/skills/verification-before-completion/SKILL.md +0 -71
  84. package/dist/assets/templates/skills/verification-gates/SKILL.md +0 -169
  85. package/dist/assets/templates/workflows/discuss-phase.md +0 -683
  86. package/dist/assets/templates/workflows/research-phase.md +0 -73
  87. package/dist/assets/templates/workflows/verify-work.md +0 -572
  88. package/dist/core-D5zUr9cb.cjs +0 -4305
  89. package/dist/core-D5zUr9cb.cjs.map +0 -1
  90. package/dist/skills-CjFWZIGM.cjs +0 -6824
  91. package/dist/skills-CjFWZIGM.cjs.map +0 -1
@@ -1,73 +0,0 @@
1
- <purpose>
2
- Research how to implement a phase. Spawns researcher with phase context.
3
-
4
- Standalone research command. For most workflows, use `/maxsim:plan` which integrates research automatically.
5
- </purpose>
6
-
7
- <process>
8
-
9
- ## Step 0: Resolve Model Profile
10
-
11
- @~/.claude/maxsim/references/model-profile-resolution.md
12
-
13
- Resolve model for:
14
- - `researcher`
15
-
16
- ## Step 1: Normalize and Validate Phase
17
-
18
- @~/.claude/maxsim/references/phase-argument-parsing.md
19
-
20
- ```bash
21
- PHASE_INFO=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs roadmap get-phase "${PHASE}")
22
- ```
23
-
24
- If `found` is false: Error and exit.
25
-
26
- ## Step 2: Check Existing Research
27
-
28
- ```bash
29
- ls .planning/phases/${PHASE}-*/RESEARCH.md 2>/dev/null
30
- ```
31
-
32
- If exists: Offer update/view/skip options.
33
-
34
- ## Step 3: Gather Phase Context
35
-
36
- ```bash
37
- INIT=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs init phase-op "${PHASE}")
38
- # Extract: phase_dir, padded_phase, phase_number, state_path, requirements_path, context_path
39
- ```
40
-
41
- ## Step 4: Spawn Researcher
42
-
43
- ```
44
- Task(
45
- prompt="<objective>
46
- Research implementation approach for Phase {phase}: {name}
47
- </objective>
48
-
49
- <files_to_read>
50
- - {context_path} (USER DECISIONS from /maxsim:plan discussion stage)
51
- - {requirements_path} (Project requirements)
52
- - {state_path} (Project decisions and history)
53
- </files_to_read>
54
-
55
- <additional_context>
56
- Phase description: {description}
57
- </additional_context>
58
-
59
- <output>
60
- Write to: .planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md
61
- </output>",
62
- subagent_type="researcher",
63
- model="{researcher_model}"
64
- )
65
- ```
66
-
67
- ## Step 5: Handle Return
68
-
69
- - `## RESEARCH COMPLETE` — Display summary, offer: Plan/Dig deeper/Review/Done
70
- - `## CHECKPOINT REACHED` — Present to user, spawn continuation
71
- - `## RESEARCH INCONCLUSIVE` — Show attempts, offer: Add context/Try different mode/Manual
72
-
73
- </process>
@@ -1,572 +0,0 @@
1
- <purpose>
2
- Validate built features through conversational testing with persistent state. Creates UAT.md that tracks test progress, survives /clear, and feeds gaps into /maxsim:plan --gaps.
3
-
4
- User tests, Claude records. One test at a time. Plain text responses.
5
- </purpose>
6
-
7
- <philosophy>
8
- **Show expected, ask if reality matches.**
9
-
10
- Claude presents what SHOULD happen. User confirms or describes what's different.
11
- - "yes" / "y" / "next" / empty → pass
12
- - Anything else → logged as issue, severity inferred
13
-
14
- No Pass/Fail buttons. No severity questions. Just: "Here's what should happen. Does it?"
15
- </philosophy>
16
-
17
- <required_reading>
18
- </required_reading>
19
-
20
- <template>
21
- @~/.claude/maxsim/templates/UAT.md
22
- </template>
23
-
24
- <process>
25
-
26
- <step name="initialize" priority="first">
27
- If $ARGUMENTS contains a phase number, load context:
28
-
29
- ```bash
30
- INIT=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs init verify-work "${PHASE_ARG}")
31
- ```
32
-
33
- Parse JSON for: `planner_model`, `checker_model`, `commit_docs`, `phase_found`, `phase_dir`, `phase_number`, `phase_name`, `has_verification`.
34
- </step>
35
-
36
- <step name="check_active_session">
37
- **First: Check for active UAT sessions**
38
-
39
- ```bash
40
- ls .planning/phases/*/*-UAT.md 2>/dev/null | head -5
41
- ```
42
-
43
- **If active sessions exist AND no $ARGUMENTS provided:**
44
-
45
- Read each file's frontmatter (status, phase) and Current Test section.
46
-
47
- Display inline:
48
-
49
- ```
50
- ## Active UAT Sessions
51
-
52
- | # | Phase | Status | Current Test | Progress |
53
- |---|-------|--------|--------------|----------|
54
- | 1 | 04-comments | testing | 3. Reply to Comment | 2/6 |
55
- | 2 | 05-auth | testing | 1. Login Form | 0/4 |
56
-
57
- Reply with a number to resume, or provide a phase number to start new.
58
- ```
59
-
60
- Wait for user response.
61
-
62
- - If user replies with number (1, 2) → Load that file, go to `resume_from_file`
63
- - If user replies with phase number → Treat as new session, go to `create_uat_file`
64
-
65
- **If active sessions exist AND $ARGUMENTS provided:**
66
-
67
- Check if session exists for that phase. If yes, offer to resume or restart.
68
- If no, continue to `create_uat_file`.
69
-
70
- **If no active sessions AND no $ARGUMENTS:**
71
-
72
- ```
73
- No active UAT sessions.
74
-
75
- Provide a phase number to start testing (e.g., /maxsim:execute 4)
76
- ```
77
-
78
- **If no active sessions AND $ARGUMENTS provided:**
79
-
80
- Continue to `create_uat_file`.
81
- </step>
82
-
83
- <step name="find_summaries">
84
- **Find what to test:**
85
-
86
- Use `phase_dir` from init (or run init if not already done).
87
-
88
- ```bash
89
- ls "$phase_dir"/*-SUMMARY.md 2>/dev/null
90
- ```
91
-
92
- Read each SUMMARY.md to extract testable deliverables.
93
- </step>
94
-
95
- <step name="extract_tests">
96
- **Extract testable deliverables from SUMMARY.md:**
97
-
98
- Parse for:
99
- 1. **Accomplishments** - Features/functionality added
100
- 2. **User-facing changes** - UI, workflows, interactions
101
-
102
- Focus on USER-OBSERVABLE outcomes, not implementation details.
103
-
104
- For each deliverable, create a test:
105
- - name: Brief test name
106
- - expected: What the user should see/experience (specific, observable)
107
-
108
- Examples:
109
- - Accomplishment: "Added comment threading with infinite nesting"
110
- → Test: "Reply to a Comment"
111
- → Expected: "Clicking Reply opens inline composer below comment. Submitting shows reply nested under parent with visual indentation."
112
-
113
- Skip internal/non-observable items (refactors, type changes, etc.).
114
- </step>
115
-
116
- <step name="create_uat_file">
117
- **Create UAT file with all tests:**
118
-
119
- ```bash
120
- mkdir -p "$PHASE_DIR"
121
- ```
122
-
123
- Build test list from extracted deliverables.
124
-
125
- Create file:
126
-
127
- ```markdown
128
- ---
129
- status: testing
130
- phase: XX-name
131
- source: [list of SUMMARY.md files]
132
- started: [ISO timestamp]
133
- updated: [ISO timestamp]
134
- ---
135
-
136
- ## Current Test
137
- <!-- OVERWRITE each test - shows where we are -->
138
-
139
- number: 1
140
- name: [first test name]
141
- expected: |
142
- [what user should observe]
143
- awaiting: user response
144
-
145
- ## Tests
146
-
147
- ### 1. [Test Name]
148
- expected: [observable behavior]
149
- result: [pending]
150
-
151
- ### 2. [Test Name]
152
- expected: [observable behavior]
153
- result: [pending]
154
-
155
- ...
156
-
157
- ## Summary
158
-
159
- total: [N]
160
- passed: 0
161
- issues: 0
162
- pending: [N]
163
- skipped: 0
164
-
165
- ## Gaps
166
-
167
- [none yet]
168
- ```
169
-
170
- Write to `.planning/phases/XX-name/{phase_num}-UAT.md`
171
-
172
- Proceed to `present_test`.
173
- </step>
174
-
175
- <step name="present_test">
176
- **Present current test to user:**
177
-
178
- Read Current Test section from UAT file.
179
-
180
- Display using checkpoint box format:
181
-
182
- ```
183
- ╔══════════════════════════════════════════════════════════════╗
184
- ║ CHECKPOINT: Verification Required ║
185
- ╚══════════════════════════════════════════════════════════════╝
186
-
187
- **Test {number}: {name}**
188
-
189
- {expected}
190
-
191
- ──────────────────────────────────────────────────────────────
192
- → Type "pass" or describe what's wrong
193
- ──────────────────────────────────────────────────────────────
194
- ```
195
-
196
- Wait for user response (plain text, no AskUserQuestion).
197
- </step>
198
-
199
- <step name="process_response">
200
- **Process user response and update file:**
201
-
202
- **If response indicates pass:**
203
- - Empty response, "yes", "y", "ok", "pass", "next", "approved", "✓"
204
-
205
- Update Tests section:
206
- ```
207
- ### {N}. {name}
208
- expected: {expected}
209
- result: pass
210
- ```
211
-
212
- **If response indicates skip:**
213
- - "skip", "can't test", "n/a"
214
-
215
- Update Tests section:
216
- ```
217
- ### {N}. {name}
218
- expected: {expected}
219
- result: skipped
220
- reason: [user's reason if provided]
221
- ```
222
-
223
- **If response is anything else:**
224
- - Treat as issue description
225
-
226
- Infer severity from description:
227
- - Contains: crash, error, exception, fails, broken, unusable → blocker
228
- - Contains: doesn't work, wrong, missing, can't → major
229
- - Contains: slow, weird, off, minor, small → minor
230
- - Contains: color, font, spacing, alignment, visual → cosmetic
231
- - Default if unclear: major
232
-
233
- Update Tests section:
234
- ```
235
- ### {N}. {name}
236
- expected: {expected}
237
- result: issue
238
- reported: "{verbatim user response}"
239
- severity: {inferred}
240
- ```
241
-
242
- Append to Gaps section (structured YAML for plan --gaps):
243
- ```yaml
244
- - truth: "{expected behavior from test}"
245
- status: failed
246
- reason: "User reported: {verbatim user response}"
247
- severity: {inferred}
248
- test: {N}
249
- artifacts: [] # Filled by diagnosis
250
- missing: [] # Filled by diagnosis
251
- ```
252
-
253
- **After any response:**
254
-
255
- Update Summary counts.
256
- Update frontmatter.updated timestamp.
257
-
258
- If more tests remain → Update Current Test, go to `present_test`
259
- If no more tests → Go to `complete_session`
260
- </step>
261
-
262
- <step name="resume_from_file">
263
- **Resume testing from UAT file:**
264
-
265
- Read the full UAT file.
266
-
267
- Find first test with `result: [pending]`.
268
-
269
- Announce:
270
- ```
271
- Resuming: Phase {phase} UAT
272
- Progress: {passed + issues + skipped}/{total}
273
- Issues found so far: {issues count}
274
-
275
- Continuing from Test {N}...
276
- ```
277
-
278
- Update Current Test section with the pending test.
279
- Proceed to `present_test`.
280
- </step>
281
-
282
- <step name="complete_session">
283
- **Complete testing and commit:**
284
-
285
- Update frontmatter:
286
- - status: complete
287
- - updated: [now]
288
-
289
- Clear Current Test section:
290
- ```
291
- ## Current Test
292
-
293
- [testing complete]
294
- ```
295
-
296
- Commit the UAT file:
297
- ```bash
298
- node ~/.claude/maxsim/bin/maxsim-tools.cjs commit "test({phase_num}): complete UAT - {passed} passed, {issues} issues" --files ".planning/phases/XX-name/{phase_num}-UAT.md"
299
- ```
300
-
301
- Present summary:
302
- ```
303
- ## UAT Complete: Phase {phase}
304
-
305
- | Result | Count |
306
- |--------|-------|
307
- | Passed | {N} |
308
- | Issues | {N} |
309
- | Skipped| {N} |
310
-
311
- [If issues > 0:]
312
- ### Issues Found
313
-
314
- [List from Issues section]
315
- ```
316
-
317
- **If issues > 0:** Proceed to `diagnose_issues`
318
-
319
- **If issues == 0:**
320
- ```
321
- All tests passed. Ready to continue.
322
-
323
- - `/maxsim:plan {next}` — Plan next phase
324
- - `/maxsim:execute {next}` — Execute next phase
325
- ```
326
- </step>
327
-
328
- <step name="diagnose_issues">
329
- **Diagnose root causes before planning fixes:**
330
-
331
- ```
332
- ---
333
-
334
- {N} issues found. Diagnosing root causes...
335
-
336
- Spawning parallel debug agents to investigate each issue.
337
- ```
338
-
339
- - Load diagnose-issues workflow
340
- - Follow @~/.claude/maxsim/workflows/diagnose-issues.md
341
- - Spawn parallel debug agents for each issue
342
- - Collect root causes
343
- - Update UAT.md with root causes
344
- - Proceed to `plan_gap_closure`
345
-
346
- Diagnosis runs automatically - no user prompt. Parallel agents investigate simultaneously, so overhead is minimal and fixes are more accurate.
347
- </step>
348
-
349
- <step name="plan_gap_closure">
350
- **Auto-plan fixes from diagnosed gaps:**
351
-
352
- Display:
353
- ```
354
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
355
- MAXSIM ► PLANNING FIXES
356
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
357
-
358
- ◆ Spawning planner for gap closure...
359
- ```
360
-
361
- Spawn planner in --gaps mode:
362
-
363
- ```
364
- Task(
365
- prompt="""
366
- <planning_context>
367
-
368
- **Phase:** {phase_number}
369
- **Mode:** gap_closure
370
-
371
- <files_to_read>
372
- - {phase_dir}/{phase_num}-UAT.md (UAT with diagnoses)
373
- - .planning/STATE.md (Project State)
374
- - .planning/ROADMAP.md (Roadmap)
375
- </files_to_read>
376
-
377
- </planning_context>
378
-
379
- <downstream_consumer>
380
- Output consumed by /maxsim:execute
381
- Plans must be executable prompts.
382
- </downstream_consumer>
383
- """,
384
- subagent_type="planner",
385
- model="{planner_model}",
386
- description="Plan gap fixes for Phase {phase}"
387
- )
388
- ```
389
-
390
- On return:
391
- - **PLANNING COMPLETE:** Proceed to `verify_gap_plans`
392
- - **PLANNING INCONCLUSIVE:** Report and offer manual intervention
393
- </step>
394
-
395
- <step name="verify_gap_plans">
396
- **Verify fix plans with checker:**
397
-
398
- Display:
399
- ```
400
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
401
- MAXSIM ► VERIFYING FIX PLANS
402
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
403
-
404
- ◆ Spawning plan checker...
405
- ```
406
-
407
- Initialize: `iteration_count = 1`
408
-
409
- Spawn plan checker (planner in verification mode):
410
-
411
- ```
412
- Task(
413
- prompt="""
414
- <verification_context>
415
-
416
- **Phase:** {phase_number}
417
- **Phase Goal:** Close diagnosed gaps from UAT
418
-
419
- <files_to_read>
420
- - {phase_dir}/*-PLAN.md (Plans to verify)
421
- </files_to_read>
422
-
423
- </verification_context>
424
-
425
- <expected_output>
426
- Return one of:
427
- - ## VERIFICATION PASSED — all checks pass
428
- - ## ISSUES FOUND — structured issue list
429
- </expected_output>
430
- """,
431
- subagent_type="planner",
432
- model="{checker_model}",
433
- description="Verify Phase {phase} fix plans"
434
- )
435
- ```
436
-
437
- On return:
438
- - **VERIFICATION PASSED:** Proceed to `present_ready`
439
- - **ISSUES FOUND:** Proceed to `revision_loop`
440
- </step>
441
-
442
- <step name="revision_loop">
443
- **Iterate planner ↔ checker until plans pass (max 3):**
444
-
445
- **If iteration_count < 3:**
446
-
447
- Display: `Sending back to planner for revision... (iteration {N}/3)`
448
-
449
- Spawn planner with revision context:
450
-
451
- ```
452
- Task(
453
- prompt="""
454
- <revision_context>
455
-
456
- **Phase:** {phase_number}
457
- **Mode:** revision
458
-
459
- <files_to_read>
460
- - {phase_dir}/*-PLAN.md (Existing plans)
461
- </files_to_read>
462
-
463
- **Checker issues:**
464
- {structured_issues_from_checker}
465
-
466
- </revision_context>
467
-
468
- <instructions>
469
- Read existing PLAN.md files. Make targeted updates to address checker issues.
470
- Do NOT replan from scratch unless issues are fundamental.
471
- </instructions>
472
- """,
473
- subagent_type="planner",
474
- model="{planner_model}",
475
- description="Revise Phase {phase} plans"
476
- )
477
- ```
478
-
479
- After planner returns → spawn checker again (verify_gap_plans logic)
480
- Increment iteration_count
481
-
482
- **If iteration_count >= 3:**
483
-
484
- Display: `Max iterations reached. {N} issues remain.`
485
-
486
- Offer options:
487
- 1. Force proceed (execute despite issues)
488
- 2. Provide guidance (user gives direction, retry)
489
- 3. Abandon (exit, user runs /maxsim:plan manually)
490
-
491
- Wait for user response.
492
- </step>
493
-
494
- <step name="present_ready">
495
- **Present completion and next steps:**
496
-
497
- ```
498
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
499
- MAXSIM ► FIXES READY ✓
500
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
501
-
502
- **Phase {X}: {Name}** — {N} gap(s) diagnosed, {M} fix plan(s) created
503
-
504
- | Gap | Root Cause | Fix Plan |
505
- |-----|------------|----------|
506
- | {truth 1} | {root_cause} | {phase}-04 |
507
- | {truth 2} | {root_cause} | {phase}-04 |
508
-
509
- Plans verified and ready for execution.
510
-
511
- ───────────────────────────────────────────────────────────────
512
-
513
- ## ▶ Next Up
514
-
515
- **Execute fixes** — run fix plans
516
-
517
- `/clear` then `/maxsim:execute {phase} --gaps-only`
518
-
519
- ───────────────────────────────────────────────────────────────
520
- ```
521
- </step>
522
-
523
- </process>
524
-
525
- <update_rules>
526
- **Batched writes for efficiency:**
527
-
528
- Keep results in memory. Write to file only when:
529
- 1. **Issue found** — Preserve the problem immediately
530
- 2. **Session complete** — Final write before commit
531
- 3. **Checkpoint** — Every 5 passed tests (safety net)
532
-
533
- | Section | Rule | When Written |
534
- |---------|------|--------------|
535
- | Frontmatter.status | OVERWRITE | Start, complete |
536
- | Frontmatter.updated | OVERWRITE | On any file write |
537
- | Current Test | OVERWRITE | On any file write |
538
- | Tests.{N}.result | OVERWRITE | On any file write |
539
- | Summary | OVERWRITE | On any file write |
540
- | Gaps | APPEND | When issue found |
541
-
542
- On context reset: File shows last checkpoint. Resume from there.
543
- </update_rules>
544
-
545
- <severity_inference>
546
- **Infer severity from user's natural language:**
547
-
548
- | User says | Infer |
549
- |-----------|-------|
550
- | "crashes", "error", "exception", "fails completely" | blocker |
551
- | "doesn't work", "nothing happens", "wrong behavior" | major |
552
- | "works but...", "slow", "weird", "minor issue" | minor |
553
- | "color", "spacing", "alignment", "looks off" | cosmetic |
554
-
555
- Default to **major** if unclear. User can correct if needed.
556
-
557
- **Never ask "how severe is this?"** - just infer and move on.
558
- </severity_inference>
559
-
560
- <success_criteria>
561
- - [ ] UAT file created with all tests from SUMMARY.md
562
- - [ ] Tests presented one at a time with expected behavior
563
- - [ ] User responses processed as pass/issue/skip
564
- - [ ] Severity inferred from description (never asked)
565
- - [ ] Batched writes: on issue, every 5 passes, or completion
566
- - [ ] Committed on completion
567
- - [ ] If issues: parallel debug agents diagnose root causes
568
- - [ ] If issues: planner creates fix plans (gap_closure mode)
569
- - [ ] If issues: planner (in verification mode) verifies fix plans
570
- - [ ] If issues: revision loop until plans pass (max 3 iterations)
571
- - [ ] Ready for `/maxsim:execute --gaps-only` when complete
572
- </success_criteria>