Conversation
…gration (Phase 3, #1235) (#1238) Add DagScheduler with tick-based execution loop, command pattern (SchedulerAction), mpsc event channel (TaskEvent/TaskOutcome), task timeout monitoring, cross-task context injection with ContentSanitizer, and stale event guard. Add AgentRouter trait and RuleBasedRouter with 3-step fallback chain (agent_hint, tool keyword matching, first available). Add spawn_for_task() to SubAgentManager with JoinHandle wrapping for orchestration event delivery. Add dependency_context_budget and confirm_before_execute to OrchestrationConfig.
…ration-1238 Resolve conflicts in mod.rs (add both planner and scheduler/router modules), types.rs (merge planner_model/planner_max_tokens with dependency_context_budget/confirm_before_execute), README files, CHANGELOG, docs, and config snapshot.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1238. Part of epic #1235.
DagSchedulerwith tick-based execution loop, command pattern (SchedulerAction), mpsc event channel (TaskEvent/TaskOutcome), task timeout monitoring, cross-task context injection withContentSanitizerintegration, and stale event guardAgentRoutertrait andRuleBasedRouterwith 3-step fallback chain (agent_hint, tool keyword matching, first available)spawn_for_task()toSubAgentManagerwith JoinHandle wrapping for orchestration event deliverydependency_context_budgetandconfirm_before_executetoOrchestrationConfigNew files
crates/zeph-core/src/orchestration/scheduler.rscrates/zeph-core/src/orchestration/router.rsModified files
crates/zeph-core/src/orchestration/mod.rs— module declarations and re-exportscrates/zeph-core/src/orchestration/graph.rs—chrono_now()visibilitycrates/zeph-core/src/config/types.rs— config fieldscrates/zeph-core/src/subagent/manager.rs—spawn_for_task()docs/src/concepts/task-orchestration.md— scheduler, router, CLI docsREADME.md,crates/zeph-core/README.md— orchestration feature updatesCHANGELOG.mdKey design decisions
SchedulerActionvalues, caller executes against managermpsc::Sender<TaskEvent>channel for agent completionsContentSanitizerapplied to cross-task dependency outputs before prompt injectionTest count
Before: 3782 → After: 4229 (+447)
Test plan
cargo +nightly fmt --checkpassescargo clippy --workspace --features full -- -D warningspassescargo nextest run --workspace --features full --lib --bins— 4229 passed, 0 failed