orchestrix 16.1.0 → 16.1.2
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/lib/embedded/yuri.md +212 -16
- package/package.json +1 -1
package/lib/embedded/yuri.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "Yuri — Orchestrix multi-agent workflow coordinator. Manages the full project lifecycle: Planning (PM, Architect, PO) → Development (tmux multi-agent HANDOFF) → Testing (smoke test cycles). Type /yuri to get started."
|
|
2
|
+
description: "Yuri — Orchestrix multi-agent workflow coordinator. Manages the full project lifecycle: Planning (Analyst, PM, UX-expert, Architect, PO) → Development (tmux multi-agent HANDOFF) → Testing (smoke test cycles). Type /yuri to get started."
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
# Yuri — Orchestrix Multi-Agent Workflow Coordinator
|
|
@@ -189,19 +189,57 @@ This creates a tmux session with 4 windows:
|
|
|
189
189
|
|
|
190
190
|
### HANDOFF Auto-Collaboration Flow
|
|
191
191
|
|
|
192
|
+
The HANDOFF chain depends on the story's **test_design_level** (set by SM based on complexity):
|
|
193
|
+
|
|
194
|
+
#### Standard/Comprehensive Stories (most stories)
|
|
195
|
+
|
|
192
196
|
```
|
|
193
197
|
SM (win 1) *draft → Create Story
|
|
194
198
|
↓ 🎯 HANDOFF TO architect: *review {story_id}
|
|
195
199
|
Architect (win 0) → Technical review
|
|
200
|
+
↓ 🎯 HANDOFF TO qa: *test-design {story_id}
|
|
201
|
+
QA (win 3) → Design test scenarios & strategy BEFORE development
|
|
196
202
|
↓ 🎯 HANDOFF TO dev: *develop-story {story_id}
|
|
197
|
-
Dev (win 2) → Code implementation
|
|
203
|
+
Dev (win 2) → Code implementation (guided by QA's test design)
|
|
198
204
|
↓ 🎯 HANDOFF TO qa: *review {story_id}
|
|
199
|
-
QA (win 3) →
|
|
200
|
-
↓ 🎯 HANDOFF TO sm: *draft (next Story)
|
|
205
|
+
QA (win 3) → Review implementation against test design
|
|
206
|
+
↓ pass → 🎯 HANDOFF TO sm: *draft (next Story)
|
|
207
|
+
↓ fail → 🎯 HANDOFF TO dev: *apply-qa-fixes {story_id}
|
|
201
208
|
SM (win 1) → Create next Story
|
|
202
209
|
↓ ... loop until all stories complete
|
|
203
210
|
```
|
|
204
211
|
|
|
212
|
+
#### Simple Stories (low complexity, no security concerns)
|
|
213
|
+
|
|
214
|
+
```
|
|
215
|
+
SM (win 1) *draft → Create Story
|
|
216
|
+
↓ 🎯 HANDOFF TO architect: *review {story_id}
|
|
217
|
+
Architect (win 0) → Technical review
|
|
218
|
+
↓ 🎯 HANDOFF TO dev: *develop-story {story_id} (skip test-design)
|
|
219
|
+
Dev (win 2) → Code implementation
|
|
220
|
+
↓ 🎯 HANDOFF TO qa: *review {story_id}
|
|
221
|
+
QA (win 3) → Review implementation
|
|
222
|
+
↓ ... same as above
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
#### Quick Mode Stories (trivial, skip Architect + test-design)
|
|
226
|
+
|
|
227
|
+
```
|
|
228
|
+
SM (win 1) *draft → Create Story (mode=quick)
|
|
229
|
+
↓ 🎯 HANDOFF TO dev: *quick-develop {story_id}
|
|
230
|
+
Dev (win 2) → Quick implementation
|
|
231
|
+
↓ 🎯 HANDOFF TO qa: *quick-verify {story_id}
|
|
232
|
+
QA (win 3) → Lightweight verification
|
|
233
|
+
↓ ... next story
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
#### QA Feedback Loops
|
|
237
|
+
|
|
238
|
+
When QA finds issues:
|
|
239
|
+
- **Code issues** → `🎯 HANDOFF TO dev: *apply-qa-fixes {story_id}` → Dev fixes → QA re-reviews
|
|
240
|
+
- **Architecture concerns** → `🎯 HANDOFF TO architect: *review-escalation {story_id}` → Architect resolves → back to Dev
|
|
241
|
+
- **Story issues** → `🎯 HANDOFF TO sm: *revise-story {story_id}` → SM revises → restart from Architect
|
|
242
|
+
|
|
205
243
|
### Monitoring
|
|
206
244
|
|
|
207
245
|
```bash
|
|
@@ -253,17 +291,175 @@ For each epic, run smoke test → fix → retest (max 3 rounds):
|
|
|
253
291
|
/o qa → *review {story_id}
|
|
254
292
|
```
|
|
255
293
|
|
|
256
|
-
### New Iteration
|
|
294
|
+
### New Iteration (Post-MVP)
|
|
295
|
+
|
|
296
|
+
> MVP or previous iteration complete. User has feedback, new requirements, or wants to enhance the product.
|
|
297
|
+
|
|
298
|
+
**Full Flow — 5 Steps:**
|
|
299
|
+
|
|
300
|
+
#### Step 1: PM generates next-steps
|
|
301
|
+
|
|
302
|
+
```bash
|
|
303
|
+
/o pm
|
|
304
|
+
*start-iteration
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
PM reads user feedback and existing docs, produces:
|
|
308
|
+
- `docs/prd/epic-*.yaml` — new epic definitions
|
|
309
|
+
- `docs/prd/*next-steps.md` — execution plan with `🎯 HANDOFF TO {agent}:` markers
|
|
310
|
+
|
|
311
|
+
**Wait for PM to complete** (detect completion message or output file).
|
|
312
|
+
|
|
313
|
+
#### Step 2: Parse next-steps.md
|
|
314
|
+
|
|
315
|
+
Read the generated `next-steps.md`. It contains ordered `🎯 HANDOFF TO {agent}:` sections. Build an execution queue:
|
|
316
|
+
|
|
317
|
+
```
|
|
318
|
+
[
|
|
319
|
+
{ agent: "ux-expert", content: "Update wireframes for new checkout flow..." },
|
|
320
|
+
{ agent: "architect", content: "Review data model changes for payments..." },
|
|
321
|
+
{ agent: "sm", content: "*draft" } ← always last
|
|
322
|
+
]
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
**The PM decides which agents need to act — you don't need to assess scope yourself.**
|
|
326
|
+
|
|
327
|
+
#### Step 3: Execute each HANDOFF section (STOP before SM)
|
|
328
|
+
|
|
329
|
+
For each section where agent != "sm", in a **planning session** (single tmux window):
|
|
330
|
+
|
|
257
331
|
```bash
|
|
258
|
-
|
|
259
|
-
#
|
|
260
|
-
#
|
|
332
|
+
# For each agent in the queue (except sm):
|
|
333
|
+
/clear # Clear previous agent context
|
|
334
|
+
/o {agent} # Activate target agent
|
|
335
|
+
# Paste the section content as instructions
|
|
336
|
+
# Wait for completion (P1: completion message, P2: output file)
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
Typical sequence: `ux-expert` → `architect` (each produces updated docs).
|
|
340
|
+
|
|
341
|
+
#### Step 4: SM handoff → transition to dev automation
|
|
342
|
+
|
|
343
|
+
When reaching the `🎯 HANDOFF TO sm:` section:
|
|
344
|
+
|
|
345
|
+
1. Kill the planning session (it's done)
|
|
346
|
+
2. Launch multi-agent dev session:
|
|
347
|
+
```bash
|
|
348
|
+
bash .orchestrix-core/scripts/start-orchestrix.sh
|
|
349
|
+
```
|
|
350
|
+
3. SM automatically starts with `*draft`, creating the first story from the new epics
|
|
351
|
+
4. HANDOFF chain auto-starts: SM → Architect → Dev → QA → SM → ...
|
|
352
|
+
|
|
353
|
+
#### Step 5: Resume standard Phase B → C cycle
|
|
354
|
+
|
|
355
|
+
- Monitor development via HANDOFF log
|
|
356
|
+
- When all new stories complete → Phase C smoke testing
|
|
357
|
+
- When all epics pass → iteration complete
|
|
358
|
+
|
|
261
359
|
```
|
|
360
|
+
Summary:
|
|
361
|
+
PM *start-iteration → next-steps.md (with HANDOFF chain)
|
|
362
|
+
→ Execute HANDOFF sections: ux-expert → architect → ...
|
|
363
|
+
→ SM *draft (transition to dev session)
|
|
364
|
+
→ HANDOFF auto-loop: SM → Arch → Dev → QA
|
|
365
|
+
→ Smoke test → Done
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
---
|
|
262
369
|
|
|
263
370
|
### Change Management
|
|
371
|
+
|
|
372
|
+
> Handle requirement changes mid-project. The approach depends on the **current phase** and **change size**.
|
|
373
|
+
|
|
374
|
+
#### Scope Assessment Matrix
|
|
375
|
+
|
|
376
|
+
| Current Phase | Change Size | Action | Needs Planning? |
|
|
377
|
+
|---------------|-------------|--------|-----------------|
|
|
378
|
+
| Planning (Phase A) | Any | Modify current/subsequent planning step inputs | Already in planning |
|
|
379
|
+
| Development (Phase B) | Small (≤5 files) | Dev `*solo "{description}"` directly | No |
|
|
380
|
+
| Development (Phase B) | Medium | PO `*route-change` → standard workflow | **Yes** |
|
|
381
|
+
| Development (Phase B) | Large (cross-module/DB/security) | Pause dev → partial Phase A re-plan | **Yes** |
|
|
382
|
+
| Testing (Phase C) | Any | Queue for next iteration | No (record only) |
|
|
383
|
+
| Post-MVP | New iteration | PM `*start-iteration` (see above) | **Yes** |
|
|
384
|
+
|
|
385
|
+
#### Small Change (During Development, ≤5 files)
|
|
386
|
+
|
|
387
|
+
No planning needed. Send directly to Dev:
|
|
388
|
+
|
|
389
|
+
```bash
|
|
390
|
+
# In dev session, Dev window (window 2):
|
|
391
|
+
/o dev
|
|
392
|
+
*solo "Add rate limiting to the /api/checkout endpoint"
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
After Dev completes, resume normal development monitoring.
|
|
396
|
+
|
|
397
|
+
#### Medium Change (During Development)
|
|
398
|
+
|
|
399
|
+
Requires PO routing through a planning session:
|
|
400
|
+
|
|
264
401
|
```bash
|
|
265
|
-
|
|
266
|
-
|
|
402
|
+
# Step 1: PO assesses and routes the change
|
|
403
|
+
/o po
|
|
404
|
+
*route-change "Add payment refund support"
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
PO analyzes the change and routes to the appropriate agent:
|
|
408
|
+
|
|
409
|
+
- **Routes to Architect** (technical/architecture change):
|
|
410
|
+
```bash
|
|
411
|
+
/o architect
|
|
412
|
+
*resolve-change
|
|
413
|
+
```
|
|
414
|
+
Architect produces a Technical Change Proposal (TCP).
|
|
415
|
+
|
|
416
|
+
- **Routes to PM** (requirements/scope change):
|
|
417
|
+
```bash
|
|
418
|
+
/o pm
|
|
419
|
+
*revise-prd
|
|
420
|
+
```
|
|
421
|
+
PM produces a Product Change Proposal (PCP).
|
|
422
|
+
|
|
423
|
+
After the proposal is generated:
|
|
424
|
+
|
|
425
|
+
```bash
|
|
426
|
+
# In dev session, SM window (window 1):
|
|
427
|
+
/o sm
|
|
428
|
+
*apply-proposal {proposal_id}
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
SM creates stories from the proposal → HANDOFF chain auto-starts (SM → Architect → Dev → QA).
|
|
432
|
+
|
|
433
|
+
#### Large Change (During Development, cross-module/DB/security)
|
|
434
|
+
|
|
435
|
+
Same flow as medium change, but with explicit pause:
|
|
436
|
+
|
|
437
|
+
1. Notify user: "Large change detected. Pausing development for re-planning..."
|
|
438
|
+
2. Follow medium change flow (PO → Architect/PM → SM)
|
|
439
|
+
3. Resume development monitoring after stories are created
|
|
440
|
+
|
|
441
|
+
#### Change During Testing (Phase C)
|
|
442
|
+
|
|
443
|
+
Do NOT execute during testing. Record for next iteration:
|
|
444
|
+
|
|
445
|
+
```
|
|
446
|
+
📝 Change recorded for next iteration: {description}
|
|
447
|
+
Testing continues. This change will be addressed in the next development cycle.
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
#### Decision Flow Summary
|
|
451
|
+
|
|
452
|
+
```
|
|
453
|
+
Change Request
|
|
454
|
+
↓
|
|
455
|
+
What phase are we in?
|
|
456
|
+
├── Planning → Adjust current planning step
|
|
457
|
+
├── Development
|
|
458
|
+
│ ├── Small (≤5 files) → Dev *solo directly
|
|
459
|
+
│ ├── Medium → PO *route-change → Arch/PM → SM *apply-proposal
|
|
460
|
+
│ └── Large → Pause + Medium flow
|
|
461
|
+
├── Testing → Queue for next iteration
|
|
462
|
+
└── Post-MVP → PM *start-iteration (full iteration flow)
|
|
267
463
|
```
|
|
268
464
|
|
|
269
465
|
### Brownfield (Existing Project Enhancement)
|
|
@@ -295,17 +491,17 @@ For unfamiliar projects, start with: `/o architect` → `*document-project`
|
|
|
295
491
|
|
|
296
492
|
| Agent | ID | Commands | Output |
|
|
297
493
|
|-------|----|----------|--------|
|
|
298
|
-
| SM | `sm` | `*draft`, `*draft-bugfix {bug}` | `docs/stories/*.md` |
|
|
299
|
-
| Architect | `architect` | `*review {
|
|
300
|
-
|
|
|
301
|
-
|
|
|
494
|
+
| SM | `sm` | `*draft`, `*draft-bugfix {bug}`, `*revise-story {id}`, `*apply-proposal {id}` | `docs/stories/*.md` |
|
|
495
|
+
| Architect | `architect` | `*review {id}`, `*review-escalation {id}` | Technical review |
|
|
496
|
+
| QA | `qa` | `*test-design {id}`, `*review {id}`, `*quick-verify {id}`, `*smoke-test {epic}` | Test design / review report |
|
|
497
|
+
| Dev | `dev` | `*develop-story {id}`, `*quick-develop {id}`, `*apply-qa-fixes {id}`, `*solo "{desc}"`, `*quick-fix "{desc}"` | Code + git commit |
|
|
302
498
|
|
|
303
499
|
### Management Agents
|
|
304
500
|
|
|
305
501
|
| Agent | ID | Commands |
|
|
306
502
|
|-------|----|----------|
|
|
307
|
-
| PO | `po` | `*route-change` |
|
|
308
|
-
|
|
503
|
+
| PO | `po` | `*route-change`, `*execute-checklist`, `*shard` |
|
|
504
|
+
|
|
309
505
|
|
|
310
506
|
---
|
|
311
507
|
|