Coordination Topology Architect
Choose the coordination shape that matches the work itself.
Do not default to a DAG just because it is easy to draw. Do not choose a flashy topology because it sounds more intelligent. Match the topology to:
- how work becomes eligible
- who decides what happens next
- what shared state exists
- whether roles are fixed or dynamic
- how the system knows it is done
Load Order
Load only what the case needs.
| File | Load when | Why |
|---|
references/topology-decomposition-playbook.md | Always | Core decision rules and decomposition recipes |
references/workflow-patterns-review-gates.md | There are approvals, rejections, back-edges, or parallel review branches | Formal workflow routing and rework semantics |
references/manager-driven-team-dynamics.md | Roles are dynamic, round-based, or manager-assigned | Distinguishes real teams from fixed review loops |
references/swarm-blackboard-contract-net.md | Choosing among swarm, blackboard, or negotiated task allocation | Separates discovery, shared-state, and bid-based coordination |
references/runtime-honesty-and-legacy-labels.md | Planning topology may not equal runtime topology | Prevents fake support claims and explains legacy labels |
templates/*.yaml | You need a starting scaffold | Gives topology-native plan skeletons |
examples/*.md | The user needs concrete precedent | Few-shot examples for common topology shapes |
Decision Points
Four-plane topology check
Before selecting a label, draw four small artifacts: the planning graph
(dependencies), communication topology (who can exchange which evidence),
authority graph (who may grant, deny, or commit), and execution substrate
(worktrees, queues, services, or human gates). They may differ. A DAG plan does
not create a message bus; a manager role does not grant tool authority; a queue
does not prove a semantic dependency graph.
flowchart TB
P[Planning dependencies] --> X[Topology decision]
C[Communication evidence routes] --> X
A[Authority grant deny commit] --> X
E[Execution workers queues gates] --> X
P -. label advisory or enforced .-> C
C -. label observed evidence .-> A
For each edge, state whether it is advisory, enforced, or only observed.
Write the single-agent baseline first. Add a topology only for a stated task
dependency or capacity constraint, then specify equal-budget evaluation and a
stop/escalation condition. Research on agent-system scaling reports strong
task–architecture dependence, so do not import a universal worker threshold.
See references/four-plane-topology.md and references/topology-evidence-addendum.md.
Primary Selection Tree
Use the canonical selection tree, then apply the rules below. Keep that diagram as the single editable source so selection logic does not drift across copies.
Fast Disambiguation Rules
Choose dag when
- dependencies are stable before execution starts
- parallelism is wave-based, not emergent
- there is no runtime branching beyond ordinary success/failure
- the main question is ordering, not coordination politics
Choose workflow when
- there is an explicit entry node and explicit review or gate nodes
- routing depends on a verdict like
approved, rejected, or escalate
- rework targets are known or at least nameable
- you need back-edges, but they are still formal and inspectable
Choose manager-driven team when
- a manager or lead should decide assignments round by round
- roles can be idle this round and active next round
- the manager may add a new role midstream
- "done" is a judgment call by the manager, not just a gate verdict
Important:
- In the current Jury-rig schema, this concept is still awkwardly labeled
team-loop in some places.
- Treat that label as legacy interchange, not as the actual mental model.
- If the process is just fixed produce -> review -> revise with static roles, that is
workflow, not a team.
Choose swarm when
- agents discover work from published findings, not central assignment
- exploration is open-ended and findings can redirect later work
- convergence is emergent, quorum-based, or timeout-based
- duplication is acceptable if it improves search coverage
Choose blackboard when
- specialists inspect one evolving shared artifact or state model
- hypotheses accumulate on a board and trigger later specialists
- the key question is "what does the shared state now imply?"
- debugging, forensics, or diagnosis dominates
Choose team-builder when
- the user does not yet know which roles or skills are needed
- the first deliverable is the working group design itself
- topology choice depends on what team you discover
Choose recurring when
- one action repeats against a measurable condition
- the work is polling, retrying, monitoring, or test-until-threshold
- decomposition would be fake complexity
Topology-Native Breakdown Recipes
DAG Recipe
- Name the concrete deliverable.
- Split into feed-forward subtasks with explicit dependencies.
- Group independent subtasks into waves.
- Add contracts at every downstream boundary.
- Stop when all terminal nodes complete.
Output shape:
- nodes
- dependencies
- waves
- contracts
Workflow Recipe
- Define the entry node.
- Identify worker nodes and every review or gate node.
- Name each routing verdict and its outgoing edge.
- Decide which rejected outputs rework which nodes.
- Bound cycles with iteration and duration limits.
- Add human escalation if the reviewer can be uncertain.
Output shape:
- nodes with roles:
coordinator, worker, reviewer, gate
- edges with conditions:
default, approved, rejected, escalate
- entry node
- cycle limits
Manager-Driven Team Recipe
- Define the shared objective.
- Define a role catalog: title, goal, capability envelope, skill.
- Define the manager skill and what evidence it sees each round.
- Specify the manager decision contract:
- assignments
- status
- reasoning
- optional new role
- role-specific feedback
- Specify round exit rules:
needs-work
almost-done
ship-it
- Specify when the manager may add or retire roles.
Output shape:
- objective
- manager skill
- role catalog
- manager decision schema
- round history
- ship condition
Swarm Recipe
- Define the seed message or stimulus.
- Define agent types by what they subscribe to and publish.
- Define discourse or message classes.
- Define convergence policy:
- quorum
- timeout
- inactivity
- quality threshold
- Define duplicate suppression and contradiction handling.
Output shape:
- seed message
- agent roster
- channels or message classes
- convergence rules
- memory or retention policy
Blackboard Recipe
- Define the board and its keys.
- Define which agents read which keys and write which keys.
- Define trigger conditions for each agent.
- Define confidence, freshness, or TTL policy per board entry.
- Define completion as a state predicate on the board.
Output shape:
- board keys
- agent triggers
- read/write permissions
- initial state
- completion condition
Team-Builder Recipe
- Extract candidate roles from the problem.
- Audit current skill coverage and identify gaps.
- Decide whether to create or import missing skills.
- Recommend a target topology after the team exists.
- Produce a team spec plus minimum match thresholds.
Recurring Recipe
- Name the one repeated action.
- Define a measurable exit condition.
- Define cadence, timeout, and escalation point.
- Decide what history persists between iterations.
- Decide whether failure means retry, sleep, or escalate.
Failure Modes
Static review loop mislabeled as team
Symptoms:
- same roles every round
- fixed produce/review/revise pattern
- no manager delegation decisions
Fix:
"Swarm" with one hidden boss
Symptoms:
- one coordinator assigns every task
- agents never discover work independently
Fix:
- either make it a real swarm with discovery and convergence, or call it
workflow or manager-driven team
Blackboard without a board
Symptoms:
- no shared artifact exists
- agents just hand results linearly to each other
Fix:
Recurring loop with no measurable stop
Symptoms:
- "keep trying until it feels good"
Fix:
- add a threshold, timeout, or escalation gate
Team-builder used as execution mode
Symptoms:
- role discovery is already settled, but the plan still claims
team-builder
Fix:
- switch to the actual execution topology after team design
Reference Files
references/topology-decomposition-playbook.md — Core decision rules and canonical topology mapping. Read when choosing a topology or need the shortest path from problem to topology-native plan.
references/workflow-patterns-review-gates.md — Formal workflow routing, rework semantics, and approval/rejection branching. Read when work has explicit gates, conditional rework, or back-edges.
references/manager-driven-team-dynamics.md — Dynamic role assignment, manager-led rounds, and real team vs. fixed loop distinction. Read when active roles change per round or manager decides assignments.
references/swarm-blackboard-contract-net.md — Decentralized discovery, shared-state specialists, and bid-based allocation. Read when choosing among swarm, blackboard, or contract-net topologies.
references/runtime-honesty-and-legacy-labels.md — Planning vs. runtime topology gaps and unsupported native execution flags. Read when planning topology may differ from actual runtime or need honesty about legacy labels.
templates/workflow-plan.yaml — Workflow scaffold with nodes, edges, and conditional routing. Read when building a workflow topology plan.
templates/team-plan.yaml — Manager-driven team scaffold with roles, rounds, and manager decision contract. Read when building a manager-driven team topology plan.
templates/blackboard-plan.yaml — Blackboard scaffold with board keys, agents, reads/writes, and activation conditions. Read when building a blackboard topology plan.
templates/swarm-plan.yaml — Swarm scaffold with seed message, agents, subscriptions, and convergence strategy. Read when building a swarm topology plan.
templates/recurring-plan.yaml — Recurring loop scaffold with exit condition and max iterations. Read when building a recurring topology plan.
examples/review-approve-rework.md — Two-writer draft, reviewer gate, conditional rework and escalation. Read when need concrete workflow example with back-edges.
examples/dynamic-team-editing.md — Editorial team with dynamic role activation and mid-stream legal reviewer pull-in. Read when need manager-driven team example with runtime role discovery.
examples/flaky-test-diagnosis.md — Shared investigation board with evolving hypotheses and evidence. Read when need blackboard example with specialist collaboration.
Quality Gates
NOT-FOR Boundaries
- Do not use this skill to execute the plan.
- Do not use this skill to pick the best coding skill for a single node.
- Do not use this skill when the work is plainly one direct skill call.
- Do not hide runtime limitations by relabeling unsupported topologies as if they run natively.
Bundle navigation
references index.