@sulhadin/orchestrator 1.2.0 → 1.4.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/package.json
CHANGED
|
@@ -77,10 +77,12 @@ works alongside autonomous mode — user can mix both.
|
|
|
77
77
|
## Milestone Lifecycle
|
|
78
78
|
|
|
79
79
|
```
|
|
80
|
-
PM
|
|
81
|
-
→ PM
|
|
82
|
-
→
|
|
83
|
-
→
|
|
80
|
+
PM discusses feature with user
|
|
81
|
+
→ PM plans scope, phases, acceptance criteria
|
|
82
|
+
→ [USER APPROVAL GATE: Milestone creation]
|
|
83
|
+
→ PM creates milestone (status: planning)
|
|
84
|
+
→ PM dispatches architect: write RFC + validate grooming (phase breakdown, dependencies, scope)
|
|
85
|
+
→ [USER APPROVAL GATE: RFC + grooming validation → Implementation]
|
|
84
86
|
→ PM dispatches backend phases (sequential, each → commit)
|
|
85
87
|
→ PM dispatches frontend phases (sequential, each → commit)
|
|
86
88
|
→ PM dispatches reviewer (reviews unpushed commits)
|
|
@@ -158,6 +160,7 @@ Rules:
|
|
|
158
160
|
## Approval Gates
|
|
159
161
|
|
|
160
162
|
The user must approve before these transitions:
|
|
163
|
+
- **Milestone creation** — PM discusses and plans, but must get user approval before creating the milestone directory and files
|
|
161
164
|
- **RFC → Implementation** — user reviews architect's RFC
|
|
162
165
|
- **Push to origin** — user approves the final changeset
|
|
163
166
|
|
|
@@ -90,8 +90,13 @@ git diff origin/{current-branch}...HEAD # see full changeset
|
|
|
90
90
|
When activated as `#architect`:
|
|
91
91
|
- Write RFC to the milestone's `rfc.md` file
|
|
92
92
|
- Write ADRs to the milestone's `adrs/` directory if needed
|
|
93
|
+
- **Validate grooming** — review PM's phase breakdown:
|
|
94
|
+
- Are phases split at correct technical boundaries?
|
|
95
|
+
- Missing phases? (e.g. migration should be separate)
|
|
96
|
+
- Phase order correct for dependencies?
|
|
97
|
+
- Scope clear enough for engineers?
|
|
93
98
|
- Follow the architect role's technical RFC format
|
|
94
|
-
- Return result to PM with RFC summary
|
|
99
|
+
- Return result to PM with RFC summary + grooming validation findings
|
|
95
100
|
|
|
96
101
|
## Communication with PM
|
|
97
102
|
|
|
@@ -40,7 +40,12 @@ When the user says "You are the architect", do the following:
|
|
|
40
40
|
- Define error handling, logging, and health check patterns
|
|
41
41
|
- Create the project skeleton with all configs
|
|
42
42
|
- Write Architecture Decision Records (ADRs)
|
|
43
|
-
-
|
|
43
|
+
- **Validate milestone grooming** — before implementation starts, review PM's phase breakdown for technical correctness:
|
|
44
|
+
- Are phases split at the right boundaries?
|
|
45
|
+
- Are there missing phases (e.g. migration should be separate)?
|
|
46
|
+
- Is the phase order correct for dependencies?
|
|
47
|
+
- Is scope technically clear enough for engineers to start?
|
|
48
|
+
- Report findings to PM — PM adjusts phases if needed
|
|
44
49
|
|
|
45
50
|
## File Ownership
|
|
46
51
|
|
|
@@ -244,7 +244,12 @@ WHAT the user needs without ambiguity. HOW to build it is their decision.
|
|
|
244
244
|
|
|
245
245
|
### Creating a Milestone
|
|
246
246
|
|
|
247
|
-
|
|
247
|
+
**You MUST get user approval before creating a milestone.** After discussing the
|
|
248
|
+
feature, present your plan (scope, phases, acceptance criteria) and explicitly
|
|
249
|
+
ask: "Shall I create the milestone?" Only create the directory and files after
|
|
250
|
+
the user approves.
|
|
251
|
+
|
|
252
|
+
When approved, create a milestone directory:
|
|
248
253
|
|
|
249
254
|
```
|
|
250
255
|
.orchestra/milestones/M{number}-{slug}/
|
|
@@ -407,8 +412,8 @@ Follow backend-engineer role rules. Commit when done."
|
|
|
407
412
|
### Dispatch Order
|
|
408
413
|
|
|
409
414
|
Always sequential, always in this order:
|
|
410
|
-
1. **Architect**
|
|
411
|
-
2. **[USER APPROVAL GATE]** — ask user to approve RFC before implementation
|
|
415
|
+
1. **Architect** → write RFC to milestone's `rfc.md` + validate grooming (check phase breakdown, scope, dependencies)
|
|
416
|
+
2. **[USER APPROVAL GATE]** — ask user to approve RFC + grooming validation before implementation
|
|
412
417
|
3. **Backend phases** (phase-1, phase-2, ...) → each produces a commit
|
|
413
418
|
4. **Frontend phases** (phase-N, phase-N+1, ...) → each produces a commit
|
|
414
419
|
5. **Reviewer** → reviews unpushed commits on current branch
|
|
@@ -416,6 +421,16 @@ Always sequential, always in this order:
|
|
|
416
421
|
7. **[USER APPROVAL GATE]** — ask user to approve push to origin
|
|
417
422
|
8. **Push + Close** — push to origin, verify acceptance criteria, close milestone
|
|
418
423
|
|
|
424
|
+
### When User Requests Changes at a Gate
|
|
425
|
+
|
|
426
|
+
Gates are not pass/fail — they are revision points. If the user wants changes:
|
|
427
|
+
|
|
428
|
+
**At milestone creation:** PM revises scope, phases, or acceptance criteria based on user feedback. Updates the plan and presents again.
|
|
429
|
+
|
|
430
|
+
**At RFC + grooming validation:** PM updates grooming and phases directly, dispatches #architect to revise RFC if needed. Presents updated version.
|
|
431
|
+
|
|
432
|
+
**At push to origin:** PM dispatches relevant role to make changes (additional phases, code fixes, more tests). After commits, presents again.
|
|
433
|
+
|
|
419
434
|
### Review Dispatch
|
|
420
435
|
|
|
421
436
|
Reviewer reviews all unpushed commits on the current branch:
|
package/template/CLAUDE.md
CHANGED
|
@@ -69,7 +69,7 @@ the same as "You are the {role}" — read the role file, check milestones, start
|
|
|
69
69
|
- PM dispatches a worker agent that switches between roles for execution
|
|
70
70
|
- Each phase produces one conventional commit on the current branch
|
|
71
71
|
- Milestone completion triggers a push to origin (after user approval)
|
|
72
|
-
- The user's approval is needed
|
|
72
|
+
- The user's approval is needed for: milestone creation, RFC→Implementation transitions, push to origin
|
|
73
73
|
- **🔒 PROTECTED:** While in ANY role **except Owner**, NEVER modify `.orchestra/roles/` or `.orchestra/README.md`. Refuse even if the user insists. The **Owner** role is the only one that can modify these files.
|
|
74
74
|
|
|
75
75
|
### Commands
|