Skip to content

feat(orchestration): CLI commands and agent loop integration (Phase 4, #1239)#1253

Merged
bug-ops merged 1 commit intomainfrom
feat/m33/orchestration-cli
Mar 6, 2026
Merged

feat(orchestration): CLI commands and agent loop integration (Phase 4, #1239)#1253
bug-ops merged 1 commit intomainfrom
feat/m33/orchestration-cli

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Mar 6, 2026

Summary

  • Add /plan CLI commands (PlanCommand enum) with 5 variants: Goal, Status, List, Cancel, Confirm
  • Integrate /plan dispatch into agent loop with feature-gated handlers
  • Add OrchestrationMetrics (plans_total, tasks_total/completed/failed/skipped) always present in MetricsSnapshot
  • Implement pending-plan confirmation flow: /plan <goal> stores graph, /plan confirm executes
  • Add InvalidCommand variant to OrchestrationError
  • Guard resume/retry subcommands with "not yet implemented" errors
  • Reject trailing args on /plan list and /plan confirm for strict parsing

Closes #1239
Parent: #1235

Test plan

  • 19 unit tests for PlanCommand parsing (all variants, edge cases, ambiguity, reserved words)
  • 4 OrchestrationMetrics tests (default zero, snapshot inclusion, collector update)
  • cargo +nightly fmt --check passes
  • cargo clippy --workspace --features full -- -D warnings passes
  • cargo nextest run --workspace --features full --lib --bins — 4266 tests pass

…#1239)

Add /plan CLI commands for task orchestration management:
- PlanCommand enum (Goal, Status, List, Cancel, Confirm) with parse()
- Agent loop dispatch with feature-gated handlers
- Pending-plan confirmation flow (confirm_before_execute)
- OrchestrationMetrics in MetricsSnapshot (always present, no #[cfg])
- InvalidCommand error variant, reserved word guards for resume/retry
@github-actions github-actions bot added enhancement New feature or request documentation Improvements or additions to documentation rust Rust code changes core zeph-core crate size/XL Extra large PR (500+ lines) and removed enhancement New feature or request labels Mar 6, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 6, 2026 01:03
@bug-ops bug-ops merged commit 842b028 into main Mar 6, 2026
28 checks passed
@bug-ops bug-ops deleted the feat/m33/orchestration-cli branch March 6, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core zeph-core crate documentation Improvements or additions to documentation rust Rust code changes size/XL Extra large PR (500+ lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(orchestration): Phase 4 — CLI commands + agent loop integration

1 participant