ace-handbook 0.19.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.
- checksums.yaml +7 -0
- data/.ace-defaults/handbook/config.yml +4 -0
- data/.ace-defaults/nav/protocols/guide-sources/ace-handbook.yml +19 -0
- data/.ace-defaults/nav/protocols/tmpl-sources/ace-handbook.yml +10 -0
- data/.ace-defaults/nav/protocols/wfi-sources/ace-handbook.yml +19 -0
- data/CHANGELOG.md +362 -0
- data/LICENSE +21 -0
- data/README.md +42 -0
- data/Rakefile +12 -0
- data/exe/ace-handbook +6 -0
- data/handbook/guides/ai-agent-integration.g.md +625 -0
- data/handbook/guides/atom-pattern.g.md +371 -0
- data/handbook/guides/changelog.g.md +333 -0
- data/handbook/guides/cli-dry-cli.g.md +276 -0
- data/handbook/guides/cli-support-cli.g.md +277 -0
- data/handbook/guides/coding-standards/ruby.md +41 -0
- data/handbook/guides/coding-standards/rust.md +19 -0
- data/handbook/guides/coding-standards/typescript.md +20 -0
- data/handbook/guides/coding-standards.g.md +134 -0
- data/handbook/guides/debug-troubleshooting.g.md +62 -0
- data/handbook/guides/error-handling/ruby.md +29 -0
- data/handbook/guides/error-handling/rust.md +59 -0
- data/handbook/guides/error-handling/typescript.md +38 -0
- data/handbook/guides/error-handling.g.md +207 -0
- data/handbook/guides/meta/agents-definition.g.md +823 -0
- data/handbook/guides/meta/guides-definition.g.md +322 -0
- data/handbook/guides/meta/markdown-definition.g.md +210 -0
- data/handbook/guides/meta/tools-definition.g.md +159 -0
- data/handbook/guides/meta/workflow-instructions-definition.g.md +367 -0
- data/handbook/guides/mono-repo-patterns.g.md +92 -0
- data/handbook/guides/multi-agent-research.g.md +251 -0
- data/handbook/guides/performance/ruby.md +25 -0
- data/handbook/guides/performance/rust.md +48 -0
- data/handbook/guides/performance/typescript.md +32 -0
- data/handbook/guides/performance.g.md +211 -0
- data/handbook/guides/prompt-caching.g.md +83 -0
- data/handbook/guides/quality-assurance/ruby.md +33 -0
- data/handbook/guides/quality-assurance/rust.md +41 -0
- data/handbook/guides/quality-assurance/typescript.md +49 -0
- data/handbook/guides/quality-assurance.g.md +222 -0
- data/handbook/guides/strategic-planning.g.md +69 -0
- data/handbook/guides/troubleshooting/ruby.md +21 -0
- data/handbook/guides/troubleshooting/rust.md +20 -0
- data/handbook/guides/troubleshooting/typescript.md +36 -0
- data/handbook/guides/workflow-context-embedding.g.md +286 -0
- data/handbook/skills/as-handbook-init-project/SKILL.md +34 -0
- data/handbook/skills/as-handbook-manage-agents/SKILL.md +35 -0
- data/handbook/skills/as-handbook-manage-guides/SKILL.md +35 -0
- data/handbook/skills/as-handbook-manage-workflows/SKILL.md +35 -0
- data/handbook/skills/as-handbook-parallel-research/SKILL.md +29 -0
- data/handbook/skills/as-handbook-perform-delivery/SKILL.md +35 -0
- data/handbook/skills/as-handbook-review-guides/SKILL.md +32 -0
- data/handbook/skills/as-handbook-review-workflows/SKILL.md +32 -0
- data/handbook/skills/as-handbook-synthesize-research/SKILL.md +29 -0
- data/handbook/skills/as-handbook-update-docs/SKILL.md +35 -0
- data/handbook/skills/as-release/SKILL.md +50 -0
- data/handbook/skills/as-release-bump-version/SKILL.md +28 -0
- data/handbook/skills/as-release-rubygems-publish/SKILL.md +58 -0
- data/handbook/skills/as-release-update-changelog/SKILL.md +28 -0
- data/handbook/templates/completed-work-documentation.md +59 -0
- data/handbook/templates/cookbooks/cookbook.template.md +237 -0
- data/handbook/templates/research-comparison.template.md +175 -0
- data/handbook/workflow-instructions/handbook/init-project.wf.md +629 -0
- data/handbook/workflow-instructions/handbook/manage-agents.wf.md +379 -0
- data/handbook/workflow-instructions/handbook/manage-guides.wf.md +294 -0
- data/handbook/workflow-instructions/handbook/manage-workflows.wf.md +292 -0
- data/handbook/workflow-instructions/handbook/parallel-research.wf.md +328 -0
- data/handbook/workflow-instructions/handbook/perform-delivery.wf.md +267 -0
- data/handbook/workflow-instructions/handbook/research.wf.md +247 -0
- data/handbook/workflow-instructions/handbook/review-guides.wf.md +348 -0
- data/handbook/workflow-instructions/handbook/review-workflows.wf.md +299 -0
- data/handbook/workflow-instructions/handbook/synthesize-research.wf.md +429 -0
- data/handbook/workflow-instructions/handbook/update-docs.wf.md +338 -0
- data/lib/ace/handbook/atoms/provider_registry.rb +70 -0
- data/lib/ace/handbook/cli/commands/status.rb +36 -0
- data/lib/ace/handbook/cli/commands/sync.rb +36 -0
- data/lib/ace/handbook/cli.rb +51 -0
- data/lib/ace/handbook/models/skill_document.rb +25 -0
- data/lib/ace/handbook/molecules/skill_projection.rb +54 -0
- data/lib/ace/handbook/organisms/provider_syncer.rb +106 -0
- data/lib/ace/handbook/organisms/skill_inventory.rb +54 -0
- data/lib/ace/handbook/organisms/status_collector.rb +181 -0
- data/lib/ace/handbook/version.rb +7 -0
- data/lib/ace/handbook.rb +28 -0
- metadata +227 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
---
|
|
2
|
+
doc-type: workflow
|
|
3
|
+
title: Perform Delivery Workflow
|
|
4
|
+
purpose: Coordinate complete task delivery across implementation, review, release, and review cycles.
|
|
5
|
+
ace-docs:
|
|
6
|
+
last-updated: 2026-03-12
|
|
7
|
+
last-checked: 2026-03-21
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Perform Delivery Workflow
|
|
11
|
+
|
|
12
|
+
## Goal
|
|
13
|
+
|
|
14
|
+
Execute complete delivery workflow for a task with automatic step tracking, ensuring no steps are lost during complex multi-step execution.
|
|
15
|
+
|
|
16
|
+
## Prerequisites
|
|
17
|
+
|
|
18
|
+
* Task reference (e.g., `215.03`) OR detailed inline instructions
|
|
19
|
+
* Clean git working directory (or staged changes ready for commit)
|
|
20
|
+
* Understanding of the standard delivery workflow steps
|
|
21
|
+
* Access to the relevant ACE CLI tools and workflows
|
|
22
|
+
|
|
23
|
+
## Project Context Loading
|
|
24
|
+
|
|
25
|
+
* Load task context via `ace-task show <ref>` if task reference provided
|
|
26
|
+
* Load git status: `git status`
|
|
27
|
+
* Load PR status: `gh pr view` (if PR exists)
|
|
28
|
+
|
|
29
|
+
## High-Level Execution Plan
|
|
30
|
+
|
|
31
|
+
### Phase 0: Externalize Workflow (CRITICAL - DO FIRST)
|
|
32
|
+
|
|
33
|
+
* [ ] Parse input to identify delivery scope
|
|
34
|
+
* [ ] Create TodoWrite entry for EVERY delivery step BEFORE starting work
|
|
35
|
+
* [ ] Confirm todo list is complete before proceeding
|
|
36
|
+
|
|
37
|
+
### Phase 1: Implementation
|
|
38
|
+
|
|
39
|
+
* [ ] Enter plan mode if implementation required
|
|
40
|
+
* [ ] Execute implementation via `ace-bundle wfi://task/work` or inline instructions
|
|
41
|
+
* [ ] Commit all changes (`ace-git-commit`)
|
|
42
|
+
* [ ] Release modified packages (`ace-bundle wfi://release/publish` if applicable)
|
|
43
|
+
* [ ] Mark task done and push to remote
|
|
44
|
+
|
|
45
|
+
### Phase 2: PR & Initial Review
|
|
46
|
+
|
|
47
|
+
* [ ] Create or update PR (`ace-bundle wfi://github/pr/create`)
|
|
48
|
+
* [ ] Run initial review (`ace-bundle wfi://review/pr`)
|
|
49
|
+
* [ ] Implement HIGH/CRITICAL feedback immediately
|
|
50
|
+
|
|
51
|
+
### Phase 3: Deep Review Cycle
|
|
52
|
+
|
|
53
|
+
* [ ] Run deep code review (`ace-bundle wfi://review/pr`, using the `code-deep` preset)
|
|
54
|
+
* [ ] Implement MEDIUM+ severity feedback
|
|
55
|
+
* [ ] Run test suite (`ace-test-suite`)
|
|
56
|
+
* [ ] Commit fixes (`ace-git-commit`)
|
|
57
|
+
* [ ] Repeat review cycle if needed
|
|
58
|
+
|
|
59
|
+
## Process Steps
|
|
60
|
+
|
|
61
|
+
### Phase 0: Externalize Workflow (CRITICAL - DO FIRST)
|
|
62
|
+
|
|
63
|
+
**BEFORE reading any detailed content or starting implementation:**
|
|
64
|
+
|
|
65
|
+
1. **Parse Input:**
|
|
66
|
+
* Identify if input is a task reference (e.g., `215.03`) or inline instructions
|
|
67
|
+
* Determine scope: full delivery vs. partial (implementation only, review only, etc.)
|
|
68
|
+
|
|
69
|
+
2. **Create Session Todo List IMMEDIATELY:**
|
|
70
|
+
* Use TodoWrite to create entries for ALL delivery steps
|
|
71
|
+
* This MUST be the FIRST action before any other work
|
|
72
|
+
* Do not read implementation details until todo list is created
|
|
73
|
+
|
|
74
|
+
**Standard Delivery Steps to Add:**
|
|
75
|
+
```
|
|
76
|
+
1. Implement task (via `ace-bundle wfi://task/work` or inline)
|
|
77
|
+
2. Commit all changes (`ace-git-commit`)
|
|
78
|
+
3. Release modified packages (`ace-bundle wfi://release/publish`)
|
|
79
|
+
4. Mark task done and push to remote
|
|
80
|
+
5. Create/update PR (`ace-bundle wfi://github/pr/create`)
|
|
81
|
+
6. Initial review (`ace-bundle wfi://review/pr`)
|
|
82
|
+
7. Implement HIGH/CRITICAL feedback
|
|
83
|
+
8. Deep review (`ace-bundle wfi://review/pr` with `code-deep`)
|
|
84
|
+
9. Implement MEDIUM+ feedback
|
|
85
|
+
10. Run test suite and commit fixes
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
3. **Confirm Before Proceeding:**
|
|
89
|
+
* Output: "Session todo list created with N delivery steps"
|
|
90
|
+
* Only proceed to Phase 1 after todo list is confirmed
|
|
91
|
+
|
|
92
|
+
### Phase 1: Implementation
|
|
93
|
+
|
|
94
|
+
1. **Load Task Context (if task reference provided):**
|
|
95
|
+
* Load `ace-bundle wfi://task/work`, then follow it with the task reference
|
|
96
|
+
* If inline instructions provided, use those directly
|
|
97
|
+
|
|
98
|
+
2. **Enter Plan Mode (if implementation required):**
|
|
99
|
+
* Prepare detailed implementation plan
|
|
100
|
+
* Get user approval before proceeding
|
|
101
|
+
|
|
102
|
+
3. **Execute Implementation:**
|
|
103
|
+
* Follow the implementation plan
|
|
104
|
+
* Track progress using TodoWrite for sub-tasks
|
|
105
|
+
|
|
106
|
+
4. **Commit Changes:**
|
|
107
|
+
* Run `ace-git-commit` to commit all changes
|
|
108
|
+
* Use descriptive commit message
|
|
109
|
+
|
|
110
|
+
5. **Release Packages (if applicable):**
|
|
111
|
+
* Load `ace-bundle wfi://release/publish` when a release is required
|
|
112
|
+
* Follow versioning conventions
|
|
113
|
+
|
|
114
|
+
6. **Complete Task:**
|
|
115
|
+
* Mark task as done: `ace-taskflow done <ref>`
|
|
116
|
+
* Push to remote: `git push`
|
|
117
|
+
|
|
118
|
+
### Phase 2: PR & Initial Review
|
|
119
|
+
|
|
120
|
+
1. **Create or Update PR:**
|
|
121
|
+
* Load `ace-bundle wfi://github/pr/create` to prepare the pull request flow
|
|
122
|
+
* Include task reference and summary
|
|
123
|
+
|
|
124
|
+
2. **Run Initial Review:**
|
|
125
|
+
* Load `ace-bundle wfi://review/pr`
|
|
126
|
+
* Review the feedback output
|
|
127
|
+
|
|
128
|
+
3. **Implement Critical Feedback:**
|
|
129
|
+
* Address all HIGH and CRITICAL severity items
|
|
130
|
+
* Commit fixes with descriptive messages
|
|
131
|
+
|
|
132
|
+
### Phase 3: Deep Review Cycle
|
|
133
|
+
|
|
134
|
+
1. **Run Deep Code Review:**
|
|
135
|
+
* Load `ace-bundle wfi://review/pr` and use the `code-deep` preset
|
|
136
|
+
* This provides more thorough analysis
|
|
137
|
+
|
|
138
|
+
2. **Implement Feedback:**
|
|
139
|
+
* Address MEDIUM severity and above items
|
|
140
|
+
* Consider LOW severity items for future improvements
|
|
141
|
+
|
|
142
|
+
3. **Run Test Suite:**
|
|
143
|
+
* Run `ace-test-suite` to verify all tests pass
|
|
144
|
+
* Fix any failing tests
|
|
145
|
+
|
|
146
|
+
4. **Commit Fixes:**
|
|
147
|
+
* Run `ace-git-commit` to commit all fixes
|
|
148
|
+
|
|
149
|
+
5. **Repeat Review Cycle (if needed):**
|
|
150
|
+
* If significant changes were made, run another review
|
|
151
|
+
* Continue until no HIGH/CRITICAL items remain
|
|
152
|
+
|
|
153
|
+
## Checkpoint Protocol
|
|
154
|
+
|
|
155
|
+
**After completing EACH numbered todo item:**
|
|
156
|
+
|
|
157
|
+
1. Mark the todo as COMPLETED using TodoWrite
|
|
158
|
+
2. Output checkpoint message:
|
|
159
|
+
```
|
|
160
|
+
✓ Step N complete: [step description]
|
|
161
|
+
→ Next: Step N+1 - [next step description]
|
|
162
|
+
```
|
|
163
|
+
3. Read todo list to confirm next step
|
|
164
|
+
4. Continue IMMEDIATELY to next step (no user prompt needed unless blocked)
|
|
165
|
+
|
|
166
|
+
**On Failure:**
|
|
167
|
+
|
|
168
|
+
1. Mark the current todo as blocked (keep as in_progress)
|
|
169
|
+
2. Output failure message:
|
|
170
|
+
```
|
|
171
|
+
✗ Step N failed: [step description]
|
|
172
|
+
→ Error: [error description]
|
|
173
|
+
→ Action needed: [what user needs to do]
|
|
174
|
+
```
|
|
175
|
+
3. Ask user for guidance using AskUserQuestion
|
|
176
|
+
4. Resume workflow after issue is resolved
|
|
177
|
+
|
|
178
|
+
## Auto-Continue Protocol
|
|
179
|
+
|
|
180
|
+
**CRITICAL:** This workflow should AUTO-CONTINUE between steps without waiting for user input.
|
|
181
|
+
|
|
182
|
+
The only times to pause and ask the user:
|
|
183
|
+
|
|
184
|
+
* Plan mode approval (Phase 1)
|
|
185
|
+
* Step failure requiring user intervention
|
|
186
|
+
* Ambiguous instructions requiring clarification
|
|
187
|
+
* External blockers (CI failures, merge conflicts, etc.)
|
|
188
|
+
|
|
189
|
+
For all other transitions, immediately proceed to the next step after checkpoint.
|
|
190
|
+
|
|
191
|
+
## Scope Variations
|
|
192
|
+
|
|
193
|
+
### Full Delivery (default)
|
|
194
|
+
|
|
195
|
+
All steps from implementation through review cycles. Load `ace-bundle wfi://handbook/perform-delivery`.
|
|
196
|
+
|
|
197
|
+
### Implementation Only
|
|
198
|
+
|
|
199
|
+
Skip PR and review phases (useful for WIP branches). Load `ace-bundle wfi://handbook/perform-delivery`.
|
|
200
|
+
|
|
201
|
+
### Review Only
|
|
202
|
+
|
|
203
|
+
Skip implementation, start from PR creation. Load `ace-bundle wfi://handbook/perform-delivery`.
|
|
204
|
+
|
|
205
|
+
### Custom Instructions
|
|
206
|
+
|
|
207
|
+
Provide inline instructions instead of task reference. Load `ace-bundle wfi://handbook/perform-delivery`.
|
|
208
|
+
|
|
209
|
+
## Success Criteria
|
|
210
|
+
|
|
211
|
+
* All todo items marked as completed
|
|
212
|
+
* No skipped or forgotten steps
|
|
213
|
+
* All commits pushed to remote
|
|
214
|
+
* PR created (if applicable)
|
|
215
|
+
* All HIGH/CRITICAL review feedback addressed
|
|
216
|
+
* Test suite passing
|
|
217
|
+
* Task marked as done in taskflow
|
|
218
|
+
|
|
219
|
+
## Error Handling
|
|
220
|
+
|
|
221
|
+
**Step Fails to Complete:**
|
|
222
|
+
|
|
223
|
+
* Keep todo item as in_progress
|
|
224
|
+
* Log the error with context
|
|
225
|
+
* Ask user for guidance
|
|
226
|
+
* Resume from failed step after resolution
|
|
227
|
+
|
|
228
|
+
**User Interruption:**
|
|
229
|
+
|
|
230
|
+
* Save current state (which step is in progress)
|
|
231
|
+
* Allow resume from interruption point
|
|
232
|
+
* Maintain todo list across session
|
|
233
|
+
|
|
234
|
+
**External Tool Failure:**
|
|
235
|
+
|
|
236
|
+
* Report which tool failed and the error
|
|
237
|
+
* Suggest manual alternatives if available
|
|
238
|
+
* Wait for user guidance before proceeding
|
|
239
|
+
|
|
240
|
+
## Usage Examples
|
|
241
|
+
|
|
242
|
+
### Full Task Delivery
|
|
243
|
+
|
|
244
|
+
> "Perform delivery for task 215.03"
|
|
245
|
+
|
|
246
|
+
This will:
|
|
247
|
+
1. Load task context
|
|
248
|
+
2. Implement the task
|
|
249
|
+
3. Commit, release, mark done
|
|
250
|
+
4. Create PR
|
|
251
|
+
5. Review and iterate
|
|
252
|
+
|
|
253
|
+
### Review Cycle Only
|
|
254
|
+
|
|
255
|
+
> "Perform delivery for task 215.03 --scope review"
|
|
256
|
+
|
|
257
|
+
This will:
|
|
258
|
+
1. Create/update PR
|
|
259
|
+
2. Review and implement feedback
|
|
260
|
+
3. Run test suite
|
|
261
|
+
4. Iterate until clean
|
|
262
|
+
|
|
263
|
+
### Custom Workflow
|
|
264
|
+
|
|
265
|
+
> "Perform delivery: implement the dark mode feature, commit, create PR, and run one review cycle"
|
|
266
|
+
|
|
267
|
+
This will parse the custom instructions and create a todo list matching the requested steps.
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
---
|
|
2
|
+
doc-type: workflow
|
|
3
|
+
title: Research Workflow
|
|
4
|
+
purpose: Documentation for ace-handbook/handbook/workflow-instructions/handbook/research.wf.md
|
|
5
|
+
ace-docs:
|
|
6
|
+
last-updated: 2026-03-12
|
|
7
|
+
last-checked: 2026-03-21
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Research Workflow
|
|
11
|
+
|
|
12
|
+
## Goal
|
|
13
|
+
|
|
14
|
+
Conduct research on a topic with optional escalation to multi-agent research for complex or high-stakes investigations.
|
|
15
|
+
|
|
16
|
+
## Prerequisites
|
|
17
|
+
|
|
18
|
+
- Clear research question or topic
|
|
19
|
+
- Access to relevant codebase/documentation if researching implementation
|
|
20
|
+
- Understanding of when to use single vs multi-agent approach
|
|
21
|
+
|
|
22
|
+
## Project Context Loading
|
|
23
|
+
|
|
24
|
+
- Load relevant project documentation if researching project-specific topic
|
|
25
|
+
- Check for existing research on the topic
|
|
26
|
+
|
|
27
|
+
## High-Level Execution Plan
|
|
28
|
+
|
|
29
|
+
### Decision Point: Single vs Multi-Agent
|
|
30
|
+
- [ ] Evaluate research complexity
|
|
31
|
+
- [ ] Check multi-agent criteria
|
|
32
|
+
- [ ] Route to appropriate path
|
|
33
|
+
|
|
34
|
+
### Single-Agent Path
|
|
35
|
+
- [ ] Scope the research
|
|
36
|
+
- [ ] Gather information
|
|
37
|
+
- [ ] Analyze findings
|
|
38
|
+
- [ ] Produce deliverables
|
|
39
|
+
|
|
40
|
+
### Multi-Agent Path
|
|
41
|
+
- [ ] Invoke parallel-research workflow
|
|
42
|
+
- [ ] Follow synthesis workflow
|
|
43
|
+
- [ ] Validate combined output
|
|
44
|
+
|
|
45
|
+
## Process Steps
|
|
46
|
+
|
|
47
|
+
### Step 1: Evaluate Research Approach
|
|
48
|
+
|
|
49
|
+
Before beginning research, determine whether single-agent or multi-agent approach is appropriate.
|
|
50
|
+
|
|
51
|
+
**Use Multi-Agent Research When:**
|
|
52
|
+
|
|
53
|
+
| Criterion | Description |
|
|
54
|
+
|-----------|-------------|
|
|
55
|
+
| Complex topic | Research spans multiple domains or requires diverse expertise |
|
|
56
|
+
| High stakes | Errors would be costly; need cross-validation |
|
|
57
|
+
| Novel domain | Unknown territory benefits from multiple perspectives |
|
|
58
|
+
| Standard-setting | Establishing patterns/practices needs consensus |
|
|
59
|
+
| Exploratory | Broad search for options benefits from diversity |
|
|
60
|
+
|
|
61
|
+
**Use Single-Agent Research When:**
|
|
62
|
+
|
|
63
|
+
| Criterion | Description |
|
|
64
|
+
|-----------|-------------|
|
|
65
|
+
| Simple, well-defined | Clear scope with obvious approach |
|
|
66
|
+
| Time-critical | Need results quickly |
|
|
67
|
+
| Cost-sensitive | Budget constraints |
|
|
68
|
+
| Clear source of truth | Single authoritative answer exists |
|
|
69
|
+
| Implementation-focused | Execution benefits from consistency |
|
|
70
|
+
|
|
71
|
+
**Decision Questions:**
|
|
72
|
+
1. Would multiple perspectives add significant value?
|
|
73
|
+
2. Is the cost (3-5x tokens) justified by the stakes?
|
|
74
|
+
3. Do you have time for synthesis (20-30% additional effort)?
|
|
75
|
+
|
|
76
|
+
If answers are mostly **yes** → Multi-Agent Path
|
|
77
|
+
If answers are mostly **no** → Single-Agent Path
|
|
78
|
+
|
|
79
|
+
### Step 2A: Single-Agent Research
|
|
80
|
+
|
|
81
|
+
If single-agent approach selected:
|
|
82
|
+
|
|
83
|
+
1. **Scope the Research**
|
|
84
|
+
- Define the research question precisely
|
|
85
|
+
- Set boundaries (what's in/out of scope)
|
|
86
|
+
- Identify expected deliverables
|
|
87
|
+
- Set time/effort limits
|
|
88
|
+
|
|
89
|
+
2. **Gather Information**
|
|
90
|
+
- Search codebase for relevant patterns
|
|
91
|
+
- Review documentation
|
|
92
|
+
- Consult external sources if appropriate
|
|
93
|
+
- Note sources for all findings
|
|
94
|
+
|
|
95
|
+
3. **Analyze Findings**
|
|
96
|
+
- Synthesize information into coherent narrative
|
|
97
|
+
- Identify patterns and themes
|
|
98
|
+
- Note gaps or uncertainties
|
|
99
|
+
- Form recommendations
|
|
100
|
+
|
|
101
|
+
4. **Produce Deliverables**
|
|
102
|
+
- Main research report
|
|
103
|
+
- Supplementary artifacts as needed:
|
|
104
|
+
- Guides (`.g.md`) for conceptual knowledge
|
|
105
|
+
- Workflows (`.wf.md`) for processes
|
|
106
|
+
- Templates for reusable structures
|
|
107
|
+
|
|
108
|
+
5. **Validate**
|
|
109
|
+
- Does the report answer the research question?
|
|
110
|
+
- Are findings well-supported?
|
|
111
|
+
- Are recommendations actionable?
|
|
112
|
+
|
|
113
|
+
### Step 2B: Multi-Agent Research
|
|
114
|
+
|
|
115
|
+
If multi-agent approach selected:
|
|
116
|
+
|
|
117
|
+
1. **Load Parallel Research Workflow**
|
|
118
|
+
```
|
|
119
|
+
ace-bundle wfi://handbook/parallel-research
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
2. **Complete Parallel Research Phases**
|
|
123
|
+
- Setup: Define question, select agents
|
|
124
|
+
- Dispatch: Launch parallel research
|
|
125
|
+
- Monitor: Track completion
|
|
126
|
+
- Cross-Review: Peer review phase
|
|
127
|
+
- Handoff: Prepare for synthesis
|
|
128
|
+
|
|
129
|
+
3. **Load Synthesis Workflow**
|
|
130
|
+
```
|
|
131
|
+
ace-bundle wfi://handbook/synthesize-research
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
4. **Complete Synthesis Phases**
|
|
135
|
+
- Inventory: Catalog all outputs
|
|
136
|
+
- Compare: Side-by-side analysis
|
|
137
|
+
- Resolve: Handle conflicts
|
|
138
|
+
- Synthesize: Combine outputs
|
|
139
|
+
- Validate: Quality check
|
|
140
|
+
|
|
141
|
+
5. **Final Validation**
|
|
142
|
+
- Does synthesis exceed individual agent quality?
|
|
143
|
+
- Are all perspectives represented?
|
|
144
|
+
- Are conflicts properly resolved?
|
|
145
|
+
|
|
146
|
+
## Research Report Template
|
|
147
|
+
|
|
148
|
+
```markdown
|
|
149
|
+
# {Topic} Research Report
|
|
150
|
+
|
|
151
|
+
**Date**: {YYYY-MM-DD}
|
|
152
|
+
**Researcher**: {agent/human}
|
|
153
|
+
**Approach**: Single-Agent / Multi-Agent
|
|
154
|
+
|
|
155
|
+
## Research Question
|
|
156
|
+
|
|
157
|
+
{Clear statement of what was investigated}
|
|
158
|
+
|
|
159
|
+
## Scope
|
|
160
|
+
|
|
161
|
+
**In Scope**:
|
|
162
|
+
- {item 1}
|
|
163
|
+
- {item 2}
|
|
164
|
+
|
|
165
|
+
**Out of Scope**:
|
|
166
|
+
- {item 1}
|
|
167
|
+
|
|
168
|
+
## Methodology
|
|
169
|
+
|
|
170
|
+
{How the research was conducted}
|
|
171
|
+
|
|
172
|
+
## Findings
|
|
173
|
+
|
|
174
|
+
### {Finding Category 1}
|
|
175
|
+
|
|
176
|
+
{Detailed findings with evidence}
|
|
177
|
+
|
|
178
|
+
### {Finding Category 2}
|
|
179
|
+
|
|
180
|
+
{Detailed findings with evidence}
|
|
181
|
+
|
|
182
|
+
## Recommendations
|
|
183
|
+
|
|
184
|
+
1. **{Recommendation 1}**
|
|
185
|
+
- Rationale: {why}
|
|
186
|
+
- Priority: {high/medium/low}
|
|
187
|
+
|
|
188
|
+
2. **{Recommendation 2}**
|
|
189
|
+
- Rationale: {why}
|
|
190
|
+
- Priority: {high/medium/low}
|
|
191
|
+
|
|
192
|
+
## Gaps and Limitations
|
|
193
|
+
|
|
194
|
+
- {Gap 1}: {what remains unknown}
|
|
195
|
+
- {Limitation 1}: {constraint on findings}
|
|
196
|
+
|
|
197
|
+
## References
|
|
198
|
+
|
|
199
|
+
- {Source 1}
|
|
200
|
+
- {Source 2}
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
## Success Criteria
|
|
204
|
+
|
|
205
|
+
- Research question is clearly answered
|
|
206
|
+
- Approach (single/multi-agent) is appropriate for complexity
|
|
207
|
+
- Findings are well-supported with evidence
|
|
208
|
+
- Recommendations are actionable
|
|
209
|
+
- Gaps and limitations are documented
|
|
210
|
+
- Deliverables follow project conventions
|
|
211
|
+
|
|
212
|
+
## Multi-Agent Option
|
|
213
|
+
|
|
214
|
+
For complex or high-stakes research, consider the multi-agent approach:
|
|
215
|
+
|
|
216
|
+
### When to Escalate
|
|
217
|
+
|
|
218
|
+
Evaluate these factors:
|
|
219
|
+
|
|
220
|
+
| Factor | Single-Agent | Multi-Agent |
|
|
221
|
+
|--------|--------------|-------------|
|
|
222
|
+
| Complexity | Low-Medium | High |
|
|
223
|
+
| Stakes | Low-Medium | High |
|
|
224
|
+
| Domain novelty | Familiar | Novel |
|
|
225
|
+
| Perspective value | Limited | High |
|
|
226
|
+
| Time available | Limited | Sufficient |
|
|
227
|
+
| Budget | Constrained | Flexible |
|
|
228
|
+
|
|
229
|
+
### How to Escalate
|
|
230
|
+
|
|
231
|
+
1. Review: `ace-bundle guide://multi-agent-research`
|
|
232
|
+
2. Invoke: `ace-bundle wfi://handbook/parallel-research`
|
|
233
|
+
3. Follow: Parallel Research → Synthesis workflows
|
|
234
|
+
|
|
235
|
+
### Expected Benefits
|
|
236
|
+
|
|
237
|
+
- 7-15% accuracy improvement (per ICE research)
|
|
238
|
+
- Reduced hallucinations through cross-validation
|
|
239
|
+
- Broader coverage of solution space
|
|
240
|
+
- Higher confidence in recommendations
|
|
241
|
+
|
|
242
|
+
## Related Resources
|
|
243
|
+
|
|
244
|
+
- [Multi-Agent Research Guide](guide://multi-agent-research) - Detailed guidance on multi-agent approach
|
|
245
|
+
- [Parallel Research Workflow](wfi://handbook/parallel-research) - Setting up parallel agent research
|
|
246
|
+
- [Synthesize Research Workflow](wfi://handbook/synthesize-research) - Combining agent outputs
|
|
247
|
+
- [Research Comparison Template](tmpl://research-comparison) - Template for synthesis
|