pub struct EvoKernel<S: KernelState> {
pub kernel: Arc<Kernel<S>>,
pub sandbox: Arc<dyn Sandbox>,
pub validator: Arc<dyn Validator>,
pub store: Arc<dyn EvolutionStore>,
pub selector: Arc<dyn Selector>,
pub governor: Arc<dyn Governor>,
pub economics: Arc<Mutex<EvuLedger>>,
pub remote_publishers: Arc<Mutex<BTreeMap<String, String>>>,
pub stake_policy: StakePolicy,
pub sandbox_policy: SandboxPolicy,
pub validation_plan: ValidationPlan,
}Fields§
§kernel: Arc<Kernel<S>>§sandbox: Arc<dyn Sandbox>§validator: Arc<dyn Validator>§store: Arc<dyn EvolutionStore>§selector: Arc<dyn Selector>§governor: Arc<dyn Governor>§economics: Arc<Mutex<EvuLedger>>§remote_publishers: Arc<Mutex<BTreeMap<String, String>>>§stake_policy: StakePolicy§sandbox_policy: SandboxPolicy§validation_plan: ValidationPlanImplementations§
Source§impl<S: KernelState> EvoKernel<S>
impl<S: KernelState> EvoKernel<S>
pub fn new( kernel: Arc<Kernel<S>>, sandbox: Arc<dyn Sandbox>, validator: Arc<dyn Validator>, store: Arc<dyn EvolutionStore>, ) -> Self
pub fn with_selector(self, selector: Arc<dyn Selector>) -> Self
pub fn with_sandbox_policy(self, policy: SandboxPolicy) -> Self
pub fn with_governor(self, governor: Arc<dyn Governor>) -> Self
pub fn with_economics(self, economics: Arc<Mutex<EvuLedger>>) -> Self
pub fn with_stake_policy(self, policy: StakePolicy) -> Self
pub fn with_validation_plan(self, plan: ValidationPlan) -> Self
pub fn select_candidates(&self, input: &SelectorInput) -> Vec<GeneCandidate>
pub fn bootstrap_if_empty( &self, run_id: &RunId, ) -> Result<BootstrapReport, EvoKernelError>
pub async fn capture_successful_mutation( &self, run_id: &RunId, mutation: PreparedMutation, ) -> Result<Capsule, EvoKernelError>
pub async fn capture_mutation_with_governor( &self, run_id: &RunId, mutation: PreparedMutation, ) -> Result<CaptureOutcome, EvoKernelError>
pub async fn capture_from_proposal( &self, run_id: &RunId, proposal: &AgentMutationProposal, diff_payload: String, base_revision: Option<String>, ) -> Result<CaptureOutcome, EvoKernelError>
pub fn feedback_for_agent(outcome: &CaptureOutcome) -> ExecutionFeedback
pub fn replay_feedback_for_agent( signals: &[String], decision: &ReplayDecision, ) -> ReplayFeedback
pub async fn run_supervised_devloop( &self, run_id: &RunId, request: &SupervisedDevloopRequest, diff_payload: String, base_revision: Option<String>, ) -> Result<SupervisedDevloopOutcome, EvoKernelError>
pub fn coordinate(&self, plan: CoordinationPlan) -> CoordinationResult
pub fn export_promoted_assets( &self, sender_id: impl Into<String>, ) -> Result<EvolutionEnvelope, EvoKernelError>
pub fn import_remote_envelope( &self, envelope: &EvolutionEnvelope, ) -> Result<ImportOutcome, EvoKernelError>
pub fn fetch_assets( &self, responder_id: impl Into<String>, query: &FetchQuery, ) -> Result<FetchResponse, EvoKernelError>
pub fn revoke_assets( &self, notice: &RevokeNotice, ) -> Result<RevokeNotice, EvoKernelError>
pub async fn replay_or_fallback( &self, input: SelectorInput, ) -> Result<ReplayDecision, EvoKernelError>
pub async fn replay_or_fallback_for_run( &self, run_id: &RunId, input: SelectorInput, ) -> Result<ReplayDecision, EvoKernelError>
pub fn economics_signal(&self, node_id: &str) -> Option<EconomicsSignal>
pub fn selector_reputation_bias(&self) -> BTreeMap<String, f32>
pub fn metrics_snapshot( &self, ) -> Result<EvolutionMetricsSnapshot, EvoKernelError>
pub fn replay_roi_release_gate_summary( &self, window_seconds: u64, ) -> Result<ReplayRoiWindowSummary, EvoKernelError>
pub fn render_replay_roi_release_gate_summary_json( &self, window_seconds: u64, ) -> Result<String, EvoKernelError>
pub fn replay_roi_release_gate_contract( &self, window_seconds: u64, thresholds: ReplayRoiReleaseGateThresholds, ) -> Result<ReplayRoiReleaseGateContract, EvoKernelError>
pub fn render_replay_roi_release_gate_contract_json( &self, window_seconds: u64, thresholds: ReplayRoiReleaseGateThresholds, ) -> Result<String, EvoKernelError>
pub fn render_metrics_prometheus(&self) -> Result<String, EvoKernelError>
pub fn health_snapshot(&self) -> Result<EvolutionHealthSnapshot, EvoKernelError>
Auto Trait Implementations§
impl<S> Freeze for EvoKernel<S>
impl<S> !RefUnwindSafe for EvoKernel<S>
impl<S> Send for EvoKernel<S>
impl<S> Sync for EvoKernel<S>
impl<S> Unpin for EvoKernel<S>
impl<S> UnsafeUnpin for EvoKernel<S>
impl<S> !UnwindSafe for EvoKernel<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more