Expand description
The strategic brain of the Khora Engine, responsible for the [C]ontrol Plane.
This crate implements the core logic of the Symbiotic Adaptive Architecture (SAA). It is designed to make high-level, strategic decisions based on telemetry data, but it never performs real-time, performance-critical work itself.
Its primary responsibilities include:
-
The Dynamic Context Core (DCC): A service that aggregates engine-wide telemetry (from
khora-telemetry) to build a constantly updated situational model of the application’s performance and state. -
Goal-Oriented Resource Negotiation & Allocation (GORNA): The protocol and logic used by the DCC to analyze requests from
Agentsand to allocate resource budgets (e.g., CPU/GPU time) to them in order to meet high-level performance goals. -
Agent Registry: Automatic registration and ordered iteration of all engine agents with priority-based execution ordering.
This crate represents the “cold path” of the engine, operating at a lower frequency and focusing on intelligent analysis rather than raw execution speed.
Re-exports§
pub use analysis::AnalysisReport;pub use context::Context;pub use context::ExecutionPhase;pub use context::HardwareState;pub use gorna::GornaArbitrator;pub use registry::AgentRegistry;pub use service::DccConfig;pub use service::DccService;
Modules§
- analysis
- Heuristic analysis for the DCC.
- context
- Context for the Dynamic Context Core.
- gorna
- GORNA Arbitrator implementation.
- metrics
- Efficient storage for rolling telemetry metrics.
- registry
- Agent registry for automatic registration and ordered iteration.
- service
- Central service for the Dynamic Context Core.
Enums§
- Battery
Level - Represents the power source and battery level.
- Thermal
Status - Represents the thermal state of the device.