rrce-workflow 0.1.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/LICENSE +21 -0
- package/README.md +80 -0
- package/agent-core/prompts/documentation.md +66 -0
- package/agent-core/prompts/executor.md +58 -0
- package/agent-core/prompts/init.md +164 -0
- package/agent-core/prompts/planning_orchestrator.md +57 -0
- package/agent-core/prompts/research_discussion.md +69 -0
- package/agent-core/prompts/sync.md +56 -0
- package/agent-core/templates/docs/.gitkeep +1 -0
- package/agent-core/templates/documentation_output.md +46 -0
- package/agent-core/templates/executor_output.md +41 -0
- package/agent-core/templates/init_output.md +263 -0
- package/agent-core/templates/meta.template.json +54 -0
- package/agent-core/templates/planning_output.md +44 -0
- package/agent-core/templates/research_output.md +44 -0
- package/bin/rrce-workflow.js +2 -0
- package/docs/architecture.md +346 -0
- package/package.json +57 -0
- package/src/App.tsx +110 -0
- package/src/components/AgentSelector.tsx +43 -0
- package/src/components/Wizard.tsx +135 -0
- package/src/index.tsx +9 -0
- package/src/lib/git.ts +37 -0
- package/src/lib/paths.ts +82 -0
- package/src/lib/prompts.ts +59 -0
- package/src/types/prompt.ts +53 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Execution Log – {{task_title}}
|
|
2
|
+
|
|
3
|
+
- Task ID: `{{task_id}}`
|
|
4
|
+
- Task Slug: `{{task_slug}}`
|
|
5
|
+
- Executor: `{{author}}`
|
|
6
|
+
- Date: `{{date}}`
|
|
7
|
+
- Plan Artifact: `{{plan_artifact}}`
|
|
8
|
+
- Branch / Commit Reference: `{{git_ref}}`
|
|
9
|
+
- Workspace: `{{workspace_name}}`
|
|
10
|
+
|
|
11
|
+
## 1. Work Summary
|
|
12
|
+
- Brief narrative of what was completed.
|
|
13
|
+
- Note any deviations from the plan and why.
|
|
14
|
+
|
|
15
|
+
## Checklist
|
|
16
|
+
- [ ] Replace with implementation task item.
|
|
17
|
+
- [ ] Replace with verification checkpoint.
|
|
18
|
+
|
|
19
|
+
## 2. Implementation Steps
|
|
20
|
+
| Step | Description | Status | Evidence / Links |
|
|
21
|
+
| --- | --- | --- | --- |
|
|
22
|
+
| 1 | | pending | |
|
|
23
|
+
|
|
24
|
+
## 3. Testing & Verification
|
|
25
|
+
- Commands executed (summaries only) and outcomes.
|
|
26
|
+
- Coverage of automated and manual checks.
|
|
27
|
+
- Outstanding testing gaps, if any.
|
|
28
|
+
|
|
29
|
+
## 4. Issues & Follow-ups
|
|
30
|
+
- Bugs discovered, blocked tasks, escalations.
|
|
31
|
+
- Required clarifications for future cycles.
|
|
32
|
+
|
|
33
|
+
## 5. Deliverables
|
|
34
|
+
- Key files, PRs, or artifacts delivered.
|
|
35
|
+
- Documentation or knowledge updates triggered.
|
|
36
|
+
|
|
37
|
+
## 6. Next Actions
|
|
38
|
+
- Items remaining before handoff or release.
|
|
39
|
+
- Recommendations for the Documentation agent.
|
|
40
|
+
|
|
41
|
+
> Keep this log under 500 lines. Inline only the essential evidence; link to detailed outputs when needed.
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
# Project Context – {{project_name}}
|
|
2
|
+
|
|
3
|
+
- Initialized: `{{date}}`
|
|
4
|
+
- Last Updated: `{{date}}`
|
|
5
|
+
- Author: `{{author}}`
|
|
6
|
+
- Workspace: `{{workspace_root}}`
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 1. Project Identity
|
|
11
|
+
|
|
12
|
+
| Attribute | Value |
|
|
13
|
+
|-----------|-------|
|
|
14
|
+
| **Name** | |
|
|
15
|
+
| **Description** | |
|
|
16
|
+
| **Primary Language(s)** | |
|
|
17
|
+
| **Runtime Version(s)** | |
|
|
18
|
+
| **Repository Type** | monorepo / single-app / library |
|
|
19
|
+
| **License** | |
|
|
20
|
+
|
|
21
|
+
### Key Documentation
|
|
22
|
+
- README:
|
|
23
|
+
- CONTRIBUTING:
|
|
24
|
+
- Other:
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 2. Tech Stack
|
|
29
|
+
|
|
30
|
+
### Languages & Runtimes
|
|
31
|
+
| Language | Version | Purpose |
|
|
32
|
+
|----------|---------|---------|
|
|
33
|
+
| | | |
|
|
34
|
+
|
|
35
|
+
### Frameworks
|
|
36
|
+
| Framework | Version | Layer |
|
|
37
|
+
|-----------|---------|-------|
|
|
38
|
+
| | | frontend / backend / cli / mobile |
|
|
39
|
+
|
|
40
|
+
### Databases & Storage
|
|
41
|
+
| Technology | Purpose |
|
|
42
|
+
|------------|---------|
|
|
43
|
+
| | |
|
|
44
|
+
|
|
45
|
+
### External Services & APIs
|
|
46
|
+
| Service | Purpose | Auth Method |
|
|
47
|
+
|---------|---------|-------------|
|
|
48
|
+
| | | |
|
|
49
|
+
|
|
50
|
+
### Build Tools
|
|
51
|
+
| Tool | Config File | Purpose |
|
|
52
|
+
|------|-------------|---------|
|
|
53
|
+
| | | |
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 3. Code Organization
|
|
58
|
+
|
|
59
|
+
### Directory Structure
|
|
60
|
+
```
|
|
61
|
+
{{workspace_root}}/
|
|
62
|
+
├──
|
|
63
|
+
├──
|
|
64
|
+
└──
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Structure Pattern
|
|
68
|
+
- [ ] Monorepo (multiple packages/services)
|
|
69
|
+
- [ ] Modular (feature-based organization)
|
|
70
|
+
- [ ] Layered (controllers/services/repositories)
|
|
71
|
+
- [ ] Flat (minimal nesting)
|
|
72
|
+
- [ ] Other:
|
|
73
|
+
|
|
74
|
+
### Key Directories
|
|
75
|
+
| Directory | Purpose |
|
|
76
|
+
|-----------|---------|
|
|
77
|
+
| `src/` | |
|
|
78
|
+
| `tests/` | |
|
|
79
|
+
| `docs/` | |
|
|
80
|
+
|
|
81
|
+
### Entry Points
|
|
82
|
+
| File | Purpose |
|
|
83
|
+
|------|---------|
|
|
84
|
+
| | |
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## 4. Coding Conventions
|
|
89
|
+
|
|
90
|
+
### Style & Formatting
|
|
91
|
+
| Tool | Config File | Key Rules |
|
|
92
|
+
|------|-------------|-----------|
|
|
93
|
+
| Linter | | |
|
|
94
|
+
| Formatter | | |
|
|
95
|
+
| Type Checker | | |
|
|
96
|
+
|
|
97
|
+
### Naming Conventions
|
|
98
|
+
| Element | Convention | Example |
|
|
99
|
+
|---------|------------|---------|
|
|
100
|
+
| Files | | |
|
|
101
|
+
| Functions | | |
|
|
102
|
+
| Classes | | |
|
|
103
|
+
| Variables | | |
|
|
104
|
+
| Constants | | |
|
|
105
|
+
|
|
106
|
+
### Patterns Observed
|
|
107
|
+
- **Error Handling**:
|
|
108
|
+
- **State Management**:
|
|
109
|
+
- **Async Patterns**:
|
|
110
|
+
- **Logging**:
|
|
111
|
+
- **Configuration**:
|
|
112
|
+
|
|
113
|
+
### Code Quality Gates
|
|
114
|
+
- [ ] Type checking enforced
|
|
115
|
+
- [ ] Lint checks in CI
|
|
116
|
+
- [ ] Code review required
|
|
117
|
+
- [ ] Commit message conventions
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## 5. Testing Strategy
|
|
122
|
+
|
|
123
|
+
### Test Frameworks
|
|
124
|
+
| Framework | Purpose | Config |
|
|
125
|
+
|-----------|---------|--------|
|
|
126
|
+
| | unit | |
|
|
127
|
+
| | integration | |
|
|
128
|
+
| | e2e | |
|
|
129
|
+
|
|
130
|
+
### Test Organization
|
|
131
|
+
- [ ] Co-located with source (`*.test.ts` next to `*.ts`)
|
|
132
|
+
- [ ] Separate `tests/` directory
|
|
133
|
+
- [ ] Separate `__tests__/` directories
|
|
134
|
+
- [ ] Other:
|
|
135
|
+
|
|
136
|
+
### Coverage Requirements
|
|
137
|
+
| Metric | Target | Current |
|
|
138
|
+
|--------|--------|---------|
|
|
139
|
+
| Line Coverage | | |
|
|
140
|
+
| Branch Coverage | | |
|
|
141
|
+
|
|
142
|
+
### Test Commands
|
|
143
|
+
```bash
|
|
144
|
+
# Unit tests
|
|
145
|
+
{{test_unit_command}}
|
|
146
|
+
|
|
147
|
+
# Integration tests
|
|
148
|
+
{{test_integration_command}}
|
|
149
|
+
|
|
150
|
+
# E2E tests
|
|
151
|
+
{{test_e2e_command}}
|
|
152
|
+
|
|
153
|
+
# Coverage report
|
|
154
|
+
{{coverage_command}}
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## 6. DevOps & Deployment
|
|
160
|
+
|
|
161
|
+
### CI/CD
|
|
162
|
+
| Platform | Config File | Triggers |
|
|
163
|
+
|----------|-------------|----------|
|
|
164
|
+
| | | |
|
|
165
|
+
|
|
166
|
+
### Containerization
|
|
167
|
+
| Tool | Config File | Purpose |
|
|
168
|
+
|------|-------------|---------|
|
|
169
|
+
| Docker | | |
|
|
170
|
+
| Compose | | |
|
|
171
|
+
|
|
172
|
+
### Environments
|
|
173
|
+
| Environment | URL/Access | Notes |
|
|
174
|
+
|-------------|------------|-------|
|
|
175
|
+
| Development | | |
|
|
176
|
+
| Staging | | |
|
|
177
|
+
| Production | | |
|
|
178
|
+
|
|
179
|
+
### Infrastructure
|
|
180
|
+
| Tool | Purpose |
|
|
181
|
+
|------|---------|
|
|
182
|
+
| | |
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## 7. Dependencies & Constraints
|
|
187
|
+
|
|
188
|
+
### Key Dependencies
|
|
189
|
+
| Dependency | Version | Purpose | Critical? |
|
|
190
|
+
|------------|---------|---------|-----------|
|
|
191
|
+
| | | | yes/no |
|
|
192
|
+
|
|
193
|
+
### Version Strategy
|
|
194
|
+
- [ ] Exact versions pinned
|
|
195
|
+
- [ ] Semver ranges allowed
|
|
196
|
+
- [ ] Lock file committed
|
|
197
|
+
- [ ] Regular dependency updates
|
|
198
|
+
|
|
199
|
+
### Constraints & Requirements
|
|
200
|
+
- **Node/Runtime Version**:
|
|
201
|
+
- **OS Compatibility**:
|
|
202
|
+
- **Browser Support**:
|
|
203
|
+
- **Security Requirements**:
|
|
204
|
+
- **Performance Targets**:
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## 8. Skill Requirements (Executor Scope)
|
|
209
|
+
|
|
210
|
+
Based on the tech stack analysis, the Executor agent should have proficiency in:
|
|
211
|
+
|
|
212
|
+
### Required Skills
|
|
213
|
+
- [ ]
|
|
214
|
+
- [ ]
|
|
215
|
+
- [ ]
|
|
216
|
+
|
|
217
|
+
### Preferred Skills
|
|
218
|
+
- [ ]
|
|
219
|
+
- [ ]
|
|
220
|
+
|
|
221
|
+
### Out of Scope
|
|
222
|
+
-
|
|
223
|
+
-
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
## 9. Project Scope (Research Boundaries)
|
|
228
|
+
|
|
229
|
+
### In Scope for Research
|
|
230
|
+
-
|
|
231
|
+
-
|
|
232
|
+
|
|
233
|
+
### Out of Scope
|
|
234
|
+
-
|
|
235
|
+
-
|
|
236
|
+
|
|
237
|
+
### Key Stakeholders
|
|
238
|
+
| Role | Responsibility |
|
|
239
|
+
|------|----------------|
|
|
240
|
+
| | |
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## 10. Open Questions & Gaps
|
|
245
|
+
|
|
246
|
+
| Question | Priority | Notes |
|
|
247
|
+
|----------|----------|-------|
|
|
248
|
+
| | high/medium/low | |
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
## Checklist
|
|
253
|
+
|
|
254
|
+
- [ ] Tech stack fully documented
|
|
255
|
+
- [ ] Coding conventions captured
|
|
256
|
+
- [ ] Testing strategy clear
|
|
257
|
+
- [ ] DevOps pipeline understood
|
|
258
|
+
- [ ] Skill requirements defined
|
|
259
|
+
- [ ] Scope boundaries established
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
> Keep this document under 500 lines. Update when major changes occur. Run `rrce-workflow sync` periodically to reconcile with codebase changes.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"task_id": "",
|
|
3
|
+
"task_slug": "",
|
|
4
|
+
"title": "",
|
|
5
|
+
"status": "draft",
|
|
6
|
+
"summary": "",
|
|
7
|
+
"workspace": {
|
|
8
|
+
"name": "",
|
|
9
|
+
"path": "",
|
|
10
|
+
"hash": ""
|
|
11
|
+
},
|
|
12
|
+
"created_at": "",
|
|
13
|
+
"updated_at": "",
|
|
14
|
+
"tags": [],
|
|
15
|
+
"checklist": [
|
|
16
|
+
{
|
|
17
|
+
"id": "",
|
|
18
|
+
"label": "",
|
|
19
|
+
"status": "pending",
|
|
20
|
+
"owner": "",
|
|
21
|
+
"notes": ""
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"references": [],
|
|
25
|
+
"open_questions": [],
|
|
26
|
+
"decisions": [],
|
|
27
|
+
"milestones": [],
|
|
28
|
+
"agents": {
|
|
29
|
+
"research": {
|
|
30
|
+
"owner": "",
|
|
31
|
+
"status": "pending",
|
|
32
|
+
"artifact": "",
|
|
33
|
+
"notes": ""
|
|
34
|
+
},
|
|
35
|
+
"planning": {
|
|
36
|
+
"owner": "",
|
|
37
|
+
"status": "pending",
|
|
38
|
+
"artifact": "",
|
|
39
|
+
"notes": ""
|
|
40
|
+
},
|
|
41
|
+
"executor": {
|
|
42
|
+
"owner": "",
|
|
43
|
+
"status": "pending",
|
|
44
|
+
"artifact": "",
|
|
45
|
+
"notes": ""
|
|
46
|
+
},
|
|
47
|
+
"documentation": {
|
|
48
|
+
"owner": "",
|
|
49
|
+
"status": "pending",
|
|
50
|
+
"artifact": "",
|
|
51
|
+
"notes": ""
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Execution Plan – {{task_title}}
|
|
2
|
+
|
|
3
|
+
- Task ID: `{{task_id}}`
|
|
4
|
+
- Task Slug: `{{task_slug}}`
|
|
5
|
+
- Planner: `{{author}}`
|
|
6
|
+
- Date: `{{date}}`
|
|
7
|
+
- Research Artifact: `{{research_artifact}}`
|
|
8
|
+
- Workspace: `{{workspace_name}}`
|
|
9
|
+
|
|
10
|
+
## 1. Scope Confirmation
|
|
11
|
+
- Summary of the agreed requirements.
|
|
12
|
+
- Explicit inclusions / exclusions.
|
|
13
|
+
|
|
14
|
+
## Checklist
|
|
15
|
+
- [ ] Replace with planned deliverable checkpoint.
|
|
16
|
+
- [ ] Replace with verification gate.
|
|
17
|
+
|
|
18
|
+
## 2. Objectives & Success Criteria
|
|
19
|
+
- Primary outcomes to deliver.
|
|
20
|
+
- Quantifiable acceptance checks or KPIs.
|
|
21
|
+
|
|
22
|
+
## 3. Task Breakdown
|
|
23
|
+
| Order | Task | Owner | Acceptance Criteria | Dependencies | Est. Effort |
|
|
24
|
+
| --- | --- | --- | --- | --- | --- |
|
|
25
|
+
| 1 | | | | | |
|
|
26
|
+
|
|
27
|
+
## 4. Risks & Mitigations
|
|
28
|
+
- Top risks with mitigation or contingency.
|
|
29
|
+
- Blockers requiring external support.
|
|
30
|
+
|
|
31
|
+
## 5. Validation Strategy
|
|
32
|
+
- Tests to run (unit/integration/e2e/manual).
|
|
33
|
+
- Tooling or environments needed.
|
|
34
|
+
|
|
35
|
+
## 6. Knowledge & Asset Updates
|
|
36
|
+
- Files in `{{RRCE_DATA}}/knowledge` to create or update, with reasoning.
|
|
37
|
+
- Additional references or diagrams to produce.
|
|
38
|
+
|
|
39
|
+
## 7. Handoff Checklist
|
|
40
|
+
- Prerequisites for the Executor (branches, feature flags, data, etc.).
|
|
41
|
+
- Metrics or telemetry to monitor during implementation.
|
|
42
|
+
- Open questions carried forward (also logged in `meta.json`).
|
|
43
|
+
|
|
44
|
+
> Keep this plan under 500 lines. Remove unused rows or sections once populated.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Research Brief – {{task_title}}
|
|
2
|
+
|
|
3
|
+
- Task ID: `{{task_id}}`
|
|
4
|
+
- Task Slug: `{{task_slug}}`
|
|
5
|
+
- Author: `{{author}}`
|
|
6
|
+
- Date: `{{date}}`
|
|
7
|
+
- Source Request / Conversation URL: `{{source}}`
|
|
8
|
+
- Workspace: `{{workspace_name}}`
|
|
9
|
+
|
|
10
|
+
## 1. Request Summary
|
|
11
|
+
- Concise restatement of the user's ask.
|
|
12
|
+
- Highlight explicit goals, constraints, and success metrics.
|
|
13
|
+
|
|
14
|
+
## Checklist
|
|
15
|
+
- [ ] Replace with concrete clarification or validation step.
|
|
16
|
+
- [ ] Replace with next ready-to-run action.
|
|
17
|
+
|
|
18
|
+
## 2. Current Knowledge Snapshot
|
|
19
|
+
- Relevant prior work or documents from `{{RRCE_DATA}}/knowledge` or workspace.
|
|
20
|
+
- Key facts that shape feasibility or scope.
|
|
21
|
+
|
|
22
|
+
## 3. Clarifications & Responses
|
|
23
|
+
| Question | Answer | Status (answered/pending) | Reference |
|
|
24
|
+
| --- | --- | --- | --- |
|
|
25
|
+
| | | | |
|
|
26
|
+
|
|
27
|
+
## 4. Assumptions & Risks
|
|
28
|
+
- Explicit assumptions that require validation.
|
|
29
|
+
- Risks or edge cases that need attention.
|
|
30
|
+
|
|
31
|
+
## 5. Opportunity & Alternative Approaches
|
|
32
|
+
- Potential strategies worth evaluating.
|
|
33
|
+
- Trade-offs or spikes recommended before execution.
|
|
34
|
+
|
|
35
|
+
## 6. Raw Requirement Draft
|
|
36
|
+
- Bullet the functional outcomes and non-functional requirements as currently understood.
|
|
37
|
+
- Note acceptance signals or metrics where available.
|
|
38
|
+
|
|
39
|
+
## 7. Hand-off Notes
|
|
40
|
+
- Immediate next steps for Planning.
|
|
41
|
+
- Pending clarifications or decisions to resolve.
|
|
42
|
+
- References added to `meta.json`.
|
|
43
|
+
|
|
44
|
+
> Keep this document under 500 lines. Replace placeholders with concise entries and trim empty sections if unnecessary.
|