Persona K61: pin that a note code refuses does not do the act a line states (mutant k61-done-note-unleft)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-22 20:53:43 +01:00
commit 2562f01372

View file

@ -3450,6 +3450,12 @@ fn k61_a_note_left_does_the_act() {
let model = answering(vec![answer.to_string()]);
let decision = decide(&model, "test", &packet(), "The room is warm.", prose, &Tuning::default());
assert_eq!((speech_prompts(&model).len(), decision["done_now"][0]["by"].clone(), decision["suggestions"].as_array().map(Vec::len)), (1, json!({ "note": true }), Some(1)), "{decision}");
// A note code refuses (private) is not left: the act is her promise.
let mut private = answer;
private["suggest"][0]["private"] = json!(true);
let decision = decide(&answering(vec![private.to_string()]), "test", &packet(), "The room is warm.", prose, &Tuning::default());
assert!(decision.get("done_now").is_none() && decision["suggestions"].as_array().is_some_and(Vec::is_empty), "{decision}");
assert!(decision["state"].as_array().unwrap().iter().any(|proposal| proposal["kind"] == "promise_open" && proposal["now"] == true), "{decision}");
}
/// Negative, unchanged: E.3's "I'm testing that now", which this body has no way to do, is said, gapped and told as a