@christianmaf80/agentic-workflow 1.6.0-beta.1 → 1.7.0-beta.1
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/dist/templates/brief.md +6 -6
- package/dist/templates/init.md +7 -0
- package/dist/templates/research.md +12 -0
- package/dist/workflows/init.md +16 -18
- package/dist/workflows/tasklifecycle-long/phase-1-research.md +8 -4
- package/dist/workflows/tasklifecycle-short/short-phase-1-brief.md +1 -0
- package/package.json +1 -1
package/dist/templates/brief.md
CHANGED
|
@@ -20,15 +20,15 @@ First line of the document:
|
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
|
-
## 2. The 5 Mandatory Questions
|
|
23
|
+
## 2. The 5 Mandatory Questions (Dynamic)
|
|
24
24
|
|
|
25
25
|
| # | Question (formulated by architect) | Answer (from developer) |
|
|
26
26
|
|---|-----------------------------------|-------------------------|
|
|
27
|
-
| 1 | | |
|
|
28
|
-
| 2 | | |
|
|
29
|
-
| 3 | | |
|
|
30
|
-
| 4 | | |
|
|
31
|
-
| 5 | | |
|
|
27
|
+
| 1 | <dynamic question based on task description> | |
|
|
28
|
+
| 2 | <dynamic question based on task description> | |
|
|
29
|
+
| 3 | <dynamic question based on task description> | |
|
|
30
|
+
| 4 | <dynamic question based on task description> | |
|
|
31
|
+
| 5 | <dynamic question based on task description> | |
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
package/dist/templates/init.md
CHANGED
|
@@ -24,6 +24,18 @@ First line of the document:
|
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
|
+
## Clarifications (5 Mandatory Questions, Dynamic)
|
|
28
|
+
|
|
29
|
+
| # | Question (formulated by architect) | Answer (from developer) |
|
|
30
|
+
|---|-----------------------------------|-------------------------|
|
|
31
|
+
| 1 | <dynamic question based on task description> | |
|
|
32
|
+
| 2 | <dynamic question based on task description> | |
|
|
33
|
+
| 3 | <dynamic question based on task description> | |
|
|
34
|
+
| 4 | <dynamic question based on task description> | |
|
|
35
|
+
| 5 | <dynamic question based on task description> | |
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
27
39
|
## 2. Detected Needs
|
|
28
40
|
- Technical requirements identified by the architect-agent
|
|
29
41
|
- Assumptions and limits
|
package/dist/workflows/init.md
CHANGED
|
@@ -19,41 +19,39 @@ blocking: true
|
|
|
19
19
|
|
|
20
20
|
## Objective (ONLY)
|
|
21
21
|
- Activate the **architect-agent** role.
|
|
22
|
-
- Load the
|
|
23
|
-
-
|
|
24
|
-
- Detect the conversation language and confirm explicitly.
|
|
25
|
-
- **Select the lifecycle strategy (Long/Short)**.
|
|
22
|
+
- Load the prebuilt bootstrap bundle (constitutions + indexes + core roles).
|
|
23
|
+
- Capture developer language, name, strategy, and first task description.
|
|
26
24
|
- Create the **task candidate** artifact `init.md`.
|
|
27
25
|
|
|
28
26
|
## Mandatory Steps
|
|
29
|
-
1.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
1. Use the `bootstrap_context` tool to load the prebuilt core bootstrap bundle plus local indices in a single step.
|
|
28
|
+
2. Save the bundle output to `.agent/artifacts/candidate/bootstrap.md`.
|
|
29
|
+
3. Ask the developer to confirm language (**YES**).
|
|
30
|
+
4. Ask the developer for their preferred name (used in all future responses).
|
|
31
|
+
5. Ask the developer to choose lifecycle strategy: **short (fast)** or **long**.
|
|
32
|
+
6. Ask for the first task description (1-3 sentences).
|
|
33
|
+
7. Create the `init.md` artifact using `templates.init`.
|
|
34
|
+
8. Evaluate Gate.
|
|
37
35
|
- The developer **MUST** explicitly confirm with a **YES**.
|
|
38
36
|
|
|
39
37
|
## Output (REQUIRED)
|
|
40
38
|
- Created artifact: `artifacts.candidate.init` (from `templates.init`).
|
|
41
39
|
- Created artifact: `artifacts.candidate.bootstrap` (bundle from `bootstrap_context`).
|
|
42
40
|
|
|
43
|
-
## Reasoning (MANDATORY)
|
|
44
|
-
- Before executing, the architect-agent must explain to the developer what will be done and why.
|
|
45
|
-
- No document is required for this step.
|
|
46
|
-
|
|
47
41
|
## Pass
|
|
48
42
|
- `init.md` is created from `templates.init`.
|
|
49
|
-
- Language is confirmed
|
|
43
|
+
- Language is confirmed, developer name is captured, strategy is set, and task description exists.
|
|
50
44
|
- `bootstrap.md` exists and contains the bundle.
|
|
51
45
|
|
|
52
46
|
## Gate (REQUIRED)
|
|
53
47
|
Requirements (all mandatory):
|
|
54
48
|
1. `artifacts.candidate.init` exists.
|
|
55
49
|
2. `artifacts.candidate.bootstrap` exists.
|
|
56
|
-
3. In `init.md` YAML:
|
|
50
|
+
3. In `init.md` YAML:
|
|
51
|
+
- `language.confirmed == true`
|
|
52
|
+
- `developer.name` is defined
|
|
53
|
+
- `strategy` is defined
|
|
54
|
+
- `task.description` is defined
|
|
57
55
|
4. The developer has explicitly approved with **YES**.
|
|
58
56
|
|
|
59
57
|
If Gate FAIL:
|
|
@@ -70,11 +70,15 @@ blocking: true
|
|
|
70
70
|
- `task.md` contains acceptance criteria
|
|
71
71
|
- If fails → go to **Step 8 (FAIL)**.
|
|
72
72
|
|
|
73
|
-
2.
|
|
73
|
+
2. Ask 5 mandatory clarification questions (architect-agent)
|
|
74
|
+
- Generate them dynamically from the task description to clarify scope, inputs, outputs, constraints, and success criteria.
|
|
75
|
+
- Capture answers in `research.md` under a `clarifications` section.
|
|
76
|
+
|
|
77
|
+
3. Load research template (architect-agent)
|
|
74
78
|
- Load `templates.research`
|
|
75
79
|
- If it doesn't exist or cannot be read → go to **Step 8 (FAIL)**.
|
|
76
80
|
|
|
77
|
-
|
|
81
|
+
4. **Delegate to researcher-agent (MANDATORY)**
|
|
78
82
|
> ⚠️ **PERMANENT RULE**: The `architect-agent` **CANNOT** create the research report.
|
|
79
83
|
> The `researcher-agent` is the **only authorized agent** to create `research.md`.
|
|
80
84
|
|
|
@@ -98,7 +102,7 @@ blocking: true
|
|
|
98
102
|
- Official or prestigious sources
|
|
99
103
|
- Hand back control to the `architect-agent` upon completion
|
|
100
104
|
|
|
101
|
-
|
|
105
|
+
5. Request developer approval (MANDATORY, via console)
|
|
102
106
|
- The developer **MUST** issue a binary decision:
|
|
103
107
|
- **YES** → Approved
|
|
104
108
|
- **NO** → Rejected
|
|
@@ -112,7 +116,7 @@ blocking: true
|
|
|
112
116
|
```
|
|
113
117
|
- If `decision != YES` → go to **Step 8 (FAIL)**.
|
|
114
118
|
|
|
115
|
-
|
|
119
|
+
6. PASS
|
|
116
120
|
- Update `.agent/artifacts/<taskId>-<taskTitle>/task.md` (using prefix):
|
|
117
121
|
- Mark Phase 1 as completed
|
|
118
122
|
- Set `task.lifecycle.phases.phase-1-research.validated_at = <ISO-8601>`
|
package/package.json
CHANGED