From e9a15f4d6537ebd849c32e50a282e9d77a62517a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 19 Nov 2026 22:26:17 +0100 Subject: [PATCH] Projector: recall tests for memories only; public surface carries recall_sorts Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/src/recall/tests.rs | 3 ++- crates/mind-body/tests/public_surface.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/mind-body/src/recall/tests.rs b/crates/mind-body/src/recall/tests.rs index b46da62..c28ff77 100644 --- a/crates/mind-body/src/recall/tests.rs +++ b/crates/mind-body/src/recall/tests.rs @@ -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(); diff --git a/crates/mind-body/tests/public_surface.txt b/crates/mind-body/tests/public_surface.txt index a658b2f..023c765 100644 --- a/crates/mind-body/tests/public_surface.txt +++ b/crates/mind-body/tests/public_surface.txt @@ -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