projector: her read and what moved a bond ride within one bond's allowance; golden and frame follow
The people's guard is unchanged: a bond line carries her read of the person and the claim that last moved it only while the line still fits what one bond is allowed, else the bare line as before. The frame names the fixed lines (pressing, means to do, feelings, tendencies) as always with her. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c42ff2f39b
commit
60e629a7dc
3 changed files with 56 additions and 28 deletions
|
|
@ -16,6 +16,7 @@ People here, as she holds them:
|
|||
- bond [bond-kiko] Kiko — sparring partner: fair trust, heavy friction. Kiko pokes her to stop massaging the pipeline.
|
||||
Notes about her, set down at another time:
|
||||
- memory [t1-m0]: The heartbeat stalled at noon.
|
||||
- pressing [ambition-0]: MISSION-PRESSURE ships the autonomous swarm.
|
||||
- memory [libby-sounds]: Libby laughed at the door fix.
|
||||
- memory [dm-secret]: she knows privately: Deru told her about the move, privately.
|
||||
- memory [curse]: Her curse is the knife. The same drive makes her good and will lead her wrong.
|
||||
|
|
@ -35,7 +36,7 @@ You are a private Projector. Write one person's present moment from inside it, i
|
|||
|
||||
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.
|
||||
Render the two or three notes this moment touches and leave the rest, but what presses on her and what she means to do, the feelings in her mood and her standing tendencies are with her whether or not the moment touches them: let them color the stream without naming them as a list. 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.
|
||||
|
||||
How her words run:
|
||||
Dry, direct, almost feral; zeal aimed at revealing.
|
||||
|
|
@ -60,6 +61,7 @@ People here, as she holds them:
|
|||
- bond [bond-kiko] Kiko — sparring partner: fair trust, heavy friction. Kiko pokes her to stop massaging the pipeline.
|
||||
Notes about her, set down at another time:
|
||||
- memory [t1-m0]: The heartbeat stalled at noon.
|
||||
- pressing [ambition-0]: MISSION-PRESSURE ships the autonomous swarm.
|
||||
- memory [libby-sounds]: Libby laughed at the door fix.
|
||||
- memory [dm-secret]: she knows privately: Deru told her about the move, privately.
|
||||
- memory [curse]: Her curse is the knife. The same drive makes her good and will lead her wrong.
|
||||
|
|
|
|||
|
|
@ -68,9 +68,10 @@ const FEELING_MIN: f64 = 0.25;
|
|||
/// A standing tendency shows above this value; `TENDENCIES_BYTES` holds the lot, heading included.
|
||||
const TENDENCY_MIN: f64 = 0.3;
|
||||
const TENDENCIES_BYTES: usize = 360;
|
||||
/// What a bond line takes beyond its summary for her read of the person (the clause) and what last moved the bond.
|
||||
const READ_BYTES: usize = 200;
|
||||
const SHIFT_BYTES: usize = 140;
|
||||
/// The most a bond line's clauses take of her read of the person and of what last moved the bond: each is left out, with the
|
||||
/// other, when the line with them would pass what the people's guard allows one bond (`bond_allowance`).
|
||||
const READ_SUMMARY_BYTES: usize = 120;
|
||||
const SHIFT_BYTES: usize = 120;
|
||||
const WHO_WORDS: usize = 3;
|
||||
const WHO_BYTES: usize = 32;
|
||||
/// The most bytes the line naming the unbonded people present takes.
|
||||
|
|
@ -877,6 +878,16 @@ impl<'a> Inputs<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
/// One bond to show: whose, as named, the act of turning to her when there was one, whether they are absent but named, and
|
||||
/// the bond she has with them.
|
||||
struct Placed<'a> {
|
||||
id: String,
|
||||
name: Who,
|
||||
turned: Option<&'a str>,
|
||||
absent: bool,
|
||||
bond: Option<&'a Value>,
|
||||
}
|
||||
|
||||
/// A person as the Projector is told of them (K53, I16.7): who they are to her, in no more room than a name needs. Her own
|
||||
/// name for her; the bond's label for someone she is bound to, which is her state's text; for anyone else their display
|
||||
/// name cut to at most `WHO_WORDS` words and `WHO_BYTES` bytes, quoted and escaped, then ", someone she does not know",
|
||||
|
|
@ -1452,14 +1463,12 @@ fn present_people(inputs: &Inputs, tuning: &Tuning) -> Vec<(String, Who)> {
|
|||
|
||||
/// 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; then, when the person turned to her this turn, that act
|
||||
/// and where (`turned`, map 16.21). Then what last moved the bond (`lastEvidence`'s claim) and her read of the person
|
||||
/// (`read`, from `read_clause`). A person named but not here says so after their name (`absent`). What the bond does not
|
||||
/// carry is left out.
|
||||
fn bond_line(bond: &Value, name: &Who, tuning: &Tuning, scope: Scope, her: Forms, turned: Option<&str>, read: Option<&str>, absent: bool) -> String {
|
||||
/// and where (`turned`, map 16.21). Then its `notes` (`bond_notes`). 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>, notes: &[String]) -> 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);
|
||||
let mut line = format!("- bond [{}] {name}{}", text(bond, &["id"]), if absent { " (named, not here)" } else { "" });
|
||||
let mut line = format!("- bond [{}] {name}", text(bond, &["id"]));
|
||||
if !kind.is_empty() {
|
||||
let _ = write!(line, " \u{2014} {kind}");
|
||||
}
|
||||
|
|
@ -1481,10 +1490,8 @@ fn bond_line(bond: &Value, name: &Who, tuning: &Tuning, scope: Scope, her: Forms
|
|||
let _ = write!(line, ": {}. {summary}", feel.join(", "));
|
||||
}
|
||||
}
|
||||
let shift = clip(&one_line(text(bond, &["lastEvidence", "claim"])), SHIFT_BYTES);
|
||||
let shift = (scope != Scope::Omitted && !shift.is_empty()).then(|| format!("What last moved it: {}", ended(&shift)));
|
||||
for extra in [shift.as_deref(), read].into_iter().flatten() {
|
||||
let _ = write!(line, "{}{extra}", if line.ends_with('.') { " " } else { ". " });
|
||||
for note in notes {
|
||||
let _ = write!(line, "{}{note}", if line.ends_with('.') { " " } else { ". " });
|
||||
}
|
||||
if let Some(place) = turned {
|
||||
let _ = write!(line, "{}Just now {name} turned to {}, {place}.", if line.ends_with('.') { " " } else { ". " }, her.obj);
|
||||
|
|
@ -1492,6 +1499,14 @@ fn bond_line(bond: &Value, name: &Who, tuning: &Tuning, scope: Scope, her: Forms
|
|||
line
|
||||
}
|
||||
|
||||
/// What a bond line says beyond its summary: what last moved the bond (`lastEvidence`'s claim, under the bond's scope) and
|
||||
/// her read of the person (`read`, from `read_clause`).
|
||||
fn bond_notes(bond: &Value, scope: Scope, read: Option<&str>) -> Vec<String> {
|
||||
let shift = clip(&one_line(text(bond, &["lastEvidence", "claim"])), SHIFT_BYTES);
|
||||
let shift = (scope != Scope::Omitted && !shift.is_empty()).then(|| format!("What last moved it: {}", ended(&shift)));
|
||||
[shift, read.map(str::to_owned)].into_iter().flatten().collect()
|
||||
}
|
||||
|
||||
/// A text as a sentence's end: a full stop after it unless it already ends one.
|
||||
fn ended(text: &str) -> String {
|
||||
if text.ends_with(['.', '!', '?', '\u{2026}']) { text.to_owned() } else { format!("{text}.") }
|
||||
|
|
@ -1503,7 +1518,7 @@ fn ended(text: &str) -> String {
|
|||
fn read_clause(inputs: &Inputs, person: &str, present: &BTreeSet<String>) -> Option<(String, Option<String>)> {
|
||||
let her = forms(inputs.state);
|
||||
let read = items(inputs.state, &["affect", "statusReads"]).iter().filter(|read| live(read) && inputs.people.person_of(text(read, &["target", "id"])) == person && !one_line(text(read, &["summary"])).is_empty()).max_by_key(|read| time(read))?;
|
||||
let summary = ended(&clip(&one_line(text(read, &["summary"])), READ_BYTES - 80));
|
||||
let summary = ended(&clip(&one_line(text(read, &["summary"])), READ_SUMMARY_BYTES));
|
||||
let kind = one_line(text(read, &["statusKind"]));
|
||||
let kind = if kind.is_empty() { "them".to_owned() } else { clip(&kind, NAME_BYTES) };
|
||||
match scope(inputs, concerns(&inputs.people, read).as_ref(), present) {
|
||||
|
|
@ -1543,7 +1558,7 @@ fn named_absent<'a>(inputs: &'a Inputs, present: &BTreeSet<String>) -> Vec<(&'a
|
|||
names.extend(label.split(',').next().map(str::to_owned));
|
||||
let named = names.iter().map(|name| words(name)).any(|name| name.len() >= 3 && said.contains(&format!(" {name} ")));
|
||||
let shown = if label.is_empty() { capitalized(localpart(id)) } else { clip(&one_line(label), NAME_BYTES) };
|
||||
named.then(|| (bond, Who(shown)))
|
||||
named.then_some((bond, Who(shown)))
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
|
@ -2075,12 +2090,14 @@ fn domain_view(inputs: &Inputs, her: Forms, room: usize) -> (Vec<DomainLine>, St
|
|||
}
|
||||
}
|
||||
|
||||
/// 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.
|
||||
/// What one bond line is allowed: a summary, its head, the act of turning to her, and its newline.
|
||||
fn bond_allowance(tuning: &Tuning) -> usize {
|
||||
tuning.select.bond_summary_bytes.saturating_add(BOND_HEAD_BYTES).saturating_add(TURNED_BYTES).saturating_add(1)
|
||||
}
|
||||
|
||||
/// The people's guard: its heading and the bonds a packet shows in full, each within `bond_allowance`.
|
||||
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(TURNED_BYTES).saturating_add(READ_BYTES).saturating_add(SHIFT_BYTES).saturating_add(1);
|
||||
Section::People.heading(her).len().saturating_add(select.people_full.saturating_mul(bond))
|
||||
Section::People.heading(her).len().saturating_add(tuning.select.people_full.saturating_mul(bond_allowance(tuning)))
|
||||
}
|
||||
|
||||
const SECTIONS: usize = 5;
|
||||
|
|
@ -2332,11 +2349,12 @@ pub(crate) fn select(inputs: &Inputs, tuning: &Tuning) -> Packet {
|
|||
let order = present.iter().filter(|(id, _)| arrived(id)).chain(present.iter().filter(|(id, _)| !arrived(id)));
|
||||
// The people present first, then the bonds of people the lines she is shown name though they are not here (map 16.38.8),
|
||||
// all under `people_full`.
|
||||
let mut shown: Vec<(String, Who, Option<&str>, bool, Option<&Value>)> = order
|
||||
.map(|(id, name)| (id.clone(), name.clone(), turned.iter().find(|(person, _)| person == id).map(|(_, place)| place.as_str()), false, bonds.iter().find(|bond| live(bond) && inputs.people.person_of(text(bond, &["object", "id"])) == *id)))
|
||||
let mut shown: Vec<Placed> = order
|
||||
.map(|(id, name)| Placed { id: id.clone(), name: name.clone(), turned: turned.iter().find(|(person, _)| person == id).map(|(_, place)| place.as_str()), absent: false, bond: bonds.iter().find(|bond| live(bond) && inputs.people.person_of(text(bond, &["object", "id"])) == *id) })
|
||||
.collect();
|
||||
shown.extend(named_absent(inputs, &present_ids).into_iter().map(|(bond, name)| (inputs.people.person_of(text(bond, &["object", "id"])), name, None, true, Some(bond))));
|
||||
for (id, name, turned, absent, bond) in shown {
|
||||
shown.extend(named_absent(inputs, &present_ids).into_iter().map(|(bond, name)| Placed { id: inputs.people.person_of(text(bond, &["object", "id"])), name, turned: None, absent: true, bond: Some(bond) }));
|
||||
let allowance = bond_allowance(tuning);
|
||||
for Placed { id, name, turned, absent, bond } in shown {
|
||||
// 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),
|
||||
|
|
@ -2347,7 +2365,12 @@ pub(crate) fn select(inputs: &Inputs, tuning: &Tuning) -> Packet {
|
|||
Some(bond) if full < tuning.select.people_full => {
|
||||
let scope = scope(inputs, concerns(&inputs.people, bond).as_ref(), &present_ids);
|
||||
let read = read_clause(inputs, &id, &present_ids);
|
||||
if context.push(Section::People, bond_line(bond, &name, tuning, scope, her, turned, read.as_ref().map(|(clause, _)| clause.as_str()), absent)) {
|
||||
let head = if absent { format!("{name} (named, not here)") } else { name.to_string() };
|
||||
// Her read and what moved the bond ride along only where the line still fits what one bond is allowed.
|
||||
let notes = bond_notes(bond, scope, read.as_ref().map(|(clause, _)| clause.as_str()));
|
||||
let with = bond_line(bond, &head, tuning, scope, her, turned, ¬es);
|
||||
let (line, kept) = if with.len() < allowance { (with, true) } else { (bond_line(bond, &head, tuning, scope, her, turned, &[]), false) };
|
||||
if context.push(Section::People, line) {
|
||||
full += 1;
|
||||
ids.push(text(bond, &["id"]).to_owned());
|
||||
if scope != Scope::Omitted && one_line(text(bond, &["summary"])).len() > tuning.select.bond_summary_bytes {
|
||||
|
|
@ -2356,7 +2379,9 @@ pub(crate) fn select(inputs: &Inputs, tuning: &Tuning) -> Packet {
|
|||
if scope == Scope::Framed {
|
||||
private.extend([text(bond, &["summary"]), text(bond, &["lastEvidence", "claim"])].into_iter().filter(|words| !words.is_empty()).map(one_line));
|
||||
}
|
||||
private.extend(read.and_then(|(_, private)| private));
|
||||
if kept {
|
||||
private.extend(read.and_then(|(_, private)| private));
|
||||
}
|
||||
} else if !absent {
|
||||
named.push((also, turned.is_some()));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1470,7 +1470,8 @@ fn a_stranger_never_borrows_a_bonded_name() {
|
|||
let heard = packet["heard"].as_str().unwrap();
|
||||
assert!(heard.contains("\"Meta, the operator\" (@rando:other.org), in") && heard.contains("\"Libby\" (@libby:evil.example), in"), "{heard}");
|
||||
let context = packet["context"].as_str().unwrap();
|
||||
assert!(!context.contains("bond [bond-libby]") && !context.contains("bond [bond-operator]"), "{context}");
|
||||
// The stranger's claim names the operator, whose bond may then show, but as named and not here.
|
||||
assert!(!context.contains("bond [bond-libby]") && context.lines().filter(|line| line.contains("bond [bond-operator]")).all(|line| line.contains("(named, not here)")), "{context}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
@ -1883,7 +1884,7 @@ 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.
|
||||
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"] {
|
||||
for added in ["Do not recap", "Render the two or three notes this moment touches and leave the rest, but what presses on her and what she means to do", "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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue