Skip to main content

decide

Function decide 

Source
pub fn decide(
    cp: &Checkpoint<'_>,
    asked: &[Entry],
    budget: impl FnOnce() -> bool,
    lessons: impl FnOnce() -> Vec<Value>,
) -> Vec<Entry>
Expand description

The queen’s decision at one checkpoint, without I/O (consider is this plus the store; the replay eval calls it directly): asked is every question asked so far, budget criterion 4 and lessons the collective’s lessons as raw JSON, both evaluated only once a candidate survives criteria 1-3. cp.store is not read.