diff --git a/crates/mind-body/src/projection/fixtures/golden-chat.txt b/crates/mind-body/src/projection/fixtures/golden-chat.txt index 427096a..0099ac3 100644 --- a/crates/mind-body/src/projection/fixtures/golden-chat.txt +++ b/crates/mind-body/src/projection/fixtures/golden-chat.txt @@ -10,7 +10,7 @@ Here and now: - pronouns: Libby — she/her; Kiko — she/her - the conversation: Lately Libby with her; Kiko to the room. Her body: -- this turn the room reaches her as typed lines, and she can answer in the turn's room by typing lines of her own; nothing she does here builds, changes or ships anything. +- this turn the room reaches her as typed lines, and she can answer in the turn's room by typing lines of her own, any of which can reply to a line in the room, shown above it with who said it; nothing she does here builds, changes or ships anything. People here, as she holds them: - bond [bond-libby] Libby — collaborator: fair trust, a little friction. Libby holds the sounds and teases her about the pipeline. Just now Libby turned to her, here. - bond [bond-kiko] Kiko — sparring partner: fair trust, heavy friction. Kiko pokes her to stop massaging the pipeline. @@ -54,7 +54,7 @@ Here and now: - pronouns: Libby — she/her; Kiko — she/her - the conversation: Lately Libby with her; Kiko to the room. Her body: -- this turn the room reaches her as typed lines, and she can answer in the turn's room by typing lines of her own; nothing she does here builds, changes or ships anything. +- this turn the room reaches her as typed lines, and she can answer in the turn's room by typing lines of her own, any of which can reply to a line in the room, shown above it with who said it; nothing she does here builds, changes or ships anything. People here, as she holds them: - bond [bond-libby] Libby — collaborator: fair trust, a little friction. Libby holds the sounds and teases her about the pipeline. Just now Libby turned to her, here. - bond [bond-kiko] Kiko — sparring partner: fair trust, heavy friction. Kiko pokes her to stop massaging the pipeline. diff --git a/crates/mind-body/src/projection/interpret/tests.rs b/crates/mind-body/src/projection/interpret/tests.rs index aec6701..00b176d 100644 --- a/crates/mind-body/src/projection/interpret/tests.rs +++ b/crates/mind-body/src/projection/interpret/tests.rs @@ -366,7 +366,7 @@ fn an_unknown_gap_kind_is_kept_as_unresolved() { #[test] fn the_interpreter_is_told_what_he_can_do_here_from_the_packets_affordances() { let prompt = speech_prompt(&packet(), "x", "y", &Tuning::default()); - assert!(prompt.contains("What he can do here:\nThis turn the room reaches him as typed lines, and he can answer in the turn's room by typing lines of his own; nothing he does here builds, changes or ships anything.\n\nThe room:"), "{prompt}"); + assert!(prompt.contains("What he can do here:\nThis turn the room reaches him as typed lines, and he can answer in the turn's room by typing lines of his own, any of which can reply to a line in the room, shown above it with who said it; nothing he does here builds, changes or ships anything.\n\nThe room:"), "{prompt}"); assert!(prompt.contains("missing_affordance when he means to do something, now or later, that his body cannot do (what he can do here is listed below)"), "{prompt}"); let mut listening = packet(); listening.affordances = vec![Affordance::Perceive]; diff --git a/crates/mind-body/src/projection/select.rs b/crates/mind-body/src/projection/select.rs index 9de6bec..0965e27 100644 --- a/crates/mind-body/src/projection/select.rs +++ b/crates/mind-body/src/projection/select.rs @@ -1545,7 +1545,7 @@ pub(crate) fn turn_words(can: &[Affordance], her: Forms) -> String { let has = |affordance: Affordance| can.contains(&affordance); let clauses = [ if has(Affordance::Perceive) { format!("the room reaches {} as typed lines", her.obj) } else { format!("no room reaches {}", her.obj) }, - if has(Affordance::Speak) { format!("{} can answer in the turn's room by typing lines of {} own", her.subj, her.poss) } else { format!("{} can say nothing", her.subj) }, + if has(Affordance::Speak) { format!("{} can answer in the turn's room by typing lines of {} own, any of which can reply to a line in the room, shown above it with who said it", her.subj, her.poss) } else { format!("{} can say nothing", her.subj) }, ]; let clauses: Vec = clauses.into_iter().chain(has(Affordance::Suggest).then(|| format!("{} can leave Self a note", her.subj))).collect(); #[cfg(test)] diff --git a/crates/mind-body/src/projection/tests.rs b/crates/mind-body/src/projection/tests.rs index d03c8e6..af85c11 100644 --- a/crates/mind-body/src/projection/tests.rs +++ b/crates/mind-body/src/projection/tests.rs @@ -263,7 +263,7 @@ fn a_state_with_one_sense_renders_it_and_a_state_with_none_only_the_turn_line() let body = body_section(&packet); assert_eq!( body, - "Her body:\n- sense [sense-spectrogram] spectrogram hearing: Aqua hears by rendering a sound as a spectrogram and looking at it: she can feel its shape, where its weight sits, how long it rings. Not a human ear; a picture of a sound, not the sound.\n- this turn the room reaches her as typed lines, and she can answer in the turn's room by typing lines of her own; nothing she does here builds, changes or ships anything.\n", + "Her body:\n- sense [sense-spectrogram] spectrogram hearing: Aqua hears by rendering a sound as a spectrogram and looking at it: she can feel its shape, where its weight sits, how long it rings. Not a human ear; a picture of a sound, not the sound.\n- this turn the room reaches her as typed lines, and she can answer in the turn's room by typing lines of her own, any of which can reply to a line in the room, shown above it with who said it; nothing she does here builds, changes or ships anything.\n", "{}", packet.context ); @@ -285,9 +285,9 @@ fn a_state_with_one_sense_renders_it_and_a_state_with_none_only_the_turn_line() #[test] fn the_turn_line_is_derived_from_the_affordances_alone() { let her = select::forms(&state()); - assert_eq!(select::turn_words(&[Affordance::Perceive, Affordance::Speak], her), "this turn the room reaches her as typed lines, and she can answer in the turn's room by typing lines of her own; nothing she does here builds, changes or ships anything"); + assert_eq!(select::turn_words(&[Affordance::Perceive, Affordance::Speak], her), "this turn the room reaches her as typed lines, and she can answer in the turn's room by typing lines of her own, any of which can reply to a line in the room, shown above it with who said it; nothing she does here builds, changes or ships anything"); assert_eq!(select::turn_words(&[Affordance::Perceive], her), "this turn the room reaches her as typed lines, and she can say nothing; nothing she does here builds, changes or ships anything"); - assert_eq!(select::turn_words(&[Affordance::Speak], her), "this turn no room reaches her, and she can answer in the turn's room by typing lines of her own; nothing she does here builds, changes or ships anything"); + assert_eq!(select::turn_words(&[Affordance::Speak], her), "this turn no room reaches her, and she can answer in the turn's room by typing lines of her own, any of which can reply to a line in the room, shown above it with who said it; nothing she does here builds, changes or ships anything"); assert_eq!(select::turn_words(&[], her), "this turn no room reaches her, and she can say nothing; nothing she does here builds, changes or ships anything"); let them = select::forms(&json!({ "presentation": { "pronouns": "any" } })); assert!(select::turn_words(&[Affordance::Speak], them).ends_with("nothing they do here builds, changes or ships anything")); @@ -296,7 +296,7 @@ fn the_turn_line_is_derived_from_the_affordances_alone() { assert!(writes.ends_with(", and she can write") && !writes.contains("builds, changes or ships"), "{writes}"); // A note to Self is no write (map 16.19.6): the sentence stays with {perceive, speak, suggest}. let every = [Affordance::Perceive, Affordance::Speak, Affordance::Suggest]; - assert_eq!(select::turn_words(&every, her), "this turn the room reaches her as typed lines, and she can answer in the turn's room by typing lines of her own, and she can leave Self a note; nothing she does here builds, changes or ships anything"); + assert_eq!(select::turn_words(&every, her), "this turn the room reaches her as typed lines, and she can answer in the turn's room by typing lines of her own, any of which can reply to a line in the room, shown above it with who said it, and she can leave Self a note; nothing she does here builds, changes or ships anything"); assert!(!Affordance::Suggest.writes()); // The longest turn line and the heading fit the least body guard the tuning allows. for forms in [her, them, select::forms(&json!({ "presentation": { "pronouns": "he/him" } }))] { @@ -339,7 +339,7 @@ fn what_the_turn_can_do_comes_from_what_it_holds() { assert_eq!(can, json!(["suggest"])); let deaf = Deaf; let (body, can) = context(&Organs { chat: Some(&deaf), ..with }, Through::Interpreter); - assert!(body.contains("Her body:\n- this turn no room reaches her, and she can answer in the turn's room by typing lines of her own, and she can leave Self a note;"), "{body}"); + assert!(body.contains("Her body:\n- this turn no room reaches her, and she can answer in the turn's room by typing lines of her own, any of which can reply to a line in the room, shown above it with who said it, and she can leave Self a note;"), "{body}"); assert_eq!(can, json!(["speak", "suggest"])); let (body, can) = context(&with, Through::Persona); assert!(body.contains("Her body:\n- this turn the room reaches her as typed lines, and she can say nothing;"), "{body}");