-
Notifications
You must be signed in to change notification settings - Fork 2
feat(orchestration): Phase 4 — CLI commands + agent loop integration #1239
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestorchestrationTask orchestration / DAG schedulingTask orchestration / DAG scheduling
Description
Parent: #1235
Blocked by: #1237, #1238
Summary
Wire orchestration into the agent loop with CLI commands and metrics.
Branch: feat/m33/orchestration-cli
Deliverables
New files
crates/zeph-core/src/orchestration/command.rs—PlanCommandenum +parse()
Modified files
crates/zeph-core/src/agent/mod.rs— handle/plancommands in command dispatchcrates/zeph-core/src/metrics.rs—OrchestrationMetricsinMetricsSnapshot
CLI commands
| Command | Description |
|---|---|
/plan <goal> |
Decompose goal → confirm → execute → aggregate |
/plan status |
Show current DAG progress (task table) |
/plan list |
List recent graphs from persistence |
/plan cancel |
Cancel running graph |
Integration flow
- User enters
/plan <goal> - Agent calls
LlmPlanner::plan()to decompose - If
confirm_before_execute, show task count + agent assignments, wait for confirmation - Start
DagSchedulertick loop - On completion, call
Aggregator::aggregate()(Phase 5 placeholder — concatenate for now) - Display final result
Metrics
plans_total,plans_completed,plans_failedtasks_total,tasks_completed,tasks_failed,tasks_skipped
Tests (~15)
- Command parsing:
/plan <goal>,/plan status,/plan list,/plan cancel - Unknown subcommand error
- Empty goal handling
- Integration: /plan dispatches to planner → scheduler → completion (mock provider)
- Cancellation during execution
- Confirmation prompt shown when
confirm_before_execute = true - Metrics update correctly on plan completion/failure
Dependencies
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestorchestrationTask orchestration / DAG schedulingTask orchestration / DAG scheduling