concurrency-control - Concurrency control pattern for tool dispatch and subagents
Manages safe parallel tool execution, conflict graph building, result reordering, race detection, and cancellation propagation during tool dispatch.
Tags
Updated: 2026-09-21Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Detect conflicts between tool calls
- Build per-tool concurrency descriptors
- Dispatch independent tool calls concurrently
- Sort execution results to intent order
- Detect races using optimistic checks
- Propagate cancellation to tool execution
- Limit dispatcher concurrency with semaphores
Inputs
- Tool call blocks
- Tool concurrency descriptors
- Resource keys
- Cancellation tokens or events
Outputs
- Ordered tool results
- Structured execution failure records
- Cancellation status transcript marks
Requirements
- Model supporting multiple tool calls per turn
- Async runtime with concurrency primitives
