From 652ec1ec5bab868ec0b989800fba3d272c5ac1bb Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 21 Nov 2026 02:36:12 +0100 Subject: [PATCH] Persona R7 fix-ups: a closed promise stays marked closed in the simulator's view; a recall not in her prose is refused before anchoring Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/src/projection/interpret/tests.rs | 5 +++-- crates/mind-body/src/projection/simulate/tests.rs | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/mind-body/src/projection/interpret/tests.rs b/crates/mind-body/src/projection/interpret/tests.rs index 6dce1be..40d0bbc 100644 --- a/crates/mind-body/src/projection/interpret/tests.rs +++ b/crates/mind-body/src/projection/interpret/tests.rs @@ -884,9 +884,10 @@ fn r5_a_loose_quote_is_located_and_an_interpreter_fault_is_never_hers() { fn r6_a_read_is_anchored_only_where_her_thought_names_it() { let reading = reading_packet(); let still = "I want to sit with this a while. Nothing else tonight."; - for (kind, target) in [("repo", "GameCult/Bifrost"), ("mind", "Bifrost merge pages"), ("domain", "d1")] { + // A recall whose words her prose does not have is refused before any anchor is looked for (Soul's R7). + for (kind, target, why) in [("repo", "GameCult/Bifrost", "quote_not_located"), ("mind", "Bifrost merge pages", "no_recall_words"), ("domain", "d1", "quote_not_located")] { let decision = asked(&reading, still, json!({ "kind": kind, "target": target, "quote": "I want to look at the Bifrost merge" })); - assert_eq!((decision["read"].clone(), decision["read_refused"][0]["why"].as_str()), (Value::Null, Some("quote_not_located")), "{kind}: {decision}"); + assert_eq!((decision["read"].clone(), decision["read_refused"][0]["why"].as_str()), (Value::Null, Some(why)), "{kind}: {decision}"); } let named = asked(&reading, "I want to see what Nibu changed in Lodur.", json!({ "kind": "domain", "target": "d1", "quote": "I want to see what" })); assert_eq!(named["read"]["quote"], "I want to see what", "{named}"); diff --git a/crates/mind-body/src/projection/simulate/tests.rs b/crates/mind-body/src/projection/simulate/tests.rs index e404604..3fd60de 100644 --- a/crates/mind-body/src/projection/simulate/tests.rs +++ b/crates/mind-body/src/projection/simulate/tests.rs @@ -636,7 +636,8 @@ fn k22_a_promise_persists_across_silent_turns_until_the_person_releases_it() { assert_eq!(his[2]["committed"]["closed"][0]["entry"]["status"], "released", "{}", his[2]["committed"]); let told: Vec = his[3]["report"]["last_outcome"]["told"].as_array().unwrap().iter().map(|line| line.as_str().unwrap().to_owned()).collect(); assert!(told.iter().any(|line| line.contains("let him off his promise: \"I'll send the render tonight.\". It is closed.")), "{told:?}"); - assert!(!context(his[3]).contains(shown), "a closed promise is not shown again: {}", context(his[3])); + // Soul's R7: closed in this conversation, it stays in front of him marked closed, and never as one he owes. + assert!(context(his[3]).contains("Closed: Meta, who runs the place released him from it") && !context(his[3]).contains("He has no way to do it yet."), "{}", context(his[3])); let tobiah = members.iter().find(|member| member.entry.id == TOBIAH).unwrap(); assert_eq!(tobiah.state["commitments"][0]["status"], "released", "his in-run state holds it, closed, until it is removed"); }