oneie 3.6.6 → 3.6.11

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 (166) hide show
  1. package/.claude/agents/agent-backend.md +83 -0
  2. package/.claude/agents/agent-designer.md +97 -0
  3. package/.claude/agents/agent-director.md +118 -7
  4. package/.claude/agents/agent-documenter.md +93 -0
  5. package/.claude/agents/agent-frontend.md +96 -0
  6. package/.claude/agents/agent-ops.md +182 -25
  7. package/.claude/agents/agent-problem-solver.md +166 -0
  8. package/.claude/agents/agent-quality.md +127 -0
  9. package/.claude/commands/build.md +293 -0
  10. package/.claude/commands/cascade.md +231 -127
  11. package/.claude/commands/mcp-toggle.md +93 -0
  12. package/.claude/commands/onboard.md +179 -0
  13. package/.claude/commands/one.md +236 -516
  14. package/.claude/commands/plan.md +394 -80
  15. package/.claude/commands/release.md +41 -19
  16. package/.claude/commands/server.md +335 -0
  17. package/.claude/hooks/root-cleanup.py +75 -0
  18. package/.claude/skills/INDEX.md +523 -0
  19. package/.claude/skills/REGISTRY.md +529 -0
  20. package/.claude/skills/agent-backend-create-mutation.md +319 -0
  21. package/.claude/skills/agent-designer-create-wireframe.md +341 -0
  22. package/.claude/skills/agent-frontend-create-page.md +413 -0
  23. package/.claude/skills/agents/README.md +238 -0
  24. package/dist/clone-web.js +1 -1
  25. package/dist/clone-web.js.map +1 -1
  26. package/folders.yaml +1 -1
  27. package/one/.obsidian/workspace.json +38 -38
  28. package/one/connections/api/queries-reference.md +842 -0
  29. package/one/connections/api-reference.md +1011 -0
  30. package/one/connections/integration-examples.md +875 -0
  31. package/one/connections/integration-guide.md +869 -0
  32. package/one/connections/integration-phase2.md +736 -0
  33. package/one/events/API_ROUTES_FIXES_SUMMARY.md +262 -0
  34. package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +636 -0
  35. package/one/events/BEFORE_AFTER_COMPARISON.md +960 -0
  36. package/one/events/CONNECTIONS_DEMO.md +501 -0
  37. package/one/events/DELIVERABLES.md +432 -0
  38. package/one/events/DEMO-GROUPS-PAGE.md +392 -0
  39. package/one/events/DEMO-TESTING-SUMMARY.md +518 -0
  40. package/one/events/DEMO_COMPONENTS.md +487 -0
  41. package/one/events/DEMO_HOOKS_INDEX.md +334 -0
  42. package/one/events/DEMO_INFRASTRUCTURE.md +905 -0
  43. package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +570 -0
  44. package/one/events/DEMO_INTEGRATION_CHECKLIST.md +431 -0
  45. package/one/events/DEMO_QUICK_REFERENCE.md +441 -0
  46. package/one/events/DEMO_SETUP.md +476 -0
  47. package/one/events/EFFECT_TS_API_PATTERN.md +478 -0
  48. package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +414 -0
  49. package/one/events/HOOKS-DEMO.md +441 -0
  50. package/one/events/ONTOLOGY-HOOKS-README.md +700 -0
  51. package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +365 -0
  52. package/one/events/QA-CHECKLIST.md +674 -0
  53. package/one/events/QUICK-START-ONTOLOGY.md +408 -0
  54. package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +639 -0
  55. package/one/events/SEARCH_DEMO_DELIVERY.md +415 -0
  56. package/one/events/SEARCH_DEMO_SUMMARY.md +303 -0
  57. package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +381 -0
  58. package/one/events/TEST-PLAN-INDEX.md +346 -0
  59. package/one/events/TEST-PLAN.md +1417 -0
  60. package/one/events/TESTING-DELIVERY.txt +372 -0
  61. package/one/events/TRANSITIONS-QUICK-START.md +141 -0
  62. package/one/events/TYPESCRIPT_FIXES.md +152 -0
  63. package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +412 -0
  64. package/one/events/TYPESCRIPT_FIXES_INDEX.md +341 -0
  65. package/one/events/VIEW-TRANSITIONS.md +428 -0
  66. package/one/events/backend-integration-tests.md +606 -0
  67. package/one/events/backend-structure-diagram.txt +393 -0
  68. package/one/events/backend-structure-summary.txt +269 -0
  69. package/one/events/cloudflare-pages-infrastructure-setup.md +264 -0
  70. package/one/events/convex-analysis-index.md +304 -0
  71. package/one/events/convex-structure-analysis.md +700 -0
  72. package/one/events/design-spec-complete.md +208 -0
  73. package/one/events/ontology-test-examples.md +562 -0
  74. package/one/events/phase1-backend-implementation-complete.md +518 -0
  75. package/one/events/test-dashboard.md +345 -0
  76. package/one/events/test-index.md +361 -0
  77. package/one/events/test-report-ontology.md +582 -0
  78. package/one/events/testing-summary.md +344 -0
  79. package/one/groups/features.md +2878 -0
  80. package/one/groups/strategy copy.md +869 -0
  81. package/one/knowledge/backend-api-reference.md +710 -0
  82. package/one/knowledge/documentation-summary.md +285 -0
  83. package/one/knowledge/lessons-learned.md +294 -4
  84. package/one/knowledge/ontology-visual-guide.md +360 -0
  85. package/one/knowledge/ontology.md +9 -17
  86. package/one/things/demo-accessibility-animations.md +999 -0
  87. package/one/things/demo-components.md +1304 -0
  88. package/one/things/demo-design-summary.md +629 -0
  89. package/one/things/demo-design-system.md +919 -0
  90. package/one/things/demo-page-layouts.md +989 -0
  91. package/one/things/designs/accessibility-audit.md +790 -0
  92. package/one/things/designs/component-specifications.md +757 -0
  93. package/one/things/designs/design-overview.md +318 -0
  94. package/one/things/designs/design-tokens.md +414 -0
  95. package/one/things/designs/wireframes-dashboard.md +653 -0
  96. package/one/things/docs/api-requests.md +923 -0
  97. package/one/things/features/0 All Features.md +2 -0
  98. package/one/things/implementation/backend-guide.md +412 -0
  99. package/one/things/plans/2-backend-agnostic-frontend.md +11 -8
  100. package/one/things/plans/ai-elements.md +1259 -0
  101. package/one/things/plans/ai-integration.md +947 -0
  102. package/one/things/plans/ai-sdk.md +761 -0
  103. package/one/things/plans/app.md +1 -1
  104. package/one/things/plans/architecture-summary.md +283 -0
  105. package/one/things/plans/async-ai-agents.md +215 -0
  106. package/one/things/plans/backend-agnostic-frontend.md +11 -6
  107. package/one/things/plans/backend-cleanup-quickstart.md +346 -0
  108. package/one/things/plans/backend-ontology-conformance.md +416 -0
  109. package/one/things/plans/backend-status.md +541 -0
  110. package/one/things/plans/backend-structure.md +799 -0
  111. package/one/things/plans/backend-target-structure.md +438 -0
  112. package/one/things/plans/backend.md +1133 -0
  113. package/one/things/plans/better-auth-any-backend.md +11 -11
  114. package/one/things/plans/cli-updates-required.md +280 -0
  115. package/one/things/plans/complete-step-by-step.md +1302 -0
  116. package/one/things/plans/convex-agents.md +1005 -0
  117. package/one/things/plans/deployment-architecture.md +426 -0
  118. package/one/things/plans/development-plan.md +1220 -0
  119. package/one/things/plans/effect.md +808 -48
  120. package/one/things/plans/integrate-frontend-and-backend.md +579 -0
  121. package/one/things/plans/mcp-clear-context-prompt.md +60 -0
  122. package/one/things/plans/mcp-simple.md +228 -0
  123. package/one/things/plans/one.md +8 -7
  124. package/one/things/plans/ontology-6-dimensions.md +20 -14
  125. package/one/things/plans/quick-wins.md +1273 -0
  126. package/one/things/plans/readme-backend-cleanup.md +361 -0
  127. package/one/things/plans/separate-demo.md +830 -0
  128. package/one/things/plans/separate.md +3 -3
  129. package/one/things/plans/sequence.md +1897 -0
  130. package/one/things/plans/sync-checklist.md +321 -0
  131. package/one/things/plans/unified-implementation-plan.md +3 -3
  132. package/one/things/plans/update-demos.md +513 -0
  133. package/package.json +1 -1
  134. package/.claude/agents/backend-specialist.md +0 -169
  135. package/.claude/agents/designer.md +0 -216
  136. package/.claude/agents/frontend-specialist.md +0 -236
  137. package/.claude/commands/done.md +0 -35
  138. package/.claude/commands/infer.md +0 -138
  139. package/.claude/commands/next.md +0 -53
  140. package/.claude/commands/one copy.md +0 -565
  141. package/.claude/commands/one-template.md +0 -106
  142. package/.claude/commands/one-v1.md +0 -609
  143. package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
  144. package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
  145. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  146. package/one/groups/nine-padel-customers.md +0 -138
  147. package/one/groups/nine-padel-data-structure.md +0 -167
  148. package/one/groups/nine-padel-ontology-specification.md +0 -359
  149. package/one/groups/nine-padel-ontology.md +0 -143
  150. package/one/groups/nine-padel-strategy.md +0 -234
  151. package/one/groups/nine-padel.md +0 -211
  152. package/one/groups/nine-padle-contents.baked.md +0 -1252
  153. package/one/groups/nine-padle-contents.md +0 -6
  154. package/one/things/features/1-1-agent-prompts/design.md +0 -470
  155. package/one/things/features/1-1-agent-prompts/tests.md +0 -264
  156. package/one/things/features/1-2-yaml-orchestrator/design.md +0 -497
  157. package/one/things/features/1-2-yaml-orchestrator/tests.md +0 -227
  158. package/one/things/features/1-3-event-coordination/design.md +0 -544
  159. package/one/things/features/1-3-event-coordination/tests.md +0 -223
  160. package/one/things/features/1-4-knowledge-management/design.md +0 -609
  161. package/one/things/features/1-4-knowledge-management/tests.md +0 -195
  162. package/one/things/features/1-5-quality-loops/design.md +0 -797
  163. package/one/things/features/1-5-quality-loops/tests.md +0 -212
  164. package/one/things/features/1-6-numbering-structure/design.md +0 -610
  165. package/one/things/features/1-6-numbering-structure/tests.md +0 -213
  166. package/one/things/features/dataprovider-interface/1-tests.md +0 -1522
@@ -1,497 +0,0 @@
1
- # Design for Feature 1-2: Workflow Orchestration
2
-
3
- **Feature:** 1-2-yaml-orchestrator
4
- **Status:** Design → Implementation
5
- **Design Agent:** agent-designer.md
6
-
7
- ---
8
-
9
- ## Design Goal
10
-
11
- Enable `/one` CLI command to orchestrate the 6-stage workflow naturally by having Claude Code read stage instructions and follow them. Design focuses on workflow progression clarity without building orchestrator infrastructure.
12
-
13
- ---
14
-
15
- ## CLI Context
16
-
17
- **Command:** `/one [stage/action]`
18
-
19
- **Examples:**
20
- ```bash
21
- /one idea "Build a course platform" # Stage 1: Validate idea
22
- /one plan 1 # Stage 2: Create plan
23
- /one feature 1-1 # Stage 3: Write feature spec
24
- /one test 1-1 # Stage 4: Define tests
25
- /one design 1-1 # Stage 5: Create design
26
- /one implement 1-1 # Stage 6: Implement + validate
27
- /one workflow # Show current workflow status
28
- ```
29
-
30
- ---
31
-
32
- ## Design Decisions (Test-Driven)
33
-
34
- ### Decision 1: No Orchestrator Code - Claude Reads Instructions
35
- **Test requirement:** Claude must follow 6-stage workflow from documentation
36
- **Design solution:**
37
- - Workflow guide exists as markdown (Feature 1-2 spec)
38
- - Each stage references which agent prompt to read
39
- - Claude Code reads guide → reads agent → follows instructions
40
- - Natural progression through stages
41
-
42
- **Reasoning:** Claude Code already understands instructions. No need to build parsing/execution infrastructure.
43
-
44
- ---
45
-
46
- ### Decision 2: Stage Progression Visible to User
47
- **Test requirement:** User understands current stage and what's next
48
- **Design solution:**
49
- ```
50
- Claude Code (Engineering Director - Stage 1: Ideas):
51
- > Validating idea against ontology...
52
- > ✅ Idea validated!
53
- >
54
- > Next: Stage 2 (Plans) - Create feature breakdown
55
- > Command: /one plan 1-create-workflow
56
-
57
- Claude Code (Engineering Director - Stage 2: Plans):
58
- > Creating plan 1-create-workflow...
59
- > Breaking down into 6 features...
60
- > ✅ Plan created!
61
- >
62
- > Next: Stage 3 (Features) - Write specs
63
- > Commands: /one feature 1-1, /one feature 1-2, ...
64
- ```
65
-
66
- **Reasoning:** Clear stage indicators help user follow workflow progression.
67
-
68
- ---
69
-
70
- ### Decision 3: Workflow Status at a Glance
71
- **Test requirement:** User can check workflow progress anytime
72
- **Design solution:**
73
- ```
74
- $ /one workflow
75
-
76
- Claude Code:
77
- Current Workflow: Plan 1 (Create Workflow System)
78
-
79
- Progress:
80
- ✅ Stage 1: Ideas - Validated
81
- ✅ Stage 2: Plans - Complete (6 features)
82
- ✅ Stage 3: Features - All specs written
83
- ✅ Stage 4: Tests - All criteria defined
84
- 🔄 Stage 5: Design - 1/6 complete (1-1 done)
85
- ⏳ Stage 6: Implementation - Not started
86
-
87
- Next Actions:
88
- - /one design 1-2 (complete designs)
89
- - /one implement 1-1 (start implementation)
90
- ```
91
-
92
- **Reasoning:** Status overview prevents confusion about what's done and what's next.
93
-
94
- ---
95
-
96
- ### Decision 4: Parallel Execution Guidance
97
- **Test requirement:** User knows which tasks can run in parallel
98
- **Design solution:**
99
- ```
100
- Claude Code (Engineering Director):
101
- Stage 3 complete! All 6 feature specs written.
102
-
103
- You can now work on Stage 4 (Tests) in parallel:
104
- /one test 1-1 (Backend: Agent Prompts)
105
- /one test 1-2 (Backend: Orchestrator)
106
- /one test 1-3 (Backend: Events)
107
- /one test 1-4 (Integration: Knowledge)
108
- /one test 1-5 (Quality: Quality Loops)
109
- /one test 1-6 (Integration: Numbering)
110
-
111
- 💡 Tip: These are independent - no dependencies between them
112
- ```
113
-
114
- **Reasoning:** Explicit parallel guidance helps user optimize workflow speed.
115
-
116
- ---
117
-
118
- ### Decision 5: Automatic Stage Detection
119
- **Test requirement:** Claude detects current stage automatically
120
- **Design solution:**
121
- - Claude checks existing files to determine stage
122
- - If `one/things/plans/1-*.md` exists → Stage 2 complete
123
- - If `one/things/features/1-*/tests.md` exists → Stage 4 complete
124
- - If `one/things/features/1-*/design.md` exists → Stage 5 complete
125
- - No need for user to specify stage explicitly
126
-
127
- **Example:**
128
- ```
129
- User: /one 1-1
130
-
131
- Claude: [Checks what exists for feature 1-1]
132
- [Has: spec ✅, tests ✅, no design ❌]
133
- [Determines: Should create design]
134
-
135
- Claude Code (Design Agent - Stage 5):
136
- Creating design for Feature 1-1 (Agent Prompts)...
137
- ```
138
-
139
- **Reasoning:** Smart stage detection reduces cognitive load on user.
140
-
141
- ---
142
-
143
- ## Component Architecture
144
-
145
- ### 1. Workflow Stage Map (Claude's Mental Model)
146
-
147
- ```typescript
148
- // Conceptual - Claude understands this naturally
149
- Stage 1: Ideas → /one idea [text] → agent-director.md (Validate)
150
- Stage 2: Plans → /one plan [N] → agent-director.md (Create Plan)
151
- Stage 3: Features → /one feature [N-M] → agent-{specialist}.md (Write Spec)
152
- Stage 4: Tests → /one test [N-M] → agent-quality.md (Define Tests)
153
- Stage 5: Design → /one design [N-M] → agent-designer.md (Create Design)
154
- Stage 6: Implement → /one implement [N-M] → agent-{specialist}.md (Code)
155
- ```
156
-
157
- **No code needed** - Claude maps commands to stages naturally.
158
-
159
- ---
160
-
161
- ### 2. Stage Progression Logic (AI-Native)
162
-
163
- ```markdown
164
- # How Claude determines what to do
165
-
166
- User: /one feature 1-1
167
-
168
- Claude thinks:
169
- 1. "User wants to work on feature 1-1"
170
- 2. Check: Does one/things/features/1-1-*.md exist?
171
- - No → Create feature spec (Stage 3)
172
- - Yes → Move to next incomplete stage
173
- 3. Check: Does one/things/features/1-1-*/tests.md exist?
174
- - No → Create tests (Stage 4)
175
- - Yes → Check design
176
- 4. Check: Does one/things/features/1-1-*/design.md exist?
177
- - No → Create design (Stage 5)
178
- - Yes → Check implementation
179
- 5. Check: Is implementation complete?
180
- - No → Implement (Stage 6)
181
- - Yes → Report complete
182
-
183
- Claude acts based on determination
184
- ```
185
-
186
- **No stage detection code needed** - Claude understands file existence checks naturally.
187
-
188
- ---
189
-
190
- ### 3. Response Patterns
191
-
192
- **Stage Start:**
193
- ```
194
- 🔄 [Agent Role - Stage N: Name]
195
- [What I'm doing]
196
- [Progress indicator]
197
- ```
198
-
199
- **Stage Complete:**
200
- ```
201
- ✅ [Stage name] complete!
202
- [Summary of what was created]
203
- [Files created with paths]
204
-
205
- Next: [Stage name] - [What to do]
206
- Command: [Suggested next command]
207
- ```
208
-
209
- **Workflow Complete:**
210
- ```
211
- 🎉 Workflow Complete!
212
-
213
- Plan: [Plan name]
214
- Features: [N] features implemented
215
- Duration: [Time]
216
- Files created: [Count]
217
-
218
- Summary:
219
- - [Feature 1]: ✅ Complete
220
- - [Feature 2]: ✅ Complete
221
- ...
222
-
223
- All features tested ✅
224
- All features documented ✅
225
- Ready for use!
226
- ```
227
-
228
- ---
229
-
230
- ## Wireframes (CLI Outputs)
231
-
232
- ### Wireframe 1: Start Workflow (Stage 1)
233
-
234
- ```
235
- $ /one idea "course platform for creators"
236
-
237
- Claude Code (Engineering Director - Stage 1: Ideas):
238
- Validating idea against ontology...
239
-
240
- ✅ Idea validated!
241
-
242
- Ontology Mapping:
243
- Things: course, lesson, creator, student
244
- Connections: owns (creator→course), part_of (lesson→course),
245
- enrolled_in (student→course)
246
- Events: course_created, lesson_completed, course_completed
247
-
248
- Complexity: Medium (2-3 weeks, 4 features)
249
-
250
- Next: Stage 2 (Plans) - Break down into features
251
- Create plan now? [Y/n] _
252
- ```
253
-
254
- ---
255
-
256
- ### Wireframe 2: Create Plan (Stage 2)
257
-
258
- ```
259
- $ /one plan 2-course-platform
260
-
261
- Claude Code (Engineering Director - Stage 2: Plans):
262
- Creating plan 2-course-platform...
263
-
264
- Breaking down into features:
265
- 2-1: Course CRUD (Backend Specialist)
266
- 2-2: Lesson Management (Backend Specialist)
267
- 2-3: Course UI (Frontend Specialist)
268
- 2-4: Student Enrollment (Integration Specialist)
269
-
270
- Duration estimate: 2-3 weeks
271
- Team: Backend, Frontend, Integration
272
-
273
- ✅ Plan created: one/things/plans/2-course-platform.md
274
-
275
- Next: Stage 3 (Features) - Write specifications
276
- Commands (can run in parallel):
277
- /one feature 2-1
278
- /one feature 2-2
279
- /one feature 2-3
280
- /one feature 2-4
281
- ```
282
-
283
- ---
284
-
285
- ### Wireframe 3: Parallel Feature Specs (Stage 3)
286
-
287
- ```
288
- $ /one feature 2-1
289
-
290
- Claude Code (Backend Specialist - Stage 3: Features):
291
- Writing feature spec for 2-1-course-crud...
292
-
293
- Loading context:
294
- ✓ Ontology types (200 tokens)
295
- ✓ Backend patterns (500 tokens)
296
- ✓ Lessons learned (300 tokens)
297
-
298
- Mapping to ontology:
299
- Things: course (with properties: title, description, price, creatorId)
300
- Connections: owns (creator→course)
301
- Events: course_created, course_updated, course_deleted
302
-
303
- ✅ Feature spec complete!
304
- File: one/things/features/2-1-course-crud.md
305
-
306
- Next: Stage 4 (Tests) - Define quality criteria
307
- Command: /one test 2-1
308
- ```
309
-
310
- ---
311
-
312
- ### Wireframe 4: Workflow Status Check
313
-
314
- ```
315
- $ /one workflow
316
-
317
- Claude Code:
318
- Current Workflow: Plan 2 (Course Platform)
319
-
320
- Progress:
321
- ✅ Stage 1: Ideas - Validated
322
- ✅ Stage 2: Plans - Complete (4 features)
323
- ✅ Stage 3: Features - All specs written
324
- - 2-1: Course CRUD ✅
325
- - 2-2: Lesson Management ✅
326
- - 2-3: Course UI ✅
327
- - 2-4: Student Enrollment ✅
328
- 🔄 Stage 4: Tests - 2/4 complete
329
- - 2-1: ✅ Tests defined
330
- - 2-2: ✅ Tests defined
331
- - 2-3: ⏳ Not started
332
- - 2-4: ⏳ Not started
333
- ⏳ Stage 5: Design - Not started
334
- ⏳ Stage 6: Implementation - Not started
335
-
336
- Next Actions (continue Stage 4):
337
- /one test 2-3
338
- /one test 2-4
339
-
340
- Or start Stage 5 for completed features:
341
- /one design 2-1
342
- /one design 2-2
343
- ```
344
-
345
- ---
346
-
347
- ### Wireframe 5: Multi-Stage Progression
348
-
349
- ```
350
- $ /one 2-1
351
-
352
- Claude Code:
353
- Feature 2-1 (Course CRUD) - Stage check...
354
- ✅ Stage 3: Feature spec exists
355
- ✅ Stage 4: Tests defined
356
- ✅ Stage 5: Design complete
357
- ⏳ Stage 6: Implementation not started
358
-
359
- Claude Code (Backend Specialist - Stage 6: Implementation):
360
- Implementing feature 2-1-course-crud...
361
-
362
- Creating files:
363
- ✓ backend/services/CourseService.ts (course CRUD logic)
364
- ✓ backend/schema.ts (course schema added)
365
- ✓ backend/mutations/courses.ts (create, update, delete)
366
- ✓ backend/queries/courses.ts (get, list)
367
-
368
- Running tests...
369
- ✓ CourseService.create() logs event
370
- ✓ CourseService.list() filters by creator
371
- ✓ CourseService.delete() checks ownership
372
- ✓ All tests passing (12/12)
373
-
374
- Writing documentation...
375
- ✓ FEATURES.md updated
376
- ✓ API docs generated
377
-
378
- ✅ Feature 2-1 complete!
379
- Duration: 15 minutes
380
- Files created: 4
381
- Tests: 12/12 passing
382
-
383
- Feature complete! Moving to next feature automatically.
384
- ```
385
-
386
- ---
387
-
388
- ## Design Tokens
389
-
390
- ### Stage Indicators
391
- ```
392
- Stage 1: Ideas → 💡
393
- Stage 2: Plans → 📋
394
- Stage 3: Features → 📝
395
- Stage 4: Tests → 🧪
396
- Stage 5: Design → 🎨
397
- Stage 6: Implement → 🔧
398
- ```
399
-
400
- ### Progress Indicators
401
- ```
402
- ✅ Complete
403
- 🔄 In Progress
404
- ⏳ Not Started
405
- ❌ Failed (with retry suggestion)
406
- 💡 Suggestion
407
- ⚠️ Warning
408
- ```
409
-
410
- ### Agent Role Indicators
411
- ```
412
- Claude Code (Engineering Director - Stage 1: Ideas):
413
- Claude Code (Backend Specialist - Stage 3: Features):
414
- Claude Code (Quality Agent - Stage 4: Tests):
415
- Claude Code (Design Agent - Stage 5: Design):
416
- Claude Code (Backend Specialist - Stage 6: Implementation):
417
- ```
418
-
419
- ---
420
-
421
- ## Accessibility
422
-
423
- ### Screen Reader Friendly
424
- - Clear stage names in agent indicators
425
- - Status emojis have text equivalents
426
- - Progress explicitly stated ("2 of 4 complete")
427
- - File paths spoken clearly
428
-
429
- ### Keyboard Navigation
430
- - All commands text-based (fully keyboard accessible)
431
- - No mouse required
432
- - Tab completion friendly (`/one <tab>` shows options)
433
-
434
- ### Error Recovery
435
- - Clear error messages with stage context
436
- - Suggestions for fixes
437
- - Resume workflow from any stage
438
- - Help available (`/one help workflow`)
439
-
440
- ---
441
-
442
- ## Success Criteria from Tests
443
-
444
- ### User Flows
445
- - ✅ User completes full workflow (< 1 hour for simple feature)
446
- - ✅ User checks workflow status anytime
447
- - ✅ User resumes interrupted workflow
448
- - ✅ User runs parallel stages correctly
449
- - ✅ User understands next actions
450
-
451
- ### Acceptance Criteria
452
- - ✅ Stage detection: < 100ms (file existence checks)
453
- - ✅ Stage execution: Follows agent prompts correctly
454
- - ✅ Progress tracking: Accurate file-based status
455
- - ✅ User clarity: Always knows current stage and next action
456
- - ✅ Workflow completion: All 6 stages documented
457
-
458
- ---
459
-
460
- ## Implementation Notes
461
-
462
- **No orchestrator to build** - Just ensure workflow guide is clear:
463
- 1. Stage sequence documented ✅ (in Feature 1-2 spec)
464
- 2. Agent prompt references ✅ (each stage lists agent file)
465
- 3. File structure conventions ✅ (Feature 1-6)
466
- 4. CLI response patterns ✅ (this document)
467
-
468
- **Claude Code handles orchestration** by:
469
- - Reading workflow guide
470
- - Checking file existence for stage detection
471
- - Reading appropriate agent prompts
472
- - Following agent instructions
473
- - Creating files as needed
474
-
475
- ---
476
-
477
- ## Next Steps
478
-
479
- Ready for Level 6 (Implementation):
480
- - Workflow guide complete ✅ (Feature 1-2 spec)
481
- - Stage instructions clear ✅
482
- - Agent prompt references defined ✅
483
- - CLI patterns documented ✅ (this document)
484
- - Implementation is using the guide
485
-
486
- ---
487
-
488
- **Status:** ✅ Design Complete
489
-
490
- **Key Design Insights:**
491
- 1. **No UI to build** - CLI responses are natural conversation
492
- 2. **Stage awareness** - User always knows where they are in workflow
493
- 3. **Smart progression** - Claude detects stage from file existence
494
- 4. **Parallel guidance** - Clear indication when tasks can run in parallel
495
- 5. **Status at glance** - `/one workflow` shows complete progress
496
-
497
- **The design is Claude's understanding of workflow stages + file-based status detection.** 🎯
@@ -1,227 +0,0 @@
1
- # Tests for Feature 1-2: YAML-Driven Orchestrator
2
-
3
- **Feature:** 1-2-yaml-orchestrator
4
- **Status:** Tests Defined → Design Phase
5
- **Quality Agent:** agent-quality.md
6
-
7
- ---
8
-
9
- ## User Flows
10
-
11
- ### Flow 1: Load Workflow Configuration
12
- **User goal:** Orchestrator reads YAML and understands workflow
13
- **Time budget:** < 100ms
14
- **Steps:**
15
- 1. Orchestrator starts
16
- 2. Reads `ontology-minimal.yaml`
17
- 3. Parses workflow section
18
- 4. Validates configuration structure
19
- 5. Ready to execute
20
-
21
- **Acceptance Criteria:**
22
- - [ ] Reads YAML file successfully
23
- - [ ] Parses workflow.stages (6 levels)
24
- - [ ] Parses workflow.agents (8 agents)
25
- - [ ] Validates required fields present
26
- - [ ] Load time: < 100ms
27
- - [ ] Clear error if YAML invalid
28
-
29
- ---
30
-
31
- ### Flow 2: Execute Complete Workflow
32
- **User goal:** Orchestrator runs idea → implementation
33
- **Time budget:** < 1 hour for simple feature
34
- **Steps:**
35
- 1. User provides idea
36
- 2. Orchestrator executes Stage 1 (Ideas) - Director validates
37
- 3. Orchestrator executes Stage 2 (Plans) - Director creates plan
38
- 4. Orchestrator executes Stage 3 (Features) - Specialists write specs
39
- 5. Orchestrator executes Stage 4 (Tests) - Quality defines tests
40
- 6. Orchestrator executes Stage 5 (Design) - Design creates wireframes
41
- 7. Orchestrator executes Stage 6 (Implementation) - Specialists implement
42
- 8. Feature complete
43
-
44
- **Acceptance Criteria:**
45
- - [ ] All 6 stages execute in order
46
- - [ ] Each stage produces expected output
47
- - [ ] Context passed correctly between stages
48
- - [ ] Events logged at each step
49
- - [ ] Total time: < 1 hour (simple feature)
50
- - [ ] No manual intervention needed
51
-
52
- ---
53
-
54
- ### Flow 3: Invoke Agent with Context
55
- **User goal:** Orchestrator loads agent and provides correct context
56
- **Time budget:** < 5 seconds per agent invocation
57
- **Steps:**
58
- 1. Orchestrator determines which agent needed
59
- 2. Loads agent prompt from file
60
- 3. Assembles context within token budget
61
- 4. Invokes AI assistant with prompt + context
62
- 5. Receives agent output
63
- 6. Logs event
64
-
65
- **Acceptance Criteria:**
66
- - [ ] Correct agent selected for stage
67
- - [ ] Agent prompt loaded (< 100ms)
68
- - [ ] Context assembled within budget
69
- - [ ] AI assistant invoked successfully
70
- - [ ] Output captured completely
71
- - [ ] Event logged with metadata
72
- - [ ] Total time: < 5 seconds
73
-
74
- ---
75
-
76
- ### Flow 4: Handle Parallel Execution
77
- **User goal:** Multiple features execute simultaneously
78
- **Time budget:** Same as sequential (parallelization = free performance)
79
- **Steps:**
80
- 1. Orchestrator reaches Stage 3 (Features)
81
- 2. Multiple features assigned to specialists
82
- 3. Specialists work in parallel
83
- 4. Orchestrator waits for all to complete
84
- 5. Proceeds to next stage
85
-
86
- **Acceptance Criteria:**
87
- - [ ] Multiple agents invoked in parallel
88
- - [ ] All agents complete successfully
89
- - [ ] Results collected from all agents
90
- - [ ] No race conditions
91
- - [ ] Performance gain (3 features in parallel = ~1x time, not 3x)
92
-
93
- ---
94
-
95
- ### Flow 5: Recover from Errors
96
- **User goal:** Orchestrator handles failures gracefully
97
- **Time budget:** < 30 seconds to detect and respond
98
- **Steps:**
99
- 1. Orchestrator invokes agent
100
- 2. Agent throws error (network, timeout, invalid output)
101
- 3. Orchestrator catches error
102
- 4. Orchestrator retries (up to 3x)
103
- 5. If still failing, logs error and escalates
104
- 6. User notified with helpful message
105
-
106
- **Acceptance Criteria:**
107
- - [ ] Errors caught and logged
108
- - [ ] Retry up to 3x
109
- - [ ] Exponential backoff between retries
110
- - [ ] Clear error messages to user
111
- - [ ] State saved (can resume)
112
- - [ ] Escalation after 3 failures
113
-
114
- ---
115
-
116
- ## Technical Tests
117
-
118
- ### Unit Tests
119
-
120
- **Configuration Loading:**
121
- - [ ] `loadWorkflowConfig()` parses YAML correctly
122
- - [ ] `loadWorkflowConfig()` validates required fields
123
- - [ ] `loadWorkflowConfig()` returns error on invalid YAML
124
- - [ ] `loadWorkflowConfig()` caches configuration
125
-
126
- **Stage Execution:**
127
- - [ ] `executeStage("1_ideas", input)` calls director agent
128
- - [ ] `executeStage("2_plans", input)` calls director agent
129
- - [ ] `executeStage("3_features", input)` calls specialists (parallel)
130
- - [ ] `executeStage("4_tests", input)` calls quality agent
131
- - [ ] `executeStage("5_design", input)` calls design agent
132
- - [ ] `executeStage("6_implementation", input)` calls specialists + quality
133
-
134
- **Agent Invocation:**
135
- - [ ] `runAgent(role, task, context)` loads correct prompt
136
- - [ ] `runAgent(role, task, context)` assembles context
137
- - [ ] `runAgent(role, task, context)` invokes AI assistant
138
- - [ ] `runAgent(role, task, context)` logs event
139
- - [ ] `runAgent(role, task, context)` returns output
140
-
141
- **Parallel Execution:**
142
- - [ ] `runAgentParallel(role, task, contexts)` invokes multiple agents
143
- - [ ] `runAgentParallel()` waits for all to complete
144
- - [ ] `runAgentParallel()` collects all results
145
- - [ ] `runAgentParallel()` handles partial failures
146
-
147
- **Context Assembly:**
148
- - [ ] `assembleContext(role, input)` loads ontology types
149
- - [ ] `assembleContext(role, input)` loads patterns
150
- - [ ] `assembleContext(role, input)` stays within budget
151
- - [ ] `assembleContext(role, input)` prioritizes recent lessons
152
-
153
- ---
154
-
155
- ### Integration Tests
156
-
157
- **Complete Workflow Execution:**
158
- - [ ] Idea → Plan → Features → Tests → Design → Implementation
159
- - [ ] All stages execute successfully
160
- - [ ] Context passed correctly
161
- - [ ] Events logged at each step
162
- - [ ] Output files created in correct locations
163
-
164
- **Multi-Feature Parallel Execution:**
165
- - [ ] Plan with 3 features executes
166
- - [ ] Features execute in parallel at Stage 3
167
- - [ ] All features complete
168
- - [ ] Results collected correctly
169
-
170
- **Error Handling:**
171
- - [ ] Agent failure triggers retry
172
- - [ ] 3 retries attempted
173
- - [ ] Escalation after 3 failures
174
- - [ ] State saved for resume
175
-
176
- **Event Integration:**
177
- - [ ] All workflow events logged
178
- - [ ] Events contain correct metadata
179
- - [ ] Events enable coordination
180
- - [ ] Complete audit trail available
181
-
182
- ---
183
-
184
- ### E2E Tests
185
-
186
- **Simple Feature (End-to-End):**
187
- - [ ] User provides: "Add password reset"
188
- - [ ] Orchestrator validates idea (Stage 1)
189
- - [ ] Orchestrator creates plan (Stage 2)
190
- - [ ] Orchestrator assigns to specialists (Stage 3)
191
- - [ ] Quality defines tests (Stage 4)
192
- - [ ] Design creates wireframes (Stage 5)
193
- - [ ] Specialists implement (Stage 6)
194
- - [ ] Feature complete
195
- - [ ] Total time: < 1 hour
196
-
197
- **Complex Feature (Multiple Specialists):**
198
- - [ ] User provides: "Build course platform"
199
- - [ ] Orchestrator creates plan with 4 features
200
- - [ ] Features execute in parallel
201
- - [ ] All specialists coordinate
202
- - [ ] Quality validates all features
203
- - [ ] All features complete
204
- - [ ] Total time: < 4 hours
205
-
206
- **Performance:**
207
- - [ ] Configuration load: < 100ms
208
- - [ ] Agent invocation: < 5 seconds
209
- - [ ] Stage execution: < 10 minutes per stage
210
- - [ ] Total workflow: < 1 hour (simple feature)
211
-
212
- ---
213
-
214
- ## Definition of Done
215
-
216
- - [ ] Orchestrator reads YAML configuration
217
- - [ ] All 6 stages execute correctly
218
- - [ ] Agents invoked with correct context
219
- - [ ] Parallel execution works
220
- - [ ] Error handling and retry logic works
221
- - [ ] Events logged throughout
222
- - [ ] Code under 200 lines total
223
- - [ ] All tests pass
224
-
225
- ---
226
-
227
- **Next:** Design phase - Orchestrator architecture and class structure