feat(context,orchestration): wire PAACE lookahead from DAG into ContextAssemblyInput#4633
Merged
Conversation
2cc26d2 to
9f26a85
Compare
…xtAssemblyInput Add `lookahead_tools(graph, depth)` to zeph-orchestration that performs a BFS from the Running/Ready frontier and returns `Vec<PlannedToolHint>` for the next `depth` scheduled tool calls. Cache the result in `OrchestrationState` and propagate it into `ContextAssemblyInput::planned_next_tools` at turn start, activating the FidelityScorer w_plan relevance signal. - zeph-orchestration: `lookahead_tools()` free function in dag.rs, BFS from frontier (frontier not emitted), full tool_name as first keyword, depth=0 fast-path, tracing span, 9 unit tests - zeph-config: `FidelityConfig.lookahead_depth` (default 3, range 0..=5) - zeph-core: `OrchestrationState.cached_lookahead` updated after each tick, cleared on loop exit; assembly.rs reads the cache instead of &[] - zeph-agent-context: service.rs second &[] site replaced with live hints - zeph-context: test fixtures updated, w_plan scoring test added Closes #4549
… broken intra-doc link
e89ce4c to
5b6032e
Compare
…post Phase-2C rebase
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
CAM Phase 2-A (#4549): wires the live orchestration DAG into
ContextAssemblyInput::planned_next_tools, activating the FidelityScorerw_planrelevance signal that was introduced in Phase 1 but always received&[].lookahead_tools(graph, depth) -> Vec<PlannedToolHint>— BFS from Running/Ready frontier (not emitted), returns downstream tool hints at distance 1..depth; full tool_name included as first keyword;depth=0= disabled fast-path;tracing::debug_span!instrumentedFidelityConfig.lookahead_depth(default 3, range 0..=5)OrchestrationState.cached_lookaheadupdated after eachscheduler.tick(), cleared on loop exit;assembly.rsreads cache instead of&[]&[]inservice.rsreplaced with live hintslookahead_depth: 3),w_planscoring test addedTest plan
cargo nextest run -p zeph-orchestration -p zeph-context -p zeph-agent-context -p zeph-config -p zeph-core --lib— 2626 passcargo clippy ... -- -D warningscleancargo +nightly fmt --checkcleanlookahead_tools(depth=0)→vec![], frontier not emitted,w_planproduces non-zero score for matching hintsFollow-up
PlannedToolHint.tool_name(#TBD)content_wordsHashSet once inplan_relevance()(#TBD)Closes #4549