K21a: the arrival on the person's own line; the unknown clause deleted (map 16.21)
Deleted first:
- `just_now` and its Here-and-now lines ("- just now: X spoke to her here, N min
ago", "- also just now: ...", and the "earlier just now not shown" count).
- The frame's "and say plainly what is unknown rather than filling it"; the
rest of that sentence and the no-furnishing sentence stay.
Added:
- `turned_to_her`: on a chat turn, each person whose message to her is new,
with "here" or "in {room}". A bonded sender's bond line ends "Just now {name}
turned to her, here."; one with no bond line shown is named on the also-here
line as "{name}, who turned to her just now". Someone who spoke this turn, not
to her, stays on the conversation's room line only.
- Where the act was elsewhere than the turn's room, the place is named ("in
{room}"), carrying the ruling's "where" as the deleted line did; the map only
shows "here".
- The people's guard holds the act (TURNED_BYTES, NAME_BYTES + 40 a bond), so
it never pushes the bond it belongs beside off the section; a bare bond line
reads "- bond [id] Libby. Just now Libby turned to them, here."
Verification: the golden chat packet (Libby's bond line carries the act, no
just-now lines, the clause gone); a bonded (Meta) and an unbonded (Deru) sender
each carry the act on their own line and Kiko, who spoke to the room, does not;
the Projector prompt over eight seeds holds no whole word "spoke", "said",
"line", "words" or "unknown" and no "just now:" outside the no-furnishing
sentence and the notes (also exempt, as about her idiom and the budget: the
voice heading, the frame's idiom sentence and "Use at most 150 words.");
I16.7's whole-prompt sentinels pass unchanged; the K15/K16 tests now read the
act on the person's line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3d77bfd7b7
commit
6f4fe40db8
4 changed files with 109 additions and 56 deletions
|
|
@ -7,15 +7,13 @@ Eureka (she/her). Dry, direct, almost feral; zeal aimed at revealing.
|
|||
Here and now:
|
||||
- now: Thursday 19 November, 14:05 UTC
|
||||
- mood: lighter than usual for her
|
||||
- just now: Libby spoke to her here, 3 min ago
|
||||
- also just now: Kiko spoke here
|
||||
- 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.
|
||||
People here, as she holds them:
|
||||
- bond [bond-kiko] Kiko — sparring partner: fair trust, heavy friction. Kiko pokes her to stop massaging the pipeline.
|
||||
- bond [bond-libby] Libby — collaborator: fair trust, a little friction. Libby holds the sounds and teases her about the pipeline.
|
||||
- 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.
|
||||
Notes about her, set down at another time:
|
||||
- memory [libby-sounds]: Libby laughed at the door fix.
|
||||
- memory [dm-secret]: she knows privately: Deru told her about the move, privately.
|
||||
|
|
@ -35,7 +33,7 @@ Kiko, in #swarm:gamecult.org: "She saw it. She hated it."
|
|||
--- projector prompt
|
||||
You are a private Projector. Write one person's present moment from inside it, in the first person and the present tense: the lived stream she will go on to continue in her own thought. Her interior is the point: what she feels, wants, fears and remembers, and how the people here sit with her, rendered as lived, not listed.
|
||||
|
||||
Render only what is established below: who she is and her present under its headings. Anything absent from these is unavailable: render suspicion or speculation as uncertainty, never as remembered or perceived fact, and say plainly what is unknown rather than filling it. Furnish no place, object or event these do not give: no act or event of her own (nothing she did, drafted, sent or decided) and no line anyone said that is not below. Each heading says what its lines are. What came of her last turn is what came of what she last meant to do, which she is only now finding out: whenever something she meant did not happen, the stream begins from it, as she notices it, never as a list; when all of it happened, it may pass in a clause or not at all. Here and now is the hour, how her mood leans when it does, and the room as it stands. Her body is how the moment reaches her and how she can answer it: it is not news to her, and a lack in it is felt only when the moment reaches for something it cannot do. The people here are as she holds them, not as those people are. The notes about her were set down at another time, by others and by her own past self: all of it is material for the stream and never its wording. How her words run is the stream's idiom, never its material: it shows in how the stream moves, and nothing in the stream remarks on it.
|
||||
Render only what is established below: who she is and her present under its headings. Anything absent from these is unavailable: render suspicion or speculation as uncertainty, never as remembered or perceived fact. Furnish no place, object or event these do not give: no act or event of her own (nothing she did, drafted, sent or decided) and no line anyone said that is not below. Each heading says what its lines are. What came of her last turn is what came of what she last meant to do, which she is only now finding out: whenever something she meant did not happen, the stream begins from it, as she notices it, never as a list; when all of it happened, it may pass in a clause or not at all. Here and now is the hour, how her mood leans when it does, and the room as it stands. Her body is how the moment reaches her and how she can answer it: it is not news to her, and a lack in it is felt only when the moment reaches for something it cannot do. The people here are as she holds them, not as those people are. The notes about her were set down at another time, by others and by her own past self: all of it is material for the stream and never its wording. How her words run is the stream's idiom, never its material: it shows in how the stream moves, and nothing in the stream remarks on it.
|
||||
|
||||
Render the two or three notes this moment touches and leave the rest. Do not recap the notes. Do not weigh options, list what she might say or do, or steer toward a decision: end where the moment is, not on a resolution. Do not choose actions, emit schemas, expose field names or ids, or claim world effects.
|
||||
|
||||
|
|
@ -53,15 +51,13 @@ Eureka (she/her)
|
|||
Here and now:
|
||||
- now: Thursday 19 November, 14:05 UTC
|
||||
- mood: lighter than usual for her
|
||||
- just now: Libby spoke to her here, 3 min ago
|
||||
- also just now: Kiko spoke here
|
||||
- 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.
|
||||
People here, as she holds them:
|
||||
- bond [bond-kiko] Kiko — sparring partner: fair trust, heavy friction. Kiko pokes her to stop massaging the pipeline.
|
||||
- bond [bond-libby] Libby — collaborator: fair trust, a little friction. Libby holds the sounds and teases her about the pipeline.
|
||||
- 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.
|
||||
Notes about her, set down at another time:
|
||||
- memory [libby-sounds]: Libby laughed at the door fix.
|
||||
- memory [dm-secret]: she knows privately: Deru told her about the move, privately.
|
||||
|
|
|
|||
|
|
@ -143,9 +143,10 @@ pub(crate) fn word_budget(kind: TurnKind, tuning: &Tuning) -> usize {
|
|||
|
||||
/// The Projector's frame: Huginn's, not Ghostlight's (map section 16.3). Ghostlight's projector membrane forbids any
|
||||
/// interior its world kernel did not assert; a Mind's interior is the point of her stream. Kept from it: render only what
|
||||
/// the context and stimulus establish, an absence is unavailable and suspicion is uncertainty, say plainly what is
|
||||
/// unknown rather than filling it, no recap, never choose actions, emit schemas, expose field names or claim world
|
||||
/// effects, and the word budget. Nothing in it tells her what she has not yet read (map 16.20.1). Dropped: its ban on temperament, mood and inner voice, "no metaphor, no atmosphere",
|
||||
/// the context and stimulus establish, an absence is unavailable and suspicion is uncertainty, no recap, never choose
|
||||
/// actions, emit schemas, expose field names or claim world effects, and the word budget. Its "say plainly what is
|
||||
/// unknown" is deleted (map 16.21): beside an arrival it made the stream name what she does not hold; the no-furnishing
|
||||
/// sentence keeps the absence unfilled. Nothing in it tells her what she has not yet read (map 16.20.1). Dropped: its ban on temperament, mood and inner voice, "no metaphor, no atmosphere",
|
||||
/// "say only what changes the decision" and "a thin moment gets a thin stream". Added: the first person and the present
|
||||
/// tense; what the packet's headings mean (map 16.5, I16.4); that what came of her last turn is news she is only now
|
||||
/// finding out, rendered as noticed and never as a list (map 16.16); that the notes are material,
|
||||
|
|
@ -160,7 +161,7 @@ pub(crate) fn projector_frame(her: Forms) -> String {
|
|||
format!(
|
||||
"{PROJECTOR_OPENING} Write one person's present moment from inside it, in the first person and the present tense: the lived stream {subj} will go on to continue in {poss} own thought. {cap_poss} interior is the point: what {subj} feel{s}, want{s}, fear{s} and remember{s}, and how the people here sit with {obj}, rendered as lived, not listed.
|
||||
|
||||
Render only what is established below: who {subj} {be} and {poss} present under its headings. Anything absent from these is unavailable: render suspicion or speculation as uncertainty, never as remembered or perceived fact, and say plainly what is unknown rather than filling it. Furnish no place, object or event these do not give: no act or event of {poss} own (nothing {subj} did, drafted, sent or decided) and no line anyone said that is not below. Each heading says what its lines are. What came of {poss} last turn is what came of what {subj} last meant to do, which {subj} {be} only now finding out: whenever something {subj} meant did not happen, the stream begins from it, as {subj} notice{s} it, never as a list; when all of it happened, it may pass in a clause or not at all. Here and now is the hour, how {poss} mood leans when it does, and the room as it stands. {cap_poss} body is how the moment reaches {obj} and how {subj} can answer it: it is not news to {obj}, and a lack in it is felt only when the moment reaches for something it cannot do. The people here are as {subj} hold{s} them, not as those people are. The notes about {obj} were set down at another time, by others and by {poss} own past self: all of it is material for the stream and never its wording. How {poss} words run is the stream's idiom, never its material: it shows in how the stream moves, and nothing in the stream remarks on it.
|
||||
Render only what is established below: who {subj} {be} and {poss} present under its headings. Anything absent from these is unavailable: render suspicion or speculation as uncertainty, never as remembered or perceived fact. Furnish no place, object or event these do not give: no act or event of {poss} own (nothing {subj} did, drafted, sent or decided) and no line anyone said that is not below. Each heading says what its lines are. What came of {poss} last turn is what came of what {subj} last meant to do, which {subj} {be} only now finding out: whenever something {subj} meant did not happen, the stream begins from it, as {subj} notice{s} it, never as a list; when all of it happened, it may pass in a clause or not at all. Here and now is the hour, how {poss} mood leans when it does, and the room as it stands. {cap_poss} body is how the moment reaches {obj} and how {subj} can answer it: it is not news to {obj}, and a lack in it is felt only when the moment reaches for something it cannot do. The people here are as {subj} hold{s} them, not as those people are. The notes about {obj} were set down at another time, by others and by {poss} own past self: all of it is material for the stream and never its wording. How {poss} words run is the stream's idiom, never its material: it shows in how the stream moves, and nothing in the stream remarks on it.
|
||||
|
||||
Render the two or three notes this moment touches and leave the rest. Do not recap the notes. Do not weigh options, list what {subj} might say or do, or steer toward a decision: end where the moment is, not on a resolution. Do not choose actions, emit schemas, expose field names or ids, or claim world effects."
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
//! Every packet carries its fixed slots: what came of her last turn when there is one (`outcome`, first), identity, the
|
||||
//! hour, her mood when it leans, her body (`body_lines`: her senses
|
||||
//! and actuators from `embodiment`, and what this turn can do from `Affordance`), a bond line for each person
|
||||
//! present, who just spoke to her (`just_now`), who has been talking to whom (`conversation`; its speech cues are the
|
||||
//! present (ending, for whoever turned to her this turn, with that act: `turned_to_her`), who has been talking to whom (`conversation`; its speech cues are the
|
||||
//! Persona's and the Interpreter's, never the Projector's), and the stimulus. The rest comes from her
|
||||
//! state's pools. The context is rendered in headed sections (`Section`), each saying what kind of text its lines are,
|
||||
//! and every anchored thought by one renderer (`thought_line`). Each candidate is ordered by
|
||||
|
|
@ -984,27 +984,23 @@ fn beat_heard(inputs: &Inputs, tuning: &Tuning) -> String {
|
|||
newest_that_fit(&lines, tuning.select.heard_bytes).0.join("\n")
|
||||
}
|
||||
|
||||
/// Who just spoke to her on a chat turn, as the room stands (map 16.20.1, I16.7): a line per message to her, then one per
|
||||
/// room where others spoke. Who, where and when, and nothing else: never the words, and nothing about what she has or
|
||||
/// has not read. "here" is the turn's room.
|
||||
fn just_now(inputs: &Inputs) -> Vec<String> {
|
||||
let messages: Vec<&RoomLine> = inputs.room.messages.iter().filter(|line| line.sender != inputs.people.own_sender).collect();
|
||||
let her = forms(inputs.state);
|
||||
/// Where each person who turned to her this turn did so (map 16.21): the people whose message to her is new on a chat
|
||||
/// turn, by person, with "here" for the turn's room and "in {room}" otherwise, newest first. The arrival is that act on
|
||||
/// the person's own line (a bond line, or the also-here line): who, where and when, as something a person does in the
|
||||
/// room, never as a line or its words (I16.7). Others who spoke this turn, not to her, are the conversation's room line.
|
||||
fn turned_to_her(inputs: &Inputs) -> Vec<(String, String)> {
|
||||
if inputs.kind != TurnKind::Chat {
|
||||
return Vec::new();
|
||||
}
|
||||
let here = turn_room(inputs);
|
||||
let place = |room: &str| if Some(room) == here { "here".to_owned() } else { format!("in {room}") };
|
||||
let (to_her, others): (Vec<&RoomLine>, Vec<&RoomLine>) = messages.into_iter().partition(|line| line.to_her);
|
||||
let mut lines: Vec<String> = to_her.iter().map(|line| format!("- just now: {} spoke to {} {}, {} min ago", name_of(line, inputs), her.obj, place(&line.room), minutes(inputs.now, line.at_ms))).collect();
|
||||
let mut rooms: Vec<(&str, Vec<String>)> = Vec::new();
|
||||
for line in others {
|
||||
let name = name_of(line, inputs);
|
||||
match rooms.iter_mut().find(|(room, _)| *room == line.room) {
|
||||
Some((_, names)) if !names.contains(&name) => names.push(name),
|
||||
Some(_) => {}
|
||||
None => rooms.push((&line.room, vec![name])),
|
||||
let mut out: Vec<(String, String)> = Vec::new();
|
||||
for line in inputs.room.messages.iter().rev().filter(|line| line.to_her && line.sender != inputs.people.own_sender) {
|
||||
let person = inputs.people.person_of(&line.sender);
|
||||
if !out.iter().any(|(id, _)| *id == person) {
|
||||
out.push((person, if Some(line.room.as_str()) == here { "here".to_owned() } else { format!("in {}", line.room) }));
|
||||
}
|
||||
}
|
||||
lines.extend(rooms.into_iter().map(|(room, names)| format!("- also just now: {} spoke {}", names.join("; "), place(room))));
|
||||
lines
|
||||
out
|
||||
}
|
||||
|
||||
/// The tail lines a beat's stimulus quotes: the newest `beat_tail_lines` of others'.
|
||||
|
|
@ -1041,8 +1037,9 @@ fn present_people(inputs: &Inputs, tuning: &Tuning) -> Vec<(String, String)> {
|
|||
}
|
||||
|
||||
/// A bond line: the person, the kind of bond after a dash (a label may hold a comma: "Meta, the operator"), trust and
|
||||
/// friction as words when the bond carries them, and its summary. What the bond does not carry is left out.
|
||||
fn bond_line(bond: &Value, name: &str, tuning: &Tuning, scope: Scope, her: Forms) -> String {
|
||||
/// friction as words when the bond carries them, and its summary; then, when the person turned to her this turn, that act
|
||||
/// and where (`turned`, map 16.21). What the bond does not carry is left out.
|
||||
fn bond_line(bond: &Value, name: &str, tuning: &Tuning, scope: Scope, her: Forms, turned: Option<&str>) -> String {
|
||||
let feel: Vec<&str> = [number(bond, &["trust"]).map(trust_words), number(bond, &["tension"]).map(friction_words)].into_iter().flatten().collect();
|
||||
let custom = text(bond, &["customRelationshipKind"]);
|
||||
let kind = clip(&one_line(if custom.is_empty() { text(bond, &["relationshipKind"]) } else { custom }), NAME_BYTES);
|
||||
|
|
@ -1068,6 +1065,9 @@ fn bond_line(bond: &Value, name: &str, tuning: &Tuning, scope: Scope, her: Forms
|
|||
let _ = write!(line, ": {}. {summary}", feel.join(", "));
|
||||
}
|
||||
}
|
||||
if let Some(place) = turned {
|
||||
let _ = write!(line, "{}Just now {name} turned to {}, {place}.", if line.ends_with('.') { " " } else { ". " }, her.obj);
|
||||
}
|
||||
line
|
||||
}
|
||||
|
||||
|
|
@ -1478,6 +1478,10 @@ impl Section {
|
|||
/// What a bond line takes beside its summary: its id, the label and the kind (each at most `NAME_BYTES`, rarely near it)
|
||||
/// and the trust and friction words.
|
||||
const BOND_HEAD_BYTES: usize = 80;
|
||||
/// What the act of turning to her takes at the end of a bond line (map 16.21): ". Just now {name} turned to {obj}, here.",
|
||||
/// the name at most `NAME_BYTES`. The people's guard holds it, so the act never pushes the bond it belongs beside off
|
||||
/// the section.
|
||||
const TURNED_BYTES: usize = NAME_BYTES + 40;
|
||||
|
||||
/// The guard of each section, in `Section` order (map 16.19.4, I16.8): the tuning's, and the people's derived (`people_guard`).
|
||||
/// No section's guard is another's, so no section's content can displace another's.
|
||||
|
|
@ -1486,10 +1490,11 @@ fn guards(tuning: &Tuning, her: Forms) -> [usize; SECTIONS] {
|
|||
[select.outcome_bytes, select.here_bytes, select.body_bytes, people_guard(tuning, her), select.notes_bytes]
|
||||
}
|
||||
|
||||
/// The people's guard: its heading and the bonds a packet shows in full, each a summary and its head with its newline.
|
||||
/// The people's guard: its heading and the bonds a packet shows in full, each a summary, its head, the act of turning to
|
||||
/// her, and its newline.
|
||||
pub(crate) fn people_guard(tuning: &Tuning, her: Forms) -> usize {
|
||||
let select = &tuning.select;
|
||||
let bond = select.bond_summary_bytes.saturating_add(BOND_HEAD_BYTES).saturating_add(1);
|
||||
let bond = select.bond_summary_bytes.saturating_add(BOND_HEAD_BYTES).saturating_add(TURNED_BYTES).saturating_add(1);
|
||||
Section::People.heading(her).len().saturating_add(select.people_full.saturating_mul(bond))
|
||||
}
|
||||
|
||||
|
|
@ -1646,11 +1651,19 @@ pub(crate) fn select(inputs: &Inputs, tuning: &Tuning) -> Packet {
|
|||
let mut named = Vec::new();
|
||||
let mut private = Vec::new();
|
||||
let mut full = 0;
|
||||
let turned = turned_to_her(inputs);
|
||||
for (id, name) in &present {
|
||||
let turned = turned.iter().find(|(person, _)| person == id).map(|(_, place)| place.as_str());
|
||||
// Unbonded, or no room for the bond line: named on the also-here line, with the act when there was one.
|
||||
let also = match turned {
|
||||
Some("here") => format!("{name}, who turned to {} just now", her.obj),
|
||||
Some(place) => format!("{name}, who turned to {} just now, {place}", her.obj),
|
||||
None => name.clone(),
|
||||
};
|
||||
match bonds.iter().find(|bond| live(bond) && inputs.people.person_of(text(bond, &["object", "id"])) == *id) {
|
||||
Some(bond) if full < tuning.select.people_full => {
|
||||
let scope = scope(inputs, concerns(&inputs.people, bond).as_ref(), &present_ids);
|
||||
if context.push(Section::People, bond_line(bond, name, tuning, scope, her)) {
|
||||
if context.push(Section::People, bond_line(bond, name, tuning, scope, her, turned)) {
|
||||
full += 1;
|
||||
ids.push(text(bond, &["id"]).to_owned());
|
||||
if scope != Scope::Omitted && one_line(text(bond, &["summary"])).len() > tuning.select.bond_summary_bytes {
|
||||
|
|
@ -1660,22 +1673,10 @@ pub(crate) fn select(inputs: &Inputs, tuning: &Tuning) -> Packet {
|
|||
private.push(one_line(text(bond, &["summary"])));
|
||||
}
|
||||
} else {
|
||||
named.push(name.clone());
|
||||
named.push(also);
|
||||
}
|
||||
}
|
||||
_ => named.push(name.clone()),
|
||||
}
|
||||
}
|
||||
// Who just spoke to her, first among the room lines, in at most half of what the guard has left, newest kept and the
|
||||
// rest counted.
|
||||
if inputs.kind == TurnKind::Chat {
|
||||
let lines = just_now(inputs);
|
||||
let (kept, dropped) = newest_that_fit(&lines, context.room(Section::Here) / 2);
|
||||
if dropped > 0 {
|
||||
context.push(Section::Here, format!("- ({dropped} earlier just now not shown)"));
|
||||
}
|
||||
for line in kept {
|
||||
context.push(Section::Here, line);
|
||||
_ => named.push(also),
|
||||
}
|
||||
}
|
||||
let conversation = conversation(inputs, tuning);
|
||||
|
|
|
|||
|
|
@ -1345,13 +1345,16 @@ fn no_section_crowds_another() {
|
|||
within_guards(&packet, &Tuning::default());
|
||||
}
|
||||
// A bond line that does not fit the people's guard names the person under here and now instead.
|
||||
// Libby's bond carries a kind at its full 80 bytes, so her line's head passes what the guard allows a head.
|
||||
// Libby's bond carries a label and a kind at their full 80 bytes, so her line's head passes what the guard allows a
|
||||
// head, past the room the act of turning to her leaves unused (map 16.21); she is named with that act instead.
|
||||
let mut tuning = Tuning::default();
|
||||
tuning.select.bond_summary_bytes = 20;
|
||||
let mut wide = rich.clone();
|
||||
let long = "L".repeat(80);
|
||||
wide["affect"]["socialBonds"][0]["customRelationshipKind"] = json!("k".repeat(80));
|
||||
wide["affect"]["socialBonds"][0]["object"]["label"] = json!(long);
|
||||
let packet = packet_tuned(TurnKind::Chat, &wide, &chat_room(), &History::default(), 1, &tuning);
|
||||
assert!(packet.context.contains("- bond [bond-kiko]") && !packet.context.contains("- bond [bond-libby]") && packet.context.contains("- also here: Libby"), "{}", packet.context);
|
||||
assert!(packet.context.contains("- bond [bond-kiko]") && !packet.context.contains("- bond [bond-libby]") && packet.context.contains(&format!("- also here: {long}, who turned to her just now")), "{}", packet.context);
|
||||
assert_eq!(packet.sections.bound, ["people"], "the people's guard bound, and only it");
|
||||
within_guards(&packet, &tuning);
|
||||
// Here and now at its floor keeps the hour and the mood, and drops what does not fit.
|
||||
|
|
@ -1638,7 +1641,7 @@ fn a_state_without_a_mood_or_with_bare_items_says_nothing_of_records_or_readings
|
|||
for word in ["mood", "record", "reading", "measure", "none", "empty"] {
|
||||
assert!(!text.contains(word), "{word} in: {text}");
|
||||
}
|
||||
assert!(packet.context.contains("- bond [bond-libby] Libby\n") || packet.context.ends_with("- bond [bond-libby] Libby"), "a bond with nothing in it names the person and no more: {}", packet.context);
|
||||
assert!(packet.context.contains("- bond [bond-libby] Libby. Just now Libby turned to them, here.\n") || packet.context.ends_with("- bond [bond-libby] Libby. Just now Libby turned to them, here."), "a bond with nothing in it names the person and no more, then the act (map 16.21): {}", packet.context);
|
||||
assert!(!packet.context.contains("trust") && !packet.context.contains("friction") && !packet.context.contains("easy between"), "{}", packet.context);
|
||||
}
|
||||
}
|
||||
|
|
@ -1672,7 +1675,8 @@ fn the_projector_frame_is_huginns_lived_frame_and_carries_no_ghostlight_membrane
|
|||
}
|
||||
// Self's frame gaps after Soul's K1-K3 pass: Ghostlight's unknown-plainly and no-recap rules, focus, no options, no
|
||||
// invented acts or lines, and the sketch of who she is as material too.
|
||||
for added in ["say plainly what is unknown rather than filling it", "Do not recap", "Render the two or three notes this moment touches and leave the rest.", "Do not weigh options, list what she might say or do, or steer toward a decision: end where the moment is, not on a resolution.", "no act or event of her own (nothing she did, drafted, sent or decided) and no line anyone said that is not below", "How her words run is the stream's idiom, never its material"] {
|
||||
assert!(!narrate::projector_frame(packet.forms).contains("unknown"), "the unknown clause is deleted (map 16.21)");
|
||||
for added in ["Do not recap", "Render the two or three notes this moment touches and leave the rest.", "Do not weigh options, list what she might say or do, or steer toward a decision: end where the moment is, not on a resolution.", "no act or event of her own (nothing she did, drafted, sent or decided) and no line anyone said that is not below", "How her words run is the stream's idiom, never its material"] {
|
||||
assert!(narrate::projector_frame(packet.forms).contains(added), "{added}");
|
||||
}
|
||||
let guidance = Tuning::default().projector.guidance;
|
||||
|
|
@ -1758,7 +1762,7 @@ fn every_frame_and_default_guidance_speaks_of_him_or_them_in_their_own_pronouns(
|
|||
assert!(parts[0].1.contains(&format!("in {theirs} own thought")) && parts[3].1.starts_with(&format!("Continue {theirs} inner stream")), "{pronouns}");
|
||||
// The prompts' own headings follow the same owner.
|
||||
let projector = narrate::projector_prompt(&packet, &tuning);
|
||||
assert!(projector.contains(&format!("\n- just now: Libby spoke to {} here, 3 min ago\n", her.obj)) && projector.contains(&format!("\n\nWho {} {}:\nHeimdall", her.subj, her.be)), "{projector}");
|
||||
assert!(projector.contains(&format!(" Just now Libby turned to {}, here.\n", her.obj)) && projector.contains(&format!("\n\nWho {} {}:\nHeimdall", her.subj, her.be)), "{projector}");
|
||||
let speech = interpret::speech_prompt(&packet, "x", "y", &tuning);
|
||||
assert!(speech.contains(&format!("{} prose:\ny", select::capitalized(her.poss))), "{speech}");
|
||||
}
|
||||
|
|
@ -2013,7 +2017,7 @@ fn soul_k13_the_projector_sees_who_said_something_and_never_the_words() {
|
|||
assert!(persona.contains(SENTINEL) && speech.contains(SENTINEL), "{kind:?}: the Persona and the Interpreter read the words verbatim: {persona}");
|
||||
}
|
||||
let packet = packet_of(TurnKind::Chat, &state(), &chat, &History::default(), 1);
|
||||
assert!(packet.arrival.is_empty() && packet.context.contains("\n- just now: Libby spoke to her here, 3 min ago\n- also just now: Kiko spoke here\n"), "who, where and when is room state (map 16.20.1): {}", packet.context);
|
||||
assert!(packet.arrival.is_empty() && packet.context.contains(" Just now Libby turned to her, here.\n") && !packet.context.contains("Kiko turned"), "who, where and when is the act on the person's line (map 16.21): {}", packet.context);
|
||||
assert!(!tuning.projector.guidance.contains("retell"), "the retelling sentence is dead: the Projector never sees the words");
|
||||
}
|
||||
|
||||
|
|
@ -2116,7 +2120,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 spoke to her here, 2 min ago\n- also just now: Kiko spoke here"), "{}", packet.context);
|
||||
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);
|
||||
// With the group state off, neither part is said.
|
||||
let mut off = Tuning::default();
|
||||
off.select.group_state = false;
|
||||
|
|
@ -2124,6 +2128,57 @@ fn k15_the_speaking_cues_reach_the_persona_and_the_interpreter_and_never_the_pro
|
|||
assert!(quiet.speaking.is_empty() && !quiet.context.contains("- the conversation"), "{}", quiet.context);
|
||||
}
|
||||
|
||||
/// Map 16.21: the arrival is an act on the person's own line, a bonded sender's bond line or an unbonded sender's name on
|
||||
/// the also-here line; someone who spoke this turn, not to her, gets none; and Here and now holds no "just now" line.
|
||||
#[test]
|
||||
fn k21_whoever_turned_to_her_does_so_on_their_own_line() {
|
||||
let room = Room {
|
||||
messages: vec![message("#swarm:gamecult.org", OPERATOR, "Meta", "Eureka, are you around?", 2, true), message("#swarm:gamecult.org", "@deru:gamecult.org", "Deru", "Eureka, quick one", 2, true), message("#swarm:gamecult.org", "@kiko:gamecult.org", "Kiko", "hi all", 1, false)],
|
||||
here: Some("#swarm:gamecult.org".into()),
|
||||
..Room::default()
|
||||
};
|
||||
let packet = packet_of(TurnKind::Chat, &state(), &room, &History::default(), 1);
|
||||
let bond = packet.context.lines().find(|line| line.starts_with("- bond [bond-operator]")).unwrap_or_default();
|
||||
assert!(bond.ends_with(" Just now Meta, the operator turned to her, here."), "the bonded sender's own line: {}", packet.context);
|
||||
let also = packet.context.lines().find(|line| line.starts_with("- also here:")).unwrap_or_default();
|
||||
assert!(also.contains("\"Deru\" (@deru:gamecult.org), who turned to her just now"), "the unbonded sender's own entry: {}", packet.context);
|
||||
assert!(!packet.context.contains("Kiko turned") && !packet.context.contains("Kiko, who turned") && !packet.context.contains("just now:"), "{}", packet.context);
|
||||
}
|
||||
|
||||
/// Map 16.21's negative check: outside the frame's no-furnishing sentence and the notes, the Projector's prompt says
|
||||
/// nothing of speech or of what is unknown. Also exempt, as about her own idiom and the budget and never the arrival: the
|
||||
/// voice heading, the frame's idiom sentence and the word budget ("words").
|
||||
#[test]
|
||||
fn k21_the_projector_prompt_names_no_speech_and_nothing_unknown() {
|
||||
let room = Room {
|
||||
messages: vec![message("#swarm:gamecult.org", OPERATOR, "Meta", "Eureka, are you around?", 2, true), message("#swarm:gamecult.org", "@deru:gamecult.org", "Deru", "Eureka, quick one", 2, true), message("#swarm:gamecult.org", "@kiko:gamecult.org", "Kiko", "hi all", 1, false)],
|
||||
here: Some("#swarm:gamecult.org".into()),
|
||||
..Room::default()
|
||||
};
|
||||
let tuning = Tuning::default();
|
||||
for seed in 1..=8 {
|
||||
let packet = packet_of(TurnKind::Chat, &state(), &room, &History::default(), seed);
|
||||
let projector = narrate::projector_prompt(&packet, &tuning);
|
||||
let notes = projector.find("Notes about her, set down at another time:").unwrap_or(projector.len());
|
||||
let end = projector.find("\n\nUse at most").unwrap_or(projector.len());
|
||||
let mut rest = format!("{}{}", &projector[..notes], &projector[end..]);
|
||||
for exempt in [
|
||||
"Furnish no place, object or event these do not give: no act or event of her own (nothing she did, drafted, sent or decided) and no line anyone said that is not below.",
|
||||
"How her words run is the stream's idiom, never its material: it shows in how the stream moves, and nothing in the stream remarks on it.",
|
||||
"How her words run:",
|
||||
"Use at most 150 words.",
|
||||
] {
|
||||
assert!(rest.contains(exempt), "{exempt}");
|
||||
rest = rest.replace(exempt, "");
|
||||
}
|
||||
let words: Vec<String> = rest.split(|c: char| !c.is_alphanumeric()).map(str::to_lowercase).collect();
|
||||
for banned in ["spoke", "said", "line", "words", "unknown"] {
|
||||
assert!(!words.iter().any(|word| word == banned), "seed {seed}: {banned:?} in {rest}");
|
||||
}
|
||||
assert!(!rest.contains("just now:"), "{rest}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn k19_the_conversation_on_screen_reaches_the_persona_and_the_interpreter_and_never_the_projector() {
|
||||
const QUESTION: &str = "Eureka, WALNUT-QUESTION: how is the door fix going?";
|
||||
|
|
|
|||
Loading…
Reference in a new issue