K20.4: her turn line says a line of hers can reply to one in the room

The Persona drafts and the Interpreter only chooses among her drafts, so she
must know that passing on is a reply to the line, shown above hers with who
said it; otherwise she types the words, and the echo check refuses them.
The Speak clause of `turn_words` says so, derived from the affordance as
before. Not named in the map's K20; reported as a deviation.

Verification: the_turn_line_is_derived_from_the_affordances_alone, the golden
chat packet, the Interpreter's "What he can do here" prompt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-20 21:01:03 +01:00
commit 0732aab797
4 changed files with 9 additions and 9 deletions

View file

@ -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.

View file

@ -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];

View file

@ -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<String> = clauses.into_iter().chain(has(Affordance::Suggest).then(|| format!("{} can leave Self a note", her.subj))).collect();
#[cfg(test)]

View file

@ -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}");