From 785b4d35c8fe50fbf766a3e46f2cbd8e1c0befd3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 22 Nov 2026 17:08:27 +0100 Subject: [PATCH] Persona K59/K60: one impl Faults; the public surface lists it Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/src/projection/interpret.rs | 17 ++++++++--------- crates/mind-body/tests/public_surface.txt | 1 + 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/mind-body/src/projection/interpret.rs b/crates/mind-body/src/projection/interpret.rs index 75fb32f..d263ee5 100644 --- a/crates/mind-body/src/projection/interpret.rs +++ b/crates/mind-body/src/projection/interpret.rs @@ -734,6 +734,14 @@ impl Faults { self.undecided.is_empty() && self.holds.is_empty() && self.heard.is_empty() && self.unverdicted.is_empty() } + /// The holds a line or an addition names, with every covering hold it left without a verdict after the retry: such a + /// draft is held under that hold, as a draft naming a faulty hold is (K44, K60). + fn named(&self, act: Act, at: usize, holds: &[String]) -> Vec { + let mut named = holds.to_vec(); + named.extend(self.unverdicted.iter().filter(|one| one.act == act && one.at == at).map(|one| one.hold.clone())); + named + } + /// The retry's report of this answer, and the paragraphs, one a fault, that name what it left undone. fn retry(&self, raw: &str, her: Forms) -> (Value, String) { let mut fault = json!({ "raw": raw }); @@ -1575,15 +1583,6 @@ struct Unverdicted { hold: String, } -impl Faults { - /// The holds a line or an addition names, with every covering hold it left without a verdict after the retry: such a - /// draft is held under that hold, as a draft naming a faulty hold is (K44, K60). - fn named(&self, act: Act, at: usize, holds: &[String]) -> Vec { - let mut named = holds.to_vec(); - named.extend(self.unverdicted.iter().filter(|one| one.act == act && one.at == at).map(|one| one.hold.clone())); - named - } -} /// A held line's verdict of `clear_of` that code's words gate overrules (K60): reported, as the holds it named clear /// that hold it. diff --git a/crates/mind-body/tests/public_surface.txt b/crates/mind-body/tests/public_surface.txt index 59cb147..3b95293 100644 --- a/crates/mind-body/tests/public_surface.txt +++ b/crates/mind-body/tests/public_surface.txt @@ -283,6 +283,7 @@ mind_body::projection::harness: struct Fixture # [derive (Clone , Debug)] pub-fi mind_body::projection::harness: struct Harness< 'a > pub-fields[instance: String, persona: Option < & 'a dyn PersonaSource >, model: Option < & 'a dyn Model >, tuning: PathBuf] mind_body::projection::harness: struct Message # [derive (Clone , Debug , Deserialize)] pub-fields[from: String, name: String, room: String, ago: Option < String >, round: Option < usize >, says: String, new: bool, tag: bool, mentions: Vec < String >, dm: bool, to: Option < String >, follow_up: bool, reply_to: Option < usize >] mind_body::projection::interpret: impl Drafts +mind_body::projection::interpret: impl Faults mind_body::projection::interpret: impl GapKind mind_body::projection::interpret: impl Refusal mind_body::projection::narrate: # [derive (Clone , Debug , PartialEq , Eq)] pub enum Turn { User (String) , Assistant { text : String , states : Vec < Reasoning > } , }