Persona K44: a Held refusal of words a receipt shows reached the room is reported, not told as unsent (negative pin)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-22 06:39:23 +01:00
commit 6cd212895c

View file

@ -1922,3 +1922,21 @@ fn k44_a_decline_quoting_her_draft_accounts_for_nothing() {
let decision = decide(&model, "test", &packet(), "The room is warm.", prose, &Tuning::default());
assert_eq!((decision["retried"]["drafts"].clone(), decision["unsent"][0]["quote"].as_str()), (json!([1]), Some("I'll keep this back for now")), "{decision}");
}
/// Two drafts in the same words: the first names Meta's hold and is refused `Held`, the second names none and is said.
/// The receipt shows those words reached #minds, so no row tells her nothing of them did (I16.10); the refusal is
/// reported.
#[test]
fn k44_a_refusal_of_words_a_receipt_shows_is_not_told_as_unsent() {
let prose = "Meta asked first. <typed>Meta, the draft is ready, and I'm holding it</typed> <typed>Meta, the draft is ready, and I'm holding it</typed>";
let decision = answered(&x1_packet(), prose, json!({ "say": [say_holding(1, json!(["q3"])), say_holding(2, json!([]))], "gaps": [], "hold": meta_holds_here() }));
assert_eq!((decision["refused"][0]["reason"].as_str(), texts(&decision)), (Some("held"), vec!["Meta, the draft is ready, and I'm holding it".to_owned()]), "{decision}");
let posted: Vec<Value> = decision["said"].as_array().unwrap().iter().map(|line| json!({ "event": "9", "room": line["room"], "text": line["text"] })).collect();
let outcome = crate::projection::outcome::outcome_of(&json!({ "interpreter": decision, "posted": posted, "edited": [] })).unwrap();
let told = outcome.lines(x1_packet().forms);
assert!(!told.iter().any(|line| line.starts_with("- Nothing of this reached")), "{told:?}");
assert!(outcome.omitted.iter().any(|why| why.starts_with("a refusal (\"held\") of words a receipt shows reached the room")), "{:?}", outcome.omitted);
// Negative: with no receipt, the hold is told as before.
let unposted = crate::projection::outcome::outcome_of(&json!({ "interpreter": decision, "posted": [], "edited": [] })).unwrap().lines(x1_packet().forms);
assert!(unposted.iter().any(|line| line == "- Nothing of this reached #minds:gamecult.org: Meta asked him to hold it, and it was not sent."), "{unposted:?}");
}