dispatch_send
Assign work to another agent by creating a dispatch packet with a full brief, tracking status from pending to complete, and returning a dispatch_id for handoff verification.
Instructions
Create a dispatch packet assigning work to another agent: writes
meta.json + assignment.md with status 'pending' under
$WILLOW_HOME/dispatch/. assignment_md is the full brief the specialist
will read; reply_to names who verifies the handoff. The packet advances
pending → working → complete via dispatch_accept and handoff_write_v4.
Filesystem-backed unless an authority envelope governs verb "dispatch"
for this caller (#333) — then citing that envelope (and its quota) gates
the write, Postgres-backed for that one check. Returns the new packet's
metadata including its dispatch_id.
envelope_id names WHICH governing envelope to cite when more than one
covers this verb for you. Leave it empty and a single governing envelope
is resolved automatically (the common case); pass it only after an
EAMBIG names your options in envelope_ids. It can only select
among envelopes that already govern you — naming one that does not
returns ENOENT, so it disambiguates and never widens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ||
| phase | No | operate | |
| app_id | Yes | ||
| to_app | Yes | ||
| summary | No | ||
| priority | No | normal | |
| reply_to | No | willow | |
| envelope_id | No | ||
| context_refs | No | ||
| assignment_md | Yes |