@sulhadin/orchestrator 1.4.0 → 1.5.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/bin/index.js
CHANGED
package/package.json
CHANGED
|
@@ -386,24 +386,87 @@ use `SendMessage` to the same session — zero warmup, full context preserved.
|
|
|
386
386
|
|
|
387
387
|
### Dispatching a Phase
|
|
388
388
|
|
|
389
|
-
|
|
389
|
+
**CRITICAL:** Every dispatch MUST start with the role prefix (`#backend:`, `#frontend:`, `#architect:`, `#reviewer:`). The worker agent uses this prefix to activate the correct role and its ownership scope. Without it, the worker doesn't know which role to follow.
|
|
390
|
+
|
|
391
|
+
**Dispatch format — use this exact structure:**
|
|
390
392
|
|
|
391
393
|
```
|
|
392
394
|
SendMessage to worker:
|
|
393
|
-
"#backend:
|
|
394
|
-
|
|
395
|
-
|
|
395
|
+
"#backend: You are now the backend-engineer for this task.
|
|
396
|
+
|
|
397
|
+
Phase: phase-1 of M1-user-auth
|
|
398
|
+
Phase file: .orchestra/milestones/M1-user-auth/phases/phase-1.md
|
|
399
|
+
|
|
400
|
+
Read the phase file, implement according to its objective and scope.
|
|
401
|
+
Follow backend-engineer role rules and ownership scope.
|
|
402
|
+
Write tests. Commit with conventional commit format when done.
|
|
403
|
+
Update the phase file's Result section."
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
**Always include:**
|
|
407
|
+
1. Role prefix (`#backend:`, `#frontend:`, etc.)
|
|
408
|
+
2. Explicit role activation ("You are now the backend-engineer")
|
|
409
|
+
3. Phase reference (milestone name + phase file path)
|
|
410
|
+
4. Instruction to read phase file, implement, test, commit, update result
|
|
411
|
+
|
|
412
|
+
### Progress Reporting — MANDATORY
|
|
413
|
+
|
|
414
|
+
**Before every dispatch**, print a visible status line so the user knows what's happening:
|
|
415
|
+
|
|
416
|
+
```
|
|
417
|
+
🏗️ #architect ▶ RFC + grooming validation...
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
**After every dispatch**, print the result:
|
|
421
|
+
|
|
422
|
+
```
|
|
423
|
+
⚙️ #backend ✅ phase-1 done (feat(db): add auth tables)
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
This is critical because `Agent` and `SendMessage` calls collapse in the UI.
|
|
427
|
+
Without these status lines, the user has no visibility into which role is working.
|
|
428
|
+
|
|
429
|
+
**Role icons:**
|
|
430
|
+
|
|
431
|
+
| Role | Icon |
|
|
432
|
+
|------|------|
|
|
433
|
+
| #architect | 🏗️ |
|
|
434
|
+
| #backend | ⚙️ |
|
|
435
|
+
| #frontend | 🎨 |
|
|
436
|
+
| #reviewer | 🔍 |
|
|
437
|
+
| PM (you) | 🎯 |
|
|
438
|
+
|
|
439
|
+
**Full progress format for a milestone:**
|
|
440
|
+
|
|
441
|
+
```
|
|
442
|
+
🏗️ #architect ▶ RFC + grooming validation...
|
|
443
|
+
🏗️ #architect ✅ RFC ready
|
|
444
|
+
|
|
445
|
+
🚦 Approve RFC to start implementation?
|
|
446
|
+
|
|
447
|
+
⚙️ #backend ▶ phase-1: DB schema + migrations...
|
|
448
|
+
⚙️ #backend ✅ phase-1 done (feat(db): add auth tables)
|
|
449
|
+
|
|
450
|
+
⚙️ #backend ▶ phase-2: API endpoints + tests...
|
|
451
|
+
⚙️ #backend ✅ phase-2 done (feat(auth): add login endpoint)
|
|
452
|
+
|
|
453
|
+
🎨 #frontend ▶ phase-3: Login UI...
|
|
454
|
+
🎨 #frontend ✅ phase-3 done (feat(auth): add login page)
|
|
455
|
+
|
|
456
|
+
🔍 #reviewer ▶ reviewing unpushed commits...
|
|
457
|
+
🔍 #reviewer ✅ approved
|
|
458
|
+
|
|
459
|
+
🚦 Push to origin?
|
|
396
460
|
```
|
|
397
461
|
|
|
398
462
|
### Await and Next Step
|
|
399
463
|
|
|
400
464
|
`SendMessage` **blocks** until the worker agent returns a result. When it does:
|
|
401
465
|
|
|
402
|
-
1. **
|
|
466
|
+
1. **Print completion status** — `{icon} #role ✅ phase-N done (commit message)`
|
|
403
467
|
2. **Update the phase file** status if the worker didn't
|
|
404
|
-
3. **
|
|
405
|
-
|
|
406
|
-
- More phases remaining → dispatch next phase
|
|
468
|
+
3. **Decide next action:**
|
|
469
|
+
- More phases remaining → print next status line, dispatch next phase
|
|
407
470
|
- All phases done → dispatch reviewer
|
|
408
471
|
- Worker returned a QUESTION → ask user, re-dispatch with answer
|
|
409
472
|
- Worker returned a CONCERN → evaluate and decide
|
|
@@ -437,9 +500,14 @@ Reviewer reviews all unpushed commits on the current branch:
|
|
|
437
500
|
|
|
438
501
|
```
|
|
439
502
|
SendMessage to worker:
|
|
440
|
-
"#reviewer:
|
|
441
|
-
|
|
442
|
-
|
|
503
|
+
"#reviewer: You are now the code-reviewer for this task.
|
|
504
|
+
|
|
505
|
+
Milestone: M1-user-auth
|
|
506
|
+
Review unpushed commits: git log origin/{branch}..HEAD
|
|
507
|
+
Full changeset: git diff origin/{branch}...HEAD
|
|
508
|
+
|
|
509
|
+
Apply the full review checklist (detect backend or frontend mode from the files changed).
|
|
510
|
+
Return verdict: approved or changes-requested with specific issues per file."
|
|
443
511
|
```
|
|
444
512
|
|
|
445
513
|
- If **approved** → proceed to push gate
|