From 4e53052bf5be2fccaa1e40492d2dd267c9af508b Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 05:52:07 +0100 Subject: [PATCH] persona drain: the actuator's no-attempt answer is Sent::Unattempted; a stray brace in the tests Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/src/projection/turn.rs | 6 +++--- crates/mind-body/src/projection/turn/tests.rs | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/mind-body/src/projection/turn.rs b/crates/mind-body/src/projection/turn.rs index 570cdd9..8b05a94 100644 --- a/crates/mind-body/src/projection/turn.rs +++ b/crates/mind-body/src/projection/turn.rs @@ -27,7 +27,7 @@ pub(crate) enum Sent { Refused(String), Lost, /// The mouth attempted nothing: the send is certainly not posted, still owed, and goes out as a first send later. - NotSent, + Unattempted, /// The mouth cannot say whether an earlier try posted: the send is never repeated, and is recorded unknown. Unknown, } @@ -73,7 +73,7 @@ impl Actuator for Mouth<'_> { Ok(receipt) => match (receipt.event_id, receipt.refusal) { (_, Some(refusal)) => match refusal.reading(resend) { Reading::NoAnswer => Sent::Lost, - Reading::NotSent => Sent::NotSent, + Reading::NotSent => Sent::Unattempted, Reading::Unknown => Sent::Unknown, Reading::Declined => Sent::Refused(refusal.name().to_owned()), }, @@ -222,7 +222,7 @@ pub(crate) fn deliver(actuator: &dyn Actuator, record: &mut Value, pass: Pass, s stalled.insert(room.clone()); still.push(send); } - Sent::NotSent => { + Sent::Unattempted => { stalled.insert(room.clone()); if !handed { unmark(&mut send); diff --git a/crates/mind-body/src/projection/turn/tests.rs b/crates/mind-body/src/projection/turn/tests.rs index b027884..afa8949 100644 --- a/crates/mind-body/src/projection/turn/tests.rs +++ b/crates/mind-body/src/projection/turn/tests.rs @@ -359,8 +359,6 @@ fn t_l3_past_the_window_a_handed_send_is_unknown_and_one_never_handed_is_refused assert!(record.get("owed").is_none()); } -} - /// Soul s7 owed-predicate-split. One predicate says a record owes a send, and the poll's `owes`, the ack's `owing` and the drain's owed list /// all read it: a failed record never owes, whatever it carries, and an empty `owed` owes nothing. #[test]