// ak run — host-neutral execution of the managed activity routing plan. import { loadKitConfig } from '../lib/config.mjs'; import { fail, ok, dim, bold } from '../lib/output.mjs'; import { executeRunPlan } from '../lib/execution/runner.mjs'; import { RUN_TEMPLATE_NAMES, materializeRunPlan, parseRouteSpecs } from '../lib/routing.mjs'; export const options = { route: { type: 'string', multiple: true }, escalate: { type: 'boolean', default: false }, 'dry-run': { type: 'boolean', default: false }, 'max-concurrent': { type: 'string' }, timeout: { type: 'string' }, json: { type: 'boolean', default: false }, }; export const help = `ak run — execute a host-neutral activity pipeline Materializes the managed per-activity routing policy and runs each worker through its host adapter. OpenCode is accepted only after its routing capability is enabled. Successful dependency outputs are threaded through runtime-only bounded handoffs at runtime; dry-run prompts and public JSON results never contain those summaries. Trust boundary: workers run with YOUR CLI trust posture in the target repo — its opencode.json / .claude settings / AGENTS.md apply. Run this only in repositories you would trust with your full user privileges (ADR-0018). Usage: ak run