pub struct ContinuousLearningEngine {
pub current_epoch: EpochState,
pub history: Vec<EpistemicFitnessReport>,
pub quarantined_mutations: HashMap<String, LearningHypothesis>,
}Expand description
The Layer 5 Continuous Learning Engine. Governs Loop Γ, enforces Karpathy write-scope quarantine boundaries (INV-14), tracks epistemic fitness history, and orchestrates autonomous system adaptation.
Fields§
§current_epoch: EpochState§history: Vec<EpistemicFitnessReport>§quarantined_mutations: HashMap<String, LearningHypothesis>Implementations§
Source§impl ContinuousLearningEngine
impl ContinuousLearningEngine
pub fn new(initial_epoch: u64, initial_fitness: f64) -> Self
Sourcepub fn submit_hypothesis(
&mut self,
hypothesis_id: &str,
author_did: &str,
candidate_state_hash: &str,
patches: Vec<Value>,
target_invariants: Vec<String>,
) -> LearningHypothesis
pub fn submit_hypothesis( &mut self, hypothesis_id: &str, author_did: &str, candidate_state_hash: &str, patches: Vec<Value>, target_invariants: Vec<String>, ) -> LearningHypothesis
Submit candidate refinement under write-scope quarantine (INV-14).
Sourcepub fn evaluate_and_commit(
&mut self,
hypothesis_id: &str,
evaluation_spec: &str,
candidate_fitness: f64,
) -> Result<(bool, EpistemicFitnessReport), String>
pub fn evaluate_and_commit( &mut self, hypothesis_id: &str, evaluation_spec: &str, candidate_fitness: f64, ) -> Result<(bool, EpistemicFitnessReport), String>
Evaluate a quarantined hypothesis and commit if monotonic.
Sourcepub fn can_commit_to_handle_registry(
&self,
hypothesis: &LearningHypothesis,
report: &EpistemicFitnessReport,
) -> bool
pub fn can_commit_to_handle_registry( &self, hypothesis: &LearningHypothesis, report: &EpistemicFitnessReport, ) -> bool
Karpathy write-scope quarantine security check (INV-14). Prevents modifying production handle_registry unless the candidate has achieved monotonic verification (ΔE >= 0, status == COMMITTED).
Trait Implementations§
Source§impl Clone for ContinuousLearningEngine
impl Clone for ContinuousLearningEngine
Auto Trait Implementations§
impl Freeze for ContinuousLearningEngine
impl RefUnwindSafe for ContinuousLearningEngine
impl Send for ContinuousLearningEngine
impl Sync for ContinuousLearningEngine
impl Unpin for ContinuousLearningEngine
impl UnsafeUnpin for ContinuousLearningEngine
impl UnwindSafe for ContinuousLearningEngine
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