renn-studio 0.6.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 (112) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +36 -0
  3. package/agents/renn-architect.md +1463 -0
  4. package/agents/renn-auditor.md +1053 -0
  5. package/agents/renn-codebase-mapper.md +908 -0
  6. package/agents/renn-design-reviewer.md +422 -0
  7. package/agents/renn-designer.md +814 -0
  8. package/agents/renn-detective.md +1204 -0
  9. package/agents/renn-integration-checker.md +957 -0
  10. package/agents/renn-navigator.md +659 -0
  11. package/agents/renn-plan-reviewer.md +812 -0
  12. package/agents/renn-project-scout.md +880 -0
  13. package/agents/renn-runner.md +842 -0
  14. package/agents/renn-stage-scout.md +705 -0
  15. package/agents/renn-synthesizer.md +256 -0
  16. package/bin/install.js +1466 -0
  17. package/commands/renn.add-stage.md +211 -0
  18. package/commands/renn.add-todo.md +194 -0
  19. package/commands/renn.audit-milestone.md +280 -0
  20. package/commands/renn.audit.md +219 -0
  21. package/commands/renn.check-todos.md +229 -0
  22. package/commands/renn.complete-milestone.md +136 -0
  23. package/commands/renn.continue.md +46 -0
  24. package/commands/renn.dash.md +308 -0
  25. package/commands/renn.debug.md +169 -0
  26. package/commands/renn.design-screens.md +107 -0
  27. package/commands/renn.design-system.md +100 -0
  28. package/commands/renn.discuss-stage.md +86 -0
  29. package/commands/renn.help.md +550 -0
  30. package/commands/renn.insert-stage.md +231 -0
  31. package/commands/renn.list-stage-assumptions.md +49 -0
  32. package/commands/renn.map-codebase.md +72 -0
  33. package/commands/renn.new-milestone.md +80 -0
  34. package/commands/renn.pause.md +132 -0
  35. package/commands/renn.plan-milestone-gaps.md +314 -0
  36. package/commands/renn.plan-stage.md +118 -0
  37. package/commands/renn.remove-stage.md +353 -0
  38. package/commands/renn.research-stage.md +200 -0
  39. package/commands/renn.restyle.md +98 -0
  40. package/commands/renn.run-stage.md +343 -0
  41. package/commands/renn.set-profile.md +116 -0
  42. package/commands/renn.settings.md +151 -0
  43. package/commands/renn.ship.md +52 -0
  44. package/commands/renn.start.md +95 -0
  45. package/commands/renn.status.md +530 -0
  46. package/commands/renn.watch.md +51 -0
  47. package/hooks/dist/renn-check-update.js +67 -0
  48. package/hooks/dist/renn-statusline.js +96 -0
  49. package/package.json +89 -0
  50. package/renn/references/continuation-format.md +249 -0
  51. package/renn/references/design-artifacts.md +674 -0
  52. package/renn/references/design-tokens.md +162 -0
  53. package/renn/references/gates.md +1078 -0
  54. package/renn/references/git-integration.md +254 -0
  55. package/renn/references/horsepower-profiles.md +84 -0
  56. package/renn/references/planning-config.md +189 -0
  57. package/renn/references/questioning.md +141 -0
  58. package/renn/references/security-checklist.md +2184 -0
  59. package/renn/references/tdd.md +263 -0
  60. package/renn/references/ui-brand.md +189 -0
  61. package/renn/references/verification-patterns.md +612 -0
  62. package/renn/templates/DEBUG.md +159 -0
  63. package/renn/templates/INTEL.md +283 -0
  64. package/renn/templates/RECAP.md +246 -0
  65. package/renn/templates/UAT.md +247 -0
  66. package/renn/templates/architect-prompt.md +119 -0
  67. package/renn/templates/brief.md +190 -0
  68. package/renn/templates/codebase/architecture.md +264 -0
  69. package/renn/templates/codebase/concerns.md +310 -0
  70. package/renn/templates/codebase/conventions.md +307 -0
  71. package/renn/templates/codebase/design.md +336 -0
  72. package/renn/templates/codebase/integrations.md +280 -0
  73. package/renn/templates/codebase/stack.md +186 -0
  74. package/renn/templates/codebase/structure.md +295 -0
  75. package/renn/templates/codebase/testing.md +480 -0
  76. package/renn/templates/config.json +36 -0
  77. package/renn/templates/continue-here.md +80 -0
  78. package/renn/templates/detective-prompt.md +93 -0
  79. package/renn/templates/milestone-archive.md +123 -0
  80. package/renn/templates/milestone.md +117 -0
  81. package/renn/templates/proof.md +326 -0
  82. package/renn/templates/pulse.md +176 -0
  83. package/renn/templates/research/architecture.md +206 -0
  84. package/renn/templates/research/features.md +149 -0
  85. package/renn/templates/research/pitfalls.md +202 -0
  86. package/renn/templates/research/recap.md +187 -0
  87. package/renn/templates/research/stack.md +122 -0
  88. package/renn/templates/research/ux.md +283 -0
  89. package/renn/templates/research-lite.md +146 -0
  90. package/renn/templates/research.md +582 -0
  91. package/renn/templates/specs.md +233 -0
  92. package/renn/templates/stage-prompt.md +571 -0
  93. package/renn/templates/track.md +211 -0
  94. package/renn/templates/user-setup.md +315 -0
  95. package/renn/workflows/audit-stage.md +717 -0
  96. package/renn/workflows/audit-work.md +596 -0
  97. package/renn/workflows/complete-milestone.md +875 -0
  98. package/renn/workflows/continue-project.md +306 -0
  99. package/renn/workflows/design-stage.md +2019 -0
  100. package/renn/workflows/diagnose-issues.md +231 -0
  101. package/renn/workflows/initialize-project.md +1039 -0
  102. package/renn/workflows/list-assumptions.md +178 -0
  103. package/renn/workflows/map-codebase.md +374 -0
  104. package/renn/workflows/new-milestone.md +718 -0
  105. package/renn/workflows/plan-stage.md +810 -0
  106. package/renn/workflows/research-stage.md +289 -0
  107. package/renn/workflows/run-plan.md +1844 -0
  108. package/renn/workflows/run-stage.md +692 -0
  109. package/renn/workflows/scope-stage.md +546 -0
  110. package/renn/workflows/ship-project.md +859 -0
  111. package/renn/workflows/transition.md +556 -0
  112. package/renn/workflows/watch-project.md +797 -0
@@ -0,0 +1,596 @@
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 /renn.plan-stage --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
+ <template>
18
+ @~/.claude/renn/templates/uat.md
19
+ </template>
20
+
21
+ <process>
22
+
23
+ <step name="resolve_horsepower" priority="first">
24
+ Read horsepower profile for agent spawning:
25
+
26
+ ```bash
27
+ HORSEPOWER=$(cat .renn/config.json 2>/dev/null | grep -o '"horsepower"[[:space:]]*:[[:space:]]*"[^"]*"' | grep -o '"[^"]*"$' | tr -d '"' || echo "balanced")
28
+ ```
29
+
30
+ Default to "balanced" if not set.
31
+
32
+ **Model lookup table:**
33
+
34
+ | Agent | max | balanced | eco |
35
+ |-------|-----|----------|-----|
36
+ | renn-architect | opus | opus | sonnet |
37
+ | renn-plan-reviewer | sonnet | sonnet | haiku |
38
+
39
+ Store resolved models for use in Task calls below.
40
+ </step>
41
+
42
+ <step name="check_active_session">
43
+ **First: Check for active UAT sessions**
44
+
45
+ ```bash
46
+ find .renn/stages -name "*-uat.md" -type f 2>/dev/null | head -5
47
+ ```
48
+
49
+ **If active sessions exist AND no $ARGUMENTS provided:**
50
+
51
+ Read each file's frontmatter (status, stage) and Current Test section.
52
+
53
+ Display inline:
54
+
55
+ ```
56
+ ## Active UAT Sessions
57
+
58
+ | # | Stage | Status | Current Test | Progress |
59
+ |---|-------|--------|--------------|----------|
60
+ | 1 | 04-comments | testing | 3. Reply to Comment | 2/6 |
61
+ | 2 | 05-auth | testing | 1. Login Form | 0/4 |
62
+
63
+ Reply with a number to resume, or provide a stage number to start new.
64
+ ```
65
+
66
+ Wait for user response.
67
+
68
+ - If user replies with number (1, 2) -> Load that file, go to `resume_from_file`
69
+ - If user replies with stage number -> Treat as new session, go to `create_uat_file`
70
+
71
+ **If active sessions exist AND $ARGUMENTS provided:**
72
+
73
+ Check if session exists for that stage. If yes, offer to resume or restart.
74
+ If no, continue to `create_uat_file`.
75
+
76
+ **If no active sessions AND no $ARGUMENTS:**
77
+
78
+ ```
79
+ No active UAT sessions.
80
+
81
+ Provide a stage number to start testing (e.g., /renn.audit 4)
82
+ ```
83
+
84
+ **If no active sessions AND $ARGUMENTS provided:**
85
+
86
+ Continue to `create_uat_file`.
87
+ </step>
88
+
89
+ <step name="find_recaps">
90
+ **Find what to test:**
91
+
92
+ Parse $ARGUMENTS as stage number (e.g., "4") or run number (e.g., "04-02").
93
+
94
+ ```bash
95
+ # Find stage directory (match both zero-padded and unpadded)
96
+ PADDED_STAGE=$(printf "%02d" ${STAGE_ARG} 2>/dev/null || echo "${STAGE_ARG}")
97
+ STAGE_DIR=$(ls -d .renn/stages/${PADDED_STAGE}-* .renn/stages/${STAGE_ARG}-* 2>/dev/null | head -1)
98
+
99
+ # Find RECAP files
100
+ ls "$STAGE_DIR"/*-recap.md 2>/dev/null
101
+ ```
102
+
103
+ Read each recap.md to extract testable deliverables.
104
+ </step>
105
+
106
+ <step name="extract_tests">
107
+ **Extract testable deliverables from recap.md:**
108
+
109
+ Parse for:
110
+ 1. **Accomplishments** - Features/functionality added
111
+ 2. **User-facing changes** - UI, workflows, interactions
112
+
113
+ Focus on USER-OBSERVABLE outcomes, not implementation details.
114
+
115
+ For each deliverable, create a test:
116
+ - name: Brief test name
117
+ - expected: What the user should see/experience (specific, observable)
118
+
119
+ Examples:
120
+ - Accomplishment: "Added comment threading with infinite nesting"
121
+ -> Test: "Reply to a Comment"
122
+ -> Expected: "Clicking Reply opens inline composer below comment. Submitting shows reply nested under parent with visual indentation."
123
+
124
+ Skip internal/non-observable items (refactors, type changes, etc.).
125
+ </step>
126
+
127
+ <step name="create_uat_file">
128
+ **Create UAT file with all tests:**
129
+
130
+ ```bash
131
+ mkdir -p "$STAGE_DIR"
132
+ ```
133
+
134
+ Build test list from extracted deliverables.
135
+
136
+ Create file:
137
+
138
+ ```markdown
139
+ ---
140
+ status: testing
141
+ stage: XX-name
142
+ source: [list of recap.md files]
143
+ started: [ISO timestamp]
144
+ updated: [ISO timestamp]
145
+ ---
146
+
147
+ ## Current Test
148
+ <!-- OVERWRITE each test - shows where we are -->
149
+
150
+ number: 1
151
+ name: [first test name]
152
+ expected: |
153
+ [what user should observe]
154
+ awaiting: user response
155
+
156
+ ## Tests
157
+
158
+ ### 1. [Test Name]
159
+ expected: [observable behavior]
160
+ result: [pending]
161
+
162
+ ### 2. [Test Name]
163
+ expected: [observable behavior]
164
+ result: [pending]
165
+
166
+ ...
167
+
168
+ ## Summary
169
+
170
+ total: [N]
171
+ passed: 0
172
+ issues: 0
173
+ pending: [N]
174
+ skipped: 0
175
+
176
+ ## Gaps
177
+
178
+ [none yet]
179
+ ```
180
+
181
+ Write to `.renn/stages/XX-name/{stage}-uat.md`
182
+
183
+ Proceed to `present_test`.
184
+ </step>
185
+
186
+ <step name="present_test">
187
+ **Present current test to user:**
188
+
189
+ Read Current Test section from UAT file.
190
+
191
+ Display using gate box format:
192
+
193
+ ```
194
+ +==============================================================+
195
+ | GATE: Verification Required |
196
+ +==============================================================+
197
+
198
+ **Test {number}: {name}**
199
+
200
+ {expected}
201
+
202
+ --------------------------------------------------------------
203
+ -> Type "pass" or describe what's wrong
204
+ --------------------------------------------------------------
205
+ ```
206
+
207
+ Wait for user response (plain text, no AskUserQuestion).
208
+ </step>
209
+
210
+ <step name="process_response">
211
+ **Process user response and update file:**
212
+
213
+ **If response indicates pass:**
214
+ - Empty response, "yes", "y", "ok", "pass", "next", "approved"
215
+
216
+ Update Tests section:
217
+ ```
218
+ ### {N}. {name}
219
+ expected: {expected}
220
+ result: pass
221
+ ```
222
+
223
+ **If response indicates skip:**
224
+ - "skip", "can't test", "n/a"
225
+
226
+ Update Tests section:
227
+ ```
228
+ ### {N}. {name}
229
+ expected: {expected}
230
+ result: skipped
231
+ reason: [user's reason if provided]
232
+ ```
233
+
234
+ **If response is anything else:**
235
+ - Treat as issue description
236
+
237
+ Infer severity from description:
238
+ - Contains: crash, error, exception, fails, broken, unusable -> blocker
239
+ - Contains: doesn't work, wrong, missing, can't -> major
240
+ - Contains: slow, weird, off, minor, small -> minor
241
+ - Contains: color, font, spacing, alignment, visual -> cosmetic
242
+ - Default if unclear: major
243
+
244
+ Update Tests section:
245
+ ```
246
+ ### {N}. {name}
247
+ expected: {expected}
248
+ result: issue
249
+ reported: "{verbatim user response}"
250
+ severity: {inferred}
251
+ ```
252
+
253
+ Append to Gaps section (structured YAML for plan-stage --gaps):
254
+ ```yaml
255
+ - truth: "{expected behavior from test}"
256
+ status: failed
257
+ reason: "User reported: {verbatim user response}"
258
+ severity: {inferred}
259
+ test: {N}
260
+ artifacts: [] # Filled by diagnosis
261
+ missing: [] # Filled by diagnosis
262
+ ```
263
+
264
+ **After any response:**
265
+
266
+ Update Summary counts.
267
+ Update frontmatter.updated timestamp.
268
+
269
+ If more tests remain -> Update Current Test, go to `present_test`
270
+ If no more tests -> Go to `complete_session`
271
+ </step>
272
+
273
+ <step name="resume_from_file">
274
+ **Resume testing from UAT file:**
275
+
276
+ Read the full UAT file.
277
+
278
+ Find first test with `result: [pending]`.
279
+
280
+ Announce:
281
+ ```
282
+ Resuming: Stage {stage} UAT
283
+ Progress: {passed + issues + skipped}/{total}
284
+ Issues found so far: {issues count}
285
+
286
+ Continuing from Test {N}...
287
+ ```
288
+
289
+ Update Current Test section with the pending test.
290
+ Proceed to `present_test`.
291
+ </step>
292
+
293
+ <step name="complete_session">
294
+ **Complete testing and commit:**
295
+
296
+ Update frontmatter:
297
+ - status: complete
298
+ - updated: [now]
299
+
300
+ Clear Current Test section:
301
+ ```
302
+ ## Current Test
303
+
304
+ [testing complete]
305
+ ```
306
+
307
+ **Check config:**
308
+
309
+ ```bash
310
+ COMMIT_DOCS=$(cat .renn/config.json 2>/dev/null | grep -o '"commit_docs"[[:space:]]*:[[:space:]]*[^,}]*' | grep -o 'true\|false' || echo "true")
311
+ git check-ignore -q .renn 2>/dev/null && COMMIT_DOCS=false
312
+ ```
313
+
314
+ **If `COMMIT_DOCS=false`:** Skip git operations
315
+
316
+ **If `COMMIT_DOCS=true` (default):**
317
+
318
+ Commit the UAT file:
319
+ ```bash
320
+ git add ".renn/stages/XX-name/{stage}-uat.md"
321
+ git commit -m "test({stage}): complete UAT - {passed} passed, {issues} issues"
322
+ ```
323
+
324
+ Present summary:
325
+ ```
326
+ ## UAT Complete: Stage {stage}
327
+
328
+ | Result | Count |
329
+ |--------|-------|
330
+ | Passed | {N} |
331
+ | Issues | {N} |
332
+ | Skipped| {N} |
333
+
334
+ [If issues > 0:]
335
+ ### Issues Found
336
+
337
+ [List from Issues section]
338
+ ```
339
+
340
+ **If issues > 0:** Proceed to `diagnose_issues`
341
+
342
+ **If issues == 0:**
343
+ ```
344
+ All tests passed. Ready to continue.
345
+
346
+ - `/renn.plan-stage {next}` — Plan next stage
347
+ - `/renn.run-stage {next}` — Execute next stage
348
+ ```
349
+ </step>
350
+
351
+ <step name="diagnose_issues">
352
+ **Diagnose root causes before planning fixes:**
353
+
354
+ ```
355
+ ---
356
+
357
+ {N} issues found. Diagnosing root causes...
358
+
359
+ Spawning parallel debug agents to investigate each issue.
360
+ ```
361
+
362
+ - Load diagnose-issues workflow
363
+ - Follow @~/.claude/renn/workflows/diagnose-issues.md
364
+ - Spawn parallel debug agents for each issue
365
+ - Collect root causes
366
+ - Update uat.md with root causes
367
+ - Proceed to `plan_gap_closure`
368
+
369
+ Diagnosis runs automatically - no user prompt. Parallel agents investigate simultaneously, so overhead is minimal and fixes are more accurate.
370
+ </step>
371
+
372
+ <step name="plan_gap_closure">
373
+ **Auto-plan fixes from diagnosed gaps:**
374
+
375
+ Display:
376
+ ```
377
+ =====================================================
378
+ RENN > PLANNING FIXES
379
+ =====================================================
380
+
381
+ * Spawning architect for gap closure...
382
+ ```
383
+
384
+ Spawn renn-architect in --gaps mode:
385
+
386
+ ```
387
+ Task(
388
+ prompt="""
389
+ <planning_context>
390
+
391
+ **Stage:** {stage_number}
392
+ **Mode:** gap_closure
393
+
394
+ **UAT with diagnoses:**
395
+ @.renn/stages/{stage_dir}/{stage}-uat.md
396
+
397
+ **Project State:**
398
+ @.renn/pulse.md
399
+
400
+ **Track:**
401
+ @.renn/track.md
402
+
403
+ </planning_context>
404
+
405
+ <downstream_consumer>
406
+ Output consumed by /renn.run-stage
407
+ Runs must be executable prompts.
408
+ </downstream_consumer>
409
+ """,
410
+ subagent_type="renn-architect",
411
+ model="{architect_model}",
412
+ description="Plan gap fixes for Stage {stage}"
413
+ )
414
+ ```
415
+
416
+ On return:
417
+ - **PLANNING COMPLETE:** Proceed to `verify_gap_runs`
418
+ - **PLANNING INCONCLUSIVE:** Report and offer manual intervention
419
+ </step>
420
+
421
+ <step name="verify_gap_runs">
422
+ **Verify fix runs with reviewer:**
423
+
424
+ Display:
425
+ ```
426
+ =====================================================
427
+ RENN > VERIFYING FIX RUNS
428
+ =====================================================
429
+
430
+ * Spawning plan reviewer...
431
+ ```
432
+
433
+ Initialize: `iteration_count = 1`
434
+
435
+ Spawn renn-plan-reviewer:
436
+
437
+ ```
438
+ Task(
439
+ prompt="""
440
+ <verification_context>
441
+
442
+ **Stage:** {stage_number}
443
+ **Stage Goal:** Close diagnosed gaps from UAT
444
+
445
+ **Runs to verify:**
446
+ @.renn/stages/{stage_dir}/*-run.md
447
+
448
+ </verification_context>
449
+
450
+ <expected_output>
451
+ Return one of:
452
+ - ## VERIFICATION PASSED — all checks pass
453
+ - ## ISSUES FOUND — structured issue list
454
+ </expected_output>
455
+ """,
456
+ subagent_type="renn-plan-reviewer",
457
+ model="{reviewer_model}",
458
+ description="Verify Stage {stage} fix runs"
459
+ )
460
+ ```
461
+
462
+ On return:
463
+ - **VERIFICATION PASSED:** Proceed to `present_ready`
464
+ - **ISSUES FOUND:** Proceed to `revision_loop`
465
+ </step>
466
+
467
+ <step name="revision_loop">
468
+ **Iterate architect <-> reviewer until runs pass (max 3):**
469
+
470
+ **If iteration_count < 3:**
471
+
472
+ Display: `Sending back to architect for revision... (iteration {N}/3)`
473
+
474
+ Spawn renn-architect with revision context:
475
+
476
+ ```
477
+ Task(
478
+ prompt="""
479
+ <revision_context>
480
+
481
+ **Stage:** {stage_number}
482
+ **Mode:** revision
483
+
484
+ **Existing runs:**
485
+ @.renn/stages/{stage_dir}/*-run.md
486
+
487
+ **Reviewer issues:**
488
+ {structured_issues_from_reviewer}
489
+
490
+ </revision_context>
491
+
492
+ <instructions>
493
+ Read existing run.md files. Make targeted updates to address reviewer issues.
494
+ Do NOT replan from scratch unless issues are fundamental.
495
+ </instructions>
496
+ """,
497
+ subagent_type="renn-architect",
498
+ model="{architect_model}",
499
+ description="Revise Stage {stage} runs"
500
+ )
501
+ ```
502
+
503
+ After architect returns -> spawn reviewer again (verify_gap_runs logic)
504
+ Increment iteration_count
505
+
506
+ **If iteration_count >= 3:**
507
+
508
+ Display: `Max iterations reached. {N} issues remain.`
509
+
510
+ Offer options:
511
+ 1. Force proceed (execute despite issues)
512
+ 2. Provide guidance (user gives direction, retry)
513
+ 3. Abandon (exit, user runs /renn.plan-stage manually)
514
+
515
+ Wait for user response.
516
+ </step>
517
+
518
+ <step name="present_ready">
519
+ **Present completion and next steps:**
520
+
521
+ ```
522
+ =====================================================
523
+ RENN > FIXES READY
524
+ =====================================================
525
+
526
+ **Stage {X}: {Name}** — {N} gap(s) diagnosed, {M} fix run(s) created
527
+
528
+ | Gap | Root Cause | Fix Run |
529
+ |-----|------------|---------|
530
+ | {truth 1} | {root_cause} | {stage}-04 |
531
+ | {truth 2} | {root_cause} | {stage}-04 |
532
+
533
+ Runs verified and ready for execution.
534
+
535
+ ---------------------------------------------------------------
536
+
537
+ ## > Next Up
538
+
539
+ **Execute fixes** — run fix runs
540
+
541
+ `/clear` then `/renn.run-stage {stage} --gaps-only`
542
+
543
+ ---------------------------------------------------------------
544
+ ```
545
+ </step>
546
+
547
+ </process>
548
+
549
+ <update_rules>
550
+ **Batched writes for efficiency:**
551
+
552
+ Keep results in memory. Write to file only when:
553
+ 1. **Issue found** — Preserve the problem immediately
554
+ 2. **Session complete** — Final write before commit
555
+ 3. **Gate** — Every 5 passed tests (safety net)
556
+
557
+ | Section | Rule | When Written |
558
+ |---------|------|--------------|
559
+ | Frontmatter.status | OVERWRITE | Start, complete |
560
+ | Frontmatter.updated | OVERWRITE | On any file write |
561
+ | Current Test | OVERWRITE | On any file write |
562
+ | Tests.{N}.result | OVERWRITE | On any file write |
563
+ | Summary | OVERWRITE | On any file write |
564
+ | Gaps | APPEND | When issue found |
565
+
566
+ On context reset: File shows last gate. Resume from there.
567
+ </update_rules>
568
+
569
+ <severity_inference>
570
+ **Infer severity from user's natural language:**
571
+
572
+ | User says | Infer |
573
+ |-----------|-------|
574
+ | "crashes", "error", "exception", "fails completely" | blocker |
575
+ | "doesn't work", "nothing happens", "wrong behavior" | major |
576
+ | "works but...", "slow", "weird", "minor issue" | minor |
577
+ | "color", "spacing", "alignment", "looks off" | cosmetic |
578
+
579
+ Default to **major** if unclear. User can correct if needed.
580
+
581
+ **Never ask "how severe is this?"** - just infer and move on.
582
+ </severity_inference>
583
+
584
+ <success_criteria>
585
+ - [ ] UAT file created with all tests from recap.md
586
+ - [ ] Tests presented one at a time with expected behavior
587
+ - [ ] User responses processed as pass/issue/skip
588
+ - [ ] Severity inferred from description (never asked)
589
+ - [ ] Batched writes: on issue, every 5 passes, or completion
590
+ - [ ] Committed on completion
591
+ - [ ] If issues: parallel debug agents diagnose root causes
592
+ - [ ] If issues: renn-architect creates fix runs (gap_closure mode)
593
+ - [ ] If issues: renn-plan-reviewer verifies fix runs
594
+ - [ ] If issues: revision loop until runs pass (max 3 iterations)
595
+ - [ ] Ready for `/renn.run-stage --gaps-only` when complete
596
+ </success_criteria>