orch: require explicit dispatch execution mode
This commit is contained in:
@@ -175,7 +175,7 @@ run_case_happy_path() {
|
||||
|
||||
run_json "${case_dir}/dispatch.json" \
|
||||
"${ORCH_BIN}" --db "${db_path}" --json dispatch \
|
||||
--run "${run_id}" --task T1 --to worker-a \
|
||||
--run "${run_id}" --task T1 --execution-mode analysis --to worker-a \
|
||||
--body "Implement retry handling for the HTTP client."
|
||||
|
||||
local thread_id
|
||||
@@ -257,7 +257,7 @@ run_case_blocked_answer() {
|
||||
|
||||
run_json "${case_dir}/dispatch.json" \
|
||||
"${ORCH_BIN}" --db "${db_path}" --json dispatch \
|
||||
--run "${run_id}" --task T1 --to worker-a \
|
||||
--run "${run_id}" --task T1 --execution-mode analysis --to worker-a \
|
||||
--body "Implement the worker flow and stop if a logging decision is needed."
|
||||
|
||||
local thread_id
|
||||
@@ -370,7 +370,7 @@ run_case_strict_worktree_cleanup() {
|
||||
|
||||
run_json "${case_dir}/run.json" \
|
||||
"${ORCH_BIN}" --db "${db_path}" --json run init \
|
||||
--run "${run_id}" --goal "Validate strict worktree dispatch" \
|
||||
--run "${run_id}" --goal "Validate code-mode worktree dispatch" \
|
||||
--summary "Exercise worktree allocation and cleanup"
|
||||
|
||||
run_json "${case_dir}/task.json" \
|
||||
@@ -381,7 +381,7 @@ run_case_strict_worktree_cleanup() {
|
||||
run_json "${case_dir}/dispatch.json" \
|
||||
"${ORCH_BIN}" --db "${db_path}" --json dispatch \
|
||||
--run "${run_id}" --task T1 --to worker-a \
|
||||
--repo-path "${repo_path}" --workspace-root .orch/worktrees --strict-worktree \
|
||||
--execution-mode code --repo-path "${repo_path}" --workspace-root .orch/worktrees \
|
||||
--body "Implement inside isolated worktree."
|
||||
|
||||
local thread_id
|
||||
@@ -445,7 +445,7 @@ run_case_strict_worktree_cleanup() {
|
||||
"${case_dir}" "${case_slug}" "${db_path}" "${run_id}" pass "${duration_seconds}" \
|
||||
"$(join_json_array "${thread_id}")" \
|
||||
"$(join_json_array "${worktree_path}")" \
|
||||
"Direct CLI replay of strict worktree dispatch, completion, and cleanup."
|
||||
"Direct CLI replay of execution-mode code dispatch, completion, and cleanup."
|
||||
}
|
||||
|
||||
run_case_dependency_ready_dispatch() {
|
||||
@@ -483,7 +483,7 @@ run_case_dependency_ready_dispatch() {
|
||||
|
||||
run_json "${case_dir}/dispatch-1.json" \
|
||||
"${ORCH_BIN}" --db "${db_path}" --json dispatch \
|
||||
--run "${run_id}" --task T1 --to worker-a \
|
||||
--run "${run_id}" --task T1 --execution-mode analysis --to worker-a \
|
||||
--body "Complete the prerequisite task first."
|
||||
|
||||
local thread_id_1
|
||||
@@ -522,7 +522,7 @@ run_case_dependency_ready_dispatch() {
|
||||
|
||||
run_json "${case_dir}/dispatch-2.json" \
|
||||
"${ORCH_BIN}" --db "${db_path}" --json dispatch \
|
||||
--run "${run_id}" --task T2 --to worker-b \
|
||||
--run "${run_id}" --task T2 --execution-mode analysis --to worker-b \
|
||||
--body "Dependent task is now ready after T1."
|
||||
|
||||
local thread_id_2
|
||||
@@ -600,7 +600,7 @@ run_case_cancel_active_task() {
|
||||
|
||||
run_json "${case_dir}/dispatch.json" \
|
||||
"${ORCH_BIN}" --db "${db_path}" --json dispatch \
|
||||
--run "${run_id}" --task T1 --to worker-a \
|
||||
--run "${run_id}" --task T1 --execution-mode analysis --to worker-a \
|
||||
--body "Start work so the leader can cancel an active task."
|
||||
|
||||
local thread_id
|
||||
@@ -668,7 +668,7 @@ run_case_payload_only_answer() {
|
||||
|
||||
run_json "${case_dir}/dispatch.json" \
|
||||
"${ORCH_BIN}" --db "${db_path}" --json dispatch \
|
||||
--run "${run_id}" --task T1 --to worker-a \
|
||||
--run "${run_id}" --task T1 --execution-mode analysis --to worker-a \
|
||||
--body "Pause if a structured logging decision is needed."
|
||||
|
||||
local thread_id
|
||||
@@ -785,7 +785,7 @@ run_case_retry() {
|
||||
|
||||
run_json "${case_dir}/dispatch.json" \
|
||||
"${ORCH_BIN}" --db "${db_path}" --json dispatch \
|
||||
--run "${run_id}" --task T1 --to worker-a \
|
||||
--run "${run_id}" --task T1 --execution-mode analysis --to worker-a \
|
||||
--body "Initial attempt expected to fail for retry validation."
|
||||
|
||||
local thread_id_1
|
||||
@@ -899,7 +899,7 @@ run_case_reassign() {
|
||||
|
||||
run_json "${case_dir}/dispatch.json" \
|
||||
"${ORCH_BIN}" --db "${db_path}" --json dispatch \
|
||||
--run "${run_id}" --task T1 --to worker-a \
|
||||
--run "${run_id}" --task T1 --execution-mode analysis --to worker-a \
|
||||
--body "Initial attempt expected to be reassigned."
|
||||
|
||||
local thread_id_1
|
||||
|
||||
Reference in New Issue
Block a user