From d7c04b122cabc613133c052d7d0bcce9924823a3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 20 Nov 2026 13:44:19 +0100 Subject: [PATCH] K2: Huginn owns its Projector frame; Ghostlight's projector builder is no longer called (map 16.3) narrate::PROJECTOR_FRAME keeps Ghostlight's honesty rules (render only what is established, absence is unavailable, suspicion is uncertainty, no actions, schemas, field names or world effects, the word budget), drops its ban on an interior, 'no metaphor, no atmosphere', 'say only what changes the decision' and 'a thin moment gets a thin stream', and adds the first person, the present tense and notes-as-material. projector_prompt builds the prompt itself in the map's order; the ProjectorPrompt and build_projector_prompt import is gone. Test doubles recognise the Projector by the frame, the golden fixture carries the whole Projector prompt, and a test refuses any Ghostlight membrane marker in it. Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/Cargo.toml | 5 +-- crates/mind-body/src/projection.rs | 4 +-- .../src/projection/fixtures/golden-chat.txt | 33 +++++++++++++++++++ .../mind-body/src/projection/harness/tests.rs | 4 +-- crates/mind-body/src/projection/narrate.rs | 29 +++++++++++++--- .../src/projection/simulate/tests.rs | 3 +- crates/mind-body/src/projection/tests.rs | 28 +++++++++++++--- 7 files changed, 89 insertions(+), 17 deletions(-) diff --git a/crates/mind-body/Cargo.toml b/crates/mind-body/Cargo.toml index 799096f..6fab74b 100644 --- a/crates/mind-body/Cargo.toml +++ b/crates/mind-body/Cargo.toml @@ -23,8 +23,9 @@ publish.workspace = true # two until the workspace pin and the kit's meet. # `rmp-serde` is also the lease wire (`lease_client`): the connector's MessagePack frames. # -# Ghostlight's `ghostlight-persona-projection`, pinned to a revision, builds the Projector's prompt (`projection`), so -# the membrane's text stays Ghostlight's; the Projector asks through the connector kit's client (`model-connector`). +# Ghostlight's `ghostlight-persona-projection`, pinned to a revision, builds the Persona stage's prompt and locates cited +# spans (`projection`), so that membrane's text stays Ghostlight's. The Projector's frame is Huginn's own (map section 16.3). +# Every stage asks through the connector kit's client (`model-connector`). # `toml` reads `persona-tuning.toml`, the Projector's knobs (`projection::tuning`); parse and serde only. # # `serde_json` reads Claude Code's stream-json, a foreign owner's wire (`self_run`); diff --git a/crates/mind-body/src/projection.rs b/crates/mind-body/src/projection.rs index e4b0fb7..6cddd93 100644 --- a/crates/mind-body/src/projection.rs +++ b/crates/mind-body/src/projection.rs @@ -2,8 +2,8 @@ //! //! 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 -//! connector that renders the packet as first-person prose under Ghostlight's membrane (`build_projector_prompt`, -//! the pinned `ghostlight-persona-projection`). Every knob of both is `persona-tuning.toml` (`tuning`), read at each +//! 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 //! wake, its hash carried with the packet. //! //! The Projector shows her self and her room: her persona state and what the mouth showed. It does not read her Mind; diff --git a/crates/mind-body/src/projection/fixtures/golden-chat.txt b/crates/mind-body/src/projection/fixtures/golden-chat.txt index 034ffa9..4f965e6 100644 --- a/crates/mind-body/src/projection/fixtures/golden-chat.txt +++ b/crates/mind-body/src/projection/fixtures/golden-chat.txt @@ -23,3 +23,36 @@ Also in the room: --- heard Libby, in #swarm:gamecult.org: "Eureka, did you see the door fix?" 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 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. + +Render only what is established below: who they are, the notes on their present, and what reaches them. Anything absent from these is unavailable: render suspicion or speculation as uncertainty, never as remembered or perceived fact, and furnish no place, object or event the notes do not give. The notes were set down at another time, by others and by their own past self: they are material for the stream and never its wording. Do not choose actions, emit schemas, expose field names or ids, or claim world effects. + +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. Do not weigh options or list what she might do or say; what she does is hers to decide. 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. + +Who they are: +Eureka (she/her). Dry, direct, almost feral; zeal aimed at revealing. + +Notes on their present: +- now: Thursday 19 November, 14:05 UTC +- mood: lighter, more settled than middling +- 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. +- the conversation: Lately Libby with her; Kiko to the room. The last 2 lines are the Minds' alone. +- pronouns: Libby — she/her; Kiko — she/her +- 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. +- need [need-relatedness]: company, strong +- value [reveal] Reveal: Reveal, never obscure. + +What reaches them: +Said to her: +- Libby in #swarm:gamecult.org: "Eureka, did you see the door fix?" +Also in the room: +- Kiko in #swarm:gamecult.org: "She saw it. She hated it." + +Use at most 150 words. Return only the lived stream. diff --git a/crates/mind-body/src/projection/harness/tests.rs b/crates/mind-body/src/projection/harness/tests.rs index 26d63bd..b3ab857 100644 --- a/crates/mind-body/src/projection/harness/tests.rs +++ b/crates/mind-body/src/projection/harness/tests.rs @@ -6,7 +6,7 @@ use serde_json::{Value, json}; use super::*; use crate::address::is_for; -use crate::projection::narrate::{Answer, Failed, Spent}; +use crate::projection::narrate::{Answer, Failed, PROJECTOR_FRAME, Spent}; 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())); let text = if prompt.starts_with("You decide what one person says aloud") { (self.interpreter)(prompt) - } else if prompt.starts_with("