diff --git a/crates/mind-body/src/projection/narrate.rs b/crates/mind-body/src/projection/narrate.rs index d001eb8..f056cb7 100644 --- a/crates/mind-body/src/projection/narrate.rs +++ b/crates/mind-body/src/projection/narrate.rs @@ -331,7 +331,7 @@ fn room_after(packet: &Packet) -> String { pub(crate) fn persona_speech_form(her: Forms) -> String { let Forms { subj, obj, poss, s, .. } = her; format!( - "When {subj} write{s} words {subj} would type to someone (to the room, to one person, or as a note for Self), {subj} set{s} them between {DRAFT_OPEN} and {DRAFT_CLOSE}, exactly as they would be sent, and nothing else inside. Writing them is drafting: whether they go anywhere is decided after {obj}, from what {poss} thought makes plain. Everything outside those marks is {poss} thought and never leaves {obj}." + "When {subj} write{s} words {subj} would type to someone (to the room, to one person, or as a note for Self), {subj} set{s} them between {DRAFT_OPEN} and {DRAFT_CLOSE}, exactly as they would be sent, and nothing else inside. Writing them is drafting: whether they go anywhere is decided after {obj}, from what {poss} thought shows. Everything outside those marks is {poss} thought and never leaves {obj}." ) } diff --git a/crates/mind-body/src/projection/tests.rs b/crates/mind-body/src/projection/tests.rs index 086d5fa..2f22527 100644 --- a/crates/mind-body/src/projection/tests.rs +++ b/crates/mind-body/src/projection/tests.rs @@ -2812,3 +2812,19 @@ fn r7_a_promise_closed_in_this_conversation_stays_in_view_marked_closed() { assert!(!interpret::speech_prompt(&packet, "The room is warm.", "y", &tuning).contains("KEPT-ONE")); assert!(!select(&inputs(None), &tuning).in_view.contains("KEPT-ONE"), "no conversation, no closed promise"); } + +/// Soul's R8: no code frame that reaches the Persona says "plain" or "plainly": the speech form's "what her thought makes +/// plain" fed an "asked plainly, answer plainly" register. Her thought shows what she means; nothing tells her to be plain. +#[test] +fn r8_nothing_code_writes_for_the_persona_says_plain() { + let tuning = Tuning::default(); + let form = narrate::persona_speech_form(select::forms(&state())); + assert!(form.contains("from what her thought shows.") && !form.to_lowercase().contains("plain"), "{form}"); + let mut with = promising(1); + with["commitments"][0]["reaffirmed"] = json!([{ "at": now().to_rfc3339(), "event": "11", "words": "Still on it." }]); + let (operators, minds, history, room) = (operators(), minds(), History::default(), chat_room()); + let digest = nine(); + let inputs = Inputs { kind: TurnKind::Chat, state: &with, room: &room, history: &history, observation: None, people: People { operators: &operators, minds: &minds, own_sender: OWN }, now: now(), seed: 1, affordances: CAN, domain: Some(&digest), exchange: None }; + let persona = narrate::persona_prompt(&select(&inputs, &tuning), "The room is warm.", &tuning); + assert!(!persona.to_lowercase().contains("plain"), "{persona}"); +}