Conversation
…ware DAG routing (#2424, #2425) Utility-guided tool dispatch (zeph-tools, zeph-core): - Add UtilityScorer in zeph-tools/src/utility.rs scoring tool calls on estimated gain, step cost, redundancy, and uncertainty - Insert utility gate in tool_execution/native.rs: fail-closed on scoring errors, LLM-requested tools always go through the gate - Config: [tools.utility] enabled, threshold, and per-signal weights with startup validation rejecting negative and non-finite values - 21 unit tests covering edge cases, fail-closed behavior, and turn reset Cascade-aware DAG routing (zeph-orchestration): - Add CascadeDetector in zeph-orchestration/src/cascade.rs tracking per-region failure rates with bounded region_health map - Extend TopologyClassifier with TreeOptimized and CascadeAware dispatch strategy variants; merge strategy() and strategy_with_config() into single method - Integrate cascade reordering in DagScheduler::tick(); Sequential tasks skipped from reordering; region health reset on inject_tasks() - Config: [orchestration] cascade_routing, cascade_failure_threshold, tree_optimized_dispatch; cascade_routing requires topology_selection=true - 14 unit tests covering inject_tasks reset, sequential exclusion, and config guard Closes #2424, #2425
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
UtilityScorerinzeph-toolsscoring tool calls on estimated gain, step cost, redundancy, and exploration bonus before dispatch; fail-closed on errors; disabled by default via[tools.utility] enabled = falseCascadeDetectorinzeph-orchestrationtracking per-region failure rates in the DAG scheduler; deprioritize failing regions in the ready queue; two newDispatchStrategyvariants (TreeOptimized,CascadeAware); reset oninject_tasks(); disabled by defaultChanges
crates/zeph-tools/src/utility.rs— newUtilityScorerwith interior mutability (21 unit tests)crates/zeph-orchestration/src/cascade.rs— newCascadeDetectorwith bounded region health map (14 unit tests)crates/zeph-orchestration/src/topology.rs—TreeOptimized/CascadeAwarevariants, merged strategy selection methodcrates/zeph-orchestration/src/scheduler.rs— cascade integration intick(),inject_tasks()reset, Sequential exclusioncrates/zeph-core/src/agent/tool_execution/native.rs— utility gate at tool dispatchcrates/zeph-tools/src/config.rs—UtilityScoringConfigwith startup validationcrates/zeph-config/src/experiment.rs—cascade_routing,cascade_failure_threshold,tree_optimized_dispatchfieldsTest plan
cargo +nightly fmt --check— cleancargo clippy --workspace --features full --lib --bins -- -D warnings— zero warningscargo nextest run --workspace --features full --lib --bins— 6810 passed, 15 skippeduser_requestedbypass restricted to explicit user commands only, config rejects negative weights