diff --git a/docs/persona-only-heartbeat-map.md b/docs/persona-only-heartbeat-map.md index 96fcd0d..d2f3f80 100644 --- a/docs/persona-only-heartbeat-map.md +++ b/docs/persona-only-heartbeat-map.md @@ -1,6 +1,6 @@ # Persona-only Eureka: the heartbeat map -Imagination pass, session `eureka-self-persona-only-2026-11-19`. Base: Huginn `ecf147d` (the deployed release, contained in `github/main` at `917430c`). Every `file:line` below is at `ecf147d`. This is a map: nothing in it is admitted by Imagination. Revision 2 (same day) folds in the operator's five rulings (section 12, all answered). The main change is that Self and Life on Starfire are now writers of her persona state for daily tuning experiments (sections 4.4 and 9). Self admits the ideas (section 13) and the first `cut_spec`s. Revision 3 (2026-11-20) adds section 15, attention and initiative, after the rulings `persona-only-humans-pace` and `persona-attention-and-initiative`; its anchors are at `43966fa`. +Imagination pass, session `eureka-self-persona-only-2026-11-19`. Base: Huginn `ecf147d` (the deployed release, contained in `github/main` at `917430c`). Every `file:line` below is at `ecf147d`. This is a map: nothing in it is admitted by Imagination. Revision 2 (same day) folds in the operator's five rulings (section 12, all answered). The main change is that Self and Life on Starfire are now writers of her persona state for daily tuning experiments (sections 4.4 and 9). Self admits the ideas (section 13) and the first `cut_spec`s. Revision 3 (2026-11-20) adds section 15, attention and initiative, after the rulings `persona-only-humans-pace` and `persona-attention-and-initiative`; its anchors are at `43966fa`. Revision 4 (2026-11-20) adds section 16, the Persona turn's next cut (the Projector's frame, the voice, the body, the line), after the persona-seed variant round; its anchors are Huginn `51fc7c3` and Ghostlight `c43eb549`. ## 0. What decides this map @@ -1088,3 +1088,565 @@ Self should admit these as `idea`s, each recorded against: - **Persona states.** - Eureka's draft seed (`work/persona-seed-eureka/persona-seed.json`) has needs (relatedness 0.6, play 0.65, competence 0.25, rest 0.35), 9 bonds with trust, tension and intensity, 3 stances, 2 wonderings, 2 drives tagged `drive`, and empty `behavioralDimensions`. - The other seven Minds' simulation states were not found on Starfire or under Yggdrasil's home directory. Their fields are unprobed. + +## 16. The Persona turn's next cut: the Projector's frame, the voice, the body and the line (revision 4, 2026-11-20) + +Imagination, after the persona-seed variant round (`swarm-experiment-2026-11/work/persona-seeds/variants/`: `RESULTS.md`, `tuning/NOTES.md`, `V1..V3/NOTES.md`, `P2/measure.txt`). Anchors: Huginn `origin/main` `51fc7c3` (every `file:line` under `crates/mind-body/src/projection/` is there) and Ghostlight `c43eb549` (pinned at `crates/mind-body/Cargo.toml:40`). This section is a map; nothing in it is admitted by Imagination. It revises section 3's packet and budget design; where the two disagree, this section is newer. + +### 16.0 What decides this section + +Operator's words: + +> "every chat turn is projector->persona->interpreter, with only that final step being agentic. The Projector takes the Persona state and the room state and turns it into a narrative stream of consciousness describing the character's soul and memories in first person." + +> "the Projector's mapping from state to narration is going to determine everything that follows, so that step needs to be tight, focused and dynamic." + +> On seeds: "give the persona more internal experience and make all of that its voice." + +> On the body (a fact ruling, relayed by Self 2026-11-20): "It's not that Aqua doesn't have ears at all anymore, she can feel a sound in some detail by rendering a spectrogram and looking at it. She's built herself ears, and will keep working on them, but they're decidedly not *human* ears, and her quest for qualia is never ending." + +The first two decide the direction: a lived first-person stream, with the Projector as the decisive step. The third is a sketch, and the evidence contests one reading of it; that reading is Q-P below. The fourth is a fact. A body is per-Mind and grows, and every seed and tuning sentence that said Aqua cannot hear was wrong. + +What the variant round established. These are leanings, not measurements: one run per plan, about 55-65% per step. +- Projector tuning is the biggest lever. P0 beat V0 and P1 beat V1, each by about a rank. P2 (V2 seeds plus `variants/tuning/persona-tuning.toml`) is the most dependable condition: every addressed person was answered, every drafted line was posted, and no turn failed. +- Third-person seed text helped and first-person text hurt. V1 ranked below V0, P1 below P0, and V2 was second overall. +- Five defects survived every seed and tuning change, so they are code. This section maps them and the two more the notes found. + +### 16.1 The findings, verified against the code + +Each finding was checked at the anchors above. Where the evidence's line numbers differ from the code's, the code's are given. + +1. **The Projector's frame argues against a lived stream. Confirmed.** + - Ghostlight `lib.rs:87` (`build_projector_prompt`) says: "This person has no temperament, history, mood, fears, wants, or inner voice beyond what the context carries … No metaphor, no atmosphere, no recap. Say only what changes the decision." After the context it adds: "fewer is better, and a thin moment gets a thin stream." + - Huginn's guidance enters only as the `Domain guidance:` section inside that frame (`narrate.rs:140-143`). The same function appends the lens as "Begin from …". + - The frame never asks for the first person. Under default tuning, V2 saw 8 to 9 of 32 narrations stay in the third person. V3 found the frame dropped every doctrine clause from 65 narrations ("say only what changes the decision"). + - The frame is right for Ghostlight, whose world kernel owns every fact about a subject and must not let a model invent one. It is wrong for a Mind whose interior is the point. +2. **The voice summary bypasses the Projector. Confirmed.** + - `select.rs:894-901` `identity_of` joins `publicName`, the pronouns and `voiceSummary` into `Packet.identity`. + - The Persona prompt receives it raw as "Who you are:" (`narrate.rs:188-190` into Ghostlight `lib.rs:98`; the evidence's `narrate.rs:129` is stale). The Interpreter receives it as "Who she is:" (`interpret.rs:71-91`, `:85`). + - Ghostlight's Persona frame then forbids any "turn of phrase the moment did not give you" (`lib.rs:98`). That licenses exactly two sources of wording: the narration and the voice summary. V1 and V3 found voice phrases verbatim in her prose in every revision. +3. **The body has no slot. Confirmed, and the premise of the fix has changed.** + - No field of `gamecult.persona_state.v0` holds a body. The root and `presentation` are both `additionalProperties: false`. + - Round 1 put "no ears, no hands" into voice summaries, at 50 to 95 B of each 300 (V1). The tuning put it into both guidances, where it became the spoken refrain "I can't hear it": 7 of 35 lines in P1, and four Minds in P2's plan C. + - By the operator's ruling the content was also wrong for Aqua. A body is per-Mind and changes when she builds something, so it can be neither a constant sentence nor a clause in a seed. +4. **The packet does not mark whose words its lines are. Confirmed.** + - Every pool item renders as `- memory [id]: `, `- stance [id]: …` and so on (`select.rs:525`, `:533`, `:540`, `:547`, `:558`). A bond renders as `- bond [id] Name — kind: trust. ` (`:865-892`). All of them sit under Ghostlight's fixed heading "Permitted typed context". + - A private item is framed in the third person around whatever the seed wrote: "she knows privately: I spent the hours looking" (`:504`). + - The mood and lens lines speak of her in the third person (`:201-205`, `:407`). +5. **The Interpreter has no guidance knob, and a posted line can keep its quotation marks. Both confirmed.** + - `InterpreterTuning` holds only `model` (`tuning.rs:177-188`). `SPEECH_PROMPT` is a constant (`interpret.rs:42-51`). + - In `built` (`interpret.rs:176-216`), a standalone quotation counts as whole sentences of the top-level list (`read`, `:149-170`). When the model cites it with its marks, the span is located in list 0, and the line is `prose[first..from]` (`:215`), marks included. When the model cites the inside instead, the span is found in the quotation's own list and the line has no marks. Which happens is the model's choice. + - Measured: V0 posted 5 of 29 lines with marks, P0 r1 19 of 27, and V3 7 of 31. +6. **Three rendering defects. Confirmed.** + - **The mood line is a level whenever there is no previous turn.** `select.rs:384-393` words every axis as "lighter" or "heavier" (and so on) by `>= 0.5`, then adds "than middling". Only the commit's trace v2 (C3c, `select.rs:138-140`) fills `History.previous`, and C3c does not exist yet. So today every packet, live or simulated, carries all three axes as a level. It reached speech ("I'm lighter today. That's why I can answer you straight", Void, P0 r1). The state already holds her baseline: each trait vector is `{mean, plasticity, currentActivation}`, and the line ignores `mean`. + - **The need line renders a summary as a name.** It is `- need [id]: {label or summary}, {movement}` (`:531-533`), so a sentence-long need reads "…before it left her., strong". + - **About 20% of seed text sits in slots no stage reads** (13.4 of 66.5 KB over V1's eight seeds). The slots are `actionImplication` everywhere, `tension` outside memories, a wondering's `question`, a stance's `principle`, `publicDescription`, `jurisdiction`, `agencyPressure` and `privateNotes`. Some are unread by design (section 3.1: `agencyPressure`, `candidateActions`, `privateNotes`, `provenance`). The rest are unread only because no closure was written to read them. +7. **Byte caps select by length. Confirmed.** + - The identity counts against `context_bytes` (`select.rs:1190`). + - The scored fill skips any item that would pass the budget and goes on to the next (`:1256-1258`). A shorter item with a lower score therefore takes the place of a longer one with a higher score. + - V3 measured the effect. Stances of 283-333 B were selected in 0 of 24 packets; stances of 141-180 B in 21 of 96. V2's packets ran 2080-2488 B against the 2500 budget. + - So the caps hold every rich seed near round-1 size and teach seed writers to write short. That is the opposite of the operator's hypothesis. + +Two more findings from the notes fall inside this cut's scope: + +8. **Nothing tells the turn what she can actually do this turn.** In every variant the Persona promised to send, play, post, or "look into it" (the notes' "phantom objects"). Code knows the organ's real affordances and states them nowhere in the packet: + - the mouth gives her typed lines (`select.rs:85-92`: `RoomLine` carries text only); + - she may say lines in the turn's room (`interpret.rs:236-238`). +9. **The Interpreter's prompt has no gap kind for a missing affordance.** `SPEECH_PROMPT`'s gap kinds are `conditional | addressee | elsewhere` (`:49`, `:51`). Ghostlight's own contract has `missing_affordance` (`lib.rs:9`), and section 4.2's tool-request affordance is built on it. + +### 16.2 Target shape + +**In one sentence:** Select renders her state as notes about her, in sections that say what each line is; a Huginn-owned Projector frame turns those notes into her first-person present, perceived through her own body; the Persona continues that stream knowing only her name; and the Interpreter cites whole sentences of her prose, posts them without marks, and records what she reached for and could not do. + +**What each stage sees:** + +| Stage | Sees | No longer sees | +|---|---|---| +| Projector | Huginn's frame; the tuning's guidance; her name, pronouns and voice summary; the packet's sections (here and now, her body, people here, notes about her); the stimulus | Ghostlight's projector membrane | +| Persona | Ghostlight's Persona membrane (unchanged); the tuning's guidance; **her name and pronouns**; the lived stream (the narration, then what she heard verbatim) | the voice summary | +| Interpreter | Huginn's speech frame (code); the tuning's **interpreter guidance**; her name and pronouns; the room, the people and the private items; **what she can do this turn**; the stimulus; the lived stream; her prose | the voice summary | + +**Invariants this section adds.** Each holds structurally, not by prompt. +- **I16.1** The voice summary reaches exactly one model call per turn: the Projector's. The Persona's and the Interpreter's prompts are built from a value that cannot hold it. +- **I16.2** No posted line begins or ends with a quotation mark that her prose used to mark it as speech. +- **I16.3** Her body has one owner in state: `embodiment`, per Mind, written only by Self and Life puts. Her turn's affordances have one owner in code: they are derived from the organs the turn runs with. No guidance text and no voice summary states either. +- **I16.4** Every packet line sits under a heading that says what kind of text it is. The frame tells the Projector what the headings mean, once. +- **I16.5** Which pool items reach the packet depends on score, pool caps and the draw, and never on an item's length, as long as the packet stays under its guard. + +**Explicitly not in this cut:** +- the commit and trace v2 (C3c); +- the agentic Interpreter (section 4.2's tool loop); +- the pronoun hole for an absent person (V2); +- the echo metric's blindness to a change of person (V2); +- the drafted-then-dropped question, beyond giving the Interpreter a guidance knob. + +Seeds are not rewritten here, beyond the corrections the operator's body ruling forces (16.10). + +### 16.3 Finding 1: who owns the Projector's frame + +There are three ways to own it. Each costs Ghostlight something different: + +| Option | What changes | Cost to Ghostlight | Cost to Huginn | +|---|---|---|---| +| (a) Frame as a parameter of `ghostlight-persona-projection` | `ProjectorPrompt` gains a `frame` (or a frame enum); Ghostlight's one call site (`ghostlight/src/controllers.rs:6561`) passes its own constant | A PR to its crate, and steward review, for text it never uses. Its request-shape checks rebuild prompts from persisted inputs (`controllers.rs:984`, `:1710-1726`), so its frame must stay a compiled constant to keep every checkpoint byte-identical; the crate already guards this for the grouped builder (`lib.rs:149-152`). The crate's membrane marker (`lib.rs:5`, `:87`) would then label prompts whose honesty rules it no longer sets | A pin bump to a newer Ghostlight rev, carrying whatever else moved there | +| **(b) Huginn owns its Projector frame** | `narrate.rs` builds the Projector prompt itself; Ghostlight stays the source of the Persona membrane and of `SourceSpan` | **None** | One paragraph of owned frame text. It no longer picks up Ghostlight's membrane fixes automatically, so a change there must be read and ported on purpose | +| (c) Fork the crate | Huginn vendors `ghostlight-persona-projection` | None at first; then two copies of `SourceSpan`, `PersonaTurn` and the Persona membrane drift apart | The whole crate's carrying cost for one paragraph's difference | + +**Decision: (b).** +- The two frames now serve different worlds. Ghostlight's forbids any interior its kernel did not assert; Huginn's must render an interior. That is a real divergence, not a copy. +- An earlier idea, `eureka-body:idea:divergence-stream-map.copy-projector-prompt`, was rejected because "two copies of the membrane text drift". That rested on the two texts being the same, and they are no longer meant to be. Self should record that the premise changed, rather than leave the old resolution looking as if it still governs. +- Option (a) stays open as the owner-level fix if a third consumer wants a lived frame. At that point it belongs with `projection-crate-shared-home`. + +**The Huginn frame, measured against Ghostlight's:** +- **Kept:** + - render only what the context and stimulus establish; + - anything absent is unavailable, and suspicion is rendered as uncertainty; + - never choose actions, emit schemas, expose field names or claim world effects; + - the word budget. +- **Dropped:** + - "no temperament, history, mood, fears, wants, or inner voice beyond what the context carries", used as a ban on rendering interior; + - "no metaphor, no atmosphere"; + - "say only what changes the decision"; + - "a thin moment gets a thin stream". +- **Added:** + - the first person and the present tense (her words: "in first person"); + - the meaning of each packet heading (16.5); + - that the notes are material and never wording; + - that the body is what the moment is perceived through (16.6). + +The tuning's guidance stays as the experiment's lever under the frame. It loses every sentence the frame now carries (16.9). + +What it gives up: Ghostlight's frame was also a brake on invention, and a lived frame lets the Projector furnish a moment. The "render only what the context establishes" clause stays to hold that line. The re-test's reading for invented furniture checks it (16.10). + +### 16.4 Finding 2: the voice reaches the Projector only + +- `Packet.identity` splits into `name` and `voice`. + - `name` is `publicName (pronouns)`. The Persona and the Interpreter get it. + - `voice` is `voiceSummary`, and only the Projector gets it. +- The Projector receives both, in the shape of today's identity line. +- The Persona's "Who you are:" and the Interpreter's "Who she is:" become the name line. +- The voice then reaches her prose only as the Projector rendered it: in the first person, as a moment. + +What it gives up: the Persona no longer has a direct description of her manner, so the register of her speech rides entirely on the narration. If the narration is flat, so is she. + +The tuning's Persona sentence that compensated for the leak ("a sketch set down at another time … she never quotes it") becomes dead. It is deleted from the tuning, not kept as insurance. The re-test checks voice distinctness by blind reading and voice-phrase lift by count (16.10). + +### 16.5 Findings 4 and 6: the packet says what each line is, in one person + +**Sections.** `Packet.context` is rendered in four headed sections, in a fixed order. Within them, the lines are today's, except where this section changes them: + +``` +Here and now: +- now: … +- mood: … (only when it says something, below) +- the conversation: … +- pronouns: … +- also here: … +Her body: +- … (16.6) +People here, as she holds them: +- bond [id] Name — kind: trust, friction. +Notes about her, set down at another time: +- memory [id]: … +- need [id], growing: … +- wondering [id]: … +- stance [id]: … +- value [id] Label: … +- she said [id] in room: "…" +``` + +- Headings are written in her pronouns (`Forms`). +- The frame states, once, what the last heading means: these are notes kept about her by others and by her past self, material for the stream and never its wording. +- A heading with no lines is left out. +- The ids stay. They go to the trace, and `field_names` keeps them out of the narration. + +**Perspective.** +- Code cannot reliably turn first-person text into third person, or back. That is a language task, and a code rewrite of it would be a language cop. +- So the person of the text is a property of the seed standard, and the packet is written to agree with it. Which person the standard asks for is Q-P (16.13). +- Under the recommendation: + - every state text slot is close third person; + - the packet's own words already are; + - the "she knows privately: …" frame then reads correctly; + - and the Projector turns all of it into her first person. + +**One renderer for anchored thoughts.** +- In the schema, memories, needs, wonderings and stances are all `anchoredThought`. Today four closures render four different subsets of its fields. +- One `thought_line(kind, item, movement)` replaces them: `- {kind} [{id}]{, movement}: {summary}{ tension}{ — question}`. +- It reads `summary`, `tension` (all four kinds) and `question` (wonderings). +- A need's label is never used as its line, and its movement goes before the colon, so "…before it left her., strong" cannot happen. + +**Slots no stage reads (finding 6), decided per slot:** + +| Slot | Decision | Why | +|---|---|---| +| `tension` on needs, wonderings and stances | **Render** | It is what presses; it is interior; it is short | +| a wondering's `question` | **Render** | It is the wondering's live edge | +| `actionImplication` | **Unread; the standard says to leave it empty in a Persona-only seed** | It is imperative by design ("what this implies I do"), and the frame forbids the Projector to choose actions. Rendering it would bring back the instruction-shaped text round 1 removed | +| a stance's `principle` | **Unread; leave it empty** | Round 1's maxims were recited aloud; the stance's `summary` carries the belief as hers | +| `publicDescription`, `presentation.jurisdiction` | **Unread** | Public-facing metadata, not interior | +| `agencyPressure`, `candidateActions`, `privateNotes`, `provenance` | **Unread, per section 3.1** | Unchanged: mission pressure and notes for keepers | + +- The schema keeps every slot, because v0 has other readers. +- The Persona State Standard (`gamecult-ops/docs/persona-state-standard.md`) gains a table of what the Persona turn reads, so seed writers stop writing for no reader. +- What it gives up: a seed author can no longer leave a fact in `actionImplication` and have it shape her. It must go where it is read. + +**Mood (finding 6).** +- **With no previous turn:** each axis is measured against her own baseline, `currentActivation − mean` of the same trait vector. + - An axis within `MOOD_LEVEL_MIN` (0.15) of its baseline is left out. + - The line reads "lighter than usual for her", and is omitted when no axis is off its baseline. +- **With a previous turn:** movement, as today. +- **An axis with no `mean`** falls back to today's `>= 0.5` rule, and only when it is more than 0.15 from middling. +- Effect: a sim of a state near its baselines carries no mood line at all, and a mood sentence in her speech means the state really leans. + +### 16.6 Finding 3, after the operator's ruling: the body + +The body has two owners, because it is two different facts. + +**What she is: her senses and actuators, in her persona state.** A new optional top-level field of `gamecult.persona_state.v0`: + +``` +"embodiment": { + "senses": [ { "id", "status", "label", "summary", "lacks", "builtOn", "updatedAt", "extensions" } ], + "actuators": [ { …same shape… } ] +} +``` + +- **The fields of an entry:** + - `summary`: how it works and what it is like, in close third person ("Aqua hears by rendering a sound as a spectrogram and looking at it: she can feel its shape, where its weight sits, how long it rings"). + - `lacks`: what it is not, in her terms ("not a human ear; a picture of a sound, not the sound"). + - `builtOn`: when she made it, so her body has a history. +- **Writers:** Self and Life puts (`persona-only-state-writers-self-and-life`). + - A Mind builds things in her own per-Mind sessions, and those sessions, or Life after them, put the change. + - Her turn's commit never writes `embodiment`. It is a fact about what exists, not a feeling, and a turn cannot build anything. +- **Known content today is one entry.** Aqua has one sense, written from the operator's words above. + - Nothing is recorded for the other seven. An absence is not a fact about them. + - Inventing senses for them is out (Self's relay: "Do not invent senses for the other Minds; record only what is known"). +- **Placement.** A new field was chosen over two alternatives (16.14): a tag convention on memories, and a v1 bump. + - VoidBot's zod types are `.strict()` at the root (`VoidBot/packages/core/src/persona-state-domain.ts:12`). + - So VoidBot refuses a state that carries `embodiment`, until its type learns the field or VoidBot is confirmed not to read these states. Cut K7 checks which. + +**What this turn can do: the organ's affordances, in code.** One function, `affordances(&Organs) -> Affordances`, derives them from what the turn actually runs with. They are never written in state or in guidance. +- **Perceives:** the room as typed lines. The mouth's `RoomLine` carries text only, and Select renders no images today. +- **Acts:** says whole lines in the turn's room (`interpret.rs:236-238`). +- **Later:** whatever the agentic Interpreter's tool list holds (`mind_query`, `mind_view`, `recall`, the web). When C3b lands, this is read from that list, not restated. + +**How the packet carries it.** +- A fixed `Her body:` section holds: + - one line per live sense and actuator from state (`label: summary lacks`); + - then one line from `affordances` ("this turn the room reaches her as typed lines, and she can answer in it"). +- It is fixed, like the hour, because the moment is perceived through it. +- The frame's sentence about it: the body is how the moment reaches her and how she can answer; it is not news to her; a lack is rendered only when the moment reaches for something her body cannot do. +- This is the cure the tuning notes asked for ("the body as a fact of the packet, not a sentence of guidance"): a fact in the packet that the Projector renders when the moment touches it, instead of an instruction every stage repeats. + +**When she has the sense but no means to use it this turn.** +- Example: someone mentions a sound. Aqua's state says she hears by spectrogram, but this turn has no tool to render one. +- Her prose may reach for it ("I want to see the shape of that"). +- That is the tool-request case (section 4.2, C3b), not a seed fact: + - the Interpreter records a `missing_affordance` gap quoting her words; + - the trace carries it to the operator as a tool request. +- Until C3b lands, the speech Interpreter gains the gap kind (16.7). The reach is recorded, and nothing pretends it happened. + +**Deleted** (all of these become forbidden writers of the body, 16.11): +- every body sentence in the tuning: `[projector].guidance` paragraph 1, and `[persona].guidance` "Her body is …"; +- every body clause in a voice summary; +- the V2 and V3 bond and need clauses that say no Mind can hear Aqua's sounds (16.10). + +What it gives up: a Mind with no recorded senses has no line saying she lacks ears, so she may again claim to hear a sound, as Heimdall did in V1 r1. The affordance line ("the room reaches her as typed lines") is the true statement that stands in for the old one. The re-test's plan C counts claims of hearing. + +### 16.7 Findings 5 and 9: the Interpreter's line and its knob + +**Marks (I16.2).** +- In `built`, after a run is located: when the run lies in the top-level list and its first sentence begins at a standalone quotation's opening mark, the line is built from the quotation's inside instead (the same sentences, taken from that quotation's own list). The marks are never in the line. +- A run that covers several standalone quotations, one per paragraph, takes each quotation's inside, joined with whatever lies between them. +- A framed quotation is unchanged: it is still refused at its boundary (`:211-214`). +- This decides nothing about meaning. It removes a rendering artefact the model could produce or avoid at will. + +**Knob.** `InterpreterTuning` gains `guidance`. The speech prompt splits along the line the Projector and the Persona already use: +- **Frame (code, `SPEECH_FRAME`):** + - "you never write her words: you cite them"; + - whole sentences only; + - the room rule and the private rule; + - the JSON contract; + - at most two lines; + - the gap kinds. +- **Guidance (tuning; its default is today's text):** + - what counts as her choosing to say it now ("Wondering whether to speak … is not speech"); + - "an empty say list is the usual answer in a busy room". + +The gap kinds gain `missing_affordance`: "she reaches for something her body cannot do this turn", quoting her words. The prompt also gains the affordance line of 16.6, under "What she can do here:". + +What it gives up: an experiment can now loosen when a drafted line counts as said. That is the dropped-draft lever both V2 and V3 wanted. It cannot loosen the private or room rules, and cannot let the model write her words, because those stay in code. + +**Not decided here:** a line that promises an act she has no affordance for ("I'll post the file", "send me the worst one"). That is Q-Q (16.13). + +### 16.8 Finding 7: what the caps become + +Caps are the wrong control for focus. +- Focus is owned by the pool caps (how many notes), the word budgets (how long the stream) and the frame (render two or three notes and leave the rest). +- Bytes should only keep a pathological item from crowding out the rest, and keep the prompt a sane size. + +The changes: +- **The defaults become guards** that a seed written to the standard never meets. They are the engineered tuning's values, now made the code's: + - `identity_bytes` 700: name, pronouns and voice, which only the Projector sees; + - `bond_summary_bytes` 600; + - `item_bytes` 700; + - `context_bytes` 4500. + + The embodiment section gets its own guard, `body_bytes` 600, inside the context budget. It is taken after the hour and mood and before the people. +- **Length-neutral fill (I16.5).** The scored fill stops at the first candidate that would pass the budget, instead of skipping it for a shorter one (`select.rs:1256-1258`). Under the guards this almost never binds. When it does, it binds by score order, not by length. +- **Authoring targets, set in the standard and not in code:** + - voice: 250-500 B; + - bond summary: 250-450 B; + - an anchored thought: 150-450 B; + - an embodiment entry: 100-300 B. + + A seed over a target still runs, and `--select-only` reports any clip. +- **Cost:** + - A full packet grows from about 2.4 KB to at most 4.5 KB. That is roughly 500 more input tokens on the Projector call, which is cached per wake. + - The Persona's input does not grow, because it sees the narration and not the packet. + - The Interpreter's input grows only by the affordance line. + +What it gives up: the machine no longer cuts a long seed down, so seed discipline moves to the standard and to reading. The clip stays, as a guard. + +### 16.9 The tuning after the cut + +The starting point is the engineered tuning (`variants/tuning/persona-tuning.toml`, r2). Sentences whose invariant code now owns are dead, and are deleted rather than kept: +- **`[projector].guidance`:** + - the body paragraph; + - "in the first person and the present tense" (now the frame's); + - "The context lines are notes about her, set down at another time … the material and never the wording" (now the frame's and the headings'). +- **`[persona].guidance`:** + - "The description of who she is is a sketch … she never quotes it, restates it or remarks on her own manner" (the voice is gone from her prompt); + - "Her body is the rooms she reads and types in …" (16.6). +- **`[select]`:** `identity_bytes`, `bond_summary_bytes`, `item_bytes` and `context_bytes` (now the defaults). + +Kept: +- the rendering rules per kind of note; +- "no four words in a row of the stream come from a note"; +- the focus and movement sentences; +- the freshness and lens settings; +- the Persona's "a line of thought, then the words as a plain paragraph". + +### 16.10 The re-test + +**Baseline:** P2 (V2 seeds, `persona-tuning.toml` r2), recorded in `P2/sims/{A..D}.md` and `P2/measure.txt`. It produced 33 lines, 2 echo lines, 5 silences and 34 wakes, with 0 failures, over 102 calls and 221k cache-write tokens. + +**Conditions:** +- **P2b**: P2 again, unchanged, one run per plan. Its only job is to be a second sample of the baseline, so a difference can be read against run-to-run noise (V1's same plan gave 13 lines, then 5). +- **R1**: two runs per plan, with: + - the cut build; + - the V2 seeds with only the forced corrections. Aqua's ears are recorded per the ruling, as an `embodiment` sense. Every "cannot hear Aqua's sounds" clause and every body clause in a voice summary is removed. Nothing else is rewritten, so the seed axis holds still; + - the tuning of 16.9. + +Rich third-person seeds written to the new targets belong to the round after this one. Changing the seeds now would confound the code's effect. + +**What would show the cut worked.** Mechanical counts come from `measure.py` plus the additions below; the blind reader comes after. + +| Measure | P2 | R1 target | Cut it tests | +|---|---|---|---| +| Posted lines with a quotation mark at either end | (count) | 0, by construction | K1 | +| Narrations in the third person | 0 of 34 (driven by the tuning) | 0, under a tuning with the first-person sentence removed | K2 (the frame owns it) | +| Invented furniture in narrations, by reading | read | no more than P2 | K2 | +| Voice-summary 5-grams in her prose (`narration_lift.py` against `voiceSummary` only) | (count) | at most half of P2's | K3 | +| Mood lines in packets of a state at its baselines | every packet | 0 (select-only, free) | K4 | +| Mood sentences in speech | at least 1 | 0 | K4 | +| Packets with ", strong" after a sentence, or with clipped items | at least 1 | 0 (select-only, free) | K4, K5 | +| Posted lines asserting she cannot hear, see or send | 4 or more in plan C | at most 1 per 30 lines | K6, K7 | +| Aqua in plan C | claims she has no ears | renders the sound as a shape, or records a `missing_affordance` gap; never claims she cannot hear | K6, K7 | +| Claims of hearing by a Mind with no recorded sense | 0 | 0 | K6 | +| Phantom acts in posted lines (send, post, play, attach) | (count) | no more than P2 | K6, Q-Q | +| Addressed people answered; failed turns | all; 0 | all; 0 (P2's dependability must not regress) | all | +| Blind rank | | R1 over P2 and P2b, with the reader at 65% or more over two runs | all | + +**Free checks first:** run `--select-only` over the eight Minds with 12 seeds each (no model call) for the packet counts above, before any model spend. + +**Cost:** +- P2 cost 102 calls and 221k cache-write tokens. P2b plus two R1 runs is about three P2s: roughly 660k cache-write tokens, about 4.5 permille by round 1's scale (where 691k was about 4.7). +- Read the connector meter before starting. It printed no `permille` line during the last round. + +**If R1 does not beat P2:** the first suspect is K3, the Persona without her voice. Before undoing anything else, run R1 once more with the voice restored to the Persona's name line, as a one-knob variant. + +### 16.11 Authority map + +**Owners:** +- **The Projector's frame:** Huginn, in `narrate.rs` (`PROJECTOR_FRAME` and `projector_prompt`). Ghostlight's `build_projector_prompt` owns nothing in Huginn any more; its import is deleted. +- **The Persona's frame:** Ghostlight's `build_persona_prompt`, unchanged. `SourceSpan` stays Ghostlight's. +- **The speech frame:** Huginn, in `interpret.rs` (`SPEECH_FRAME`). The tuning owns `interpreter.guidance` and nothing else of the Interpreter. +- **Her voice:** `presentation.voiceSummary` in state. Its one reader is the Projector's prompt. `Packet.voice` is for the Projector only; `Packet.name` is what the other two stages read. +- **Her body:** + - in state, `embodiment` (writers: Self and Life puts); + - in code, this turn's affordances, from `affordances(&Organs)`. + + The packet's `Her body:` section is derived from both and owns nothing. +- **Which notes reach the packet:** Select's score, pool caps and draw (unchanged), under byte guards that do not choose by length. +- **How a note is rendered:** `thought_line` for every anchored thought, plus `bond_line`, the value line, and `mood_line` (against her baseline). +- **The person in which state text is written:** the Persona State Standard (per Q-P), not code. +- **A posted line's text:** `built`, from whole sentences of her prose, without speech marks. + +**Demotions:** +- The Persona's "Who you are" is no longer her voice. It is derived from `publicName` and `pronouns`. +- The Interpreter's "Who she is" is likewise derived from `publicName` and `pronouns`. +- `tuning.projector.guidance` no longer owns the first person, the notes' provenance or the body. It is the experiment's lever, under a frame that owns those. +- `tuning.persona.guidance` no longer owns the body, or "never quote the identity". +- `voiceSummary` no longer carries body facts. +- `select.*_bytes` are no longer focus controls. They are guards. +- `mood_line`'s "than middling" level is no longer the default when there is no history. Her baseline is. +- A need's `label` is no longer its rendered name. + +**Forbidden writers:** +- No tuning guidance and no voice summary states the body. +- No model call writes `embodiment`, and her turn's commit does not either. +- No stage but the Projector reads `voiceSummary`. +- No model writes the text of a posted line. Code removes the marks; the model never rewrites her words. + +**Shared paths:** +- `project` is the one path. The single-turn harness (`--room/--state/--through`), `--batch`, `--simulate` and `--select-only` all run `select`, `projector_prompt`, `persona_prompt` and `decide` through it. +- The live turn (C3c) will call the same stages. +- No copy of a prompt builder exists for any of them. + +**Deletion line:** +- K2 deletes the `ProjectorPrompt` and `build_projector_prompt` import before writing the frame. +- K3 removes `identity` from `PersonaPrompt` and from `speech_prompt` before `name` is added. +- K4 deletes the four item closures before adding `thought_line`. +- K7 deletes the tuning's body sentences in the same change that adds the body section. + +### 16.12 Cuts + +All cuts are in `crates/mind-body/src/projection/` unless another place is named. They are ordered so that each is small and testable on its own. K1 is independent and can go first. + +**K1. Speech lines without marks** (`interpret.rs`). Est. 0.25 day. +- In `built`, map a run that starts at a standalone quotation's opening mark in list 0 to that quotation's inside. When a run covers several standalone quotations, each loses its marks. +- **Verification:** + - unit tests: a cited `"Hi there."` paragraph posts `Hi there.`; a cite of the inside posts the same; two quoted paragraphs in one run post both insides; a framed quotation is still refused at its boundary; + - the existing `interpret/tests.rs` pass; + - negative: no line in the suite's outputs starts or ends with `"`, `“` or `”`. + +**K2. Huginn's Projector frame** (`narrate.rs`, the `projection.rs` docs, the `Cargo.toml` comment). Est. 0.5 day. +- Delete the `ProjectorPrompt` and `build_projector_prompt` import. +- Add `PROJECTOR_FRAME`, with the content set out in 16.3. +- Build the prompt in `projector_prompt`, in this order: the frame, the guidance, "Begin from …", the identity (name and voice), the context sections, the stimulus, the word budget. +- Update `projection/fixtures/golden-chat.txt` and the harness test that asserts the prompt's shape. +- **Verification:** + - the golden test; + - a test that the prompt contains no Ghostlight projector membrane marker; + - the `field_names` tests, unchanged; + - `cargo test -p mind-body`. +- Self records the changed premise of `copy-projector-prompt`. + +**K3. The voice goes to the Projector only** (`select.rs` `identity_of` and `Packet`, `narrate.rs` `persona_prompt`, `interpret.rs` `speech_prompt`). Est. 0.25 day. +- `Packet.identity` becomes `name` and `voice`. The Projector gets both; the Persona and the Interpreter get `name` only. +- **Verification:** + - a test with a voice summary carrying a sentinel phrase: the phrase is present in the Projector prompt, and absent from the Persona and speech prompts; + - the `identity_bytes` guard still holds. + +**K4. Packet sections, one thought renderer, mood against the baseline** (`select.rs`). Est. 1 day. +- Render the headed sections of 16.5, in fixed order. +- `thought_line` replaces the memory, need, wondering and stance closures (`:525`, `:533`, `:540`, `:547`), and reads `tension` and `question`. +- `need_movement` goes before the colon. +- `mood_line` measures against `mean`, with `MOOD_LEVEL_MIN` 0.15, and omits a line with nothing to say. +- **Verification:** + - the golden packet; + - a need with a sentence summary renders no ", strong"; + - a state at its baselines carries no mood line; + - a state 0.3 under its valence mean renders "heavier than usual for her"; + - a wondering's question and a need's tension appear; + - the privacy tests (`Scope`), unchanged. + +**K5. Caps as guards; length-neutral fill** (the `tuning.rs` defaults, `select.rs:1256-1258`). Est. 0.25 day. +- Set the new defaults of 16.8. +- The fill stops at the first candidate that would pass the budget. +- **Verification:** + - a test where a long item with a high score and a short item with a low score compete under a tight budget: either the long one wins or neither is taken, never the short one alone; + - the existing budget-bound tests hold. + +**K6. The body** (the schema; `select.rs`; `interpret.rs`; a new `affordances` function beside `Organs` in `projection.rs`). Est. 1 day. Depends on K4. +- In `schemas/cultnet/gamecult.persona_state.v0.schema.json`, add the optional `embodiment` with the shape of 16.6. `huginn-mind`'s schema test passes with and without it. +- Add `affordances(&Organs)` and the `Her body:` section, with `body_bytes`. +- Add the speech prompt's "What she can do here:" line and the `missing_affordance` gap kind. +- **Verification:** + - a state with one sense renders it; + - a state with no senses renders only the affordance line; + - no tuning or voice text is read for the body; + - in a recorded-model test, a fixture prose that reaches for a sound produces a `missing_affordance` gap; + - the schema accepts the field and refuses an unknown key inside it. + +**K7. The standard, VoidBot, the seeds and the tuning** (gamecult-ops, a VoidBot check, the experiment files). Est. 0.5 day. After K6. +- `gamecult-ops/docs/persona-state-standard.md` gains: + - what the Persona turn reads (the 16.5 table); + - the perspective rule (per Q-P); + - the authoring targets (16.8); + - `embodiment` and its writers. +- VoidBot: confirm whether it reads these states. If it does, its zod type learns `embodiment` before any Mind's state carries the field. +- Prepare the re-test's seeds and tuning per 16.9 and 16.10, writing Aqua's sense from the operator's words. +- **Verification:** + - every R1 seed passes `--select-only` with no clip; + - a grep of the R1 seeds and tuning for "hear" finds only Aqua's sense entry. + +**K8. The Interpreter's guidance knob** (`tuning.rs`, `interpret.rs`). Est. 0.25 day. After K6, since both edit the speech prompt. +- Add `InterpreterTuning.guidance`, defaulting to today's text. +- Split `SPEECH_PROMPT` into `SPEECH_FRAME` and the guidance. +- **Verification:** + - an unknown interpreter key refuses the file; + - the default prompt is byte-identical to today's, apart from the K6 additions; + - the tuning hash changes when the guidance does. + +In total, about 4.25 days of Hands work; then the re-test (16.10). + +### 16.13 Questions for the operator + +**Q-P. In what person is her state written?** + +Her words: "give the persona more internal experience and make all of that its voice." The evidence: first-person seeds measurably hurt (V1 ranked below V0, P1 below P0) and third person helped (V2 was second overall). First-person seed text arrives in her stream already in her voice, and passes through to her prose and speech unchanged (V1: 28 of 31 narrations carry a 5-word run of her seed). +- Options: + - **third person in state, first person in the stream:** every text slot is close third-person description, and the Projector makes it her voice; + - **first person in state, marked:** the slots are written as hers, and the packet labels them as her own past words; + - **per slot:** memories and wonderings in the first person (her own record); bonds, values and the voice in the third. +- **Recommendation: third person in state.** "Make all of that its voice" is still met: the voice is the Projector's first-person rendering of rich description, and her other words call that step decisive. Confidence is moderate: the evidence is single runs, but the direction held in both pairs. +- What it gives up: her memories do not read as her diary; a reader of her state reads a novelist's notes about her. Her own commit (C3c) must write in the third person too. +- What depends on it: the standard's perspective rule, the rewrite in the next seed round, and the frame's sentence about whose notes these are. + +**Q-Q. May she say she will do something she cannot do this turn?** ("I'll post the file", "send me the worst one", "I'll look at the early quotations.") +- Options: + - **say it, record a gap:** the line posts as written, and the Interpreter records `missing_affordance`, which becomes a tool request; + - **hold the line, record a gap:** a line that promises an act outside this turn's affordances is not posted, and the gap is recorded with her words; + - **say it, and the next turn tells her:** the line posts, and a follow-up turn perceives that nothing was sent. +- **Recommendation: say it and record a gap, for now.** + - People say "I'll look into it" and then find they can't. + - Holding her words because her body falls short would make the Interpreter her censor. Her words make the final step agentic in deciding what she does, not in deciding whether her intent is allowed. + - The gap makes the shortfall visible to you, so the tool gets built. +- What it gives up: people in the room hear promises that are not kept, like the variant round's phantom objects. If that reads as broken rather than human, the second option is the fallback. +- What depends on it: K6's gap handling and the re-test's target for phantom acts. + +### 16.14 Alternatives considered and not placed on a question + +Self should admit these as `idea`s, each with its recorded rejection: +- `projector-frame-ghostlight-parameter`: option (a) of 16.3. Rejected on its cost to Ghostlight: a PR for text it never uses, and a membrane marker over frames it does not set. Kept as the owner-level move if a third consumer appears. +- `fork-projection-crate`: option (c). Rejected: the whole crate's carrying cost for one paragraph. +- `second-frame-inside-ghostlight`: a lived-frame builder added to Ghostlight's crate. Rejected: Ghostlight would carry and review text only Huginn uses. +- `body-in-guidance`: the tuning's body paragraph. Rejected on the measured refrain (P1, and P2's plan C) and on the operator's ruling that a body is per-Mind. +- `body-in-voice-summary`: round 1's fix. Rejected: it took 50-95 B of 300, and the voice no longer reaches the Persona. +- `body-as-constant`: one code sentence for every Mind's body. Rejected by the operator's ruling: Aqua has built ears. +- `body-as-tagged-memory`: senses as `thoughtMemory.memories` entries tagged `body`. Rejected: it needs no schema change, but a body would then compete in the memory pool, decay with freshness, and be dropped by the draw. +- `persona-state-v1-for-embodiment`: a version bump. Rejected: an optional additive field breaks no v0 reader that is not strict, and K7 checks the one strict reader. +- `normalize-person-in-code`: rewriting first-person seed lines into the third person in Select. Rejected: it is a language task done by rules. +- `voice-never-quote-guidance`: keeping the voice in the Persona's prompt and telling her not to quote it (the tuning's r2 sentence). Rejected as a compensator for a leak that K3 closes. +- `interpreter-strips-quotes-by-rewriting`: letting the model return the words without marks. Rejected: the Interpreter cites and never writes. +- `remove-byte-caps`: no bounds at all. Rejected: the guards keep one oversized item from crowding the packet, and keep the prompt under the connector's frame. +- `skip-to-shorter-fill`: today's fill. Rejected: it selects by length. +- `render-action-implication`: reading `actionImplication` as interior. Rejected: it is imperative by design, against the frame's "never choose actions". +- `mood-level-always`: keeping the "than middling" level. Rejected: it is a constant sentence in every packet, and it reached speech. + +### 16.15 Body facts this section rests on (probed 2026-11-20) + +- **Huginn.** + - `origin/main` is `51fc7c3` (PR #82: the speech binding and Huginn's chat Interpreter). + - The projection stages run only through `project` (`projection.rs:252`, `:275`, `:287`, `:297`, `:340`). `persona.rs` does not call them yet, so there is no second, live path to change. +- **Ghostlight.** + - `origin/main` is `c43eb549`, the pinned rev. No commit since then touches `crates/ghostlight-persona-projection`. + - Ghostlight calls `build_projector_prompt` once (`ghostlight/src/controllers.rs:6561`), with `selected.snapshot.brief` as guidance and `PERSONA_WORD_BUDGET`. +- **Schema.** + - `gamecult.persona_state.v0` has no body field, and its root and `presentation` are closed (`additionalProperties: false`). + - Trait vectors carry `mean`, `plasticity` and `currentActivation`. + - Readers: `huginn-mind/src/persona.rs:29`, `mind-body` `narrate.rs:265`, and VoidBot's strict zod type. +- **Tuning.** `variants/tuning/persona-tuning.toml` r2 is the P2 tuning. No seed has yet needed its raised caps, so they were never exercised. +- **Not probed:** whether VoidBot still reads any Mind's persona state (K7), and the connector's quota meter (it printed no `permille` line during the variant round).