feat: implement per-scope Markov chain preflight prediction#3
Merged
Conversation
aayank13
commented
Jun 28, 2026
Collaborator
- Refactor PreflightPredictor to track transitions between capabilities per application/session scope.
- Introduce global fallback for scopes with insufficient data.
- Add metrics for preflight effectiveness and expose them via API.
- Implement SubscriptionRegistry for managing capability subscriptions with TTL.
- Enhance Router to support memory and lifecycle reporting, and subscription management.
- Add new EngineEvent variants for model eviction and preflight warming events.
- Refactor PreflightPredictor to track transitions between capabilities per application/session scope. - Introduce global fallback for scopes with insufficient data. - Add metrics for preflight effectiveness and expose them via API. - Implement SubscriptionRegistry for managing capability subscriptions with TTL. - Enhance Router to support memory and lifecycle reporting, and subscription management. - Add new EngineEvent variants for model eviction and preflight warming events.
- Introduced a new `stream` method in the `Provider` trait to allow providers to emit incremental text deltas during inference. - Added `StreamChunk` enum to represent different types of events in a streaming inference response, including `Started`, `Text`, `Completed`, and `Error`. - Implemented `invoke_stream` in the `DaemonClient` to handle streaming responses over SSE. - Updated the HTTP server to include a new `/v1/invoke/stream` endpoint for streaming inference output. - Enhanced the `Router` to support bearer token authentication for API routes. - Added metrics endpoint for Prometheus scraping. - Improved error handling and request correlation with `x-request-id` headers. - Updated dependencies in `Cargo.toml` for `reqwest` and `tokio`.
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.