K14: one pronoun rule for every frame; her Forms is the one owner (map 16.19.7, I16.9)

The Projector's frame becomes projector_frame(her) and its headings
"Who she is" and "What reaches her" follow her Forms, as the speech
frame and the speech form already do (K1d). The default guidances name
her by Forms placeholders that select::voiced fills, so one tuning
serves every Mind; the judge's prompt too. Test doubles route on the
Projector's fixed opening.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-20 15:36:19 +01:00
commit 63858db3d0
9 changed files with 104 additions and 36 deletions

View file

@ -2,7 +2,7 @@
//! //!
//! Two stages. The Select stage (`select`) is code: it decides what she can feel this turn and renders it as a typed //! Two stages. The Select stage (`select`) is code: it decides what she can feel this turn and renders it as a typed
//! projection packet, deterministic for a seed. The narration (`narrate`) is one tool-less model call through the //! projection packet, deterministic for a seed. The narration (`narrate`) is one tool-less model call through the
//! connector that renders the packet as her first-person present under Huginn's own frame (`narrate::PROJECTOR_FRAME`, //! connector that renders the packet as her first-person present under Huginn's own frame (`narrate::projector_frame`,
//! map section 16.3; the Persona stage's membrane stays Ghostlight's). Every knob of both is `persona-tuning.toml` (`tuning`), read at each //! map section 16.3; the Persona stage's membrane stays Ghostlight's). Every knob of both is `persona-tuning.toml` (`tuning`), read at each
//! wake, its hash carried with the packet. //! wake, its hash carried with the packet.
//! //!

View file

@ -29,21 +29,21 @@ Also in the room:
Libby, in #swarm:gamecult.org: "Eureka, did you see the door fix?" Libby, in #swarm:gamecult.org: "Eureka, did you see the door fix?"
Kiko, in #swarm:gamecult.org: "She saw it. She hated it." Kiko, in #swarm:gamecult.org: "She saw it. She hated it."
--- projector prompt --- 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 they will go on to continue in their own thought. Their interior is the point: what they feel, want, fear and remember, and how the people here sit with them, rendered as lived, not listed. 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 they are, their present under its headings, and what reaches them. 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 they do not give: no act or event of their own (nothing they did, drafted, sent or decided) and no line anyone said that is not below. Each heading says what its lines are. Here and now is the hour, how their mood leans when it does, and the room as it stands. Their body is how the moment reaches them and how they can answer it: it is not news to them, and a lack in it is felt only when the moment reaches for something it cannot do. The people here are as they hold them, not as those people are. The notes about them were set down at another time, by others and by their own past self: all of it is material for the stream and never its wording. How their 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, her present under its headings, and what reaches her. 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. 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 or what reaches them. Do not weigh options, list what they 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. Render the two or three notes this moment touches and leave the rest. Do not recap the notes or what reaches her. 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.
How her words run: How her words run:
Dry, direct, almost feral; zeal aimed at revealing. Dry, direct, almost feral; zeal aimed at revealing.
Guidance: Guidance:
This person is a Mind of the GameCult swarm. She lives in its chat rooms among the operator, the other Minds and whoever drops by. Render the moment as she lives it: who is here and how they sit with her, what she carries, what she wants. What was said reaches her word for word after this stream, so never retell or summarise it: render what it stirs in her and what she makes of the people who said it. Render the conversation as it stands. Leave out whatever the context does not carry: an absence is not part of her moment. Use each person's pronouns as given. This person is a Mind of the GameCult swarm. She lives in its chat rooms among the operator, the other Minds and whoever drops by. Render the moment as she lives it: who is here and how they sit with her, what she holds, what she wants. What was said reaches her word for word after this stream, so never retell or summarise it: render what it stirs in her and what she makes of the people who said it. Render the conversation as it stands. Leave out whatever the context does not carry: an absence is not part of her moment. Use each person's pronouns as given.
Begin from something she still wants and has not got. Begin from something she still wants and has not got.
Who they are: Who she is:
Eureka (she/her) Eureka (she/her)
Here and now: Here and now:
@ -63,7 +63,7 @@ Notes about her, set down at another time:
- need [need-relatedness], strong: She wants company that answers back. The room talks past her. - need [need-relatedness], strong: She wants company that answers back. The room talks past her.
- value [reveal] Reveal: Reveal, never obscure. - value [reveal] Reveal: Reveal, never obscure.
What reaches them: What reaches her:
Said to her: Said to her:
- Libby in #swarm:gamecult.org: "Eureka, did you see the door fix?" - Libby in #swarm:gamecult.org: "Eureka, did you see the door fix?"
Also in the room: Also in the room:

View file

@ -7,7 +7,7 @@ use serde_json::{Value, json};
use super::*; use super::*;
use crate::address::is_for; use crate::address::is_for;
use crate::projection::interpret::SPEECH_OPENING; use crate::projection::interpret::SPEECH_OPENING;
use crate::projection::narrate::{Answer, Failed, PROJECTOR_FRAME, Spent}; use crate::projection::narrate::{Answer, Failed, PROJECTOR_OPENING, Spent};
const HER: &str = "@eureka:gamecult.org"; const HER: &str = "@eureka:gamecult.org";
@ -55,7 +55,7 @@ impl Model for Scripted {
self.calls.borrow_mut().push((model.to_owned(), prompt.to_owned())); self.calls.borrow_mut().push((model.to_owned(), prompt.to_owned()));
let text = if prompt.starts_with(SPEECH_OPENING) { let text = if prompt.starts_with(SPEECH_OPENING) {
(self.interpreter)(prompt) (self.interpreter)(prompt)
} else if prompt.starts_with(PROJECTOR_FRAME) { } else if prompt.starts_with(PROJECTOR_OPENING) {
"The room is slow and so is he.".to_owned() "The room is slow and so is he.".to_owned()
} else { } else {
(self.persona)(prompt) (self.persona)(prompt)

View file

@ -26,7 +26,7 @@ use serde::{Deserialize, Serialize};
use serde_json::{Value, json}; use serde_json::{Value, json};
use super::narrate::{Model, heard_overlap, lived_stream, words}; use super::narrate::{Model, heard_overlap, lived_stream, words};
use super::select::{Forms, Packet, capitalized, turn_words}; use super::select::{Forms, Packet, capitalized, turn_words, voiced};
use super::tuning::Tuning; use super::tuning::Tuning;
/// The most lines she says in one turn. /// The most lines she says in one turn.
@ -251,7 +251,7 @@ pub(crate) fn speech_prompt(packet: &Packet, narration: &str, prose: &str, tunin
numbered.push_str(&format!("- {} began one more and was cut off before finishing it: it is no draft and cannot be said\n", her.subj)); numbered.push_str(&format!("- {} began one more and was cut off before finishing it: it is no draft and cannot be said\n", her.subj));
} }
// The tuning's guidance, as a paragraph of its own; an empty one leaves no gap in the frame. // The tuning's guidance, as a paragraph of its own; an empty one leaves no gap in the frame.
let guidance = tuning.interpreter.guidance.trim(); let guidance = voiced(tuning.interpreter.guidance.trim(), her);
let guidance = if guidance.is_empty() { String::new() } else { format!("{guidance}\n\n") }; let guidance = if guidance.is_empty() { String::new() } else { format!("{guidance}\n\n") };
format!( format!(
"{}\n\n{guidance}{}\n\nWho {} {}:\n{}\n\nWhat {} can do here:\n{}.\n\nThe room: {} ({}).\nWho is in it, as label \u{2014} Matrix id:\n{people}\nWhat {} know{} privately, none of it to be said here:\n{private}\nWhat reached {}:\n{}\n\n{poss} lived moment:\n{}\n\n{poss} prose:\n{prose}\n\n{poss} drafts, by number:\n{numbered}", "{}\n\n{guidance}{}\n\nWho {} {}:\n{}\n\nWhat {} can do here:\n{}.\n\nThe room: {} ({}).\nWho is in it, as label \u{2014} Matrix id:\n{people}\nWhat {} know{} privately, none of it to be said here:\n{private}\nWhat reached {}:\n{}\n\n{poss} lived moment:\n{}\n\n{poss} prose:\n{prose}\n\n{poss} drafts, by number:\n{numbered}",

View file

@ -17,7 +17,7 @@ use serde::Serialize;
use sha2::{Digest, Sha256}; use sha2::{Digest, Sha256};
use super::interpret::{DRAFT_CLOSE, DRAFT_OPEN}; use super::interpret::{DRAFT_CLOSE, DRAFT_OPEN};
use super::select::{Forms, Packet, TurnKind}; use super::select::{Forms, Packet, TurnKind, capitalized, voiced};
use super::tuning::Tuning; use super::tuning::Tuning;
/// One tool-less model turn. `KitModel` is the one live owner; a test answers with recorded text. /// One tool-less model turn. `KitModel` is the one live owner; a test answers with recorded text.
@ -152,24 +152,38 @@ pub(crate) fn word_budget(kind: TurnKind, tuning: &Tuning) -> usize {
/// moment is perceived, not news, and a lack in it is felt only when the moment reaches for it (map 16.6); no invented act, event or /// moment is perceived, not news, and a lack in it is felt only when the moment reaches for it (map 16.6); no invented act, event or
/// line of hers or anyone's; focus on two or three notes (map 16.8: the frame owns focus, the byte caps are guards); and /// line of hers or anyone's; focus on two or three notes (map 16.8: the frame owns focus, the byte caps are guards); and
/// no options and no steering toward a decision. A fix to Ghostlight's membrane is read and ported here on purpose; /// no options and no steering toward a decision. A fix to Ghostlight's membrane is read and ported here on purpose;
/// nothing reaches this frame from it. /// nothing reaches this frame from it. In her own pronouns (map 16.19.7): never a generic "they" beside a packet in "he".
pub(crate) const PROJECTOR_FRAME: &str = "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 they will go on to continue in their own thought. Their interior is the point: what they feel, want, fear and remember, and how the people here sit with them, rendered as lived, not listed. pub(crate) fn projector_frame(her: Forms) -> String {
let Forms { subj, obj, poss, be, s, .. } = her;
let cap_poss = capitalized(poss);
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 they are, their present under its headings, and what reaches them. 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 they do not give: no act or event of their own (nothing they did, drafted, sent or decided) and no line anyone said that is not below. Each heading says what its lines are. Here and now is the hour, how their mood leans when it does, and the room as it stands. Their body is how the moment reaches them and how they can answer it: it is not news to them, and a lack in it is felt only when the moment reaches for something it cannot do. The people here are as they hold them, not as those people are. The notes about them were set down at another time, by others and by their own past self: all of it is material for the stream and never its wording. How their 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}, {poss} present under its headings, and what reaches {obj}. 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. 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 or what reaches them. Do not weigh options, list what they 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."; Render the two or three notes this moment touches and leave the rest. Do not recap the notes or what reaches {obj}. 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."
)
}
/// How every Projector prompt begins, whoever she is: the test doubles route on it.
pub(crate) const PROJECTOR_OPENING: &str = "You are a private Projector.";
/// The Projector's prompt, in this order: the frame, how her words run (her voice, under its own heading, map 16.19.3), /// The Projector's prompt, in this order: the frame, how her words run (her voice, under its own heading, map 16.19.3),
/// the tuning's guidance, the lens as where to begin, her name, the packet's headed sections, the stimulus and the word /// the tuning's guidance, the lens as where to begin, her name, the packet's headed sections, the stimulus and the word
/// budget. /// budget.
pub(crate) fn projector_prompt(packet: &Packet, tuning: &Tuning) -> String { pub(crate) fn projector_prompt(packet: &Packet, tuning: &Tuning) -> String {
let voice = if packet.voice.is_empty() { String::new() } else { format!("How {} words run:\n{}\n\n", packet.forms.poss, packet.voice) }; let her = packet.forms;
let voice = if packet.voice.is_empty() { String::new() } else { format!("How {} words run:\n{}\n\n", her.poss, packet.voice) };
format!( format!(
"{PROJECTOR_FRAME}\n\n{voice}Guidance:\n{}\n\nBegin from {}.\n\nWho they are:\n{}\n\n{}\n\nWhat reaches them:\n{}\n\nUse at most {} words. Return only the lived stream.", "{}\n\n{voice}Guidance:\n{}\n\nBegin from {}.\n\nWho {} {}:\n{}\n\n{}\n\nWhat reaches {}:\n{}\n\nUse at most {} words. Return only the lived stream.",
tuning.projector.guidance.trim(), projector_frame(her),
voiced(tuning.projector.guidance.trim(), her),
packet.lens.words(&packet.forms), packet.lens.words(&packet.forms),
her.subj,
her.be,
packet.name, packet.name,
packet.context, packet.context,
her.obj,
packet.stimulus, packet.stimulus,
word_budget(packet.kind, tuning), word_budget(packet.kind, tuning),
) )
@ -231,7 +245,7 @@ pub(crate) fn persona_speech_form(her: Forms) -> String {
/// (invariant 7). The domain guidance is code's speech form, then the tuning's setting line: Ghostlight's membrane is /// (invariant 7). The domain guidance is code's speech form, then the tuning's setting line: Ghostlight's membrane is
/// unchanged. /// unchanged.
pub(crate) fn persona_prompt(packet: &Packet, narration: &str, tuning: &Tuning) -> String { pub(crate) fn persona_prompt(packet: &Packet, narration: &str, tuning: &Tuning) -> String {
let guidance = tuning.persona.guidance.trim(); let guidance = voiced(tuning.persona.guidance.trim(), packet.forms);
let form = persona_speech_form(packet.forms); let form = persona_speech_form(packet.forms);
let domain_guidance = if guidance.is_empty() { form } else { format!("{form}\n\n{guidance}") }; let domain_guidance = if guidance.is_empty() { form } else { format!("{form}\n\n{guidance}") };
build_persona_prompt(&PersonaPrompt { identity: &packet.name, lived_stream: &lived_stream(narration, &packet.heard), domain_guidance: &domain_guidance, word_budget: tuning.persona.words }) build_persona_prompt(&PersonaPrompt { identity: &packet.name, lived_stream: &lived_stream(narration, &packet.heard), domain_guidance: &domain_guidance, word_budget: tuning.persona.words })
@ -399,8 +413,9 @@ pub(crate) fn distinct_2(narrations: &[String]) -> f64 {
/// The judge's question: which of two packets a narration was written from. /// The judge's question: which of two packets a narration was written from.
pub(crate) fn judge_prompt(first: &Packet, second: &Packet, narration: &str) -> String { pub(crate) fn judge_prompt(first: &Packet, second: &Packet, narration: &str) -> String {
let poss = first.forms.poss;
format!( format!(
"Two descriptions, A and B, of one person's present moment differ in what she carries. Below them is a first-person passage written from exactly one of them. Answer with the single letter of the description the passage was written from: A or B.\n\nA:\n{}\n{}\n\nB:\n{}\n{}\n\nPassage:\n{narration}\n\nAnswer A or B.", "Two descriptions, A and B, of one person's present moment differ in what is on {poss} mind. Below them is a first-person passage written from exactly one of them. Answer with the single letter of the description the passage was written from: A or B.\n\nA:\n{}\n{}\n\nB:\n{}\n{}\n\nPassage:\n{narration}\n\nAnswer A or B.",
first.context, first.stimulus, second.context, second.stimulus first.context, first.stimulus, second.context, second.stimulus
) )
} }

View file

@ -76,6 +76,14 @@ pub(crate) fn forms(state: &Value) -> Forms {
} }
} }
/// A text in her pronouns (map 16.19.7): the tuning's guidance names her by the fields of `Forms` in braces (`{subj}`,
/// `{obj}`, `{poss}`; `{cap_subj}` and `{cap_poss}` to begin a sentence; `{be}`, `{has}` and `{s}` where a verb agrees),
/// and code fills them, so one file serves every Mind and none is called "she" who is not.
pub(crate) fn voiced(text: &str, her: Forms) -> String {
let cap_poss = capitalized(her.poss);
[("{subj}", her.subj), ("{cap_subj}", her.cap_subj), ("{obj}", her.obj), ("{poss}", her.poss), ("{cap_poss}", cap_poss.as_str()), ("{be}", her.be), ("{has}", her.has), ("{s}", her.s)].iter().fold(text.to_owned(), |text, &(mark, word)| text.replace(mark, word))
}
/// What kind of turn the packet is for. The stimulus and nothing else differs between them. /// What kind of turn the packet is for. The stimulus and nothing else differs between them.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, serde::Deserialize)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")] #[serde(rename_all = "snake_case")]

View file

@ -6,7 +6,7 @@ use serde_json::Value;
use super::*; use super::*;
use crate::projection::harness::tests::{Scripted, control}; use crate::projection::harness::tests::{Scripted, control};
use serde_json::json; use serde_json::json;
use crate::projection::narrate::PROJECTOR_FRAME; use crate::projection::narrate::PROJECTOR_OPENING;
use crate::projection::{Answer, Failed, Model, Spent}; use crate::projection::{Answer, Failed, Model, Spent};
const TOBIAH: &str = "@eureka:gamecult.org"; const TOBIAH: &str = "@eureka:gamecult.org";
@ -211,7 +211,7 @@ struct FailingPersona;
impl Model for FailingPersona { impl Model for FailingPersona {
fn ask(&self, _request_id: &str, model: &str, prompt: &str, _schema: Option<&str>) -> std::result::Result<Answer, Failed> { fn ask(&self, _request_id: &str, model: &str, prompt: &str, _schema: Option<&str>) -> std::result::Result<Answer, Failed> {
if prompt.starts_with(PROJECTOR_FRAME) { if prompt.starts_with(PROJECTOR_OPENING) {
Ok(Answer { text: "The room is slow.".into(), usage: None }) Ok(Answer { text: "The room is slow.".into(), usage: None })
} else { } else {
Err(Failed { reason: "the provider failed the call: Overloaded".into(), usage: Some(Spent { model: model.into(), input_tokens: 5, output_tokens: 0, cache_read_tokens: 0, cache_write_tokens: 0, reasoning_tokens: None }) }) Err(Failed { reason: "the provider failed the call: Overloaded".into(), usage: Some(Spent { model: model.into(), input_tokens: 5, output_tokens: 0, cache_read_tokens: 0, cache_write_tokens: 0, reasoning_tokens: None }) })

View file

@ -8,7 +8,7 @@ use anyhow::Result;
use chrono::{DateTime, Utc}; use chrono::{DateTime, Utc};
use serde_json::{Value, json}; use serde_json::{Value, json};
use super::narrate::{INSTRUCTIONS, MAX_OUTPUT_TOKENS, PROJECTOR_FRAME}; use super::narrate::{INSTRUCTIONS, MAX_OUTPUT_TOKENS, PROJECTOR_OPENING};
use super::select::{Lens, Overflow, Pool}; use super::select::{Lens, Overflow, Pool};
use super::tuning::Tuning; use super::tuning::Tuning;
use super::*; use super::*;
@ -861,7 +861,7 @@ impl Recorded {
impl Model for Recorded { impl Model for Recorded {
fn ask(&self, request_id: &str, model: &str, prompt: &str, _schema: Option<&str>) -> std::result::Result<Answer, Failed> { fn ask(&self, request_id: &str, model: &str, prompt: &str, _schema: Option<&str>) -> std::result::Result<Answer, Failed> {
self.calls.borrow_mut().push((request_id.to_owned(), model.to_owned(), prompt.to_owned())); self.calls.borrow_mut().push((request_id.to_owned(), model.to_owned(), prompt.to_owned()));
let text = if prompt.starts_with(PROJECTOR_FRAME) { (self.narration)(prompt) } else { (self.judge)(prompt) }; let text = if prompt.starts_with(PROJECTOR_OPENING) { (self.narration)(prompt) } else { (self.judge)(prompt) };
let usage = Spent { model: model.to_owned(), input_tokens: prompt.len() as u64, output_tokens: text.len() as u64, cache_read_tokens: 7, cache_write_tokens: 3, reasoning_tokens: None }; let usage = Spent { model: model.to_owned(), input_tokens: prompt.len() as u64, output_tokens: text.len() as u64, cache_read_tokens: 7, cache_write_tokens: 3, reasoning_tokens: None };
Ok(Answer { text, usage: Some(usage) }) Ok(Answer { text, usage: Some(usage) })
} }
@ -1501,7 +1501,7 @@ fn a_failed_call_keeps_the_report_and_its_usage() {
match self.0.get() { match self.0.get() {
3 => Err(Failed { reason: "the model's turn ended early: MaxOutputTokens".into(), usage }), 3 => Err(Failed { reason: "the model's turn ended early: MaxOutputTokens".into(), usage }),
5 => Err(Failed { reason: "the connector did not answer".into(), usage: None }), 5 => Err(Failed { reason: "the connector did not answer".into(), usage: None }),
_ => Ok(Answer { text: if prompt.starts_with(PROJECTOR_FRAME) { "I am here. The room is quiet.".into() } else { "A".into() }, usage }), _ => Ok(Answer { text: if prompt.starts_with(PROJECTOR_OPENING) { "I am here. The room is quiet.".into() } else { "A".into() }, usage }),
} }
} }
} }
@ -1653,15 +1653,15 @@ fn every_person_the_packet_names_from_the_room_has_pronouns_and_an_unknown_one_i
fn the_projector_frame_is_huginns_lived_frame_and_carries_no_ghostlight_membrane() { fn the_projector_frame_is_huginns_lived_frame_and_carries_no_ghostlight_membrane() {
let packet = packet_of(TurnKind::Chat, &state(), &chat_room(), &History::default(), 1); let packet = packet_of(TurnKind::Chat, &state(), &chat_room(), &History::default(), 1);
let prompt = narrate::projector_prompt(&packet, &Tuning::default()); let prompt = narrate::projector_prompt(&packet, &Tuning::default());
assert!(prompt.starts_with(PROJECTOR_FRAME), "{prompt}"); assert!(prompt.starts_with(PROJECTOR_OPENING), "{prompt}");
assert!(!prompt.contains("membrane") && !prompt.contains(ghostlight_persona_projection::MEMBRANE_SCHEMA), "no Ghostlight projector membrane marker: {prompt}"); assert!(!prompt.contains("membrane") && !prompt.contains(ghostlight_persona_projection::MEMBRANE_SCHEMA), "no Ghostlight projector membrane marker: {prompt}");
for dropped in ["no temperament", "No metaphor", "no atmosphere", "Say only what changes the decision", "thin stream"] { for dropped in ["no temperament", "No metaphor", "no atmosphere", "Say only what changes the decision", "thin stream"] {
assert!(!prompt.contains(dropped), "dropped from Ghostlight's frame (map 16.3): {dropped}"); assert!(!prompt.contains(dropped), "dropped from Ghostlight's frame (map 16.3): {dropped}");
} }
// Self's frame gaps after Soul's K1-K3 pass: Ghostlight's unknown-plainly and no-recap rules, focus, no options, no // 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. // 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 they might say or do, or steer toward a decision: end where the moment is, not on a resolution.", "no act or event of their own (nothing they did, drafted, sent or decided) and no line anyone said that is not below", "How their words run is the stream's idiom, never its material"] { 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!(PROJECTOR_FRAME.contains(added), "{added}"); assert!(narrate::projector_frame(packet.forms).contains(added), "{added}");
} }
let guidance = Tuning::default().projector.guidance; let guidance = Tuning::default().projector.guidance;
assert!(!guidance.contains("weigh options"), "the frame owns it; the guidance does not repeat it"); assert!(!guidance.contains("weigh options"), "the frame owns it; the guidance does not repeat it");
@ -1669,9 +1669,9 @@ fn the_projector_frame_is_huginns_lived_frame_and_carries_no_ghostlight_membrane
assert!(prompt.contains(kept), "{kept}"); assert!(prompt.contains(kept), "{kept}");
} }
let at = |part: &str| prompt.find(part).unwrap_or_else(|| panic!("{part} in {prompt}")); let at = |part: &str| prompt.find(part).unwrap_or_else(|| panic!("{part} in {prompt}"));
let order = ["How her words run:\n", "Guidance:\n", "Begin from ", "Who they are:\n", "Here and now:\n", "People here, as she holds them:\n", "Notes about her, set down at another time:\n", "What reaches them:\n", "Use at most "]; let order = ["How her words run:\n", "Guidance:\n", "Begin from ", "Who she is:\n", "Here and now:\n", "People here, as she holds them:\n", "Notes about her, set down at another time:\n", "What reaches her:\n", "Use at most "];
assert!(order.windows(2).all(|pair| at(pair[0]) < at(pair[1])), "the frame, the voice, the guidance, the lens, the name, the sections, the stimulus, the budget: {prompt}"); assert!(order.windows(2).all(|pair| at(pair[0]) < at(pair[1])), "the frame, the voice, the guidance, the lens, the name, the sections, the stimulus, the budget: {prompt}");
assert!(!PROJECTOR_FRAME.contains("manner"), "the heading carries what the manner sentence said"); assert!(!narrate::projector_frame(packet.forms).contains("manner"), "the heading carries what the manner sentence said");
assert!(!prompt.contains("Notes on their present"), "the sections carry their own headings: {prompt}"); assert!(!prompt.contains("Notes on their present"), "the sections carry their own headings: {prompt}");
} }
@ -1683,7 +1683,7 @@ fn her_voice_reaches_the_projector_and_no_other_stage() {
let tuning = Tuning::default(); let tuning = Tuning::default();
let projector = narrate::projector_prompt(&packet, &tuning); let projector = narrate::projector_prompt(&packet, &tuning);
// Under its own heading, after the frame and before the guidance: the stream's idiom, not who she is (map 16.19.3). // Under its own heading, after the frame and before the guidance: the stream's idiom, not who she is (map 16.19.3).
assert!(projector.contains("\n\nHow her words run:\nSpeaks in quartz-sentinel cadences.\n\nGuidance:\n") && projector.contains("Who they are:\nEureka (she/her)\n"), "{projector}"); assert!(projector.contains("\n\nHow her words run:\nSpeaks in quartz-sentinel cadences.\n\nGuidance:\n") && projector.contains("Who she is:\nEureka (she/her)\n"), "{projector}");
assert_eq!(projector.matches("quartz-sentinel").count(), 1, "{projector}"); assert_eq!(projector.matches("quartz-sentinel").count(), 1, "{projector}");
let mut quiet = packet.clone(); let mut quiet = packet.clone();
quiet.voice = String::new(); quiet.voice = String::new();
@ -1716,6 +1716,51 @@ fn the_projector_is_told_not_to_retell_not_to_offer_options_and_not_to_owe() {
assert!(!persona.contains("quotation marks") && !persona.contains("@"), "no other speech convention: the Interpreter decides what is sent"); assert!(!persona.contains("quotation marks") && !persona.contains("@"), "no other speech convention: the Interpreter decides what is sent");
} }
/// Whether a text calls someone "she" or "her", as a word.
fn says_she(text: &str) -> bool {
text.split(|c: char| !c.is_alphabetic()).any(|word| word.eq_ignore_ascii_case("she") || word.eq_ignore_ascii_case("her") || word.eq_ignore_ascii_case("hers") || word.eq_ignore_ascii_case("herself"))
}
#[test]
fn every_frame_and_default_guidance_speaks_of_him_or_them_in_their_own_pronouns() {
let tuning = Tuning::default();
for (pronouns, theirs) in [("he/him", "his"), ("they/them (any pronouns)", "their")] {
let mut state = json!({ "publicName": "Heimdall", "presentation": { "pronouns": pronouns } });
state["affect"] = state_value_affect();
let packet = packet_of(TurnKind::Chat, &state, &chat_room(), &History::default(), 1);
let her = packet.forms;
// Code's frames and the default guidances, in each of the three prompts: none holds "she" or "her" for him.
let parts = [
("the Projector's frame", narrate::projector_frame(her)),
("the Projector's guidance", select::voiced(&tuning.projector.guidance, her)),
("the speech form", narrate::persona_speech_form(her)),
("the Persona's guidance", select::voiced(&tuning.persona.guidance, her)),
("the Interpreter's guidance", select::voiced(&tuning.interpreter.guidance, her)),
];
for (part, text) in &parts {
assert!(!says_she(text) && !text.contains('{'), "{pronouns}: {part} says she or keeps a placeholder: {text}");
}
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\nWhat reaches {}:\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}");
}
// A tuning's guidance written with placeholders renders per Mind.
let mut written = Tuning::default();
written.projector.guidance = "{cap_subj} {be} here; {poss} room is quiet, and nobody asks {obj} anything.".into();
for (pronouns, rendered) in [("she/her", "She is here; her room is quiet, and nobody asks her anything."), ("he/him", "He is here; his room is quiet, and nobody asks him anything."), ("any", "They are here; their room is quiet, and nobody asks them anything.")] {
let packet = packet_of(TurnKind::Beat, &json!({ "publicName": "M", "presentation": { "pronouns": pronouns } }), &Room::default(), &History::default(), 1);
assert!(narrate::projector_prompt(&packet, &written).contains(&format!("Guidance:\n{rendered}\n")), "{pronouns}");
}
}
/// The bonds of `state()`, so a packet shows people here.
fn state_value_affect() -> Value {
json!({ "socialBonds": state()["affect"]["socialBonds"].clone() })
}
#[test] #[test]
fn the_narration_checks_flag_an_option_menu_and_a_retelling_and_pass_a_reaction() { fn the_narration_checks_flag_an_option_menu_and_a_retelling_and_pass_a_reaction() {
// Round 1 of the humans_pace run of 2026-11-20, as the Projector wrote it. // Round 1 of the humans_pace run of 2026-11-20, as the Projector wrote it.

View file

@ -21,11 +21,11 @@ pub const TUNING_FILE: &str = "persona-tuning.toml";
/// The Persona stage's setting (map section 2): she continues the Projector's paragraph, her interior. It is not a reply /// The Persona stage's setting (map section 2): she continues the Projector's paragraph, her interior. It is not a reply
/// to the room. How she sets down words she would type is code's form, not this (`narrate::persona_speech_form`, map /// to the room. How she sets down words she would type is code's form, not this (`narrate::persona_speech_form`, map
/// 16.19.1). /// 16.19.1). Every default guidance names her by `Forms` placeholders (`select::voiced`, map 16.19.7).
const PERSONA_GUIDANCE: &str = "Continue her inner stream where the paragraph leaves off: her own next thoughts, in the first person, in her own words. This is not a message to the room. In a busy room most moments pass with nothing said."; const PERSONA_GUIDANCE: &str = "Continue {poss} inner stream where the paragraph leaves off: {poss} own next thoughts, in the first person, in {poss} own words. This is not a message to the room. In a busy room most moments pass with nothing said.";
/// The setting the Projector renders for. No task: in the Persona-only shape nothing is work she owes. /// The setting the Projector renders for. No task: in the Persona-only shape nothing is work she owes.
const GUIDANCE: &str = "This person is a Mind of the GameCult swarm. She lives in its chat rooms among the operator, the other Minds and whoever drops by. Render the moment as she lives it: who is here and how they sit with her, what she carries, what she wants. What was said reaches her word for word after this stream, so never retell or summarise it: render what it stirs in her and what she makes of the people who said it. Render the conversation as it stands. Leave out whatever the context does not carry: an absence is not part of her moment. Use each person's pronouns as given."; const GUIDANCE: &str = "This person is a Mind of the GameCult swarm. {cap_subj} live{s} in its chat rooms among the operator, the other Minds and whoever drops by. Render the moment as {subj} live{s} it: who is here and how they sit with {obj}, what {subj} hold{s}, what {subj} want{s}. What was said reaches {obj} word for word after this stream, so never retell or summarise it: render what it stirs in {obj} and what {subj} make{s} of the people who said it. Render the conversation as it stands. Leave out whatever the context does not carry: an absence is not part of {poss} moment. Use each person's pronouns as given.";
/// The least `here_bytes` may be: the heading, the hour and the longest mood line always fit. /// The least `here_bytes` may be: the heading, the hour and the longest mood line always fit.
@ -190,7 +190,7 @@ impl Default for ProjectorTuning {
} }
/// What counts as her choosing to send a draft now (map 16.7): the experiment's lever over when a draft is said. /// What counts as her choosing to send a draft now (map 16.7): the experiment's lever over when a draft is said.
const INTERPRETER_GUIDANCE: &str = "A draft is speech only when her prose shows her choosing to send it now. Wondering whether to speak, deciding to wait or stay quiet, or saying that she says nothing, is not speech. An empty say list is the usual answer in a busy room."; const INTERPRETER_GUIDANCE: &str = "A draft is speech only when {poss} prose shows {obj} choosing to send it now. Wondering whether to speak, deciding to wait or stay quiet, or saying that {subj} say{s} nothing, is not speech. An empty say list is the usual answer in a busy room.";
/// The Interpreter's speech call: its model and its guidance. The speech frame is code (`interpret`): the room and private /// The Interpreter's speech call: its model and its guidance. The speech frame is code (`interpret`): the room and private
/// rules, attribution, choosing among her drafts and never writing her words, the contract and the gap kinds are not knobs. /// rules, attribution, choosing among her drafts and never writing her words, the contract and the gap kinds are not knobs.