refactor(epic-1973): Extract zeph-orchestration crate from zeph-core (Phase 1g #1979)#2012
Merged
refactor(epic-1973): Extract zeph-orchestration crate from zeph-core (Phase 1g #1979)#2012
Conversation
…(Phase 1g, #1979) Move all orchestration logic (5,380 LOC, 8 modules) from zeph-core into a new dedicated crate at Layer 2 of the dependency hierarchy. Changes: - New crate: crates/zeph-orchestration/ with aggregator, command, dag, error, graph, planner, router, scheduler modules - Backward-compatible re-export shim in zeph-core/src/orchestration/mod.rs preserves all crate::orchestration::* import paths unchanged - Added TaskId::as_u32() public accessor replacing pub(crate) field access from zeph-core::metrics (field .0 was inaccessible across crate boundary) - zeph-core reduces from 55,860 to ~50,480 LOC (-9.6%) - 169 tests migrated to zeph-orchestration; zeph-core 1199->1030; workspace: 5,917 total - No circular dependencies: zeph-orchestration -> {zeph-config, zeph-common, zeph-llm, zeph-memory, zeph-sanitizer, zeph-subagent} -> zeph-core
…hase 1g follow-up)
Follow the same pattern as zeph-subagent (Phase 1f): place the inline `pub mod
orchestration { pub use zeph_orchestration::*; ... }` block directly in
crates/zeph-core/src/lib.rs instead of a separate orchestration/mod.rs file.
Remove the now-empty crates/zeph-core/src/orchestration/ directory.
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
Extract 5,380 LOC orchestration module from
zeph-coreinto standalonezeph-orchestrationcrate (Phase 1g of epic #1973).Modules extracted: TaskGraph, DagScheduler, LlmPlanner, LlmAggregator, AgentRouter, command, error
Key design:
crate::orchestration::*pathsResults:
Closes #1979. Part of epic #1973.