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 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-21 02:36:12 +01:00
commit 652ec1ec5b
2 changed files with 5 additions and 3 deletions

View file

@ -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}");

View file

@ -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<String> = 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");
}