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.
- package/LICENSE +22 -0
- package/README.md +36 -0
- package/agents/renn-architect.md +1463 -0
- package/agents/renn-auditor.md +1053 -0
- package/agents/renn-codebase-mapper.md +908 -0
- package/agents/renn-design-reviewer.md +422 -0
- package/agents/renn-designer.md +814 -0
- package/agents/renn-detective.md +1204 -0
- package/agents/renn-integration-checker.md +957 -0
- package/agents/renn-navigator.md +659 -0
- package/agents/renn-plan-reviewer.md +812 -0
- package/agents/renn-project-scout.md +880 -0
- package/agents/renn-runner.md +842 -0
- package/agents/renn-stage-scout.md +705 -0
- package/agents/renn-synthesizer.md +256 -0
- package/bin/install.js +1466 -0
- package/commands/renn.add-stage.md +211 -0
- package/commands/renn.add-todo.md +194 -0
- package/commands/renn.audit-milestone.md +280 -0
- package/commands/renn.audit.md +219 -0
- package/commands/renn.check-todos.md +229 -0
- package/commands/renn.complete-milestone.md +136 -0
- package/commands/renn.continue.md +46 -0
- package/commands/renn.dash.md +308 -0
- package/commands/renn.debug.md +169 -0
- package/commands/renn.design-screens.md +107 -0
- package/commands/renn.design-system.md +100 -0
- package/commands/renn.discuss-stage.md +86 -0
- package/commands/renn.help.md +550 -0
- package/commands/renn.insert-stage.md +231 -0
- package/commands/renn.list-stage-assumptions.md +49 -0
- package/commands/renn.map-codebase.md +72 -0
- package/commands/renn.new-milestone.md +80 -0
- package/commands/renn.pause.md +132 -0
- package/commands/renn.plan-milestone-gaps.md +314 -0
- package/commands/renn.plan-stage.md +118 -0
- package/commands/renn.remove-stage.md +353 -0
- package/commands/renn.research-stage.md +200 -0
- package/commands/renn.restyle.md +98 -0
- package/commands/renn.run-stage.md +343 -0
- package/commands/renn.set-profile.md +116 -0
- package/commands/renn.settings.md +151 -0
- package/commands/renn.ship.md +52 -0
- package/commands/renn.start.md +95 -0
- package/commands/renn.status.md +530 -0
- package/commands/renn.watch.md +51 -0
- package/hooks/dist/renn-check-update.js +67 -0
- package/hooks/dist/renn-statusline.js +96 -0
- package/package.json +89 -0
- package/renn/references/continuation-format.md +249 -0
- package/renn/references/design-artifacts.md +674 -0
- package/renn/references/design-tokens.md +162 -0
- package/renn/references/gates.md +1078 -0
- package/renn/references/git-integration.md +254 -0
- package/renn/references/horsepower-profiles.md +84 -0
- package/renn/references/planning-config.md +189 -0
- package/renn/references/questioning.md +141 -0
- package/renn/references/security-checklist.md +2184 -0
- package/renn/references/tdd.md +263 -0
- package/renn/references/ui-brand.md +189 -0
- package/renn/references/verification-patterns.md +612 -0
- package/renn/templates/DEBUG.md +159 -0
- package/renn/templates/INTEL.md +283 -0
- package/renn/templates/RECAP.md +246 -0
- package/renn/templates/UAT.md +247 -0
- package/renn/templates/architect-prompt.md +119 -0
- package/renn/templates/brief.md +190 -0
- package/renn/templates/codebase/architecture.md +264 -0
- package/renn/templates/codebase/concerns.md +310 -0
- package/renn/templates/codebase/conventions.md +307 -0
- package/renn/templates/codebase/design.md +336 -0
- package/renn/templates/codebase/integrations.md +280 -0
- package/renn/templates/codebase/stack.md +186 -0
- package/renn/templates/codebase/structure.md +295 -0
- package/renn/templates/codebase/testing.md +480 -0
- package/renn/templates/config.json +36 -0
- package/renn/templates/continue-here.md +80 -0
- package/renn/templates/detective-prompt.md +93 -0
- package/renn/templates/milestone-archive.md +123 -0
- package/renn/templates/milestone.md +117 -0
- package/renn/templates/proof.md +326 -0
- package/renn/templates/pulse.md +176 -0
- package/renn/templates/research/architecture.md +206 -0
- package/renn/templates/research/features.md +149 -0
- package/renn/templates/research/pitfalls.md +202 -0
- package/renn/templates/research/recap.md +187 -0
- package/renn/templates/research/stack.md +122 -0
- package/renn/templates/research/ux.md +283 -0
- package/renn/templates/research-lite.md +146 -0
- package/renn/templates/research.md +582 -0
- package/renn/templates/specs.md +233 -0
- package/renn/templates/stage-prompt.md +571 -0
- package/renn/templates/track.md +211 -0
- package/renn/templates/user-setup.md +315 -0
- package/renn/workflows/audit-stage.md +717 -0
- package/renn/workflows/audit-work.md +596 -0
- package/renn/workflows/complete-milestone.md +875 -0
- package/renn/workflows/continue-project.md +306 -0
- package/renn/workflows/design-stage.md +2019 -0
- package/renn/workflows/diagnose-issues.md +231 -0
- package/renn/workflows/initialize-project.md +1039 -0
- package/renn/workflows/list-assumptions.md +178 -0
- package/renn/workflows/map-codebase.md +374 -0
- package/renn/workflows/new-milestone.md +718 -0
- package/renn/workflows/plan-stage.md +810 -0
- package/renn/workflows/research-stage.md +289 -0
- package/renn/workflows/run-plan.md +1844 -0
- package/renn/workflows/run-stage.md +692 -0
- package/renn/workflows/scope-stage.md +546 -0
- package/renn/workflows/ship-project.md +859 -0
- package/renn/workflows/transition.md +556 -0
- package/renn/workflows/watch-project.md +797 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Orchestrate parallel debug agents to investigate UAT gaps and find root causes.
|
|
3
|
+
|
|
4
|
+
After UAT finds gaps, spawn one debug agent per gap. Each agent investigates autonomously with symptoms pre-filled from UAT. Collect root causes, update uat.md gaps with diagnosis, then hand off to plan-stage --gaps with actual diagnoses.
|
|
5
|
+
|
|
6
|
+
Orchestrator stays lean: parse gaps, spawn agents, collect results, update UAT.
|
|
7
|
+
</purpose>
|
|
8
|
+
|
|
9
|
+
<paths>
|
|
10
|
+
DEBUG_DIR=.renn/debug
|
|
11
|
+
|
|
12
|
+
Debug files use the `.renn/debug/` path (hidden directory with leading dot).
|
|
13
|
+
</paths>
|
|
14
|
+
|
|
15
|
+
<core_principle>
|
|
16
|
+
**Diagnose before planning fixes.**
|
|
17
|
+
|
|
18
|
+
UAT tells us WHAT is broken (symptoms). Debug agents find WHY (root cause). plan-stage --gaps then creates targeted fixes based on actual causes, not guesses.
|
|
19
|
+
|
|
20
|
+
Without diagnosis: "Comment doesn't refresh" → guess at fix → maybe wrong
|
|
21
|
+
With diagnosis: "Comment doesn't refresh" → "useEffect missing dependency" → precise fix
|
|
22
|
+
</core_principle>
|
|
23
|
+
|
|
24
|
+
<process>
|
|
25
|
+
|
|
26
|
+
<step name="parse_gaps">
|
|
27
|
+
**Extract gaps from uat.md:**
|
|
28
|
+
|
|
29
|
+
Read the "Gaps" section (YAML format):
|
|
30
|
+
```yaml
|
|
31
|
+
- truth: "Comment appears immediately after submission"
|
|
32
|
+
status: failed
|
|
33
|
+
reason: "User reported: works but doesn't show until I refresh the page"
|
|
34
|
+
severity: major
|
|
35
|
+
test: 2
|
|
36
|
+
artifacts: []
|
|
37
|
+
missing: []
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
For each gap, also read the corresponding test from "Tests" section to get full context.
|
|
41
|
+
|
|
42
|
+
Build gap list:
|
|
43
|
+
```
|
|
44
|
+
gaps = [
|
|
45
|
+
{truth: "Comment appears immediately...", severity: "major", test_num: 2, reason: "..."},
|
|
46
|
+
{truth: "Reply button positioned correctly...", severity: "minor", test_num: 5, reason: "..."},
|
|
47
|
+
...
|
|
48
|
+
]
|
|
49
|
+
```
|
|
50
|
+
</step>
|
|
51
|
+
|
|
52
|
+
<step name="report_plan">
|
|
53
|
+
**Report diagnosis plan to user:**
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
## Diagnosing {N} Gaps
|
|
57
|
+
|
|
58
|
+
Spawning parallel debug agents to investigate root causes:
|
|
59
|
+
|
|
60
|
+
| Gap (Truth) | Severity |
|
|
61
|
+
|-------------|----------|
|
|
62
|
+
| Comment appears immediately after submission | major |
|
|
63
|
+
| Reply button positioned correctly | minor |
|
|
64
|
+
| Delete removes comment | blocker |
|
|
65
|
+
|
|
66
|
+
Each agent will:
|
|
67
|
+
1. Create DEBUG-{slug}.md with symptoms pre-filled
|
|
68
|
+
2. Investigate autonomously (read code, form hypotheses, test)
|
|
69
|
+
3. Return root cause
|
|
70
|
+
|
|
71
|
+
This runs in parallel - all gaps investigated simultaneously.
|
|
72
|
+
```
|
|
73
|
+
</step>
|
|
74
|
+
|
|
75
|
+
<step name="spawn_agents">
|
|
76
|
+
**Spawn debug agents in parallel:**
|
|
77
|
+
|
|
78
|
+
For each gap, fill the detective-prompt template and spawn:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
Task(
|
|
82
|
+
prompt=filled_detective_prompt,
|
|
83
|
+
subagent_type="renn-detective",
|
|
84
|
+
description="Debug: {truth_short}"
|
|
85
|
+
)
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**All agents spawn in single message** (parallel execution).
|
|
89
|
+
|
|
90
|
+
Template placeholders:
|
|
91
|
+
- `{truth}`: The expected behavior that failed
|
|
92
|
+
- `{expected}`: From UAT test
|
|
93
|
+
- `{actual}`: Verbatim user description from reason field
|
|
94
|
+
- `{errors}`: Any error messages from UAT (or "None reported")
|
|
95
|
+
- `{reproduction}`: "Test {test_num} in UAT"
|
|
96
|
+
- `{timeline}`: "Discovered during UAT"
|
|
97
|
+
- `{goal}`: `find_root_cause_only` (UAT flow - plan-stage --gaps handles fixes)
|
|
98
|
+
- `{slug}`: Generated from truth
|
|
99
|
+
</step>
|
|
100
|
+
|
|
101
|
+
<step name="collect_results">
|
|
102
|
+
**Collect root causes from agents:**
|
|
103
|
+
|
|
104
|
+
Each agent returns with:
|
|
105
|
+
```
|
|
106
|
+
## CULPRIT FOUND
|
|
107
|
+
|
|
108
|
+
**Debug Session:** ${DEBUG_DIR}/{slug}.md
|
|
109
|
+
|
|
110
|
+
**Root Cause:** {specific cause with evidence}
|
|
111
|
+
|
|
112
|
+
**Evidence Summary:**
|
|
113
|
+
- {key finding 1}
|
|
114
|
+
- {key finding 2}
|
|
115
|
+
- {key finding 3}
|
|
116
|
+
|
|
117
|
+
**Files Involved:**
|
|
118
|
+
- {file1}: {what's wrong}
|
|
119
|
+
- {file2}: {related issue}
|
|
120
|
+
|
|
121
|
+
**Suggested Fix Direction:** {brief hint for plan-stage --gaps}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Parse each return to extract:
|
|
125
|
+
- root_cause: The diagnosed cause
|
|
126
|
+
- files: Files involved
|
|
127
|
+
- debug_path: Path to debug session file
|
|
128
|
+
- suggested_fix: Hint for gap closure plan
|
|
129
|
+
|
|
130
|
+
If agent returns `## INVESTIGATION INCONCLUSIVE`:
|
|
131
|
+
- root_cause: "Investigation inconclusive - manual review needed"
|
|
132
|
+
- Note which issue needs manual attention
|
|
133
|
+
- Include remaining possibilities from agent return
|
|
134
|
+
</step>
|
|
135
|
+
|
|
136
|
+
<step name="update_uat">
|
|
137
|
+
**Update uat.md gaps with diagnosis:**
|
|
138
|
+
|
|
139
|
+
For each gap in the Gaps section, add artifacts and missing fields:
|
|
140
|
+
|
|
141
|
+
```yaml
|
|
142
|
+
- truth: "Comment appears immediately after submission"
|
|
143
|
+
status: failed
|
|
144
|
+
reason: "User reported: works but doesn't show until I refresh the page"
|
|
145
|
+
severity: major
|
|
146
|
+
test: 2
|
|
147
|
+
root_cause: "useEffect in CommentList.tsx missing commentCount dependency"
|
|
148
|
+
artifacts:
|
|
149
|
+
- path: "src/components/CommentList.tsx"
|
|
150
|
+
issue: "useEffect missing dependency"
|
|
151
|
+
missing:
|
|
152
|
+
- "Add commentCount to useEffect dependency array"
|
|
153
|
+
- "Trigger re-render when new comment added"
|
|
154
|
+
debug_session: .renn/debug/comment-not-refreshing.md
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Update status in frontmatter to "diagnosed".
|
|
158
|
+
|
|
159
|
+
**Check planning config:**
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
COMMIT_PLANNING_DOCS=$(cat .renn/config.json 2>/dev/null | grep -o '"commit_docs"[[:space:]]*:[[:space:]]*[^,}]*' | grep -o 'true\|false' || echo "true")
|
|
163
|
+
git check-ignore -q .renn 2>/dev/null && COMMIT_PLANNING_DOCS=false
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
**If `COMMIT_PLANNING_DOCS=false`:** Skip git operations
|
|
167
|
+
|
|
168
|
+
**If `COMMIT_PLANNING_DOCS=true` (default):**
|
|
169
|
+
|
|
170
|
+
Commit the updated uat.md:
|
|
171
|
+
```bash
|
|
172
|
+
git add ".renn/stages/XX-name/{stage}-uat.md"
|
|
173
|
+
git commit -m "docs({stage}): add root causes from diagnosis"
|
|
174
|
+
```
|
|
175
|
+
</step>
|
|
176
|
+
|
|
177
|
+
<step name="report_results">
|
|
178
|
+
**Report diagnosis results and hand off:**
|
|
179
|
+
|
|
180
|
+
Display:
|
|
181
|
+
```
|
|
182
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
183
|
+
RENN ► DIAGNOSIS COMPLETE
|
|
184
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
185
|
+
|
|
186
|
+
| Gap (Truth) | Root Cause | Files |
|
|
187
|
+
|-------------|------------|-------|
|
|
188
|
+
| Comment appears immediately | useEffect missing dependency | CommentList.tsx |
|
|
189
|
+
| Reply button positioned correctly | CSS flex order incorrect | ReplyButton.tsx |
|
|
190
|
+
| Delete removes comment | API missing auth header | api/comments.ts |
|
|
191
|
+
|
|
192
|
+
Debug sessions: ${DEBUG_DIR}/
|
|
193
|
+
|
|
194
|
+
Proceeding to plan fixes...
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
Return to audit orchestrator for automatic planning.
|
|
198
|
+
Do NOT offer manual next steps - audit handles the rest.
|
|
199
|
+
</step>
|
|
200
|
+
|
|
201
|
+
</process>
|
|
202
|
+
|
|
203
|
+
<context_efficiency>
|
|
204
|
+
Agents start with symptoms pre-filled from UAT (no symptom gathering).
|
|
205
|
+
Agents only diagnose—plan-stage --gaps handles fixes (no fix application).
|
|
206
|
+
</context_efficiency>
|
|
207
|
+
|
|
208
|
+
<failure_handling>
|
|
209
|
+
**Agent fails to find root cause:**
|
|
210
|
+
- Mark gap as "needs manual review"
|
|
211
|
+
- Continue with other gaps
|
|
212
|
+
- Report incomplete diagnosis
|
|
213
|
+
|
|
214
|
+
**Agent times out:**
|
|
215
|
+
- Check DEBUG-{slug}.md for partial progress
|
|
216
|
+
- Can resume with renn.debug
|
|
217
|
+
|
|
218
|
+
**All agents fail:**
|
|
219
|
+
- Something systemic (permissions, git, etc.)
|
|
220
|
+
- Report for manual investigation
|
|
221
|
+
- Fall back to plan-stage --gaps without root causes (less precise)
|
|
222
|
+
</failure_handling>
|
|
223
|
+
|
|
224
|
+
<success_criteria>
|
|
225
|
+
- [ ] Gaps parsed from uat.md
|
|
226
|
+
- [ ] Debug agents spawned in parallel
|
|
227
|
+
- [ ] Root causes collected from all agents
|
|
228
|
+
- [ ] uat.md gaps updated with artifacts and missing
|
|
229
|
+
- [ ] Debug sessions saved to ${DEBUG_DIR}/
|
|
230
|
+
- [ ] Hand off to audit for automatic planning
|
|
231
|
+
</success_criteria>
|