Files
stack/packages/mosaic/framework/tools/orchestrator-matrix/adapters
ms-lead-reviewer 1792b7934d
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
fix(#829): enforce repository-wide runtime launch choke point
2026-07-17 23:44:09 -05:00
..

Adapter Contract

Runtime adapters translate task commands into concrete worker invocations.

Minimal Contract

Each task should define either:

  1. command directly in tasks.json, or
  2. controller-level worker.command_template in .mosaic/orchestrator/config.json

command_template may use:

  • {task_id}
  • {task_title}
  • {task_file}

Examples

Codex:

{
  "worker": {
    "command_template": "codex \"run task {task_id}: {task_title}\""
  }
}

Claude:

{
  "worker": {
    "command_template": "mosaic claude -p \"Execute task {task_id}: {task_title}\""
  }
}

OpenCode:

{
  "worker": {
    "command_template": "opencode \"execute task {task_id}: {task_title}\""
  }
}

Recommendation

Prefer explicit per-task command for deterministic execution and auditability.