From ad5a08f8f1d129d7801f446e3eadb8b5310474ba Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 20 Nov 2026 21:05:49 +0100 Subject: [PATCH] The Projector's conversation line cannot be read as a quote Re-test R1: "- the conversation: lately X with Y" was narrated as someone saying "lately", and once posted as "Kiko, since you said lately". The line now reads "X has been talking with Y; Z has been talking to the room", in her pronouns where she is the one talked with: no word of it is a fragment anyone could have said. Goldens updated. Verification: golden_chat_packet, the group-state golden (fixtures/harness/golden-group.txt), the conversation tests. Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/fixtures/harness/golden-group.txt | 8 ++++---- .../mind-body/src/projection/fixtures/golden-chat.txt | 4 ++-- crates/mind-body/src/projection/select.rs | 11 ++++++----- crates/mind-body/src/projection/tests.rs | 8 ++++---- 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/crates/mind-body/fixtures/harness/golden-group.txt b/crates/mind-body/fixtures/harness/golden-group.txt index e665329..c28868d 100644 --- a/crates/mind-body/fixtures/harness/golden-group.txt +++ b/crates/mind-body/fixtures/harness/golden-group.txt @@ -1,4 +1,4 @@ -quiet-beat.toml: - the conversation: Lately @libby:gamecult.org to the room; Kiko to the room. | The last 3 lines are the Minds' alone. -operator-warm.toml: - the conversation: Lately Meta, who runs the place with him. | Meta, who runs the place is waiting on him. Meta, who runs the place last spoke 1 min ago. -mind-teases.toml: - the conversation: Lately Kiko with him; he to the room; @aqua:gamecult.org to the room. | The last 3 lines are the Minds' alone. -deru-passing.toml: - the conversation: Lately @weksa:gamecult.org to the room; Deru to the room. | Deru last spoke 1 min ago. +quiet-beat.toml: - the conversation: @libby:gamecult.org has been talking to the room; Kiko has been talking to the room. | The last 3 lines are the Minds' alone. +operator-warm.toml: - the conversation: Meta, who runs the place has been talking with him. | Meta, who runs the place is waiting on him. Meta, who runs the place last spoke 1 min ago. +mind-teases.toml: - the conversation: Kiko has been talking with him; he has been talking to the room; @aqua:gamecult.org has been talking to the room. | The last 3 lines are the Minds' alone. +deru-passing.toml: - the conversation: @weksa:gamecult.org has been talking to the room; Deru has been talking to the room. | Deru last spoke 1 min ago. diff --git a/crates/mind-body/src/projection/fixtures/golden-chat.txt b/crates/mind-body/src/projection/fixtures/golden-chat.txt index 085124c..b7a0804 100644 --- a/crates/mind-body/src/projection/fixtures/golden-chat.txt +++ b/crates/mind-body/src/projection/fixtures/golden-chat.txt @@ -8,7 +8,7 @@ Here and now: - now: Thursday 19 November, 14:05 UTC - mood: lighter than usual for her - pronouns: Libby — she/her; Kiko — she/her -- the conversation: Lately Libby with her; Kiko to the room. +- the conversation: Libby has been talking with her; Kiko has been talking 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, any of which can reply to one of the room's lines, which the room then shows above it with who wrote it; nothing she does here builds, changes or ships anything. People here, as she holds them: @@ -52,7 +52,7 @@ Here and now: - now: Thursday 19 November, 14:05 UTC - mood: lighter than usual for her - pronouns: Libby — she/her; Kiko — she/her -- the conversation: Lately Libby with her; Kiko to the room. +- the conversation: Libby has been talking with her; Kiko has been talking 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, any of which can reply to one of the room's lines, which the room then shows above it with who wrote it; nothing she does here builds, changes or ships anything. People here, as she holds them: diff --git a/crates/mind-body/src/projection/select.rs b/crates/mind-body/src/projection/select.rs index fcbfe49..25483c4 100644 --- a/crates/mind-body/src/projection/select.rs +++ b/crates/mind-body/src/projection/select.rs @@ -1329,7 +1329,8 @@ fn label_of(line: &RoomLine, inputs: &Inputs) -> String { } /// The group state (`select.group_state`): the conversation as it stands over the room's last `group_lines` lines, in two -/// parts by who reads them (map 16.20.2, I16.12). `room` is who has been talking with whom ("lately X with Y"), opening +/// parts by who reads them (map 16.20.2, I16.12). `room` is who has been talking with whom ("X has been talking with Y", no word of it +/// readable as a quote: re-test R1 found "lately" narrated and once posted as something Kiko said), opening /// with whoever turned to her here this turn: room state, the Projector's. `speaking` is the speech cues: a human waiting on her by name since she last spoke, a human's /// question to the room that others have answered (one nobody answered is not mentioned), when a human last spoke, and how /// many Mind lines in a row. They are for the stages that decide speech, the Persona and the Interpreter, and never the @@ -1360,7 +1361,7 @@ fn conversation(inputs: &Inputs, tuning: &Tuning) -> Conversation { // (map 16.21): no crowd and no clip cuts them from it. let mut talk: Vec = Vec::new(); for line in inputs.room.messages.iter().rev().filter(|line| line.to_her && line.sender != own && Some(line.room.as_str()) == turn_room(inputs)) { - let pair = format!("{} with {}", label_of(line, inputs), forms(inputs.state).obj); + let pair = format!("{} has been talking with {}", label_of(line, inputs), forms(inputs.state).obj); if !talk.contains(&pair) { talk.push(pair); } @@ -1379,8 +1380,8 @@ fn conversation(inputs: &Inputs, tuning: &Tuning) -> Conversation { continue; } let pair = match target { - Some(target) => format!("{speaker} with {target}"), - None => format!("{speaker} to the room"), + Some(target) => format!("{speaker} has been talking with {target}"), + None => format!("{speaker} has been talking to the room"), }; if !talk.contains(&pair) { talk.push(pair); @@ -1408,7 +1409,7 @@ fn conversation(inputs: &Inputs, tuning: &Tuning) -> Conversation { // Each part a sentence of its own: the lists inside a part use semicolons, and a label may hold a comma. let sentences = |parts: &[String]| parts.iter().map(|part| sentence(part)).collect::>().join(" "); Conversation { - room: (!talk.is_empty()).then(|| clip(&format!("- the conversation: {}", sentence(&format!("lately {}", talk.join("; ")))), tuning.select.group_bytes)), + room: (!talk.is_empty()).then(|| clip(&format!("- the conversation: {}", sentence(&talk.join("; "))), tuning.select.group_bytes)), speaking: (!speaking.is_empty()).then(|| clip(&sentences(&speaking), tuning.select.group_bytes)), } } diff --git a/crates/mind-body/src/projection/tests.rs b/crates/mind-body/src/projection/tests.rs index 01de541..36f04f5 100644 --- a/crates/mind-body/src/projection/tests.rs +++ b/crates/mind-body/src/projection/tests.rs @@ -1832,7 +1832,7 @@ fn the_group_state_reads_one_room_and_never_folds_a_direct_message_in() { }; let packet = packet_of(TurnKind::Chat, &state(), &room, &History::default(), 1); let line = packet.context.lines().find(|line| line.starts_with("- the conversation")).unwrap_or_else(|| panic!("{}", packet.context)).to_owned(); - assert!(line.contains("Kiko with her") && line.contains("Libby"), "{line}"); + assert!(line.contains("Kiko has been talking with her") && line.contains("Libby"), "{line}"); assert!(!line.contains("Deru") && !packet.context.contains("@deru"), "the direct message is its own room: {}", packet.context); } @@ -2154,7 +2154,7 @@ fn k15_the_speaking_cues_reach_the_persona_and_the_interpreter_and_never_the_pro } // The room line stays the Projector's: who has been talking with whom. let packet = packet_of(TurnKind::Chat, &state(), &waiting, &History::default(), 1); - assert!(packet.context.contains("- the conversation: Lately Meta, the operator with her; Kiko to the room.") && packet.context.contains(" Just now Meta, the operator turned to her, here.") && !packet.context.contains("just now:"), "{}", packet.context); + assert!(packet.context.contains("- the conversation: Meta, the operator has been talking with her; Kiko has been talking to the room.") && packet.context.contains(" Just now Meta, the operator turned to her, here.") && !packet.context.contains("just now:"), "{}", packet.context); // With the group state off, neither part is said. let mut off = Tuning::default(); off.select.group_state = false; @@ -2348,7 +2348,7 @@ fn the_arrival_survives_a_busy_room() { within_guards(&packet, &tuning); let case = format!("{others} others, Deru {order}"); assert!(packet.context.contains("- also here: \"Deru\" (@deru:gamecult.org), who turned to her just now"), "{case}: {}", packet.context); - assert!(packet.context.contains("\n- the conversation: Lately \"Deru\" (@deru:gamecult.org) with her"), "{case}: {}", packet.context); + assert!(packet.context.contains("\n- the conversation: \"Deru\" (@deru:gamecult.org) has been talking with her"), "{case}: {}", packet.context); assert!(packet.context.contains("\n- pronouns: "), "{case}: the pronouns are clipped, not dropped: {}", packet.context); } } @@ -2358,7 +2358,7 @@ fn the_arrival_survives_a_busy_room() { messages.extend((0..14).map(|at| message(SW, &format!("@p{at}:gamecult.org"), &format!("Person{at}"), "chatter in the room here", 4, false))); let packet = packet_of(TurnKind::Chat, &state(), &Room { messages, here: Some(SW.into()), ..Room::default() }, &History::default(), 1); within_guards(&packet, &tuning); - assert!(packet.context.contains("- bond [bond-libby] Libby") && packet.context.contains(" Just now Libby turned to her, here.") && packet.context.contains("\n- the conversation: Lately Libby with her"), "{}", packet.context); + assert!(packet.context.contains("- bond [bond-libby] Libby") && packet.context.contains(" Just now Libby turned to her, here.") && packet.context.contains("\n- the conversation: Libby has been talking with her"), "{}", packet.context); } /// Map 16.21: what the Persona reads after the stream opens on the arrival the stream ended on. A bonded sender: the