Expand description
Experiment engine — core async loop for autonomous parameter tuning.
ExperimentEngine orchestrates baseline evaluation, variation generation,
candidate scoring, acceptance decisions, and optional SQLite persistence.
Cancellation is supported via tokio_util::sync::CancellationToken.
§Loop Summary
- Evaluate the baseline configuration once to establish
initial_baseline_score. - Ask the
VariationGeneratorfor the next untested variation. - Clone the subject provider with generation overrides from the candidate snapshot.
- Evaluate the candidate; accept if
delta >= config.min_improvement. - On acceptance, update the progressive baseline (greedy hill-climbing).
- Optionally persist the result to SQLite.
- Repeat until: max experiments, wall-time limit, search exhaustion, or cancellation.
Structs§
- Experiment
Engine - Autonomous parameter-tuning engine.
- Experiment
Session Report - Final report produced by
ExperimentEngine::run.