Files
ai-workflow-skill/docs/tests/orch/reconcile/reconcile-maps-done-thread-to-verifying-when-task-has-required-checks.md
T

1.6 KiB
Raw Blame History

Case: reconcile-maps-done-thread-to-verifying-when-task-has-required-checks

用例意义

验证 reconcile 在 worker 报 done 之后,如果任务声明了 required checks,不会直接把 task 置为 done,而是先推进到 verifying

前置条件

  • 已存在带 required checks 的任务
  • 该任务已经 dispatch 并被 worker claim
  • worker 已对该 thread 执行 done

输入

orch --db TMPDIR/coord.db --json run init --run run_verify_001 --goal "Exercise verification gates"
orch --db TMPDIR/coord.db --json task add \
  --run run_verify_001 \
  --task T1 \
  --title "Implement verifier-backed task" \
  --default-to worker-a \
  --spec-file TMPDIR/task.md \
  --check-profile cadence_component \
  --required-check lint \
  --required-check test
orch --db TMPDIR/coord.db --json dispatch --run run_verify_001 --task T1 --execution-mode analysis --body "Implement the gated task."
inbox --db TMPDIR/coord.db --json claim --agent worker-a --thread THREAD_ID
inbox --db TMPDIR/coord.db --json done --agent worker-a --thread THREAD_ID --summary "Implementation finished" --body "Ready for verification."
orch --db TMPDIR/coord.db --json reconcile --run run_verify_001

预期输出

  • reconcile 退出码为 0
  • data.updated_tasks 包含 T1
  • T1.status == "verifying"
  • 后续 orch verify status --run run_verify_001 --task T1 返回 data.gate.status == "pending"

断言结论

  • worker 的 done 不再自动等同于 task done
  • 一旦 task 定义了 required checksreconcile 的职责是把它送入验证门,而不是直接宣布完成