Skip to main content

Module adapters

Module adapters 

Source
Expand description

Adapters connecting oris-evokernel concrete implementations to the SignalExtractorPort and SandboxPort traits defined in oris-evolution.

Inject these into StandardEvolutionPipeline to wire up the Detect and Execute stages with real runtime infrastructure:

use std::sync::Arc;
use oris_evolution::{EvolutionPipelineConfig, StandardEvolutionPipeline};
use oris_evokernel::adapters::{LocalSandboxAdapter, RuntimeSignalExtractorAdapter};
let pipeline = StandardEvolutionPipeline::new(
    EvolutionPipelineConfig::default(),
    build_selector(),
)
.with_signal_extractor(Arc::new(RuntimeSignalExtractorAdapter::new()))
.with_sandbox(Arc::new(LocalSandboxAdapter::new(
    "run-001",
    "/path/to/workspace",
    "/tmp/oris-sandbox",
)));

Structsยง

LocalSandboxAdapter
Wraps LocalProcessSandbox to implement the synchronous SandboxPort trait.
MutationEvaluatorAdapter
Implements EvaluatePort by delegating to oris_mutation_evaluator::MutationEvaluator.
RuntimeSignalExtractorAdapter
Wraps RuntimeSignalExtractor to implement the SignalExtractorPort trait.
SandboxOutputValidateAdapter
Implements ValidatePort by interpreting sandbox execution output.
SqliteGeneStorePersistAdapter
Implements GeneStorePersistPort using oris_genestore::SqliteGeneStore.