2.4 KiB
2.4 KiB
Orch Core Scheduling
Status
completed
Owner
- codex
Started At
2026-03-19
Goal
- implement the first usable
orchscheduling slice on top of the existing shared SQLite schema andinboxtransport - deliver a leader workflow that can create a run, add tasks and dependencies, dispatch ready work, reconcile inbox state, and answer blocked tasks
Scope
- add
orchstore primitives for runs, tasks, dependencies, attempts, readiness, dispatch, reconcile, blocked lookup, and run status views - add CLI commands for the first Milestone 4 surface
- add automated tests for the happy-path scheduler workflow and core state transitions
- update the implementation roadmap with the new progress state
Checklist
- inspect the current
orchskeleton, schema, and project roadmaps - implement
orchstore types and DB operations for runs, tasks, dependencies, attempts, and task-state transitions - add CLI commands for
run init,run show,task add,dep add,ready,dispatch,reconcile,blocked,answer, andstatus - add automated tests covering run creation, dependency gating, dispatch, blocked-answer flow, and reconcile
- run
go test ./... - update
docs/implementation-roadmap.md - archive this roadmap with a completion summary when the workstream is complete
Files
docs/roadmaps/active/orch-core-scheduling.mddocs/implementation-roadmap.mdcmd/orch/main.gointernal/cli/orch/root.gointernal/cli/orch/*.gointernal/store/orch.gointernal/cli/orch/*_test.go
Decisions
- start with the scheduler loop that reuses existing
inboxbehavior rather than attempting worktree orchestration in the same slice - keep JSON response style aligned with
inboxso both CLIs expose consistent machine-readable contracts
Blockers
- none
Next Step
- start
Milestone 5: Strict Worktree Supportby extendingorch dispatchto resolve a concrete base commit and create real worktree metadata
Completion Summary
orchnow has a usable core scheduler loop backed by shared SQLite state andinbox- the implemented CLI surface covers
run init/show,task add,dep add,ready,dispatch,reconcile,blocked,answer, andstatus - integration tests now verify dispatch/reconcile lifecycle, dependency gating, blocked-question answers, and non-ready dispatch rejection