Projector: recall tests for memories only; public surface carries recall_sorts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5a75b5426e
commit
e9a15f4d65
2 changed files with 3 additions and 2 deletions
|
|
@ -156,7 +156,7 @@ fn the_semantic_ask_is_the_batchs_words_newest_first_plus_names_cut_on_a_charact
|
|||
let (selection, text, top_k) = &asked.near[0];
|
||||
assert_eq!((text.as_str(), *top_k), ("newest words\nolder words\nLibby", POOL));
|
||||
let kinds: Vec<_> = selection.schemas.clone().unwrap();
|
||||
assert_eq!(kinds, [K::Memory, K::FollowUp, K::Ruling].map(|kind| kind.type_id().to_string()));
|
||||
assert_eq!(kinds, [K::Memory.type_id().to_string()], "only memories are offered");
|
||||
assert!(selection.cursor.is_none() && !selection.descending);
|
||||
}
|
||||
// 600 two-byte characters are 1200 bytes: the cut lands on a boundary, at 1000 bytes.
|
||||
|
|
@ -344,6 +344,7 @@ fn a_memory_reads_where_and_from_whom_never_the_subject_as_the_place() {
|
|||
#[test]
|
||||
fn recall_reads_only_memories_of_the_cued_sorts() {
|
||||
let mind = seeded();
|
||||
mind.committed(vec![spec("x")]);
|
||||
mind.committed(vec![follow_up("fork-it", &spec_ref("x")), ruling("R1", None), memory("did", MemorySort::Did, "shaders were shipped", &[LIBBY]), memory("idea", MemorySort::Idea, "shaders could sing", &[LIBBY])]);
|
||||
let port = Recording::over(&mind);
|
||||
let recalled = select(&port, &cue(&[LIBBY], &["shaders"])).unwrap();
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ mind_body::projection::tuning: struct LensWeights # [derive (Clone , Debug , Par
|
|||
mind_body::projection::tuning: struct Loaded # [derive (Clone , Debug , PartialEq , Serialize)] pub-fields[tuning: Tuning, source: & 'static str, sha256: String]
|
||||
mind_body::projection::tuning: struct PoolCaps # [derive (Clone , Debug , PartialEq , Eq , Serialize , Deserialize)] pub-fields[memories_about_present: usize, other_memories: usize, needs: usize, incubation: usize, stance: usize, recall: usize, value: usize, said: usize]
|
||||
mind_body::projection::tuning: struct ProjectorTuning # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] pub-fields[model: String, guidance: String, words: usize, beat_words: usize]
|
||||
mind_body::projection::tuning: struct SelectTuning # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] pub-fields[temperature: f64, context_bytes: usize, stimulus_bytes: usize, heard_bytes: usize, identity_bytes: usize, bond_summary_bytes: usize, item_bytes: usize, memory_tau_h: f64, recall_tau_h: f64, freshness_base: f64, freshness_window: usize, people_full: usize, beat_tail_lines: usize, caps: PoolCaps]
|
||||
mind_body::projection::tuning: struct SelectTuning # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] pub-fields[temperature: f64, context_bytes: usize, stimulus_bytes: usize, heard_bytes: usize, identity_bytes: usize, bond_summary_bytes: usize, item_bytes: usize, memory_tau_h: f64, recall_tau_h: f64, freshness_base: f64, freshness_window: usize, people_full: usize, beat_tail_lines: usize, recall_sorts: Vec < String >, caps: PoolCaps]
|
||||
mind_body::projection::tuning: struct Tuning # [derive (Clone , Debug , Default , PartialEq , Serialize , Deserialize)] pub-fields[projector: ProjectorTuning, select: SelectTuning, lens: LensWeights]
|
||||
mind_body::queue: # [derive (Clone , Debug , PartialEq , Eq)] pub enum Breaker { Clear , Trip { run : PipelineRef } , }
|
||||
mind_body::queue: const CONSECUTIVE : usize
|
||||
|
|
|
|||
Loading…
Reference in a new issue