1.4 KiB
1.4 KiB
MACP Phase 1
MACP Phase 1 extends tools/orchestrator-matrix/ without replacing the existing deterministic controller model.
What Changed
- Task and event schemas now describe MACP dispatch metadata, new lifecycle statuses, and dispatcher-originated events.
tools/orchestrator-matrix/dispatcher/macp_dispatcher.pymanages task worktrees, dispatch command generation, result files, and cleanup.mosaic_orchestrator.pyroutes MACP-aware tasks through the dispatcher while leaving legacy non-dispatchtasks on the original shell path.bin/mosaic-macpadds manual submit, status, drain, and history operations for.mosaic/orchestrator/.
Dispatch Modes
exec: runs the task'scommanddirectly inside the task worktree.yolo: launchesmosaic yolo <runtime>with the task brief content via a PTY wrapper.acp: emits the config payload a caller can hand to an ACP/OpenClaw session spawner.
Result Contract
MACP writes task result JSON under .mosaic/orchestrator/results/ by default. Result files capture:
- Task status and timing
- Attempt counters
- Runtime and dispatch metadata
- Changed files seen in the task worktree
- Quality-gate command results
- Error or escalation details
Compatibility
Legacy tasks that omit dispatch still behave like the original matrix controller. This keeps existing tasks.json workflows functional while allowing orchestrators to opt into MACP incrementally.