β‘ Workflows
Map-Reduce (split, process in parallel, unify)
Decompose a large problem into independent sub-tasks, process them concurrently, and merge results into a coherent output.
Bundle files
πORCHESTRATION.mdβ Orchestration
1# ORCHESTRATION.md
2
3## Diagram
4
5 βββββββββββββββββββββββββββββββββββ
6 β Splitter β
7 β (partition input into chunks) β
8 βββββββββ¬βββββββββββ¬βββββββββββ¬ββββ
9 β β β
10 v v v
11 ββββββββββ ββββββββββ ββββββββββ
12 βMapper 1β βMapper 2β βMapper Nβ
13 βββββ¬βββββ βββββ¬βββββ βββββ¬βββββ
14 β β β
15 v v v
16 βββββββββββββββββββββββββββββββββββ
17 β Reducer β
18 β (merge partials into final) β
19 βββββββββββββββββββββββββββββββββββ
20
21## Workflow
22Map-Reduce (split, process in parallel, unify)
23
24## Objective
25Decompose a large problem into independent sub-tasks, process them concurrently, and merge results into a coherent output.
26
27## Roles
28- **Splitter:** partitions input into chunks with clear boundaries.
29- **N Mappers:** each processes one chunk independently.
30- **Reducer:** merges all mapper outputs into a single result.
31
32## When to use
33- Large datasets or document collections.
34- Repetitive analysis across many items.
35- Output can be aggregated (counts, summaries, rankings).
36
37## Protocol
381. Splitter defines chunk boundaries and output schema.
392. Each mapper receives its chunk + shared instructions.
403. Mappers produce structured partial results.
414. Reducer collects all partials, resolves conflicts, produces final output.
42
43## Rules
44- Chunks must not overlap.
45- Every mapper uses the same output schema.
46- Reducer must handle missing or malformed partials gracefully.
47
48## Common risks
49- Uneven chunk sizes causing bottlenecks.
50- Schema drift between mappers.
51- Lost context at chunk boundaries.
52
53## Mitigation
54- Fixed schema enforced before map phase.
55- Overlap margin at chunk edges for context.
56- Reducer validates completeness before finalizing.
57
Lines: 57 | Words: 232
Install
Copy bundle to your OpenClaw workspace.
curl -fsSL https://raw.githubusercontent.com/cerealskill/openclaw-agents/main/install.sh | bash -s workflow map-reduce ENRate this agent
Loading...
Sign in to rate this agent
Includes
- β ORCHESTRATION.md
Info
- Slug
- map-reduce
- Lines
- 57
- Words
- 232
