-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
Parent: #204 | Phase 2: Multi-Agent Orchestration
No major architectural changes — convoys work the same in the container model. Cross-DO communication is unchanged.
Goal
Convoys track batched work across rigs with landing notifications.
Flow
- Mayor (or dashboard) creates convoy via Town DO:
createConvoy(title, beadSpecs[]) - Town DO distributes beads to Rig DOs, recording
convoy_idon each - When a bead closes, Rig DO notifies Town DO:
onBeadClosed(convoyId, beadId) - Town DO increments
closed_beads, checks ifclosed_beads == total_beads - If landed → update status, fire webhook/notification
Town DO Methods
createConvoy(title, beadSpecs[])— create convoy, distribute beadsonBeadClosed(convoyId, beadId)— track progress, detect landinggetConvoy(convoyId)— get convoy with progresslistConvoys(filter)— list convoys by status
Rig DO Changes
- On bead close, notify Town DO if bead has a
convoy_id - Convoy ID stored on beads
Dependencies
- PR 1 (Rig DO)
- PR 9 (Town DO)
Acceptance Criteria
- Convoy creation distributes beads to Rig DOs
- Bead closure triggers convoy progress tracking
- Convoy landing detection (all beads closed)
- Landing notifications (webhook, configurable)
- Convoy list/detail endpoints
- Dashboard convoy progress view
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels