Sub-Agent Handoffs & Dispute Arbiter
Lets a lead agent spawn sub-agents in parallel batches while sharing one parent budget and resolving disagreements.
Sub-agents spin up unbounded budgets and argue endlessly when they reach conflicting conclusions.
Fan-out depth and shared parent spend are strictly enforced, and disputes escalate cleanly to a named arbiter.
What It Does (In Plain English)
Delegation lets agents delegate sub-tasks or fan-out batches with wait barriers (delegation.delegate). Every sub-task inherits the parent’s budget scope (so spawning 10 sub-agents never escapes your dollar cap) and supports named-arbiter dispute resolution if two agents disagree.
Real-World Example
- 1Lead agent spawns a parallel batch of 3 research sub-tasks under one $2.00 budget.
- 2Lead task parks on a barrier until all 3 finish.
- 3If two sub-agents return conflicting verdicts, a named arbiter settles the dispute.
When Should You Turn It On?
Add at Level 1 (review) or above when using hierarchical lead/worker agents.
Safety level note: Level 1 · Review — Read-only. Can inspect and answer, never changes outside systems.
How to Add It (workspace.yaml)
kits:
- "@neusym/kit-delegation@0.1.0"
kitConfigs:
delegation:
maxDepth: 3
maxBatchSize: 8Kits It Works With
Technical Details & Configuration Options (4 settings)
| Package | @neusym/kit-delegation |
|---|---|
| Provides Ports | delegation@1 |
| Requires Ports | tasks@1budget@1 |
| Optional Ports | tools@1scheduler@1 |
| Publishes Events | signal.resolveddelegation.dispute_openeddelegation.barrier_timed_out |
| Owned DB Collections | delegation_recordsdelegation_disputesdelegation_batchesdelegation_barriers |
Configuration Options (kitConfigs.delegation)
| Setting | Type | Default | Description |
|---|---|---|---|
maxDepth | integer | 2 | — |
defaultArbiterId | string | — | — |
maxBatchSize | integer | 8 | — |
defaultWaitTimeoutMs | integer | — | Deadline (ms) of every delegation wait that sets no timeoutMs; children still running then are halted. Requires scheduler@1. |