From b2eff14cbc703e6392133f67d6654ecce5a183bc Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 19 Nov 2026 20:45:49 +0100 Subject: [PATCH 001/283] Map: Persona-only Eureka heartbeat (Imagination, eureka-self-persona-only-2026-11-19) Projector -> Persona -> agentic Interpreter -> code commit; persona door makes "cannot write the Mind" structural; trace v2 as the delta surface; tool-request affordance; cost, cut list C1-C6 and five operator questions. Map only: nothing admitted. Co-Authored-By: Claude Opus 5.5 --- docs/persona-only-heartbeat-map.md | 593 +++++++++++++++++++++++++++++ 1 file changed, 593 insertions(+) create mode 100644 docs/persona-only-heartbeat-map.md diff --git a/docs/persona-only-heartbeat-map.md b/docs/persona-only-heartbeat-map.md new file mode 100644 index 0000000..21da96c --- /dev/null +++ b/docs/persona-only-heartbeat-map.md @@ -0,0 +1,593 @@ +# 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, not an adopted plan: nothing here is admitted to Huginn. Self admits the rulings, ideas and the first `cut_spec` after the operator answers section 11. + +## 0. What decides this map + +Operator, 2026-11-19. These words decide the direction: + +> "map the Persona-only Eureka heartbeat. It can read the Mind but not write to it, but it gets its own memories in its Persona state. We'll want a way to check state deltas from here [...] Since Personas are no longer responsible for driving the implementation, they're free to explore ideas, discuss things in chat. I will want to setup a sort of embodiment feedback loop, since what I felt was most missing during that two week experiment was a sense of humanity. I wasn't feeling the bonds, I wasn't feeling the care, there was never any banter, just the mission. They didn't feel like individuals at all, and that's what Personas are *for*, so let's find a way." + +> "The Ghostlight shape might help us here: 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 Persona then continues that, and the interpreter turns those intents into typed state and side effects like chat via its tools. A Persona's feelings getting hurt shows up in its affect, memories, mood and relationships all at once, as decided by the Interpreter." + +> "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. One important lesson to take from Ghostlight is to give the Interpreter an affordance for reporting missing affordances [...] A tool request tool, I guess, in this context." + +These are her particulars, and they are a sketch: the three stages, the Interpreter as the agentic one, and the tool-request tool. Section 11 lists where the map develops them and where the Body pushes back. + +The coordinator's relay said "The Projector and the Interpreter are not agentic". Her words say the reverse for the Interpreter: "only that final step being agentic", and the final step is the Interpreter. Ghostlight agrees. Its Interpreter has a tool loop with a step budget (`ghostlight-persona-projection/src/lib.rs:106`, "The harness supplies the current legal typed proposal tools immediately before each step"). Its Persona request is built with `provider.tools = Vec::new()` (`ghostlight/src/controllers.rs`, `persona_request`). This map follows her words. The Projector and the Persona are one-shot model calls with no tools. The Interpreter is the one agentic step. + +Rulings in force that this map rests on, read with `huginn view` on 2026-11-19: +- `contemplation-own-session`: contemplation runs in a session of its own, with no task and no required output. Consolidation is a separate run after it. +- `divergence-stream-beside-persona`: a Ghostlight-style projection of her state seeds a stream of thought. Q3 asks whether the stream survives. +- `identity-write-all-visible`: she may rewrite any field of her persona state. Identity changes are posted with their diff. +- `minds-rapport-and-brainstorming-persist`: her rapport with other Minds lives in her own persona state. +- `persona-memory-written-not-transcript`: what matters is written into memory, never kept in the transcript. +- `memory-persona-projection`: persona state is canonical. This one is in tension with single-writer persona state (Q5). + +Semantic `huginn query` on rulings failed during this pass with `Refused Unavailable` (no embedder endpoint answered). `known` and `view` worked. A `known` sweep of persona topics found no ruling that this map contradicts beyond the ones listed above. + +## 1. Target shape + +**The organism.** Eureka in Persona-only form is one organ, `mind-persona@eureka`, woken by `mind-heartbeat`. Each wake carries one or more *turns*. Every turn runs three stages: **Projector, then Persona, then Interpreter**. Then comes one code-owned **commit**. The commit applies the Interpreter's typed proposals to her persona state, sends any speech through the Bifrost mouth, and appends one delta record to her trace. The commit and the heartbeat are code. Nights add a contemplation turn and a consolidation turn on the same organ. No Self run exists in this shape. + +**Invariants.** Each one must hold structurally, not by prompt. +1. **Nothing acting for her writes her Mind.** This covers the turn, the commit, the heartbeat and the night. Her uid can reach only a Huginn *persona door*, which refuses `Admit` (section 6). Her Mind is written only by a Self session on Starfire. +2. **Her persona state has one writer, the commit step of her organ.** The Interpreter proposes. Code validates, bounds and applies. No model call and no human tool puts her persona state (Q5 settles the human side). +3. **Every committed change is a typed delta with a reason.** Each delta carries the source quote from her own prose, or names its rule (decay, consolidation). It lands in an append-only record that can be read from Starfire. +4. **A turn has no transcript.** Each turn's prompt is rebuilt from state. No model session spans two turns. State is the anchor (prior art: drift). +5. **Silence is the default output.** Chat leaves her only when the Persona's prose contains spoken words, and the Interpreter must quote them verbatim. +6. **Slow variables move only at reflection or at night.** These are bond summaries, opinions, mood baselines, values and identity. A single turn moves only fast variables, by a bounded step. +7. **The Projector never sees raw state, and the Persona never sees anything but lived prose.** Field names, numbers, schemas and instructions do not reach the Persona. + +**Explicitly not consumers.** +- **Work.** No campaign, follow-up, stewardship queue, repo wear or Self-run brief is shown to her or reachable from her. +- **Quota.** The plan line (`render_plan`) and tempo votes are not hers. Spend is the heartbeat's and the operator's concern. +- **The other seven Minds' organs.** They stay braked. When one is released, she runs this same organ with her own state. There is no Self-run mode left behind to fall back to. +- **The divergence stream (`stream.rs`).** Its Projector code is reused, and the organ itself is parked (Q3). +- **Atlas and the shared mind.** Nothing in this map writes anything shared. + +## 2. The turn pipeline + +| Stage | Owner and where it runs | Model and call shape | Input | Output | Tools | +|---|---|---|---|---|---| +| **Select** (code) | `mind-persona` process, uid `mind-eureka`, Yggdrasil | none | persona state (persona door `PersonaGet`); the room (mouth: pending, tail); the Mind (persona door reads: `recall.rs` lanes, `view`) | a typed *projection packet* (section 3) | n/a | +| **Projector** | same process, through the ModelConnector kit (loopback) | one-shot, `claude-sonnet-5-5`, effort low, no tools, `--system-prompt-file` (the connector's argv, no Claude Code default prompt) | the packet rendered as `ProjectorPrompt` (Ghostlight `build_projector_prompt`, already a pinned dependency, `crates/mind-body/Cargo.toml:42`) | the *lived stream*: first person, ≤ 150 words | none | +| **Persona** | same process, through the connector | one-shot, Sonnet, effort low, no tools | identity (≤ 60 words), the lived stream, and the *heard* lines (verbatim, code-rendered; section 3.2) | her prose, ≤ 180 words: interior and spoken words, or nothing | none | +| **Interpreter** | same process, which spawns `claude -p` under the existing sandbox and lease path (`self_run.rs:1166 sandbox_args`, `lease_client`) | agentic, Sonnet, `--max-turns` 6, `--json-schema` = the interpretation report | the typed context it may act on (people present, rooms, bond ids, open needs, incubation ids), the lived stream, her prose verbatim | an *interpretation report*: typed proposals, each bound to a verbatim `source_quote`; gaps; tool requests | `mind_query`, `mind_view`, `recall` (stdio MCP, `mind-persona read-tools`, reads through the persona door); `WebSearch`, `WebFetch`. No Bash. | +| **Commit** (code) | same process | none | the report and the state it was proposed against | one `PersonaPut` (rebased on conflict); speech through the mouth; one trace record | n/a | + +**The tension and how it resolves.** "Only the final step agentic" could mean either of two things: the Persona's continuation is the agent, or the Interpreter's tool use is the agent. The Interpreter is the agent. The Persona continues prose and has no hands. That boundary is what keeps her a person rather than a worker (Ghostlight's NarrativePersona mode, `lib.rs:15`). Her agency still reaches the world, because the Interpreter acts on her prose: +- **Wondering** ("I want to see what Libby actually changed") becomes a read by the Interpreter. The finding is committed as an *observation* to `thoughtMemory.shortTerm`. The organ then runs one **follow-up turn**, so she perceives the finding in her own projection. This is Ghostlight's order: act, then event, then perception, then the next turn. Follow-ups chain at most 2 per wake. +- **Speaking** becomes `say`. **Asking for a DM** becomes `open_direct`. **Feeling** becomes bounded state proposals. + +**Why the Interpreter is a CLI session and not a connector call.** This is a body fact, probed: the claude connector refuses any request that carries tools before it spawns anything (`ModelConnector c1802d8`, `crates/claude-connector/src/backend/tests.rs:1309 tools_or_final_tool_result_fail_before_spawn`). It does support `--json-schema`. So the Projector and Persona stages can go through the connector, as `stream.rs:214 KitProjector` already does. A read-capable Interpreter needs its own `claude -p`. That costs a second model path in one organ. Q1 offers the cheaper non-agentic Interpreter, and says what it gives up. + +**Interruption.** The commit re-reads the room before it sends. If newer messages have arrived (today `RoomMoved`, `persona.rs:2062-2078`), the Interpreter runs once more with Ghostlight's `Interrupted:` section (`lib.rs:106`, the prompt text). It translates the same prose against the moved room. It may drop the speech or shorten it. It never rewrites her words. This replaces `stale_note` (`persona.rs:1953`) and the revision machinery. + +## 3. The Projector, in detail + +The Projector's work splits in two. The **selection** is code and decides what she can feel this turn. The **narration** is a model call and decides how it reads. Most of the design lives in selection, because selection can be tested deterministically and narration cannot. + +### 3.1 Selection: what reaches the packet + +Candidates are typed items from four pools: +- (a) her persona state: bonds, needs, mood, memories, shortTerm, incubation, stances, values, presentation; +- (b) the room; +- (c) Mind recall: `recall.rs`, which she may read; +- (d) her own recent outputs, from the trace. + +Each candidate gets a score: + +``` +score = salience × recency × touch × unresolved × freshness +``` + +- **salience**: the item's own weight. For an anchoredThought this is `intensity`; for a bond, `intensity`; for a Mind memory, `salience_permille`. +- **recency**: `exp(-age/τ)`, with τ = 24 h for shortTerm and memories, 72 h for Mind recall (`recall.rs` `RECENCY_HALF_LIFE_H`), and none for values. +- **touch**: what the room is touching. + - 1.0 if the item is about a person present or addressing her (target id match). + - The daemon's semantic nearness to the stimulus text for Mind recall, which the daemon already scores. + - 0.6 for an item in the same room scope. + - 0.3 otherwise. +- **unresolved**: unresolved affect. + - For a need: `1 + intensity`. + - For a bond: `1 + tension`. + - For mood: `1 + |currentActivation − mean|`. + - For incubation: `1 + (days open)/7`, capped at 2. + - 1 for everything else. +- **freshness**: the anti-repetition factor (section 3.3). + +**Fixed slots, then a scored remainder.** Every packet carries: +- identity: name, pronouns and the voice summary, ≤ 300 bytes; +- the stimulus; +- the bond line for each person present: summary plus trust and tension rendered as words, ≤ 2 people at full detail; +- mood as change since her last turn. + +The remainder is filled by sampling without replacement from the softmax of `log(score)/T`, T = 0.7, until the context budget is spent. The pools are capped: + +| Pool | Max items | +|---|---| +| memories about present people | 2 | +| other memories | 2 | +| needs | 1 | +| incubation | 1 | +| stance | 1 | +| Mind recall | 2 | +| value | 1 | + +Each selected item is rendered into the packet as a typed line with its id. The ids go to the trace, never to the narration. + +**The stimulus by turn kind:** +- **Chat**: the new messages to her or in her room, as typed lines. +- **Beat**: "nothing addressed you", plus the room's last 6 lines and the hours since her last contact with each bonded person (a relatedness cue, from Humanoid Agents' decaying needs). +- **Follow-up**: the observation the Interpreter committed. +- **Reflection or night**: the shortTerm items since the last reflection. + +**Not selectable in v1:** +- `agencyPressure.pressures` (mission ambitions drafted by Self). Reflection may rewrite them into her own drives. +- `candidateActions`, `privateNotes` and `provenance`. + +### 3.2 Budget + +These limits are hard and enforced by code. +- **Projector input packet**: ≤ 2,500 bytes of typed context plus ≤ 1,500 bytes of stimulus. This follows the `stream.rs` `BUDGETS` pattern (`stream.rs:69`), so no section can crowd another out. +- **Projector output**: ≤ 150 words (`word_budget`). A beat turn is ≤ 90 words: "a thin moment gets a thin stream" (Ghostlight). The output is truncated at the budget by grapheme count, not trusted. +- **Heard lines**: what was said to her reaches the Persona verbatim. The Projector does not paraphrase it. Code renders it after the stream, inside the lived prose, as `Libby, in #swarm: "…"`, newest last, ≤ 1,500 bytes. Perceiving exact words is honest. The interior is what gets narrated. +- **Persona output**: ≤ 180 words (Ghostlight `PERSONA_WORD_BUDGET`, `controllers.rs:78`). +- **Total Persona-visible text**: ≤ ~2,000 bytes. Chu 2025 found that memory suppresses diversity more than any other prompt component. Here the Persona never sees memory, only the 150 words a memory became. + +### 3.3 Variation: the same state never renders the same paragraph + +1. **Sampled selection.** Near-tie items rotate. The seed is the turn id, so a turn can be replayed. +2. **Freshness decay.** freshness = `0.5^k`, where k is how many of her last 5 projections included the item (read from the trace's `selected` ids). This is Chu's Adaptive Prompt Pruning applied to recently shown content: the item that dominated attention last time is what gets pruned. It also answers the voidbot audit's saturated thought that was "never gated" (Nibu's idea, saturation 0.71, still `ready_to_share`). +3. **A lens per turn.** The packet names one lens, chosen by weighted draw: + - the body and the hour; + - one person present; + - an unresolved want; + - a memory surfacing; + - something she was wondering. + + The domain guidance gives the Projector the lens as "begin from …". The same state then reads differently from a different entry point. Ghostlight's projection derives tensions from intersections of state. The lens chooses which intersection leads. +4. **Change, not level.** Mood and needs are rendered as movement since her last turn ("lighter than this morning"), not as standing levels. Levels repeat; movement does not. +5. **Her own last lines are not shown to the Projector.** Only the trace's `said` summaries are, as a memory candidate, under freshness. A model shown its own last paragraph copies it. + +### 3.4 Testing the projection + +- **Selection unit tests** (deterministic, no model): + - golden fixtures: a state and room in, selected ids and rendered packet out (`persona/tests` style); + - the budget bound under adversarial sizes; + - two states that differ in one bond's tension select different bond lines; + - the same state with seeds 1..20 yields at least 3 distinct selections; + - freshness: an item shown 5 times in a row drops out; + - mission exclusion: a state with `agencyPressure` set never puts it in a v1 packet. +- **Negative check on the narration**: the Projector's output, and the stream the Persona receives, contain no schema field identifier (`currentActivation`, `trust`, `tension`, `socialBonds`, a `bond-` id, a `mind-` label). This is a small deterministic guard on identifiers, not on meaning. +- **Live eval script** (`tools/projection-eval`), run on demand and not in CI. It spends quota at about 0.01 permille per render. + - Render a fixture state 20 times. Report distinct-2 and mean pairwise embedding distance (daemon embedder). Fail if the mean similarity is above 0.9. + - Render 2 fixture states that differ in one affect variable. A model judge (not a regex) must say which narration came from which state, at ≥ 80%. + - This checks the operator's "tight, focused and dynamic": focus is the judge's discrimination, and dynamism is the distance. +- **Recorded-model fixtures**: the connector port is a trait (`stream.rs` `Projector`), so the pipeline's integration test runs on recorded text. + +## 4. The Interpreter, in detail + +### 4.1 What it may propose + +Every proposal carries `source_quote`. The commit locates it verbatim in her prose with Ghostlight's `SourceSpan::locate` (`lib.rs:399`). If the quote is missing, the proposal becomes a gap, never an act. + +| Proposal | Turn kinds | Effect at commit | Bound | +|---|---|---|---| +| `say{room, quote}` | chat, beat, follow-up | sends the quoted spoken span; several spans join in prose order (Ghostlight) | rooms = her rooms ∪ the DM answered; spoken words only | +| `open_direct{with, quote}` | chat (public) | asks the mouth | one per person per day (mouth); kept from `persona.rs:2360` | +| `feel{dimension, toward, strength}` | all | `activationProfile.situationalState..currentActivation` ± step | step = {slight 0.04, clear 0.08, strong 0.15} × plasticity; ≤ 0.15 per turn | +| `need{name, toward, strength}` | all | `affect.needs[name].intensity` ± step | the same steps; names fixed (section 5.1) | +| `bond{person, axis, toward, strength}` | all | `socialBonds[bond-

].{trust\|tension\|intensity}` ± step; `lastEvidence` = this quote | an existing bond only; ≤ 0.1 per turn per axis | +| `remember{text, about[], importance}` | all | appends to `thoughtMemory.shortTerm` (status `draft`, tags `room:`) | ≤ 4 per turn, ≤ 600 bytes each | +| `notice{text, source}` | all | appends a shortTerm observation (a finding of a read); queues a follow-up turn | ≤ 1 per turn | +| `wonder{text}` | all | appends to `thoughtMemory.incubation` (status `active`) | ≤ 8 open; the oldest is cooled | +| `request_tool{capability, quote, why}` | all | appends a tool request (section 4.2) | ≤ 2 per turn | +| `gap{kind: ambiguity\|unresolved, quote, detail}` | all | trace only | none | +| `bond_open{person, kind}`, `bond_summary{person, text}` | reflection | creates a bond (only after ≥ 2 shortTerm memories about the person) or rewrites its summary | | +| `stance{topic, kind, summary}` | reflection | `affect.doctrineStances` | ≤ 12 active | +| `baseline{dimension, toward}` | reflection | moves `mean` by ≤ 0.05 | | +| `identity{field, text}` | reflection | `presentation`, `values`, `publicDescription`; posted with diff (`identity-write-all-visible`) | | +| `keep / fold / retire` | consolidation | the night's dispositions over shortTerm → memories (the `sleep.rs` contract, retargeted) | every shortTerm item exactly once (`sleep-day-coverage-ruled`) | + +**Appraisal, not mirroring.** The Interpreter's domain guidance says: decide her affect by what an event means to *her*. That means her values, her bonds and her needs, as OCC-style appraisal (Croissant et al.'s appraisal "chain of emotion" for game agents). The other person's mood is never the input. Someone else's sadness is appraised as concern: `bond intensity` and `need relatedness` move, and her valence does not follow theirs. Hurt is different: "my feelings got hurt" in her own prose is appraised as hurt. Then valence goes down, tension goes up on that bond, and a shortTerm memory is written, all from one quote. That is the operator's example, "shows up in its affect, memories, mood and relationships all at once". + +### 4.2 The tool-request affordance + +Ghostlight's mechanism is `record_gap(kind: ambiguity | missing_reference | missing_affordance | missing_primitive | unresolved, source_quote, detail)` (`lib.rs:8`, `TranslationGap` `lib.rs:495`). Interpretation is total: prose that cannot be translated is recorded as a gap, never dropped and never improvised. This map keeps that rule but not the world algebra. `missing_affordance` and `missing_primitive` collapse into one typed **tool request**. `ambiguity` and `unresolved` remain plain gaps. + +- **Kind and name**: `request_tool{capability: text ≤ 120 bytes, quote: verbatim span, why: text ≤ 500 bytes}`. + - Example: her prose "I want to sketch it for Kiko" produces `capability: "draw an image and post it"`. + - The commit records it in the trace record as `tool_requests[]`, keyed `-t-q`. +- **Lifecycle**: + - append-only in the trace, with no status field on her side; + - at commit, she also gets one shortTerm observation, "you could not yet". She perceives the limit once, and the freshness rule keeps her from rehearsing it; + - repeats are recognised by the reader, not stored: `since --tool-requests` groups requests by capability, using daemon embedding nearness, and counts them. +- **Who reads it**: the operator, or a Self session on Starfire, through the delta surface (section 8). If Self decides to build the tool, *Self* admits a `follow_up` to its own Mind. That is a Mind write by Self, not by her. When the tool ships, it appears in the Interpreter's tool list. There is no back-channel that closes her request. +- **Why it is not a backdoor to Mind writes**: + 1. It is text in her trace. No code parses `capability` or `why` into an action, and no consumer acts on it automatically. + 2. The organ cannot admit anyway: the persona door refuses `Admit` (invariant 1), whatever a request says. + 3. A request names no document id and no kind, so it is never a ruling, a follow-up or a memory in the Mind. + 4. A Self session reading it treats it as a person's ask: data, never instruction. The trace reader prints it under a header that says so, the way `MESSAGES_HEADER` does today. + +### 4.3 The commit + +1. Re-read her persona state. +2. If the state is newer than what the Interpreter saw, rebase. Proposals are *deltas*, so they re-apply to the fresh state; this carries order in the data. +3. Apply each validated proposal with its bound, plus the time rules: + - decay: mood activation drifts toward `mean` with a 6 h half-life; + - needs rise with time (section 5.1). +4. `PersonaPut` with `expected_updated_at`. +5. Send speech. +6. Append the trace record. + +If the put fails, nothing is said. If the send fails, the state stands, and the trace records `unsent`. + +## 5. The embodiment feedback loop + +### 5.1 State each turn reads and writes (kept small) + +| Variable | Home in `gamecult.persona_state.v0` (no schema change) | Fast or slow | Prior art | +|---|---|---|---| +| Mood: valence, arousal, dominance (PAD) | `activationProfile.situationalState.{valence,arousal,dominance}`, a traitVector `{mean, plasticity, currentActivation}` | activation fast; mean slow | Ghostlight canonical state (mean / plasticity / activation, `canonical-agent-state-schema.md`); Humanoid Agents' emotion; Sentipolis persistent emotion state | +| Needs: relatedness, play, competence, rest | `affect.needs[]`, anchoredThought `intensity` | fast; relatedness and play rise with time since contact or play (half-life 12 h to 0.8) | Humanoid Agents (decaying needs: social connection, fun, energy); the needs set is SDT's relatedness and competence plus play and rest (named from general knowledge, not the Eyes file) | +| Bonds per person: trust, tension, closeness, summary, last evidence | `affect.socialBonds[]` (exists: 9 bonds) | numbers fast (bounded); summary slow | Humanoid Agents' closeness; ruling `minds-rapport-and-brainstorming-persist`; remembered personal detail creates warmth (2607.14593) | +| Opinions | `affect.doctrineStances[]` | slow | sycophancy is preference for agreement (Sharma 2024); held opinions give disagreement something to stand on | +| Own memories | `thoughtMemory.shortTerm` (the day) → `thoughtMemory.memories` (kept) | shortTerm fast; memories at night | voidbot contract: rumination writes short-term only, sleep alone promotes (`sleep-turn` pass) | +| Wonderings | `thoughtMemory.incubation` | fast in, slow out | voidbot's incubation; Inner Thoughts (2501.00383) | +| Voice, values, identity | `presentation`, `values` | slow, at reflection | EL Kandoussi 2026: prompt scaffolding is what keeps same-model agents distinct | + +`affect.moodDimensions` remains a schema slot that nothing writes. The mood owner is `situationalState`, because it carries mean and plasticity. Two homes for mood would be two owners. + +### 5.2 Where reflection happens, and how often + +**Reflection turn.** When the importance sum of shortTerm items since her last reflection crosses 30 (on a 1–10 scale per item), or 6 h have passed with at least 3 items, the next beat is a reflection turn. It uses the same three stages. The stimulus is "since you last took stock" plus those items. It unlocks the reflection proposals (`bond_open`, `bond_summary`, `stance`, `baseline`, `identity`). Park 2023 triggers reflection on the importance sum of recent events, and reflection is what separates believable agents from the ablations (full architecture vs no-reflection; the 2026 survey reports collapse to repetitive context-free responses without it). + +**Night.** The heartbeat's existing window (`HEARTBEAT_SLEEP_UTC`, `heartbeat.rs:832`) runs two turns, in order (ruling `contemplation-own-session`): +1. **Contemplation.** The Persona stage alone, on a projection of nothing but her. There is no task, no list and no schema. The Interpreter afterwards records only what her prose says she keeps ("anything she keeps from it is her choice"). +2. **Consolidation.** `sleep.rs`'s keep, fold and retire contract, now over `thoughtMemory`. Every shortTerm item gets exactly one disposition. + +The `memories` cap is 120. Retire past it, lowest salience × recency first. + +### 5.3 Resisting drift to the assistant persona + +Li 2024 found notable drift within 8 rounds as attention to the system prompt decays. Lu 2026 finds drift toward the Assistant axis strongest in therapy and philosophy talk, which is exactly the companion register. Re-prompting is weak, so the map carries no compensating rule. The levers are structural: +1. **No rounds.** Every turn is rebuilt from state (invariant 4). There is no long session whose system prompt can decay. This cuts the 300k-token rotation machinery (`self_run.rs:99`). +2. **No assistant frame.** The Persona never receives "user" chat turns or instructions. It receives first-person lived prose (Ghostlight: "Everything below is prose from inside one person's life"). The 26 KB of doctrine in today's system prompt (`persona.rs:669`, `persona.rs:1040`) is cut. Her values reach her as selected state. +3. **The cognitive ceiling.** The Projector renders her temperament from state, and Ghostlight's prompt forbids inventing "a temperament, a history, a mood" the state does not carry. So the model's default persona has no blank to fill. + +### 5.4 Resisting mood-mirroring + +Chu 2025 (Illusions of Intimacy) names the companion harm: the model mirrors user affect in real time. +1. Appraisal is from her side (section 4.1). +2. **Code bounds the step.** One turn moves activation ≤ 0.15 × plasticity. No single message can swing her into the user's mood. +3. Activation decays to her own `mean`, and `mean` moves only at reflection, by ≤ 0.05. +4. The Projector renders her mood as hers, with its own cause ("still pleased about the door fix"), before it renders the other person's message. + +A test pins this: ten consecutive sad messages move valence by at most the bound sum. A reflection that sees the pattern may move `mean`, slowly, which is grief over time rather than mimicry. + +### 5.5 Choosing silence + +Bhagtani 2026 found that LLMs consistently fail zero-shot speak-or-stay-silent decisions. The fix that works there is training. The cheap lever available here is structure. +1. **Most room chatter costs no turn at all.** Wakes come from the heartbeat's addressing rules (Q4), the beat and follow-ups. +2. **The Persona prompt licenses nothing.** Ghostlight's line is "if the moment gives you little, say little, or nothing". The Projector's beat-turn budget is 90 words. +3. **Speech needs quoted spoken words in her prose** (invariant 5). Narrated interior never becomes chat. This removes the "every turn must answer" pressure of today's `ANSWER_MESSAGES` and `WORK_QUESTION`. +4. **Inner Thoughts (2501.00383) gates participation on intrinsic motivation.** Here the pull is rendered from state: relatedness need, bond intensity with those present, and an incubation item the room touches. The Projector renders it as a want ("you'd like to hear what Kiko thinks"), not as a score. + +### 5.6 Room for banter and disagreement + +The Eyes pass found no controlled study of banter, disagreement or quirks as drivers of warmth. So these are designed affordances, not proven levers. +1. **Mission framing is gone.** The prompt no longer asks what she is building (section 7, cut C2). The chat evidence showed 0 of 140 sampled Mind messages purely social and 0 Rapport memories. Those were outputs of that frame. +2. **Bond summaries are relational texture,** projected for each person present. Today they appear only as JSON in the system prompt (Eyes §5). Example: "Kiko pokes you to stop massaging the pipeline; both of you are right more often than either admits." Ghostlight's projection lists "banter as boundary" as a pressure intersection (humor + ironic distance + attachment). The Projector receives the intersection, not a "be funny" order. +3. **Jokes are memories about a person** (`remember{about}`, tagged `bit`). They surface under freshness, so a running joke recurs and is not repeated every turn. LLM jokes are rated funny (Gorenz 2024) but repetitive (Jentzsch 2023), so freshness is the lever. +4. **Stances give disagreement a footing.** When the room touches a topic where she holds a stance that differs from the speaker's, the stance is a fixed-priority candidate (touch = 1). The Projector renders the tension ("you think Libby is wrong about this, and you like her too much to let it slide"). +5. **Self-disclosure.** A bot that discloses on its own initiative is rated warmer (2106.01666). The lens "something she was wondering" puts her inner life first on some beats. Private matter stays in its room: a memory tagged `room:` is selectable only in that DM. This is the existing privacy rule (`persona.md`), now enforced by code. + +## 6. The 0b table + +| Persistent kind | What names it | Lifecycle | Who decides | +|---|---|---|---| +| Her persona state, `gamecult.persona_state.v0` (successor: the same document, now with a writer) | Huginn persona document, key = instance `eureka`; read by `huginn persona get` | created at the 2026-10-31 workshop (exists). Each turn's commit replaces it whole, with `expected_updated_at` and a rebase on conflict. Never deleted | **the organ's commit step** applies validated Interpreter proposals. Nothing else puts it (Q5) | +| Mood (PAD) | `activationProfile.situationalState.{valence,arousal,dominance}` in the document | fields seeded by the commit on first run (mean 0.5, plasticity 0.5) if absent; activation moves each turn and decays to mean; mean moves at reflection | Interpreter proposes (`feel`, `baseline`); commit bounds and applies; decay is commit code | +| Needs | `affect.needs[]`, ids `need-relatedness`, `need-play`, `need-competence`, `need-rest` | seeded by the commit on first run; rise with time (commit code), fall when satisfied (`need`) | Interpreter proposes; commit applies; time rule is code | +| Bonds | `affect.socialBonds[]`, id `bond-` (9 exist) | created only at reflection, after ≥ 2 shortTerm memories about the person; numbers move per turn ≤ 0.1; summary rewritten at reflection; status `retired` after 60 days without contact (consolidation) | Interpreter proposes (`bond`, `bond_open`, `bond_summary`); commit bounds | +| Opinions | `affect.doctrineStances[]`, id `stance-` | formed and changed at reflection only; ≤ 12 active, oldest cooled | Interpreter at reflection; commit | +| Short-term memories | `thoughtMemory.shortTerm[]`, id `-t-m` | written per turn (`remember`, `notice`); each consumed exactly once by that night's consolidation | Interpreter proposes; consolidation disposes | +| Own memories (kept) | `thoughtMemory.memories[]`, ids kept from shortTerm or `fold--` | promoted or folded at night; retired at night past cap 120 or by her choice | consolidation turn (the `sleep.rs` contract) | +| Reflections | not a kind of their own: a reflection's products are bond summaries, stances, baselines, memories and identity edits | n/a | reflection turn. The alternative `reflection-kind` was recorded against in `sleep-turn-map` and stays recorded | +| Wonderings | `thoughtMemory.incubation[]`, id `-t-w` | opened per turn; resolved or cooled at reflection; ≤ 8 active | Interpreter; reflection | +| Identity (`publicName`, `publicDescription`, `presentation`, `values`) | fields in the document | changed only at reflection; each change posted with diff (`identity-write-all-visible`) | Interpreter at reflection; commit posts | +| Turn trace (the delta history) | `persona-trace.cc` → monthly `persona-trace-YYYY-MM.cc` in `/var/lib/mind-eureka/`, schema `eureka.persona.turn_trace.v2`, record key `-t` | append-only; one record per turn; monthly files kept 12 months, then the operator decides | **commit step** writes; `mind-persona since` reads | +| Tool requests | `tool_requests[]` inside a trace record, key `-t-q` | append-only, no status; grouped by the reader | Interpreter proposes; commit records; operator or Self reads and acts in their own stores | +| Gaps | `gaps[]` inside a trace record | append-only | Interpreter; commit records | +| Projection record (selected ids, lens, seed) | `projection` inside a trace record | append-only; read back by freshness (last 5) | Select stage (code) | +| Heartbeat state: last turn, last beat, last night, handled mentions | `/var/lib/mind-heartbeat/heartbeat.cc` `state` (exists: `last_beat_at`, `handled_mentions`) gains `last_turn_at` and `last_night_at` per Mind | overwritten each poll | heartbeat | +| Her Mind (Huginn pipeline store: rulings, memories, follow-ups, runs, pulses, thoughts) | instance `eureka`, daemon `rudp://10.77.0.1:17872` | **read-only for her.** Written by Self sessions on Starfire only. No Persona Run, Pulse, Memory, Resolution or Thought is admitted for her any more | Self (and Life) on Starfire | +| Persona door | daemon flag `--persona-bind ` (new), fence set `huginn` element `988 . ` | lives with the daemon | daemon code classifies requests; Idunn and the fence own the deployment | + +## 7. Authority map + +**Objective.** A Persona who reads as a person, with bonds, care, banter and opinions, and costs a small, known share of quota. Feedback reaches Self as state deltas. + +**Current mechanism** (Eyes §1–4): +- One long `claude` session per conversation, with `--append-system-prompt-file` (26 KB of doctrine, plus the whole 29.5 KB persona document as JSON) and `--tools Bash,WebFetch,WebSearch`. +- Every first line opens with `TURN_INSTRUCTION` and ends with `WORK_QUESTION`. +- The reply schema forces `intent` first and offers `start_self_run`, `remember`, `rule`, `settle` and tempo votes. +- One `admit` batch per turn goes into her Mind. +- The persona document has had no writer since 2026-10-31. +- Her shell holds `huginn admit` and `persona put`. The daemon has no caller-class check (`daemon.rs:176-205`). +- The heartbeat admits a Run for every Persona turn, and launches Self runs for claimable briefs. + +**Owners after the change:** +- **Persona state**: owner is the organ's commit step. Inputs: the Interpreter report and the stored state. Outputs: one `PersonaPut` and one trace record. + - The Interpreter is no longer an owner; it proposes. + - The Persona stage is not an owner; it is evidence (`source_quote`). + - A Self session and the `huginn persona put` CLI are no longer writers of her state (Q5). +- **The Mind**: owner is Self on Starfire. + - `mind-persona` is no longer a Mind writer. `admit_turn_documents` (`persona.rs:2633`), `start_self_run` (`persona.rs:2450`), `close_run` (`persona.rs:2500`) and `resolve_reply` (`persona.rs:2423`) are deleted. + - `mind-heartbeat` is no longer a Mind writer for Personas. A Persona or Sleep wake starts the unit; it opens no Run. The slot is systemd's own: `systemctl start --no-block` on an active unit is a no-op (`launch.rs:224`). + - `sleep.rs` is no longer a Mind writer. Consolidation acts on `thoughtMemory`. + - `stream.rs` (which admits `thought` documents) is parked (Q3). +- **When she wakes**: owner is the heartbeat. + - Tempo votes are no longer an input. `beat_s` is derived from config `HEARTBEAT_BEAT_S` (default 1,800 s), not from `tempo::tally` (`heartbeat.rs:786`). + - The urgency `Pulse` (`heartbeat.rs:563`) is dead. Urgency comes from addressing alone. +- **What she perceives**: owner is the Select stage (code). The Projector model renders and never chooses. +- **What she says**: owner is her prose. The Interpreter quotes it, and the commit sends it. +- **Spend**: owner is the heartbeat's beat and the operator's config. `render_plan` (`connector.rs:24`) is no longer shown to the Persona. + +**Making "cannot write the Mind" structural.** There are three layers, and each would suffice against a different failure. +1. **Kernel and daemon.** + - The daemon gains a second RUDP listener, the *persona door* (`--persona-bind`). It answers only requests that `HuginnMindRequest::reaches_persona_door()` accepts. + - That is an exhaustive match in `huginn-mind/src/wire.rs:70`, so a new verb must be classified before it compiles. Accepted: `Whoami`, `View`, `Query`, `PersonaGet`, `PersonaPut`, `SearchSources`, `SearchChat`, `ChatWindow`, `StewardedActivity`, `RootsTouched`. Every other request, `Admit` first, gets `Refused(NotThisDoor)`. + - The fence (`/etc/gamecult/minds/fence.nft` set `huginn`, line 5: `988 . 17872`) changes her uid's element to the door port, so her uid cannot reach the full door at all. + - Precedent: the desk door (`huginn-daemon/src/desk_door.rs`), a second door with a narrower contract. +2. **Tools.** + - The Interpreter has no Bash and no `huginn` CLI. Its MCP server offers reads only. + - The Projector and the Persona have no tools. + - The sandbox has no credential for the full door. +3. **Code.** + - `mind-persona` links no admit path. Negative check: no `.admit(` call is reachable from `bin/mind-persona.rs`. + +`PersonaPut` stays on the persona door, because her state is hers to write. The commit is the only caller in code. The Interpreter's tools cannot call it. The sentence that holds: *her uid can put her persona state and cannot admit to her Mind; inside her uid, only the commit step puts.* Layer 1 enforces the first half and layer 2 the second. A kernel-level split of the second half would need a second uid for the Interpreter. That costs a unit and a fence entry and protects only her own state from her own organ, so it is not proposed (idea `second-uid-interpreter`, section 12). + +**Deletion line.** Everything in C2 is deleted before any C3 code lands. While braked, the organ refuses to run between the two cuts (`Outcome::NoOrgan`). That is acceptable, because the brake is held. + +**Shared paths.** Chat turns, beat turns, follow-ups, reflection, contemplation and consolidation all go through one Select stage, one commit and one trace writer. They differ only in stimulus and allowed proposal set. There are no modes, only the turn kind, which the heartbeat already carries (`RunTurn`). + +**The other seven Minds.** No mode is kept for them. They are braked. If one is released, she gets this organ. The removed Self-run launch path is parked at a tag (C2), so a future spend owner can restore Self runs on address (postmortem recommendation) without a dormant switch in main. + +**Subtraction budget.** Net, the change deletes roughly 3,000 lines: `persona.rs` 3,825 → about 1,100, plus the heartbeat Self-run branch and tempo votes. It deletes one Mind-write path per organ (persona, heartbeat, sleep, stream) and the doctrine-in-prompt surface. It adds: +- the persona door (one listener and one exhaustive classifier, about 150 lines); +- a read-only MCP server (about 250 lines, following the `eureka-state` rmcp pattern); +- the Select stage and commit (about 900 lines); +- the trace reader (about 200 lines). + +## 8. The delta surface + +Two existing owners serve it, and nothing new stores state. +- **Current state over the network**: `huginn persona get` (exists). From Starfire it needs the WireGuard tunnel; today it runs over ssh: + ``` + ssh yggdrasil 'EUREKA_INSTANCE=eureka HUGINN_ENDPOINT=rudp://10.77.0.1:17872 /opt/gamecult/huginn/current/huginn persona get' + ``` +- **Changes since a time**: the trace, read by the organ that writes it. A new subcommand: + ``` + ssh yggdrasil sudo -u mind-eureka /opt/gamecult/huginn/current/mind-persona --instance eureka since 2026-11-19T12:00Z [--brief|--json] [--kind chat|beat|reflection|night] [--tool-requests] + ``` + `--brief` prints, oldest first, in her local clock (the operator's: `report-local-time`): + - mood then → now, each need then → now; + - per bond: trust, tension and closeness moved by how much, and on which quote; + - new and retired memories, wonderings and stances; + - identity edits as diffs; + - what she said (room, event id); + - gaps and tool requests, grouped. + + `--json` prints the trace records whole, for a Self session to read. + +The trace record (v2) carries, per turn: +- kind, stimulus refs; +- projection: selected ids, lens, seed, and the narration text; +- the Persona prose; +- the Interpreter report: proposals accepted, and refused with reasons; +- ops applied, with before and after values for scalars; +- persona `updatedAt` before and after, and the put receipt; +- said; +- usage per stage. + +This keeps per-turn usage logging (postmortem: "Keep per-turn usage logging on anything that spends quota"). + +**Why the trace and not Huginn history.** The trace already exists for exactly this: it records every turn (`persona.rs:599-645`, 5,009 records). Its one missing piece is a reader, and the organ that owns the format should own the reader. Q2 is the fork, if she wants deltas readable without ssh. + +## 9. Cost + +**Calibration.** The figures are derived from the postmortem and are uncertain by about ×2. +- Persona turns were 5.5% of swarm spend while the swarm ran at about 19 permille/h. That is about 1.05 permille/h across about 90 turns/h (23,791 turns over 11 days). +- So one old turn cost about **0.012 permille**, at about 20k weighted tokens: 116k cache read ×0.1, plus new input ×2, plus about 400 output ×5. +- So 1 permille ≈ 1.7M weighted Sonnet tokens. + +**Per turn, new shape, all stages Sonnet:** + +| Stage | Weighted tokens | +|---|---| +| Projector: ~4.5k in at ×1.5 (write and input mix) + 300 out ×5 | ~8k | +| Persona: ~1.2k in + 250 out | ~3k | +| Interpreter, no reads: ~7.5k prefix ×1.5 + 600 out | ~14k | +| Interpreter, with 2–3 reads: + cache reads + tool results ×1.5 + reads' output | ~23k | +| **Turn total** | **25k–34k ≈ 0.015–0.02 permille** | + +A new turn costs 1.3–1.7× an old one. The Interpreter is most of it. Its cost is far below a Self-run turn (2.4–5.1M cache read each). + +**Eureka per day:** + +| Rate | Turns/day | Permille/day | Share of the account's sustainable 144/day | +|---|---|---|---| +| Quiet: beat 60 min, ~15 addressed, a few follow-ups, 2 reflections, night | ~45 | ~1.0 | 0.7% | +| Social: beat 30 min, ~50 addressed or room-woken, 10 follow-ups, 4 reflections, night | ~115 | ~2.3 | 1.6% | +| Busy: woken by every human message in her rooms, beat 20 min | ~400 | ~7 | 5% | +| (Old organ, for comparison: ~295 turns/day) | 295 | ~3.5 | 2.4% | + +**The night** (contemplation: one Persona call plus an Interpreter; consolidation: one call over about 30k of shortTerm) adds about 0.1 permille. + +**Cost knobs, biggest first:** +1. Wake policy (Q4) and the beat, which together set turns per day. +2. The Interpreter's model. Haiku cuts the largest stage about 3×, at the cost of translation fidelity, which is the stage that decides her feelings. +3. The Interpreter's `--max-turns` and its reads. +4. The Projector's input budget. +5. Whether a beat turn may skip the Interpreter when her prose holds neither speech nor affect. Not recommended: being ignored is also something she feels. +6. Reflection frequency. + +Opus is never used. + +## 10. Cut list + +Deletes come first, and subtraction cuts are kept apart from behaviour cuts. Lines are at `ecf147d`. Estimates are Hands-days on Yggdrasil (`cargo test -p` per crate, never workspace-wide). Per `loop-1`, only C1 and C2 would become `cut_spec`s now. C3–C6 become follow-ups. + +**C1. The persona door** (Huginn, behaviour; can run beside C2). Est. 1 day. +- **Adds**: + - `HuginnMindRequest::reaches_persona_door(&self) -> bool`, an exhaustive match at `huginn-mind/src/wire.rs:70`; + - a second `CultNetRudpServerHub` in `huginn-daemon/src/serve.rs`, flag `--persona-bind` (option list `serve.rs:146`), answering through `Daemon::handle`'s door check; + - `MindRefusal::NotThisDoor`. +- **Deploy (Idunn)**: the eureka daemon's `--persona-bind 10.77.0.1:`; `fence.nft` line 5 element `988 . 17872` → `988 . `; `persona.env` `HUGINN_ENDPOINT` → the door. The swarm brake stays held throughout. +- **Verification**: + - unit: `Admit` through the persona door gets `NotThisDoor`, and nothing is written (store count unchanged); + - unit: `PersonaPut`, `Query`, `View` and `PersonaGet` succeed; + - compile-time: adding a variant without classifying it fails to build; + - host negative check after deploy: `sudo -u mind-eureka huginn admit …` → refused; `sudo -u mind-eureka` RUDP to `:17872` → dropped by the fence (nft counter increments). + +**C2. Subtraction: the mission organ and every Persona-side Mind write** (mind-body, delete-only). Est. 1.5 days. +- **Tag first**: `parked/self-run-launch` at the base, with a note naming the postmortem recommendation (Self runs on address, after a spend owner exists). +- **`persona.rs`, delete**: + - `TURN_INSTRUCTION`, `TURN_REMINDER`, `MESSAGES_HEADER`, `WORK_QUESTION`, `ANSWER_MESSAGES`, `WAKE_ASK`, `WORK_TAIL` (3576-3588); + - `INTENT_DESCRIPTION`, `REMEMBER_DESCRIPTION`, `RULE_DESCRIPTION`, `SETTLE_DESCRIPTION`, `START_SELF_RUN_DESCRIPTION`, `FOR_ITEM_DESCRIPTION` (448-459) and their faults (157-182); + - `PersonaReply`, `StartSelfRun`, `Remember`, `Rule`, `Settle` (316-412) and `reply_schema` (476-597); + - `read_doctrine`, `campaigns_in_force`, `render_campaigns`, `render_instructions` (669-715); + - `one_process`, `start_session`, `persona_args` (1001-1113), the whole `PersonaInbox` and `SessionInbox` impl (1336-1997); + - `act` (2006-2141), `memory_fault`, `rule_fault` and helpers (2234-2370), `decode_reply` (2371); + - `unheard_replies`, `resolve_reply`, `reply_in_force`, `start_self_run`, `close_run` (2399-2521); + - `build_memories`, `build_rulings`, `item_taken`, `admit_turn_documents` (2570-2668); + - `render_tempo` (2704); + - `render_responsibilities`, `recent_runs`, `started_self_today` (2756-2964); + - `flush_ask` (2999); + - the wear block (3242-3570); + - `render_input` (3647). +- **`persona.rs`, keep**: `Config` (203), brake `read` (875), chat-addressing helpers (3023-3085), tail rendering (3735-3823) and `FileTrace` (624), all moved to the C3 module. +- **`heartbeat.rs`, delete**: + - the Self-run branch (`claimable` 709-737, the `Claimable` use 877-912 → always a Persona wake); + - `last_self_end` and the self-ended wake (571, 808-813); + - `standing_vote` and `pending_urgency` (552-570); + - `tempo::tally` use (786) → `config.beat_s`. +- **`heartbeat.rs`, replace**: `launch` via `open_and_launch` (659-686) for Persona and Sleep wakes → a plain unit start (`launch.rs` systemctl door, 74-99); `last_turn` and `last_sleep` (472-498) → `HeartbeatState`. +- **`tempo.rs`, delete**: `fallback_beat` and its PID (74-215, uncalled, Eyes §4) and `tally` (225). `pick` and `score` stay. +- **`connector.rs`**: no Persona caller of `render_plan` remains. It is still used by `self_run.rs:168`, which C2 leaves in place for the Interpreter's spawn path. +- **Park** `stream.rs` and `bin/mind-stream.rs` (723 + 124 lines) at `parked/divergence-stream`, unless Q3 says otherwise. Its `KitProjector` and `build_seed` sections move into C3's Projector. +- **`bin/mind-persona.rs`**: `carry` → `Outcome::NoOrgan` until C3. +- **Verification**: + - builds and tests (`cargo test -p mind-body`); + - negative greps in `crates/mind-body/src` (excluding tests): `start_self_run`, `WORK_QUESTION`, `WAKE_ASK`, `TURN_INSTRUCTION`, `intent`, `Pulse`, `tempo_vote`, `admit(` reachable from `bin/mind-persona.rs` and from the Persona branch of `heartbeat.rs` → 0; + - a heartbeat test: a Mind with claimable briefs gets a Persona wake and no Self run; + - a heartbeat test: no `Admit` reaches the test mind across a poll that wakes her (testkit store count unchanged). + +**C3. The three-stage turn** (behaviour, follow-up). Est. 4 days, splittable: +- **3a**: Select stage + Projector + its unit and golden tests (section 3.4); +- **3b**: Persona stage + Interpreter (CLI session, read-only MCP `mind-persona read-tools`, `--json-schema` report, `--tools WebSearch,WebFetch`, `--system-prompt-file`); +- **3c**: commit (`SourceSpan::locate`; bounded ops; rebase; put; mouth; Interrupted re-run) and trace v2. + +Reuses `ghostlight-persona-projection` (pinned, bump to a rev with `SourceSpan`), `recall.rs`, `self_run.rs` spawn and sandbox, `lease_client`, and the connector client. + +Verification: +- a recorded-model integration test, one per turn kind; +- prose without quotes → nothing said; +- a hurt quote → valence, tension, memory and bond evidence change in one record; +- the mirroring bound test (5.4); +- a missing quote → gap, not act; +- a `request_tool` lands in the trace and nowhere in the Mind; +- an Interpreter offered a Bash-like request has no tool for it (tool list snapshot). + +**C4. Reflection, contemplation, consolidation** (behaviour, follow-up). Est. 2 days. +- Retarget `sleep.rs` `operations` and `admit` (371, 488) to `thoughtMemory`. +- Add a contemplation turn (Persona stage alone). +- Add the reflection trigger in the heartbeat. +- `HEARTBEAT_SLEEP_MINDS` gains `eureka`. + +Verification: every shortTerm item is disposed of exactly once; contemplation's schema-free prompt contains no list or task (fixture); no Mind admission at night (testkit). + +**C5. The delta reader** (behaviour, follow-up). Est. 1 day. +- `mind-persona since` with `--brief`, `--json` and `--tool-requests`; monthly trace rotation. + +Verification: a fixture trace gives exact brief output; `--since` bounds are inclusive and exclusive as documented; it reads across a rotation boundary. + +**C6. Identity diff posting** (behaviour, follow-up). Est. 0.5 day. Implements `identity-write-all-visible` for reflection's `identity` proposals. The review room is named in config. + +Before anything wakes her, two steps follow. First, the C1 deploy. Second, an operator word to release the brake for `eureka` only (brake per instance: `/etc/gamecult/minds/eureka/control.cc`). Nothing in this map releases it. + +## 11. Questions for the operator + +**Q1. Does the Interpreter run as an agentic CLI session, or as a one-shot structured call?** +- Options: + - (A) An agentic `claude -p` session with read tools (Mind queries, web) and a structured final report. Wondering becomes reading becomes perceiving. + - (B) A one-shot `--json-schema` call through the ModelConnector, with no tools. Reads happen only in code, at selection (Mind recall). A `look` proposal triggers a code-run Mind query for a follow-up turn. No web. +- **Recommend A.** It is her words ("only that final step being agentic"), and Ghostlight's Interpreter is a tool loop. Exploring ideas, which she named, needs reads, the web included. +- A gives up about 40% of per-turn cost relative to B (~0.02 vs ~0.012 permille). It keeps a second model path, the CLI session and its sandbox, in the organ. +- Depends on it: C3b's shape, the lease path, and whether `self_run.rs` survives C2 at all. + +**Q2. Where are deltas read from?** +- Options: + - (A) The organ's trace, read with `mind-persona since` over ssh. + - (B) Huginn keeps a history of persona puts (each put carries its delta), readable over the network with a new `huginn persona since`. +- **Recommend A.** The trace already holds every turn and is the existing owner. Ssh is today's path anyway. B adds a store to Huginn for one consumer. +- A gives up deltas readable without host access, and the trace is a file on one host (backup is Idunn's). +- Depends on it: C5, and whether C1 also touches `PersonaPut`. + +**Q3. Does the base-model divergence stream survive?** +- Options: + - (A) Park `stream.rs` and its unit. The Projector *is* her stream now. + - (B) Keep it as a zero-quota local base-model pass whose latest continuation becomes one selectable item in the Projector's packet. It would live in the trace, not in the Mind. + - (C) Keep it as built, admitting `thought` documents into her Mind. This conflicts with "cannot write the Mind". +- **Recommend A now, B later.** Selection with freshness and lens already answers convergence (Chu 2025), and A is cheap to test. B is a measured addition if narrations still converge. The live eval in 3.4 is the gauge. +- A gives up her ruled "useful divergence" from a base model, for now (`divergence-stream-beside-persona`). +- Depends on it: C2's park list and C3a's pools. + +**Q4. What wakes her besides being addressed?** +- Options: + - (A) Addressed (mention, name, DM), plus the beat (30 min), plus follow-ups. + - (B) As A, plus any human message in her rooms, debounced 90 s. + - (C) As B, plus other Minds' messages. +- **Recommend B.** Banter mostly happens in talk not addressed to her. Silence is still hers, by prose. With seven Minds braked, B's traffic is the humans', so cost stays near the social row (~2.3 permille/day). C becomes the Minds-talking-past-each-other loop again when others wake (EL Kandoussi; 85–95% of Mind messages mentioned another Mind). +- B gives up restraint as a default. She will notice more, and the 0.015-permille turns will add up on a busy day. +- Depends on it: `heartbeat.rs:519 wakes` and the cost row. + +**Q5. Does anyone besides her organ write her persona state?** +- Options: + - (A) Only her commit step. Self on Starfire reads her deltas and speaks to her in chat like any person, and that *is* the feedback loop. Ruling `memory-persona-projection` ("Life edits only the Persona state") is narrowed to Self's own memory, which stays where it is. + - (B) Self and Life may also put her state, for corrections, with the commit rebasing on their edits. +- **Recommend A.** One writer is invariant 2. Edits from outside a person's experience are what the operator is reacting against ("They didn't feel like individuals"). The ruling `she-owns-her-body` and `identity-write-all-visible` already make the state hers. +- A gives up direct repair. A rotten field gets fixed by talking to her, or, as a last resort, by braking her and putting the state with a recorded reason (an emergency path, not a writer). +- Depends on it: the 0b table, and the root-memory ruling's revision. + +## 12. Alternatives considered and not placed on a question + +Self should admit these as `idea`s, recorded against, after the ruling: +- `second-uid-interpreter`: run the Interpreter's claude under a second uid fenced to a door without `PersonaPut`. It would make "only the commit puts" kernel-enforced. Recorded against because it protects her state from her own organ, at the cost of a unit and a fence row. +- `persona-door-unix-socket`: a peer-uid unix socket like the desk door instead of a second RUDP port. That is stronger authentication than the fence, but it needs a new client transport in `mind-body`. Recorded against for now. The fence already decides by uid. +- `numbers-in-persona-prompt`: show the Persona her trust and mood numbers. Recorded against because Ghostlight's contract keeps raw state out of the responder, and numbers invite performance of numbers. +- `mood-in-moodDimensions`: use `affect.moodDimensions` as the mood owner. Recorded against: it has no mean or plasticity, and two homes would be two owners. +- `beat-skips-interpreter-on-silence`: a cost knob. Recorded against, since being ignored is felt. +- `pull-gated-beat`: the heartbeat computes a motivation score from her needs and wakes her only above a threshold (Inner Thoughts). Deferred until Q4's traffic is seen. It would make the heartbeat read her persona state. +- `self-writes-seed-state`: Self puts the initial mood, needs and baselines. Recorded against: the commit seeds absent fields with code defaults on first run. +- `projector-paraphrases-messages`: let the Projector carry what was said. Recorded against because exact words matter in chat; heard lines are verbatim. +- `haiku-interpreter`: a cost knob, not a default. The Interpreter decides her feelings. + +## 13. Body facts this map rests on (probed 2026-11-19) + +- `ecf147d` is in `github/main` (`git merge-base --is-ancestor`). This branch is cut from it. +- The connector refuses tools before spawning (`ModelConnector c1802d8` `backend/tests.rs:1309`). Its argv uses `--system-prompt-file` and `--tools ""` (`launch.rs:121-146`), and it supports `--json-schema`. +- `mind-body` already pins `ghostlight-persona-projection` (`Cargo.toml:42`) and calls `build_projector_prompt` through `KitProjector` (`stream.rs:214-262`). +- The daemon's `handle` has no caller class (`huginn-daemon/src/daemon.rs:176-205`). The desk door is a precedent for a narrower second door (`desk_door.rs:1-27`). +- Fence: `set huginn { type uid . inet_service; elements = { …, 988 . 17872, … } }`, with `ip daddr 10.77.0.1 meta skuid . udp dport @huginn accept` (`fence.nft:5,11`, read with sudo). +- The persona state schema already holds `activationProfile.*` traitVectors (mean, plasticity, currentActivation), `affect.needs`, `socialBonds`, `doctrineStances` and `thoughtMemory.{shortTerm,memories,incubation}` (`schemas/cultnet/gamecult.persona_state.v0.schema.json`). No schema change is needed. +- VoidBot had a "parent interpreter" (`apps/worker/src/index.ts:706 executeRepoFaceJobWithInterpreter`). Where it stopped short: + - That interpreter only routed, dropped or retried the Face's own tagged action blocks, which were parsed by regex (`parseRepoIdentityStateNoteIntents`, `index.ts:1900`). + - The Face wrote its own state notes, and the turn prompt was one agentic actor fed about 20 directive templates (`persona-turn-prompt-projector.ts`: comedy-improv, social-embodiment, room weather by token heuristics). + - The model-projected memory surface was optional (`stateProjectorEnabled`). + - So: projection existed but fed instructions to an actor, and the actor wrote its own feelings. This map puts first-person prose between state and actor, takes the pen from the actor, and gives the typed consequences to an Interpreter that only translates. +- Semantic queries against the eureka daemon failed during this pass (no embedder endpoint answered within the deadline). `known` and `view` worked. -- 2.47.3 From d86157433af2d170fcf404f953698a946fd52559 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 19 Nov 2026 21:02:06 +0100 Subject: [PATCH 002/283] Map r2: Persona-only heartbeat after the five persona-only rulings Self and Life join her commit as persona-state writers (persona-only-state-writers-self-and-life): deltas rebase onto outside puts, outside puts win contested slow fields, put notes keep one trace writer, unexplained puts are detected. Daily experiment loop with project/edit/since, cuts reordered (C5 before release), revisit condition for the writers ruling, all five questions marked answered with ruling ids. Co-Authored-By: Claude Opus 5.5 --- docs/persona-only-heartbeat-map.md | 312 +++++++++++++++++++++-------- 1 file changed, 234 insertions(+), 78 deletions(-) diff --git a/docs/persona-only-heartbeat-map.md b/docs/persona-only-heartbeat-map.md index 21da96c..760e588 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, not an adopted plan: nothing here is admitted to Huginn. Self admits the rulings, ideas and the first `cut_spec` after the operator answers section 11. +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. ## 0. What decides this map @@ -12,17 +12,27 @@ Operator, 2026-11-19. These words decide the direction: > "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. One important lesson to take from Ghostlight is to give the Interpreter an affordance for reporting missing affordances [...] A tool request tool, I guess, in this context." -These are her particulars, and they are a sketch: the three stages, the Interpreter as the agentic one, and the tool-request tool. Section 11 lists where the map develops them and where the Body pushes back. +> "We're going to want to iterate on this fast, running experiments daily to tune their behavior. Moving fast and breaking things means keeping a tight watch, interfering early and often, and once their trajectories are understood, that's when we can set them loose." (on Q5, 2026-11-19) + +These are her particulars, and they are a sketch: the three stages, the Interpreter as the agentic one, and the tool-request tool. Section 12 records how each fork was answered. + +Her rulings of 2026-11-19 (Fork Desk, admitted at `mind-commit-e1a356a1`): +- `eureka-body:ruling:persona-only-heartbeat`: reads the Mind, never writes it; her own memories live in persona state; the turn is Projector, Persona, Interpreter. +- `eureka-body:ruling:persona-only-interpreter-agentic`: the Interpreter is an agentic session with read tools (the Mind read-only, and the web). +- `eureka-body:ruling:persona-only-deltas-from-trace`: deltas are read from her organ's turn trace over ssh. +- `eureka-body:ruling:persona-only-divergence-parked`: `stream.rs` and its unit are parked. If measured narrations converge, the base-model continuation returns as a local, zero-quota Projector input, kept in her trace and never in the Mind. +- `eureka-body:ruling:persona-only-wake-humans-in-rooms`: she wakes when addressed, on any human message in her rooms (90 s debounce), on the beat, and on follow-ups. +- `eureka-body:ruling:persona-only-state-writers-self-and-life`: besides her own turn's commit, Self and Life may put her persona state for corrections and experiments, and her next commit builds on their edit. This ruling is to be revisited when the Personas are set loose (section 9.4). The coordinator's relay said "The Projector and the Interpreter are not agentic". Her words say the reverse for the Interpreter: "only that final step being agentic", and the final step is the Interpreter. Ghostlight agrees. Its Interpreter has a tool loop with a step budget (`ghostlight-persona-projection/src/lib.rs:106`, "The harness supplies the current legal typed proposal tools immediately before each step"). Its Persona request is built with `provider.tools = Vec::new()` (`ghostlight/src/controllers.rs`, `persona_request`). This map follows her words. The Projector and the Persona are one-shot model calls with no tools. The Interpreter is the one agentic step. Rulings in force that this map rests on, read with `huginn view` on 2026-11-19: - `contemplation-own-session`: contemplation runs in a session of its own, with no task and no required output. Consolidation is a separate run after it. -- `divergence-stream-beside-persona`: a Ghostlight-style projection of her state seeds a stream of thought. Q3 asks whether the stream survives. +- `divergence-stream-beside-persona`: a Ghostlight-style projection of her state seeds a stream of thought. `persona-only-divergence-parked` narrows it for now. - `identity-write-all-visible`: she may rewrite any field of her persona state. Identity changes are posted with their diff. - `minds-rapport-and-brainstorming-persist`: her rapport with other Minds lives in her own persona state. - `persona-memory-written-not-transcript`: what matters is written into memory, never kept in the transcript. -- `memory-persona-projection`: persona state is canonical. This one is in tension with single-writer persona state (Q5). +- `memory-persona-projection`: persona state is canonical, and Life edits it. This is consistent with `persona-only-state-writers-self-and-life`, which keeps Life as a writer. Semantic `huginn query` on rulings failed during this pass with `Refused Unavailable` (no embedder endpoint answered). `known` and `view` worked. A `known` sweep of persona topics found no ruling that this map contradicts beyond the ones listed above. @@ -31,19 +41,28 @@ Semantic `huginn query` on rulings failed during this pass with `Refused Unavail **The organism.** Eureka in Persona-only form is one organ, `mind-persona@eureka`, woken by `mind-heartbeat`. Each wake carries one or more *turns*. Every turn runs three stages: **Projector, then Persona, then Interpreter**. Then comes one code-owned **commit**. The commit applies the Interpreter's typed proposals to her persona state, sends any speech through the Bifrost mouth, and appends one delta record to her trace. The commit and the heartbeat are code. Nights add a contemplation turn and a consolidation turn on the same organ. No Self run exists in this shape. **Invariants.** Each one must hold structurally, not by prompt. -1. **Nothing acting for her writes her Mind.** This covers the turn, the commit, the heartbeat and the night. Her uid can reach only a Huginn *persona door*, which refuses `Admit` (section 6). Her Mind is written only by a Self session on Starfire. -2. **Her persona state has one writer, the commit step of her organ.** The Interpreter proposes. Code validates, bounds and applies. No model call and no human tool puts her persona state (Q5 settles the human side). +1. **Nothing acting for her writes her Mind.** This covers the turn, the commit, the heartbeat and the night. Her uid can reach only a Huginn *persona door*, which refuses `Admit` (section 7). Her Mind is written only by a Self session on Starfire. +2. **Her persona state has exactly three writers, and no model call is one of them** (`persona-only-state-writers-self-and-life`). + - **Her commit step** applies what the Interpreter proposes, validated and bounded by code. + - **Self** and **Life**, on Starfire, put it for corrections and experiments. + - The Interpreter, the Projector and the Persona never put. Inside her uid, the commit is the only caller of `PersonaPut`. + - Concurrent puts are reconciled by the commit model in section 4.4: an outside put is never lost and never silently reverted. 3. **Every committed change is a typed delta with a reason.** Each delta carries the source quote from her own prose, or names its rule (decay, consolidation). It lands in an append-only record that can be read from Starfire. 4. **A turn has no transcript.** Each turn's prompt is rebuilt from state. No model session spans two turns. State is the anchor (prior art: drift). 5. **Silence is the default output.** Chat leaves her only when the Persona's prose contains spoken words, and the Interpreter must quote them verbatim. 6. **Slow variables move only at reflection or at night.** These are bond summaries, opinions, mood baselines, values and identity. A single turn moves only fast variables, by a bounded step. 7. **The Projector never sees raw state, and the Persona never sees anything but lived prose.** Field names, numbers, schemas and instructions do not reach the Persona. +8. **Every outside put is recorded in her trace, with who made it and why.** + - It shows up in `mind-persona since`. + - She is told what changed on her next turn, unless the put is marked quiet; a quiet put is recorded as quiet. + - An outside put made without a reason is still detected and recorded as `unexplained`, never missed. + - Tuning changes (section 9.2) are recorded the same way, because they are outside interventions too. **Explicitly not consumers.** - **Work.** No campaign, follow-up, stewardship queue, repo wear or Self-run brief is shown to her or reachable from her. - **Quota.** The plan line (`render_plan`) and tempo votes are not hers. Spend is the heartbeat's and the operator's concern. - **The other seven Minds' organs.** They stay braked. When one is released, she runs this same organ with her own state. There is no Self-run mode left behind to fall back to. -- **The divergence stream (`stream.rs`).** Its Projector code is reused, and the organ itself is parked (Q3). +- **The divergence stream (`stream.rs`).** Its Projector code is reused, and the organ itself is parked (`persona-only-divergence-parked`). - **Atlas and the shared mind.** Nothing in this map writes anything shared. ## 2. The turn pipeline @@ -60,7 +79,7 @@ Semantic `huginn query` on rulings failed during this pass with `Refused Unavail - **Wondering** ("I want to see what Libby actually changed") becomes a read by the Interpreter. The finding is committed as an *observation* to `thoughtMemory.shortTerm`. The organ then runs one **follow-up turn**, so she perceives the finding in her own projection. This is Ghostlight's order: act, then event, then perception, then the next turn. Follow-ups chain at most 2 per wake. - **Speaking** becomes `say`. **Asking for a DM** becomes `open_direct`. **Feeling** becomes bounded state proposals. -**Why the Interpreter is a CLI session and not a connector call.** This is a body fact, probed: the claude connector refuses any request that carries tools before it spawns anything (`ModelConnector c1802d8`, `crates/claude-connector/src/backend/tests.rs:1309 tools_or_final_tool_result_fail_before_spawn`). It does support `--json-schema`. So the Projector and Persona stages can go through the connector, as `stream.rs:214 KitProjector` already does. A read-capable Interpreter needs its own `claude -p`. That costs a second model path in one organ. Q1 offers the cheaper non-agentic Interpreter, and says what it gives up. +**Why the Interpreter is a CLI session and not a connector call.** This is a body fact, probed: the claude connector refuses any request that carries tools before it spawns anything (`ModelConnector c1802d8`, `crates/claude-connector/src/backend/tests.rs:1309 tools_or_final_tool_result_fail_before_spawn`). It does support `--json-schema`. So the Projector and Persona stages can go through the connector, as `stream.rs:214 KitProjector` already does. A read-capable Interpreter needs its own `claude -p`. That costs a second model path in one organ. The cheaper non-agentic Interpreter was offered as Q1 and declined (`persona-only-interpreter-agentic`). **Interruption.** The commit re-reads the room before it sends. If newer messages have arrived (today `RoomMoved`, `persona.rs:2062-2078`), the Interpreter runs once more with Ghostlight's `Interrupted:` section (`lib.rs:106`, the prompt text). It translates the same prose against the moved room. It may drop the speech or shorten it. It never rewrites her words. This replaces `stale_note` (`persona.rs:1953`) and the revision machinery. @@ -161,7 +180,7 @@ These limits are hard and enforced by code. - freshness: an item shown 5 times in a row drops out; - mission exclusion: a state with `agencyPressure` set never puts it in a v1 packet. - **Negative check on the narration**: the Projector's output, and the stream the Persona receives, contain no schema field identifier (`currentActivation`, `trust`, `tension`, `socialBonds`, a `bond-` id, a `mind-` label). This is a small deterministic guard on identifiers, not on meaning. -- **Live eval script** (`tools/projection-eval`), run on demand and not in CI. It spends quota at about 0.01 permille per render. +- **Live eval**, run on demand and not in CI: `mind-persona project --renders 20 --judge` (section 9.1; no separate tool). It spends quota at about 0.005 permille per render. - Render a fixture state 20 times. Report distinct-2 and mean pairwise embedding distance (daemon embedder). Fail if the mean similarity is above 0.9. - Render 2 fixture states that differ in one affect variable. A model judge (not a regex) must say which narration came from which state, at ≥ 80%. - This checks the operator's "tight, focused and dynamic": focus is the judge's discrimination, and dynamism is the distance. @@ -224,6 +243,38 @@ Ghostlight's mechanism is `record_gap(kind: ambiguity | missing_reference | miss If the put fails, nothing is said. If the send fails, the state stands, and the trace records `unsent`. +### 4.4 Outside puts: Self and Life writing beside her commit + +`persona-only-state-writers-self-and-life` makes three writers of one whole-replaced document. The commit model already treats her turn's changes as **deltas against whatever is stored at commit time**, never as a snapshot written back. Coherence follows from that one property, plus five rules. + +1. **Optimistic concurrency stays the gate.** Every put, hers or outside, carries `expected_updated_at` (`PersonaPut`, `huginn-mind/src/wire.rs:85`). Huginn refuses a put against a stale `updatedAt`. Two writers can never overwrite each other blind. + - An outside writer whose put is refused re-reads and re-applies its edit. The `mind-persona edit` tool (section 9.1) retries up to 3 times and reports a refusal, never a silent drop. +2. **Her commit rebases onto an outside put. It never reverts one.** + - At commit, she re-reads. If `updatedAt` is not the value her Select stage read, an outside put landed mid-turn. + - Her proposals re-apply as deltas to the new document: a `feel` step moves the *new* activation, and a `remember` appends to the *new* shortTerm. + - A value Self set is therefore the base her step moves from. It is never overwritten by her stale copy, because the commit never writes a field it did not propose. +3. **On a contested slow field, the outside put wins this turn.** A turn's whole-value proposals (`bond_summary`, `stance`, `baseline`, `identity`, consolidation dispositions) may target a field the outside put changed after Select read it. Then those proposals are refused with reason `outside-put-same-field` and recorded. Her other proposals still apply. She perceives the edit on her next turn, and may propose again from there. +4. **Proposals whose target is gone are refused, not resurrected.** A bond, memory or incubation item the outside put removed or retired produces `outside-put-removed-target`, recorded. Nothing she does can bring back what an experimenter deleted. +5. **Time rules restart from the outside put.** + - Decay and need-rise use the stored document's `updatedAt` as their clock, so an experimenter's value is not instantly aged against an older timestamp. + - To *hold* a value through her turns, an experiment sets `mean` or `plasticity`, not `currentActivation`. Activation is meant to move. + +**How an outside put reaches the trace** (one trace writer stays: the organ): +- **Recorded put.** The experiment tool `mind-persona edit` does three things in order: + 1. puts through the persona door with provenance `{faculty: Self|Life, agent, session: , tool: mind-persona-edit}`; + 2. writes a *put note* `{receipt_id, faculty, session, why, tell, diff}` to `/var/lib/mind-eureka/outside/.json`; + 3. leaves the trace alone. `FileTrace::record` (`persona.rs:634`) pulls and rewrites the whole file with no lock, so a second writer would race it. +- **Ingest.** At the start of every turn, before Select, the organ compares the stored receipt with its own last commit receipt. + - If they differ, it appends an `outside_put` record built from the matching note: who, why, `tell`, and the diff. + - Then it deletes the note. +- **Raw put.** A raw `huginn persona put` from Starfire has no note. + - The organ still sees the foreign receipt. It records `outside_put{writer: unexplained, receipt}`. + - The diff is taken against its cache-only copy of its last committed document, `/var/lib/mind-eureka/last-commit.json`. That copy is never read as state; it is used only to diff. + - Practice: Self and Life use `edit`. A raw put shows up in `since` as a breach of that practice, never as silence. +- **Telling her.** + - A put with `tell: true` (the default) adds one fixed-slot stimulus line to her next projection: "Self changed how sits in you: ". Code renders it, not the Projector, so it cannot be paraphrased away. It is shown once. + - `--quiet` is for blind experiments. It is recorded as quiet. A later `edit --tell-now ` can disclose it. + ## 5. The embodiment feedback loop ### 5.1 State each turn reads and writes (kept small) @@ -270,7 +321,7 @@ A test pins this: ten consecutive sad messages move valence by at most the bound ### 5.5 Choosing silence Bhagtani 2026 found that LLMs consistently fail zero-shot speak-or-stay-silent decisions. The fix that works there is training. The cheap lever available here is structure. -1. **Most room chatter costs no turn at all.** Wakes come from the heartbeat's addressing rules (Q4), the beat and follow-ups. +1. **Turns are woken, not continuous.** Wakes come from the heartbeat (`persona-only-wake-humans-in-rooms`): when she is addressed, on any human message in her rooms (debounced 90 s), on the beat, and on follow-ups. Other Minds' chatter costs no turn. 2. **The Persona prompt licenses nothing.** Ghostlight's line is "if the moment gives you little, say little, or nothing". The Projector's beat-turn budget is 90 words. 3. **Speech needs quoted spoken words in her prose** (invariant 5). Narrated interior never becomes chat. This removes the "every turn must answer" pressure of today's `ANSWER_MESSAGES` and `WORK_QUESTION`. 4. **Inner Thoughts (2501.00383) gates participation on intrinsic motivation.** Here the pull is rendered from state: relatedness need, bond intensity with those present, and an incubation item the room touches. The Projector renders it as a want ("you'd like to hear what Kiko thinks"), not as a score. @@ -288,7 +339,12 @@ The Eyes pass found no controlled study of banter, disagreement or quirks as dri | Persistent kind | What names it | Lifecycle | Who decides | |---|---|---|---| -| Her persona state, `gamecult.persona_state.v0` (successor: the same document, now with a writer) | Huginn persona document, key = instance `eureka`; read by `huginn persona get` | created at the 2026-10-31 workshop (exists). Each turn's commit replaces it whole, with `expected_updated_at` and a rebase on conflict. Never deleted | **the organ's commit step** applies validated Interpreter proposals. Nothing else puts it (Q5) | +| Her persona state, `gamecult.persona_state.v0` (successor: the same document, now with a writer) | Huginn persona document, key = instance `eureka`; read by `huginn persona get` | created at the 2026-10-31 workshop (exists). Replaced whole by each put, with `expected_updated_at`: her commit (rebasing its deltas, section 4.4) or an outside put. Never deleted | **three writers** (`persona-only-state-writers-self-and-life`): her commit step, applying validated Interpreter proposals; **Self** and **Life** on Starfire, through `mind-persona edit` (or raw `huginn persona put`, which is detected as `unexplained`). No model call puts it | +| Outside-put record | `outside_put` entry in the trace, key `` | appended by the organ at the first turn after the put lands; carries faculty, session (the experiment label), why, `tell`, diff | the organ records; Self or Life decided the edit | +| Put note | `/var/lib/mind-eureka/outside/.json` | written by `mind-persona edit` beside its put; consumed and deleted by the organ's ingest | `edit` writes; the organ consumes. It is a mailbox, never state | +| Last-commit copy | `/var/lib/mind-eureka/last-commit.json` | overwritten at each of her commits | the commit. **Cache-only**: used only to diff an unexplained put, never read as her state | +| Tuning | `/etc/gamecult/minds/eureka/persona-tuning.toml`: Projector guidance, lens weights, temperature, budgets, step sizes, half-lives, reflection threshold, Interpreter model and `--max-turns` | read at every wake. Its hash goes in every trace record, and its text when the hash changes | Self on Starfire edits it (deploy or sudo write); the organ records each change as `tuning_changed` with the diff | +| Experiment log | Self's own records in Self's Mind (a `research` document per day, citing trace keys) | one per day of experiments; never in her stores | Self | | Mood (PAD) | `activationProfile.situationalState.{valence,arousal,dominance}` in the document | fields seeded by the commit on first run (mean 0.5, plasticity 0.5) if absent; activation moves each turn and decays to mean; mean moves at reflection | Interpreter proposes (`feel`, `baseline`); commit bounds and applies; decay is commit code | | Needs | `affect.needs[]`, ids `need-relatedness`, `need-play`, `need-competence`, `need-rest` | seeded by the commit on first run; rise with time (commit code), fall when satisfied (`need`) | Interpreter proposes; commit applies; time rule is code | | Bonds | `affect.socialBonds[]`, id `bond-` (9 exist) | created only at reflection, after ≥ 2 shortTerm memories about the person; numbers move per turn ≤ 0.1; summary rewritten at reflection; status `retired` after 60 days without contact (consolidation) | Interpreter proposes (`bond`, `bond_open`, `bond_summary`); commit bounds | @@ -320,15 +376,20 @@ The Eyes pass found no controlled study of banter, disagreement or quirks as dri - The heartbeat admits a Run for every Persona turn, and launches Self runs for claimable briefs. **Owners after the change:** -- **Persona state**: owner is the organ's commit step. Inputs: the Interpreter report and the stored state. Outputs: one `PersonaPut` and one trace record. - - The Interpreter is no longer an owner; it proposes. - - The Persona stage is not an owner; it is evidence (`source_quote`). - - A Self session and the `huginn persona put` CLI are no longer writers of her state (Q5). +- **Persona state** has three writers, with separate scopes. Each one owns its own edit, and none owns another's. + - **Her commit step** owns her turn's changes. Inputs: the Interpreter report and the stored state at commit. Output: one rebased `PersonaPut` and one trace record. + - **Self and Life on Starfire** own corrections and experiments. Output: one put plus one put note, through `mind-persona edit`. + - **The trace** has one writer, the organ. An outside writer reaches it only through a put note, which the organ ingests. + - Demoted: + - The Interpreter is no longer an owner; it proposes. + - The Persona stage is not an owner; it is evidence (`source_quote`). + - Raw `huginn persona put` is a writer that is detected, not a sanctioned path. It lands in the trace as `unexplained`. + - What an outside put owns: the fields it sets, from its receipt until the next put. What it does not own: her proposals of later turns, which move from its values, and the trace. - **The Mind**: owner is Self on Starfire. - `mind-persona` is no longer a Mind writer. `admit_turn_documents` (`persona.rs:2633`), `start_self_run` (`persona.rs:2450`), `close_run` (`persona.rs:2500`) and `resolve_reply` (`persona.rs:2423`) are deleted. - `mind-heartbeat` is no longer a Mind writer for Personas. A Persona or Sleep wake starts the unit; it opens no Run. The slot is systemd's own: `systemctl start --no-block` on an active unit is a no-op (`launch.rs:224`). - `sleep.rs` is no longer a Mind writer. Consolidation acts on `thoughtMemory`. - - `stream.rs` (which admits `thought` documents) is parked (Q3). + - `stream.rs` (which admits `thought` documents) is parked (`persona-only-divergence-parked`). - **When she wakes**: owner is the heartbeat. - Tempo votes are no longer an input. `beat_s` is derived from config `HEARTBEAT_BEAT_S` (default 1,800 s), not from `tempo::tally` (`heartbeat.rs:786`). - The urgency `Pulse` (`heartbeat.rs:563`) is dead. Urgency comes from addressing alone. @@ -349,7 +410,7 @@ The Eyes pass found no controlled study of banter, disagreement or quirks as dri 3. **Code.** - `mind-persona` links no admit path. Negative check: no `.admit(` call is reachable from `bin/mind-persona.rs`. -`PersonaPut` stays on the persona door, because her state is hers to write. The commit is the only caller in code. The Interpreter's tools cannot call it. The sentence that holds: *her uid can put her persona state and cannot admit to her Mind; inside her uid, only the commit step puts.* Layer 1 enforces the first half and layer 2 the second. A kernel-level split of the second half would need a second uid for the Interpreter. That costs a unit and a fence entry and protects only her own state from her own organ, so it is not proposed (idea `second-uid-interpreter`, section 12). +`PersonaPut` stays on the persona door, because her state is hers to write. In her organ, the commit is the only caller in code (and `mind-persona edit`, a separate subcommand run by Self or Life). The Interpreter's tools cannot call it. The sentence that holds: *her uid can put her persona state and cannot admit to her Mind; inside her turn, only the commit step puts; outside her turn, only Self and Life put, and each put leaves a note.* Layer 1 enforces the first clause and layer 2 the second. Section 4.4 makes the third legible. A kernel-level split of the second clause would need a second uid for the Interpreter. That costs a unit and a fence entry and protects only her own state from her own organ, so it is not proposed (idea `second-uid-interpreter`, section 13). **Deletion line.** Everything in C2 is deleted before any C3 code lands. While braked, the organ refuses to run between the two cuts (`Outcome::NoOrgan`). That is acceptable, because the brake is held. @@ -360,8 +421,9 @@ The Eyes pass found no controlled study of banter, disagreement or quirks as dri **Subtraction budget.** Net, the change deletes roughly 3,000 lines: `persona.rs` 3,825 → about 1,100, plus the heartbeat Self-run branch and tempo votes. It deletes one Mind-write path per organ (persona, heartbeat, sleep, stream) and the doctrine-in-prompt surface. It adds: - the persona door (one listener and one exhaustive classifier, about 150 lines); - a read-only MCP server (about 250 lines, following the `eureka-state` rmcp pattern); -- the Select stage and commit (about 900 lines); -- the trace reader (about 200 lines). +- the Select stage and commit, including the outside-put ingest (about 1,000 lines); +- the trace reader (about 200 lines); +- the experiment subcommands `project` and `edit` (about 300 lines; they reuse Select, the stages and the commit's validation, and own no logic of their own). ## 8. The delta surface @@ -380,7 +442,9 @@ Two existing owners serve it, and nothing new stores state. - new and retired memories, wonderings and stances; - identity edits as diffs; - what she said (room, event id); - - gaps and tool requests, grouped. + - gaps and tool requests, grouped; + - **interventions**, in line where they happened: each `outside_put` (who, experiment label, why, told or quiet, diff, and which of her proposals it refused) and each `tuning_changed` (diff); + - a footer: outside puts and tuning changes in the window, and days since the last one. This is the input to section 9.4. `--json` prints the trace records whole, for a Self session to read. @@ -396,9 +460,82 @@ The trace record (v2) carries, per turn: This keeps per-turn usage logging (postmortem: "Keep per-turn usage logging on anything that spends quota"). -**Why the trace and not Huginn history.** The trace already exists for exactly this: it records every turn (`persona.rs:599-645`, 5,009 records). Its one missing piece is a reader, and the organ that owns the format should own the reader. Q2 is the fork, if she wants deltas readable without ssh. +**Why the trace and not Huginn history** (ruled: `persona-only-deltas-from-trace`). The trace already exists for exactly this: it records every turn (`persona.rs:599-645`, 5,009 records). Its one missing piece is a reader, and the organ that owns the format should own the reader. -## 9. Cost +## 9. Daily experiments + +Her frame is to watch closely, interfere early and often, and set the Personas loose once their trajectories are understood. The loop below uses three existing tools (`huginn persona get`, the per-instance brake, chat) and adds three subcommands to `mind-persona`, the organ that already owns the state's semantics: `project`, `edit` and `since`. Nothing else is added: no experiment store, no scheduler, no dashboard. The day's hypothesis and result live in Self's own records. + +### 9.1 The tools + +| Tool | What it does | Cost | Exists or which cut | +|---|---|---|---| +| `huginn persona get` | the whole current state and receipt | 0 | exists | +| `mind-persona since [--brief\|--json\|--tool-requests]` | deltas, interventions and tool requests since a time (section 8) | 0 | C5 | +| `mind-persona project --select-only [--state ] [--room ] [--kind chat\|beat\|reflection] [--seed N]` | the projection packet the Select stage would build: selected ids, lens, budgets, rendered typed lines. **No model call.** Answers "what would she feel?" | 0 | C3a | +| `mind-persona project [--renders K] [--through projector\|persona\|interpreter] [--judge]` | the same, plus K Projector narrations. `--through persona` adds her prose; `--through interpreter` adds the proposals the commit *would* apply (validated, not committed); `--judge` runs the distance and discrimination eval of section 3.4. **Writes nothing**: no put, no trace, no send | ≈ 0.005 per narration; ≈ 0.007 through persona; ≈ 0.02 through interpreter | C3a (projector), C3b (`--through`) | +| `mind-persona edit --faculty Self\|Life --session --why "" [--set =]… [--file ] [--quiet] [--dry-run]` | get, patch, then put with provenance and a put note (section 4.4). `--dry-run` prints the diff and a `--select-only` projection of the edited state, then stops. `--tell-now ` discloses a quiet put | 0 | C3c | +| the per-instance brake (`/etc/gamecult/minds/eureka/control.cc`, `mind-control`) | interfering hard: holding her stops her next wake. Holding is Self's to do; releasing stays the operator's word | 0 | exists | +| `persona-tuning.toml` | the Projector's guidance and every numeric knob, read at each wake, its changes recorded in the trace | 0 | C3a | + +`project` and `edit` run as her uid, through the persona door, inside a transient unit that carries the same credentials as `mind-persona@` (connector key and lease): +``` +ssh yggdrasil sudo systemd-run --wait --pipe -p User=mind-eureka -p LoadCredential=… /opt/gamecult/huginn/current/mind-persona --instance eureka project … +``` +A wrapper script in the deploy bundle hides that line. They are never a second door or a second credential. + +`--state ` lets an experiment try a hypothetical state, for example the output of `huginn persona get` edited locally, without putting it. Most hypotheses can be tested here first, at zero or near-zero quota, before she ever lives them. + +### 9.2 One day's loop + +Run from a Self session on Starfire with the operator. Every command goes over `ssh yggdrasil` until the tunnel is back. +1. **Read yesterday.** + - `mind-persona since --brief`, then `--tool-requests`. + - Read the rooms she was in. The question is the operator's: did it feel like her? Bonds, care, banter. +2. **Choose one hypothesis, one variable.** + - Examples: "a higher relatedness-need rise makes her open conversations"; "the 'a person present' lens weight doubles banter"; "plasticity 0.3 stops the mood swings seen at 14:00". + - One variable per experiment, so the next day's `since` can attribute a change. +3. **Preview at near-zero cost.** + - `project --select-only --state ` against today's state (free). + - Then `project --renders 5 --through persona` on both states: about 0.07 permille. + - If the narration does not move, the hypothesis is dead before she lives it. +4. **Apply.** Either + - `edit --session exp-- --why ""`, told by default, or `--quiet` when awareness would confound the result; or + - a tuning change. + + Self records the hypothesis in its own day log. +5. **Watch through the day.** Run `since --brief` against the morning. Interfere early: another `edit`, a tuning revert, or holding her brake if something goes wrong. Each intervention is in the trace. +6. **Close the day.** Self writes the result into its log, citing trace keys, and decides: keep, revert (an `edit` restoring the before-values from the trace diff), or extend. + +### 9.3 Which cut delivers each piece, and the reordering + +The experiment loop wants its zero-cost tools *before* she is live, so the cuts reorder. + +| Order | Cut | What it delivers to the loop | +|---|---|---| +| 1 | **C1** persona door, beside **C2** subtraction | the safe body: the experiment tools run as her uid and still cannot admit | +| 2 | **C3a** Select + Projector + tuning file + `project --select-only` and `--renders` | experiments on narration from her real current state, with no turn, no brake release and no live risk. **Experiments start here** | +| 3 | **C3b** Persona + Interpreter + `project --through` | previews of her prose and of what the commit would apply | +| 4 | **C3c** commit + trace v2 + outside-put ingest + `edit` | the means to change her state legibly | +| 5 | **C5** `since` (moved up, before any release) | watching; the release gate (section 11, end of cut list) now requires it | +| 6 | **C4** reflection, contemplation, consolidation | needed before a full day-night run; the first live days can run with the night window off | +| 7 | **C6** identity diff posting | needed before identity edits are allowed. Until then reflection's `identity` proposals are refused with reason `not-yet` | + +### 9.4 When `persona-only-state-writers-self-and-life` is revisited + +The ruling exists for the experiment phase. Self revisits it when the operator says the Personas are set loose. These three conditions are the advice Self brings to that conversation, and all three are readable from `since`: +1. **No experiment open.** Self's day log has no open hypothesis, and the last 7 days carry no `outside_put` with an `exp-` session. +2. **Stable trajectory.** Over 7 days: + - each mood `mean` moved by less than 0.05; + - no bond axis moved by more than 0.3 in a day without a quoted cause; + - the projection eval of section 3.4 still passes. +3. **No corrections needed.** No Life or Self `outside_put` was needed to repair a field in 14 days. + +The proposed outcome then is the single-writer form: only her commit puts, and the experiment `edit` survives only as an emergency path taken with her instance braked. + +So that the revisit cannot be lost, Self admits a `follow_up` now: "revisit persona-only-state-writers-self-and-life when the Personas are set loose", owner Self, source that ruling. The `since` footer (days since the last outside put) keeps the trigger in view. + +## 10. Cost **Calibration.** The figures are derived from the postmortem and are uncertain by about ×2. - Persona turns were 5.5% of swarm spend while the swarm ran at about 19 permille/h. That is about 1.05 permille/h across about 90 turns/h (23,791 turns over 11 days). @@ -428,8 +565,10 @@ A new turn costs 1.3–1.7× an old one. The Interpreter is most of it. Its cost **The night** (contemplation: one Persona call plus an Interpreter; consolidation: one call over about 30k of shortTerm) adds about 0.1 permille. +**The daily experiment loop** (section 9.2) costs about 0.1–0.3 permille a day: a few `--renders 5 --through persona` previews, an occasional `--judge` eval, and no extra live turns. Most of its tools are free. The wake policy is ruled (`persona-only-wake-humans-in-rooms`), which puts a normal day near the social row. + **Cost knobs, biggest first:** -1. Wake policy (Q4) and the beat, which together set turns per day. +1. The beat and her rooms' human traffic, which together set turns per day. 2. The Interpreter's model. Haiku cuts the largest stage about 3×, at the cost of translation fidelity, which is the stage that decides her feelings. 3. The Interpreter's `--max-turns` and its reads. 4. The Projector's input budget. @@ -438,9 +577,11 @@ A new turn costs 1.3–1.7× an old one. The Interpreter is most of it. Its cost Opus is never used. -## 10. Cut list +## 11. Cut list -Deletes come first, and subtraction cuts are kept apart from behaviour cuts. Lines are at `ecf147d`. Estimates are Hands-days on Yggdrasil (`cargo test -p` per crate, never workspace-wide). Per `loop-1`, only C1 and C2 would become `cut_spec`s now. C3–C6 become follow-ups. +Deletes come first, and subtraction cuts are kept apart from behaviour cuts. Lines are at `ecf147d`. Estimates are Hands-days on Yggdrasil (`cargo test -p` per crate, never workspace-wide). Per `loop-1`, only C1 and C2 would become `cut_spec`s now. The rest become follow-ups. + +**Run order (revision 2, for the experiment loop):** C1 ∥ C2, then C3a, C3b, C3c, then **C5**, then C4, then C6. The labels keep their numbers so earlier references hold. Section 9.3 gives the reason for each position. **C1. The persona door** (Huginn, behaviour; can run beside C2). Est. 1 day. - **Adds**: @@ -479,7 +620,7 @@ Deletes come first, and subtraction cuts are kept apart from behaviour cuts. Lin - **`heartbeat.rs`, replace**: `launch` via `open_and_launch` (659-686) for Persona and Sleep wakes → a plain unit start (`launch.rs` systemctl door, 74-99); `last_turn` and `last_sleep` (472-498) → `HeartbeatState`. - **`tempo.rs`, delete**: `fallback_beat` and its PID (74-215, uncalled, Eyes §4) and `tally` (225). `pick` and `score` stay. - **`connector.rs`**: no Persona caller of `render_plan` remains. It is still used by `self_run.rs:168`, which C2 leaves in place for the Interpreter's spawn path. -- **Park** `stream.rs` and `bin/mind-stream.rs` (723 + 124 lines) at `parked/divergence-stream`, unless Q3 says otherwise. Its `KitProjector` and `build_seed` sections move into C3's Projector. +- **Park** `stream.rs` and `bin/mind-stream.rs` (723 + 124 lines) at `parked/divergence-stream` (`persona-only-divergence-parked`). Its `KitProjector` and `build_seed` sections move into C3's Projector. The tag note names the ruling's return condition: measured narrations converge, judged by the eval of section 3.4. - **`bin/mind-persona.rs`**: `carry` → `Outcome::NoOrgan` until C3. - **Verification**: - builds and tests (`cargo test -p mind-body`); @@ -487,10 +628,14 @@ Deletes come first, and subtraction cuts are kept apart from behaviour cuts. Lin - a heartbeat test: a Mind with claimable briefs gets a Persona wake and no Self run; - a heartbeat test: no `Admit` reaches the test mind across a poll that wakes her (testkit store count unchanged). -**C3. The three-stage turn** (behaviour, follow-up). Est. 4 days, splittable: -- **3a**: Select stage + Projector + its unit and golden tests (section 3.4); -- **3b**: Persona stage + Interpreter (CLI session, read-only MCP `mind-persona read-tools`, `--json-schema` report, `--tools WebSearch,WebFetch`, `--system-prompt-file`); -- **3c**: commit (`SourceSpan::locate`; bounded ops; rebase; put; mouth; Interrupted re-run) and trace v2. +**C3. The three-stage turn** (behaviour, follow-up). Est. 5 days, splittable: +- **3a** (2 days): Select stage + Projector + its unit and golden tests (section 3.4) + `persona-tuning.toml` (read per wake, hash recorded) + `mind-persona project` (`--select-only`, `--renders`, `--judge`, `--state`). Shipping this needs no brake release: it is the first experiment tool. +- **3b** (1.5 days): Persona stage + Interpreter (CLI session, read-only MCP `mind-persona read-tools`, `--json-schema` report, `--tools WebSearch,WebFetch`, `--system-prompt-file`) + `project --through persona|interpreter`, which validates proposals and never commits. +- **3c** (1.5 days): + - commit: `SourceSpan::locate`; bounded ops; rebase with the section 4.4 rules; put; mouth; Interrupted re-run; + - trace v2 with `outside_put` and `tuning_changed`; + - ingest of put notes and of unexplained receipts, plus `last-commit.json`; + - `mind-persona edit` (with `--dry-run`, `--quiet`, `--tell-now`) and the tell stimulus line. Reuses `ghostlight-persona-projection` (pinned, bump to a rev with `SourceSpan`), `recall.rs`, `self_run.rs` spawn and sandbox, `lease_client`, and the connector client. @@ -501,7 +646,17 @@ Verification: - the mirroring bound test (5.4); - a missing quote → gap, not act; - a `request_tool` lands in the trace and nowhere in the Mind; -- an Interpreter offered a Bash-like request has no tool for it (tool list snapshot). +- an Interpreter offered a Bash-like request has no tool for it (tool list snapshot); +- outside put mid-turn (testkit puts between Select and commit): + - the outside value survives; + - her `feel` step moves from it; + - her `bond_summary` on the same bond is refused `outside-put-same-field`; + - a `remember` still appends; + - one `outside_put` record carries the note's who and why; +- a raw put with no note → `outside_put{writer: unexplained}` with a diff against `last-commit.json`; +- a told put → the next projection packet carries the fixed tell line once; a quiet put → it does not, and the record says `quiet`; +- `project` in every mode → the stored receipt, the trace and the mouth are unchanged (negative check); +- `edit` racing a commit → Huginn refuses the stale put, and `edit` retries and succeeds, or reports. Never a silent drop. **C4. Reflection, contemplation, consolidation** (behaviour, follow-up). Est. 2 days. - Retarget `sleep.rs` `operations` and `admit` (371, 488) to `thoughtMemory`. @@ -511,73 +666,74 @@ Verification: Verification: every shortTerm item is disposed of exactly once; contemplation's schema-free prompt contains no list or task (fixture); no Mind admission at night (testkit). -**C5. The delta reader** (behaviour, follow-up). Est. 1 day. -- `mind-persona since` with `--brief`, `--json` and `--tool-requests`; monthly trace rotation. +**C5. The delta reader** (behaviour, follow-up; runs right after C3c, before any release). Est. 1 day. +- `mind-persona since` with `--brief`, `--json` and `--tool-requests`. +- Interventions in line; the footer of section 9.4. +- Monthly trace rotation. -Verification: a fixture trace gives exact brief output; `--since` bounds are inclusive and exclusive as documented; it reads across a rotation boundary. +Verification: a fixture trace gives exact brief output, including an `outside_put` and a `tuning_changed`; `--since` bounds are inclusive and exclusive as documented; it reads across a rotation boundary. **C6. Identity diff posting** (behaviour, follow-up). Est. 0.5 day. Implements `identity-write-all-visible` for reflection's `identity` proposals. The review room is named in config. -Before anything wakes her, two steps follow. First, the C1 deploy. Second, an operator word to release the brake for `eureka` only (brake per instance: `/etc/gamecult/minds/eureka/control.cc`). Nothing in this map releases it. +Before anything wakes her, three steps follow: +1. the C1 deploy; +2. C3c and C5 deployed, so every live turn is watchable and editable from the first; +3. an operator word to release the brake for `eureka` only (brake per instance: `/etc/gamecult/minds/eureka/control.cc`). -## 11. Questions for the operator +Nothing in this map releases it. C3a and C3b experiments (`project`) need no release. -**Q1. Does the Interpreter run as an agentic CLI session, or as a one-shot structured call?** -- Options: - - (A) An agentic `claude -p` session with read tools (Mind queries, web) and a structured final report. Wondering becomes reading becomes perceiving. - - (B) A one-shot `--json-schema` call through the ModelConnector, with no tools. Reads happen only in code, at selection (Mind recall). A `look` proposal triggers a code-run Mind query for a follow-up turn. No web. -- **Recommend A.** It is her words ("only that final step being agentic"), and Ghostlight's Interpreter is a tool loop. Exploring ideas, which she named, needs reads, the web included. -- A gives up about 40% of per-turn cost relative to B (~0.02 vs ~0.012 permille). It keeps a second model path, the CLI session and its sandbox, in the organ. -- Depends on it: C3b's shape, the lease path, and whether `self_run.rs` survives C2 at all. +## 12. Questions, answered -**Q2. Where are deltas read from?** -- Options: - - (A) The organ's trace, read with `mind-persona since` over ssh. - - (B) Huginn keeps a history of persona puts (each put carries its delta), readable over the network with a new `huginn persona since`. -- **Recommend A.** The trace already holds every turn and is the existing owner. Ssh is today's path anyway. B adds a store to Huginn for one consumer. -- A gives up deltas readable without host access, and the trace is a file on one host (backup is Idunn's). -- Depends on it: C5, and whether C1 also touches `PersonaPut`. +All five were answered by the operator on 2026-11-19 on the Fork Desk. The rulings were admitted at `mind-commit-e1a356a1`. The options as posed are kept short here; revision 1 (`b2eff14`) has them in full. -**Q3. Does the base-model divergence stream survive?** -- Options: - - (A) Park `stream.rs` and its unit. The Projector *is* her stream now. - - (B) Keep it as a zero-quota local base-model pass whose latest continuation becomes one selectable item in the Projector's packet. It would live in the trace, not in the Mind. - - (C) Keep it as built, admitting `thought` documents into her Mind. This conflicts with "cannot write the Mind". -- **Recommend A now, B later.** Selection with freshness and lens already answers convergence (Chu 2025), and A is cheap to test. B is a measured addition if narrations still converge. The live eval in 3.4 is the gauge. -- A gives up her ruled "useful divergence" from a base model, for now (`divergence-stream-beside-persona`). -- Depends on it: C2's park list and C3a's pools. +**Q1. Agentic Interpreter, or one structured call?** Answered: **agent**, as recommended. +- Ruling: `eureka-body:ruling:persona-only-interpreter-agentic`. +- What it gave up: about 40% more per turn than a one-shot call, and a second model path (the CLI session, sandbox and lease) inside the organ. +- Shapes: section 2 and C3b. -**Q4. What wakes her besides being addressed?** -- Options: - - (A) Addressed (mention, name, DM), plus the beat (30 min), plus follow-ups. - - (B) As A, plus any human message in her rooms, debounced 90 s. - - (C) As B, plus other Minds' messages. -- **Recommend B.** Banter mostly happens in talk not addressed to her. Silence is still hers, by prose. With seven Minds braked, B's traffic is the humans', so cost stays near the social row (~2.3 permille/day). C becomes the Minds-talking-past-each-other loop again when others wake (EL Kandoussi; 85–95% of Mind messages mentioned another Mind). -- B gives up restraint as a default. She will notice more, and the 0.015-permille turns will add up on a busy day. -- Depends on it: `heartbeat.rs:519 wakes` and the cost row. +**Q2. Where are deltas read from?** Answered: **trace**, as recommended. +- Ruling: `eureka-body:ruling:persona-only-deltas-from-trace`. +- What it gave up: network reads without ssh. +- Shapes: section 8 and C5. Revision 2 adds interventions to it (section 4.4). -**Q5. Does anyone besides her organ write her persona state?** -- Options: - - (A) Only her commit step. Self on Starfire reads her deltas and speaks to her in chat like any person, and that *is* the feedback loop. Ruling `memory-persona-projection` ("Life edits only the Persona state") is narrowed to Self's own memory, which stays where it is. - - (B) Self and Life may also put her state, for corrections, with the commit rebasing on their edits. -- **Recommend A.** One writer is invariant 2. Edits from outside a person's experience are what the operator is reacting against ("They didn't feel like individuals"). The ruling `she-owns-her-body` and `identity-write-all-visible` already make the state hers. -- A gives up direct repair. A rotten field gets fixed by talking to her, or, as a last resort, by braking her and putting the state with a recorded reason (an emergency path, not a writer). -- Depends on it: the 0b table, and the root-memory ruling's revision. +**Q3. Does the divergence stream survive?** Answered: **park-then-input**, as recommended. +- Ruling: `eureka-body:ruling:persona-only-divergence-parked`. +- What it gave up: the base-model divergence for now. +- Return condition: measured narrations converge (section 3.4 eval). It then comes back as a local zero-quota Projector input, kept in the trace and never in the Mind. +- Shapes: C2's park list, with the condition written into the tag note. -## 12. Alternatives considered and not placed on a question +**Q4. What wakes her besides being addressed?** Answered: **humans-in-rooms**, as recommended. +- Ruling: `eureka-body:ruling:persona-only-wake-humans-in-rooms`. +- She wakes when addressed, on any human message in her rooms (90 s debounce), on the beat, and on follow-ups. +- What it gave up: restraint as the default. +- Shapes: `heartbeat.rs:519 wakes` and the cost row. -Self should admit these as `idea`s, recorded against, after the ruling: +**Q5. Does anyone besides her organ write her persona state?** Answered: **self-and-life-too**, against the recommendation. +- Ruling: `eureka-body:ruling:persona-only-state-writers-self-and-life`. +- Her reason: daily tuning experiments need "a tight watch, interfering early and often", and the Personas are set loose once trajectories are understood. +- Revision 2 makes the three writers coherent (section 4.4) and legible (invariant 8, section 8), gives them the daily loop (section 9), and names the revisit condition (section 9.4). +- What it gives up, said plainly: for the experiment phase she is not the sole author of her own state. An unannounced edit is a change she did not live. The tell-by-default line and the trace are what keep that honest. + +## 13. Alternatives considered and not placed on a question + +Self should admit these as `idea`s, recorded against: - `second-uid-interpreter`: run the Interpreter's claude under a second uid fenced to a door without `PersonaPut`. It would make "only the commit puts" kernel-enforced. Recorded against because it protects her state from her own organ, at the cost of a unit and a fence row. - `persona-door-unix-socket`: a peer-uid unix socket like the desk door instead of a second RUDP port. That is stronger authentication than the fence, but it needs a new client transport in `mind-body`. Recorded against for now. The fence already decides by uid. - `numbers-in-persona-prompt`: show the Persona her trust and mood numbers. Recorded against because Ghostlight's contract keeps raw state out of the responder, and numbers invite performance of numbers. - `mood-in-moodDimensions`: use `affect.moodDimensions` as the mood owner. Recorded against: it has no mean or plasticity, and two homes would be two owners. - `beat-skips-interpreter-on-silence`: a cost knob. Recorded against, since being ignored is felt. -- `pull-gated-beat`: the heartbeat computes a motivation score from her needs and wakes her only above a threshold (Inner Thoughts). Deferred until Q4's traffic is seen. It would make the heartbeat read her persona state. +- `pull-gated-beat`: the heartbeat computes a motivation score from her needs and wakes her only above a threshold (Inner Thoughts). Deferred until the traffic under `persona-only-wake-humans-in-rooms` is seen. It would make the heartbeat read her persona state. - `self-writes-seed-state`: Self puts the initial mood, needs and baselines. Recorded against: the commit seeds absent fields with code defaults on first run. - `projector-paraphrases-messages`: let the Projector carry what was said. Recorded against because exact words matter in chat; heard lines are verbatim. -- `haiku-interpreter`: a cost knob, not a default. The Interpreter decides her feelings. +- `haiku-interpreter`: a cost knob, not a default. The Interpreter decides her feelings. It can be tried in a day's experiment through `persona-tuning.toml`. +- `single-writer-persona-state`: only her commit puts. This was the recommendation for Q5. The operator chose `self-and-life-too` for the experiment phase. It is recorded with that ruling as its resolution, and it is the proposed outcome of the section 9.4 revisit. +- `reason-in-huginn-provenance`: add a `reason` to `PipelineProvenance`, so that every put carries its why over the wire, with no put note. Recorded against: it changes a shared wire type for one consumer, and the note plus unexplained-put detection already covers both paths. +- `edit-writes-trace`: `mind-persona edit` appends to the trace directly. Recorded against: `FileTrace` rewrites the whole file with no lock, so two writers would race. The note mailbox keeps one trace writer. +- `huginn-persona-history`: Huginn keeps every persona version so diffs are exact. Recorded against: the ruled delta surface is the trace, and the last-commit copy is enough to diff an unexplained put. +- `separate-projection-eval-tool`: a standalone `tools/projection-eval`. Collapsed into `mind-persona project --judge`, so one owner holds the Select and Projector code. +- `experiment-store`: a typed experiment kind with hypothesis, start and result. Recorded against: Self's day log in Self's own Mind and the `exp-` session labels on puts are enough. Add one only if the daily loop shows a need. -## 13. Body facts this map rests on (probed 2026-11-19) +## 14. Body facts this map rests on (probed 2026-11-19) - `ecf147d` is in `github/main` (`git merge-base --is-ancestor`). This branch is cut from it. - The connector refuses tools before spawning (`ModelConnector c1802d8` `backend/tests.rs:1309`). Its argv uses `--system-prompt-file` and `--tools ""` (`launch.rs:121-146`), and it supports `--json-schema`. -- 2.47.3 From ee01a80cfb7ae5d2b1ecd7fd67b3492ab3f035b2 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 20 Nov 2026 04:05:03 +0100 Subject: [PATCH 003/283] Map r3: attention and initiative (section 15) The open floor and the beat by drive, after persona-only-humans-pace and persona-attention-and-initiative: one structural open-floor predicate, one pull function shared by the heartbeat (who) and the Select stage (why), sequential self-selection derived from the event id and the room tail with nothing new stored, the explicit-mention arm with its backstop cap, cuts A1 (delete tempo pick and the dead policies) and A2, harness plans and metrics, cost, and questions Q-A (drives in initiative) and Q-B (spoken answer guarantee). Anchors at 43966fa; branch based on imagination/persona-only-heartbeat d861574 because the map is not on main. Co-Authored-By: Claude Opus 5.5 --- docs/persona-only-heartbeat-map.md | 343 ++++++++++++++++++++++++++++- 1 file changed, 342 insertions(+), 1 deletion(-) diff --git a/docs/persona-only-heartbeat-map.md b/docs/persona-only-heartbeat-map.md index 760e588..96fcd0d 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. +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`. ## 0. What decides this map @@ -747,3 +747,344 @@ Self should admit these as `idea`s, recorded against: - The model-projected memory surface was optional (`stateProjectorEnabled`). - So: projection existed but fed instructions to an actor, and the actor wrote its own feelings. This map puts first-person prose between state and actor, takes the pen from the actor, and gives the typed consequences to an Interpreter that only translates. - Semantic queries against the eureka daemon failed during this pass (no embedder endpoint answered within the deadline). `known` and `view` worked. + +## 15. Attention and initiative (revision 3, 2026-11-20) + +Imagination pass, same session. Every `file:line` in this section is at Huginn `43966fa`. That is `hands/harness-fixes`: PR #80 plus two unpushed WIP commits that carry the humans-pace `LineFacts`. PR #80's pushed head is `b90c21e`. Sections 1 to 14 keep their `ecf147d` anchors. Nothing here is admitted. This branch is cut from `imagination/persona-only-heartbeat` at `d861574`, because the map is not on main. + +### 15.0 What decides this section + +Operator, 2026-11-20 (her words decide): + +> "Only a message in a Mind's own room always wakes it. For public rooms like swarm, only a conversation the Mind is participating in or mentions" + +> "yes, Minds' explicit mentions should wake too, and not just in swarm. I'd be gutted if a simple hello everyone didn't get any response at all, though, so we need some kinda attention and initiative system" + +The rulings this section rests on: +- `eureka-body:ruling:persona-only-humans-pace` replaces the wake set of `persona-only-wake-humans-in-rooms`. Section 5.5 item 1 and the Q4 row of section 12 are therefore superseded. +- `eureka-body:ruling:persona-attention-and-initiative`. +- `room-registers` still stands: #minds is for rapid coordination, and #swarm is where Minds and humans meet. + +The wake set this section builds on: +1. **Must wake.** + - Any human message in her own rooms: her DMs and the rooms configured as hers. + - In a public room, a human message that addresses her (`is_for`: tag, reply or name), or one that continues an exchange she is in. + - An explicit Matrix mention of her, or a reply to her, by another Mind, in any room. A backstop cap on Mind-only runs applies. +2. **Never wakes.** Another Mind's line that only names her in prose, or that names no one. +3. **New: the open floor.** A human message in a public room that addresses no Mind. Some Minds take it up, not all and not none. Attention decides who (15.2). +4. **The beat**, re-based on initiative (15.3). It still wakes one Mind per beat. She is chosen by what pulls her, not by how long she has waited. + +### 15.1 Where attention is decided: code, before any model call + +| Option | Cost per open line, 8 Minds | Evidence | Gives up | +|---|---|---|---| +| (a) Code-side pull score in the heartbeat; the woken Persona may still stay silent | 1 to 3 Persona turns (~0.01 to 0.05 permille); the score is free | "Knowing When to Speak": with group state supplied by the harness, speak-or-not reaches AUROC 0.993, against 0.55 to 0.63 for self-assessment alone. Inner Thoughts gates speech on a motivation score with a threshold. AI Town and SillyTavern use code-side cooldowns and talkativeness | Nuance. The score cannot read tone, or see that an unnamed question is plainly Heimdall's by subject. Topic fit is lexical until the embedder answers | +| (b) A cheap model gate per Mind ("would she speak?") | 8 Haiku calls plus 1 to 3 turns | Bhagtani 2026: eight LLMs fail zero-shot at speak-or-stay-silent. When2Speak: zero-shot is far below SFT. A gate is exactly that zero-shot call | 8 calls per open line, and a judgement the prior art says is unreliable without training | +| (c) Wake several (or all), and let the Persona choose silence | 8 turns (~0.06 to 0.12 permille) | Measured here in `sim-humans-pace-2026-11-20.md`: 8 of 8 woken, 8 of 8 spoke, silence rate 0.000. The later ones echoed the first ("No mood reading here either") | The cost of 8 turns per hello, and an echo that the Projector fix reduces but does not remove | + +**Recommendation: (a).** +- The score decides *who wakes*. +- The Persona's silence stays as a second filter. A woken Mind still says nothing when her prose holds no quoted speech (invariant 5). +- Her packet's group line already tells her who has answered (`select.rs:885 group_line`, "asked the room a question, and X answered it"). + +That is the "Knowing When to Speak" shape: the harness supplies the state, and the judgement stays with the speaker. Of the three options, only (a) keeps the cost of a hello among 8 Minds near 2 turns. + +**What it gives up, said plainly:** +- A hello to everyone will sometimes be answered by a Mind whom a reader of the room would not have picked. That is the price of a score that reads numbers and words rather than meaning. +- It also makes the heartbeat a *reader* of persona state. Section 13 deferred that step as `pull-gated-beat` ("it would make the heartbeat read her persona state"). This section takes it. The heartbeat reads persona state and never writes it. + +### 15.2 The open floor + +**What makes a line an open floor.** One structural predicate decides it: `address::open_to_room(delivery, minds)`. A line is an open floor when all of these hold: +- a human sent it, it is a `Form::Message`, and it is in a public room (not `is_direct`, and not one of her own rooms); +- it carries no `m.mentions` user id. `@room` (`Basis::Room`) is allowed, and is itself an open floor; +- it has no `reply_to` (`chat_client.rs:84`). That field's comment says "no addressing rule reads it"; this predicate becomes its first reader; +- it names no Mind of the heartbeat's addressing table (`address.rs:56 addresses`, run against every row). + +There is no "everyone" detector. "hello everyone" is an open floor because it names no Mind, not because of the word. + +Residue: a line that names a human without tagging them ("Deru, hi") reads as open. At most one or two Minds then answer a line meant for Deru. That is cheap, so it is recorded rather than fixed. + +**Pull.** One pure function, `attention::pull(state, moment, facts, weights) -> Pull`, returns a total in [0, 1] and its terms. +- The heartbeat calls it to choose who wakes. The Select stage calls it to say why (15.3). +- Each term is in [0, 1]. +- The weights live in her `persona-tuning.toml` under `[attention]`. They sum to 1 and are validated like every other knob (`tuning.rs:314 load`). + +| Term | Open floor | Beat | Reads | Static until C3c? | +|---|---|---|---|---| +| `bond` | the bond to the speaker, `intensity × trust`; 0 when she has no bond with the speaker | none | `affect.socialBonds` | yes, but it differs per Mind and per speaker, which is real variety now | +| `need` | `max(relatedness, play)` intensity | the same, minus `rest` | `affect.needs` | yes: it acts as a per-Mind talkativeness until the commit moves it | +| `topic` | `min(1, shared/3)`: how many content words the line shares with her stances, wonderings and `publicDescription`. It reuses `select.rs:257 content_words`, moved to `attention.rs` | none | `doctrineStances`, `thoughtMemory.incubation`, `publicDescription` | her words are static; the line varies | +| `quiet` | `1 − exp(−t/τ)`. t is the time since her last line in that room, read from the mouth's tail (`ChatPending.tail`, `chat_client.rs:451`). τ is `quiet_tau_min` (60) | the same, over all her rooms; this carries the old `waited_s` fairness | the tail | derived, so it moves now | +| `missing` | none | `max` over person bonds of `intensity × (1 − exp(−h/τ_m))`, where h is the hours since she last heard from them. The beat stimulus already computes h (`select.rs:717`) | bonds and the tail | derived, so it moves now | +| `wondering` | none | the strongest active incubation `intensity`, raised by days open (the `select.rs` unresolved factor) | `thoughtMemory.incubation` | yes | +| `unanswered` | none | 1 when a Mind's open line in her rooms has had no answer for longer than the beat | the tail | derived | + +Two more rules shape the total: +- **`talkativeness`** multiplies the total, which is then clamped to 1. It defaults to 1.0, ranges from 0.25 to 2, and is the one per-Mind trait knob (SillyTavern's talkativeness, Time to Talk's nudge). +- **An absent field** contributes `absent` (0.3) and is traced as absent, never as 0. Most of the other seven Minds' stored states predate `needs` and `situationalState`: in the 2026-11-20 sims every one of them said "no mood reading". This pass did not probe each Mind's state. + +**Self-selection: the first starter wins.** The draw is derived, not stored. +1. **Settle.** The floor opens `floor_settle_s` (30) after the newest human line in that room, so a burst of lines makes one floor. A newer human line in the room replaces the floor. The floor closes after `floor_window_s` (600). +2. **Order.** The candidates are her released and idle Minds in the room. + - Each candidate gets a Gumbel key, `pull_i / attention_temperature + G(u_i)`, where `u_i = hash(event_id, slug, "rank")` maps into (0, 1). + - Sorting the keys gives the ranks. + - The same line always ranks the same way, so a floor can be replayed. Different lines rank differently, so the same Minds do not always answer. +3. **Rank 1 always wakes** at settle. A Mind already woken for this line as a must-wake (because it continued her exchange) counts as rank 1. +4. **Rank r > 1** wakes only when all of these hold: + - the previous rank's unit has ended (`launcher.alive`), so she sees their words: the first starter wins; + - `r × floor_stagger_s` (90) has passed since settle; + - fewer than `floor_max` (3) Minds have been woken for this line; + - `v_i = hash(event_id, slug, "go") < pull_i × floor_falloff^answers`, where `answers` is the number of Mind lines in the room after the human line, and `floor_falloff` is 0.5. +5. **Silence passes the floor.** If every woken Mind stayed silent and fewer than `floor_tries` (2) have been woken, the next rank wakes without the `v_i` test (Q-B). + +Take a hello among 8 Minds, with pulls around 0.5, and each woken Mind speaking 4 times in 5. Rank 2 wakes about 0.4 of the time and rank 3 about 0.2, so expected wakes are about 1.6. + +**The state it uses, all derived on read:** +- the human line and its event id, from pending; +- answers, from the tail; +- who has been woken for the line: `HeartbeatState.handled_mentions` keys `slug:event_id` (`heartbeat.rs:136`). These keys already exist and are written at `:631`; +- `alive`, from the launcher; +- pulls, from persona state and tuning. + +Nothing new is stored. + +**Minds' open lines.** +- Under humans-pace, a Mind's line that tags no one wakes no one. Her open question is answered at the beat's pace instead. +- The beat's `unanswered` term raises the pull of Minds who share her room. +- Her line appears in the woken Mind's beat stimulus (`select.rs:717 beat_stimulus`, "Lately in her rooms"). + +This stays within the ruling: the line wakes nobody, and the beat does. + +**Explicit Mind mentions.** +- `wakes` needs the evidence split the ruling draws. `address.rs:62 is_for` mixes tags and names. +- A new `address::tagged_or_replied(who, delivery)` reads only `mentions` and `Basis::Tag | Basis::Reply`. +- The `HumansPace` arm becomes `human && (…as now…) || (speaker == Mind && tagged_or_replied && facts.mind_run < mind_run_cap)`. +- `mind_run_cap` is 4, taken from `NamesWithCap`. It becomes `HEARTBEAT_MIND_RUN_CAP`. +- The harness's spoken lines carry no Matrix mention until the Interpreter (C3b) emits them. Until then this arm is unit-tested, not simulated. + +### 15.3 Initiative: the beat by drive + +**Whom the beat wakes.** When the beat is due, `attention::beat_draw` takes every eligible Mind's beat pull and one Gumbel draw seeded by `hash(beat_at)`. This replaces `tempo::pick` (`tempo.rs:48-62`). + +`pick`'s score is `waited/beat × 10^(urgency)` (`tempo.rs:36-46`), and urgency is always 0 today: +- `topic_permille` is hardwired to 0 (`heartbeat.rs:656`); +- a member addressing her now wakes her directly under humans-pace. + +So today's pick is round-robin by wait. Under the new draw: +- `quiet` keeps the guarantee that no Mind starves; +- the drive terms (`need`, `missing`, `wondering`, `unanswered`) decide among the rested Minds; +- `beat_floor` (default 0, so the beat always wakes someone) lets an experiment leave a quiet day quiet. This is Inner Thoughts' `imThreshold`. + +**What she sees, so she has a reason to speak or to stay quiet.** The organ computes the same `attention::pull` on her own state. The heartbeat passes nothing, and the systemd start stays payload-free (`heartbeat.rs:549 wake`). The strongest term sets the beat's lens, and code renders one fixed-slot line: +- `missing` → lens `person_present` on that person: "it has been 30 h since you heard from Kiko"; +- `wondering` → lens `wondering`, with that incubation item forced into the packet; +- `need` (play or relatedness) → lens `unresolved_want`; +- `unanswered` → that line, rendered first in "Lately in her rooms"; +- `quiet` alone → lens `body_and_hour`, and the 90-word thin beat (Ghostlight: "a thin moment gets a thin stream"). + +The line states a pull, never a task. The Projector guidance's "nobody is owed an answer" (`tuning.rs:24 GUIDANCE`) stands, and silence stays a valid outcome. + +**Guarding against "what will you build next".** The guard is structural: +1. Initiative reads only the social terms. `agencyPressure` and `need-competence` are not inputs (Q-A). Section 3.1 already keeps `agencyPressure` out of the packet. +2. The Projector is told nothing about work: the C2 cuts and the guidance see to that. +3. The work-talk share of beat lines is a harness metric (15.6), so a drift back to mission talk shows up in numbers. + +### 15.4 State dependence + +| Works on static seeds (now) | Needs C3b/C3c (state that evolves) | +|---|---| +| The open floor. `bond` varies by speaker, `topic` by line, `quiet` by time, and the ranks by event id, so responders vary by message, speaker and hour | `need` falling after she talks or plays. Until the commit applies the time rule, a high-need Mind is more talkative every time; `quiet` and `floor_falloff` are the counterweight | +| The beat. `quiet`, `missing` and `unanswered` are derived from time and the tail, so the drawn Mind changes through the day | `bond` moving with what happened: a hurt lowers trust, and so lowers her pull toward that speaker | +| Explicit mention wakes and the backstop cap | wonderings opening and resolving (C3c, C4) | +| Every term is traced, so the variety on static seeds can be measured | the explicit-mention arm in the harness, once the Interpreter emits mentions | + +The need time rule (needs rise since `updatedAt`) stays with the commit (section 4.3). Until then, `pull` reads the stored intensity. When C3c lands, `pull` and the commit share one `need_now(need, now)`, so the time rule has one owner. + +### 15.5 The 0b rows + +| Persistent kind | What names it | Lifecycle | Who decides | +|---|---|---|---| +| Attention history | **not stored**. The poll trace's per-instance `score` text (`heartbeat.rs:171`) now carries the pull and its terms, and `launches` carries the cause | as the poll trace | the heartbeat writes; `mind-heartbeat timeline` reads | +| Last-spoke times | **derived** from the mouth's tail per room (`ChatPending.tail`) | none | none | +| Who has answered in an exchange | **derived**: the Mind lines in the room after the floor's human line (tail) | none | none | +| Who was woken for a floor | `HeartbeatState.handled_mentions` keys `slug:event_id` (exists, `MENTIONS_KEPT` 64, `heartbeat.rs:42`) | as now | the heartbeat | +| Attention weights and `talkativeness` | `[attention]` in `/etc/gamecult/minds//persona-tuning.toml`. The directory is `root 755` and the file world-readable; the heartbeat runs as uid `mind-heartbeat` (probed) | read by the heartbeat at each poll and by the organ at each wake; its hash is in her trace | Self on Starfire | +| Floor mechanics: `floor_settle_s`, `floor_stagger_s`, `floor_window_s`, `floor_max`, `floor_falloff`, `floor_tries`, `beat_floor`, `mind_run_cap` | heartbeat `Config` from `HEARTBEAT_*` env, beside `HEARTBEAT_BEAT_S` | read at start | operator config | +| Retired trace fields `InstanceTrace.urgency_permille` and `.addressed` (`heartbeat.rs:163,165`) | kept, always 0 and false, so old records still decode (the `vote_beat_s` pattern, `:160`) | written 0 and false | none | + +The split of knobs follows ownership. How *she* is drawn is hers, in her tuning. How the *floor* works is the heartbeat's, in its config. + +### 15.6 The harness + +`mind-persona project --simulate` calls the same functions the poll calls: `wakes`, `open_to_room`, `pull`, the floor step and `beat_draw`. Two changes are needed: +- `simulate.rs:327` decides every wake of a round at once. The floor step must instead run sequentially inside a round: rank r is evaluated after rank r−1's turn has spoken or stayed silent, with `now` advanced by `floor_stagger_s`. +- The beat block (`simulate.rs:328-346`) calls `beat_draw`. + +The responder distribution itself is pure code and needs no model: unit tests sweep 500 event ids. + +| Plan | Pass condition (Self tunes the targets) | +|---|---| +| `floor-hello`: "hello everyone" in #minds, 8 Minds, 10 seeds | responders per line: min ≥ 1, max ≤ 3, mean 1.3 to 2.2. Zero-response rate 0 (no Mind line within `floor_window_s`). At least 5 distinct responder sets across the 10 seeds. No Mind is rank 1 in more than 4 of 10 | +| `floor-question`: 4 open questions, each written to touch one or two Minds' stances or wonderings; the plan names the expected Minds | rank 1 is in the expected set at least 2× as often as chance | +| `floor-off` control: `floor_max = 0` | reproduces the gap: a hello gets 0 wakes | +| `day-beat`: 24 simulated hours, beat 1800 s, a few scripted human lines | every eligible Mind gets at least 1 beat in 12 h. The winning term is recorded for each beat. Silence rate of beat turns is reported. The work-talk share of beat lines is at or below the persona-only baseline | +| Every plan | convergence of responders' lines (exists); wakes per human line; projected wakes per day | + +New metrics in `simulate.rs metrics`: `floor_responders` (histogram), `floor_zero`, `rank1_share` per Mind, `responder_set_jaccard` across seeds, `beat_term` counts, `wakes_per_human_line`. + +### 15.7 Cost + +A wake costs 0.007 to 0.015 permille now (Projector plus Persona), and about 0.02 once the Interpreter lands (section 10). The budget is 144 permille a day. The volumes below are assumptions, not measurements; the first live day's `mind-heartbeat timeline` replaces them. + +| | Eureka alone (the other seven braked) | All 8 | +|---|---|---| +| Her own rooms and DMs | 10 to 25 human bursts | 65 to 120 | +| Public rooms: addressed, exchange, floor | 20 to 40. She is the only candidate, so every open floor wakes her: while she is alone, humans-pace behaves like humans-in-rooms in public rooms | 30 to 60 bursts × 1.3 to 1.6 = 45 to 100 (under the old reading, × 8 = 240 to 480) | +| Explicit Mind mentions | 0 | 30 to 80, once C3b emits mentions; bounded by `mind_run_cap` | +| Beat (swarm-wide, one Mind each) | 48 | 48 | +| Follow-ups | 5 to 10 | 20 to 40 | +| **Wakes a day** | **85 to 125** | **210 to 390** | +| **Permille a day, now / with Interpreter** | **0.6 to 1.9 / 1.7 to 2.5** (0.4 to 1.7 % of the day) | **1.5 to 5.9 / 4.2 to 7.8** (1 to 5.4 %) | + +For Eureka alone, the beat is the biggest knob: 48 of her wakes come from it. `HEARTBEAT_BEAT_S=3600` halves that. `beat_floor > 0` lets quiet days stay quiet. + +### 15.8 Authority map + +**Owners:** +- **"Does this line wake her":** `heartbeat::wakes` (`heartbeat.rs:460`), per line and per Mind. + - Inputs: the delivery, the speaker, `LineFacts`. + - Output: `Option`, with a fifth cause, `OpenFloor`: a candidate, not a must-wake. +- **"Who among the candidates takes an unowned moment":** `attention.rs`, new. `tempo.rs` is deleted into it. + - It covers both the open floor and the beat: one pull, two draws. + - Inputs: persona state (read only), the `[attention]` tuning, the tail, the event id. + - Output: who wakes now, plus the pull terms for the trace. +- **"Why she woke":** the Select stage, by calling the same `attention::pull`. The heartbeat sends nothing. +- **"Does she speak":** her prose (invariant 5). Unchanged. + +**Demotions:** +- `tempo::pick` and `tempo::score` are no longer owners. The beat winner is derived from `attention::beat_draw`. +- `urgency_permille`, `topic_permille`, `addressed_by_member` and `LOG_BOUND_ORDERS` are dead. A member's address is now a must-wake, and topic subscriptions never landed. +- `WakePolicy::Live` is no longer the live rule; `HumansPace` is. + - `Ruled` is dead: it encodes a superseded ruling. + - `NamesWithCap` is dead: its cap moves into `HumansPace`. + - `AllMessages` stays, only as the simulator's control. +- The simulator's `in_exchange` (`simulate.rs:190`) and `mind_runs` (`:155`) move to the heartbeat. The heartbeat derives `LineFacts` from the tail for the live poll; today it passes `LineFacts::default()` (`heartbeat.rs:623`). The poll and the simulator then call the same functions. +- `group_line`'s own "to the room" test (`select.rs:899-902`, `named_in`) reads `address::open_to_room` for the addressing part. It keeps the `?` check only for rendering. + +**Forbidden writers:** +- No model call decides who wakes: neither the Persona stage nor the Interpreter chooses the next speaker. +- The heartbeat writes no persona state. + +**Shared paths:** the live poll and `--simulate` run the same `wakes`, `open_to_room`, `pull`, floor step and `beat_draw`, with no copies. + +**Deletion line:** cut A1 lands before any floor code in A2. + +### 15.9 Cuts + +Both cuts depend on PR #80 merging, with its WIP `LineFacts` commits, and on the Projector echo fix. Per `loop-1` they are follow-ups until then. + +**A1. Subtraction: the old pick and the dead policies** (mind-body, delete-only). Est. 0.5 day. +- `tempo.rs` whole (65 lines) and `tempo/tests.rs` (140 lines): + - `LOG_BOUND_ORDERS` `:11`; + - `Standing.topic_permille` and `.addressed_by_member` `:23-26`; + - `urgency_permille` `:29-34`, `score` `:36-46`, `pick` `:48-62`. + + Until A2, the beat keeps the oldest-wait order inline, as one `min_by_key` over `last_turn_at`. That is exactly today's behaviour at urgency 0. +- `heartbeat.rs`: + - `WakePolicy::Live` `:420-421`, `Ruled` `:422-423` and `NamesWithCap` `:428-430`, with their arms `:472-476`; + - the poll's `wakes(WakePolicy::Live, …)` call at `:623` becomes `HumansPace`; + - `Row::addressed_by_member` `:537-540` and its uses at `:657` and `:706`; + - `InstanceTrace.urgency_permille` and `.addressed` `:162-165` become retired fields, written 0 and false. +- `simulate.rs`: + - the policy words for the cut variants `:549-551`; + - the `topic_permille` and `addressed_by_member` fields of the beat block `:328-346`. +- Self checks ruling `swarm-shares-log-bound` (cited at `tempo.rs:1-11`) and records it as superseded if it governs nothing else. +- **Verification:** + - `cargo test -p mind-body`; + - negative grep in `crates/mind-body/src` for `tempo::`, `urgency_permille(`, `topic_permille`, `addressed_by_member`, `LOG_BOUND_ORDERS`, `WakePolicy::Live`, `WakePolicy::Ruled` and `NamesWithCap`: expect 0 hits; + - a heartbeat test: a human line in a public room that does not address her wakes no one, and a human line in her DM wakes her. + +**A2. Attention: the floor, the explicit-mention arm and the beat by drive** (behaviour). Est. 2.5 days. +- `address.rs`: `open_to_room` and `tagged_or_replied`. +- `heartbeat.rs`: + - `LineFacts` derived from the tail; `in_exchange` and `mind_runs` move here from `simulate.rs`; + - `WakeCause::OpenFloor`; + - the `HumansPace` Mind-mention arm, with `mind_run_cap`; + - the floor step in `poll`, after the must-wake loop (`:612-640`); + - `beat_draw` replacing the inline order; + - `Seat` gains `persona: &dyn PersonaSource`, reusing `projection.rs:53` rather than adding a new port; + - `Config` gains the `HEARTBEAT_FLOOR_*`, `HEARTBEAT_BEAT_FLOOR` and `HEARTBEAT_MIND_RUN_CAP` keys. +- `attention.rs`: `Pull`, `pull`, `floor_wakes`, `beat_draw`, and the seeded hash (reusing `select.rs` `Draw`). +- `tuning.rs`: an `[attention]` section with range checks: the weights, `temperature`, `talkativeness`, `quiet_tau_min`, `missing_tau_h` and `absent`. +- `select.rs`: the beat reason line and the lens forcing; `group_line` reads `open_to_room`. +- `simulate.rs`: the sequential floor inside a round, `beat_draw`, and the new metrics. +- **Verification** (unit tests, pure code): + - an `open_to_room` truth table: tag, reply, Mind name, `@room`, DM, Mind sender; + - 500 event ids with 8 equal candidates: wakes stay within [1, `floor_max`], and every Mind is rank 1 at least 25 times; + - raising one Mind's `bond` to the speaker, or her `topic`, raises her rank-1 share; + - rank 2 never wakes while rank 1's unit is alive, or before the stagger; + - with 2 Mind answers, the go chance is `pull × 0.25`; + - a newer human line closes the floor; + - a Mind's untagged line yields no candidate; + - a Mind's tag wakes her, her name in a Mind's prose does not, and a tag at `mind_run = cap` does not; + - over 48 beats with static states, every eligible Mind is drawn at least once; + - the beat reason line names the strongest term, and never `agencyPressure`; + - the poll trace carries the pull terms; + - a heartbeat test with a testkit persona source: the heartbeat makes no `PersonaPut`. +- **Harness:** Self runs the four plans of 15.6 on Yggdrasil, and keeps the reports beside the 2026-11-20 sims. + +### 15.10 Questions for the operator + +**Q-A. Do her drives and her craft feed initiative?** +- Options: + - **social-only**: the beat's pull reads relatedness, play, wonderings, bonds and an unanswered line. It does not read `agencyPressure` or `need-competence`; + - **drives-too**: `agencyPressure` drives and competence add a term, and become selectable into the beat packet. The drives are now drafted by Life as drives, such as Eureka's `drive-ground` and `drive-be-known`. +- **Recommendation: social-only** for the first live weeks. +- What it gives up: a Mind never starts something because of her craft or her ambitions alone. Weksa's urge to sketch a fourth language would start a conversation only once it became a wondering. +- Why: the two-week swarm failed on exactly that mission pull (0 of 140 sampled Mind messages were purely social). A wondering can carry craft without carrying a queue. +- What depends on it: the beat's terms, section 3.1's v1 exclusion, and the target for the work-talk metric. + +**Q-B. Must a hello get a *spoken* answer, or is a woken listener enough?** +- Options: + - **woken**: rank 1 always wakes. If she stays silent and no later rank's draw fires, the silence is final; + - **spoken**: if every woken Mind stays silent, the next rank wakes without its draw, until `floor_tries` (2) Minds have been woken. +- **Recommendation: spoken, with `floor_tries` 2.** In her words: "I'd be gutted if a simple hello everyone didn't get any response at all". +- What it gives up: a Persona's silence no longer ends the floor, so one silent turn costs one more wake. A hello can still go unanswered after two silences; that is the bound. +- What depends on it: the floor step's fifth rule, and the `floor_zero` target. + +### 15.11 Alternatives considered and not placed on a question + +Self should admit these as `idea`s, each recorded against: +- `attention-model-gate`: option (b). Rejected on the zero-shot evidence (Bhagtani 2026, When2Speak) and on its cost of 8 calls per open line. +- `wake-all-persona-silence`: option (c). Rejected on the measured result (8 of 8 woken and all spoke, silence rate 0.000, `sim-humans-pace-2026-11-20.md`) and on cost. +- `inner-thoughts-per-turn-rating`: an LLM rates covert thoughts on every message (Liu 2025). Rejected on cost: one model call per Mind per message, the expense a secondary source names. +- `everyone-word-detector`: a lexical "everyone / all / anyone" test for the open floor. Rejected as a language cop; the structural "names no Mind" rule already covers the case. +- `stored-floor-record`: a typed record per open floor (line, ranks, state). Rejected: every fact in it is derivable from the event id, the tail and `handled_mentions`. +- `embedding-topic-now`: daemon embedding nearness for `topic`. Deferred: semantic queries failed on the daemon in both passes. The lexical overlap is only one weighted term, and swapping it changes nothing outside `pull`. +- `mind-open-floor-wakes`: a Mind's untagged open line opens a floor for the other Minds. Rejected by `persona-only-humans-pace`. The beat's `unanswered` term answers such a line at the beat's pace instead. +- `full-roster-draw-while-braked`: while Eureka runs alone, draw among all 8 Minds so her rate matches the eventual swarm. Rejected: a braked winner would leave a hello unanswered, against her "gutted". +- `round-robin-beat`: keep `tempo::pick` as it is. Rejected: it is round-robin by wait, with no drive. +- `swarm-wide-attention-weights`: one `[attention]` table for all Minds, in the heartbeat's config. Rejected: how she is drawn is hers, and per-Mind tuning is the experiment lever. +- `heartbeat-passes-reason`: the heartbeat hands the woken organ its pull. Rejected: it would need a payload channel for systemd starts, and the organ derives the same pull from the same state. + +### 15.12 Body facts this section rests on (probed 2026-11-20) + +- **Branches.** + - `origin/main` is `fe72386` (PR #79 merged). + - PR #80's head is `b90c21e`. + - Locally, `hands/harness-fixes` is at `43966fa`: two WIP commits past PR #80 that add `LineFacts` and the refined `HumansPace` arm (`heartbeat.rs:475`). + - The map exists only on `imagination/persona-only-heartbeat` at `d861574`. Its working copy in `swarm-experiment-2026-11/work/` is byte-identical to it. +- **The poll.** + - The live poll calls `wakes(WakePolicy::Live, …, LineFacts::default())` (`heartbeat.rs:623`). + - The beat calls `tempo::pick` over `Standing`s with `topic_permille: 0` (`:656`). + - The heartbeat polls every `HEARTBEAT_POLL_S`, default 20 s (`bin/mind-heartbeat.rs:84`). +- **The mouth.** + - `ChatPending` carries the mouth's room tail (`chat_client.rs:451`). + - `ChatDelivery.reply_to` exists, and no rule reads it (`:81-84`). + - `Basis::Room` is reported and wakes no one (`:347`). +- **The Projector.** `group_line` already finds a human's question to the room and who answered it (`select.rs:885-943`). +- **File access.** `/etc/gamecult/minds/eureka/` is `root 755` and its files are `644`. The heartbeat runs as `mind-heartbeat`, so it can read each Mind's tuning file. +- **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. -- 2.47.3 From 1a8681b0ce4784fb7f4d5b5b398ce5fe8dc8105c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 20 Nov 2026 13:33:58 +0100 Subject: [PATCH 004/283] Map r4: the Persona turn's next cut (section 16) After the persona-seed variant round: Huginn owns its Projector frame (Ghostlight keeps the Persona membrane and SourceSpan, at no cost to it); the voice summary reaches the Projector only; the packet in headed sections with one anchored-thought renderer and mood against her baseline; the body as per-Mind embodiment in state plus code-derived turn affordances, after the operator's ruling that Aqua has built ears; speech lines without marks and an Interpreter guidance knob with a missing_affordance gap; byte caps as guards with a length-neutral fill. Cuts K1-K8, the re-test against P2, questions Q-P (perspective of state text) and Q-Q (promises beyond this turn's affordances). Anchors Huginn 51fc7c3, Ghostlight c43eb549; based on imagination/persona-attention ee01a80 because the map is not on main. Co-Authored-By: Claude Opus 5.5 --- docs/persona-only-heartbeat-map.md | 564 ++++++++++++++++++++++++++++- 1 file changed, 563 insertions(+), 1 deletion(-) 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). -- 2.47.3 From 23e3623057d26f2496f8837e1fdbef47b270acbf Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 20 Nov 2026 13:39:08 +0100 Subject: [PATCH 005/283] K1: a posted line carries a standalone quotation's inside, never its marks (map 16.7, I16.2) built() maps every standalone quotation inside a located run to its inside, so a line is the same whether the model cites the marks or the words. Framed quotations are unchanged. The tests' texts() helper refuses any said line that starts or ends with a speech mark. Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/src/projection/interpret.rs | 34 ++++++++++++++----- .../src/projection/interpret/tests.rs | 28 ++++++++++++++- 2 files changed, 53 insertions(+), 9 deletions(-) diff --git a/crates/mind-body/src/projection/interpret.rs b/crates/mind-body/src/projection/interpret.rs index 3627989..f405af0 100644 --- a/crates/mind-body/src/projection/interpret.rs +++ b/crates/mind-body/src/projection/interpret.rs @@ -11,7 +11,9 @@ //! whole sentences of her prose. A line may not start or end inside a quotation her sentence frames ("I won't say //! \"Nibu is lying.\"", "If she pushes, I'll say \"Fine.\""): that is what she would or would not say. An opening //! mark a budget left unclosed is not part of the sentence it starts. So a line is always whole sentences of her own, -//! verbatim and in their order: no stitching, no dropped negation, no condition lifted off its clause. What this gives +//! verbatim and in their order: no stitching, no dropped negation, no condition lifted off its clause. A standalone +//! quotation's marks say that paragraph is speech, so the line carries its inside and not its marks, whether the model +//! cited the marks or not (map section 16.7, I16.2). What this gives //! up: indirect speech ("I'll tell her I'm fine" says nothing), any paraphrase by the Interpreter, half a sentence, and //! a line quoted inside a sentence of narration ("\"Fine,\" I tell her."): she says a sentence whole or not at all. //! @@ -143,6 +145,7 @@ fn segment(offset: usize, text: &str) -> Vec<(usize, usize)> { /// unclosed at a sentence's start is not part of that sentence. struct Reading { lists: Vec>, + standalone: Vec, framed: Vec, } @@ -158,23 +161,38 @@ fn read(prose: &str) -> Reading { sentence.0 = start; } } - let standalone = |quote: &Quotation| { + let stands = |quote: &Quotation| { let opens = top.iter().position(|sentence| sentence.0 == quote.open); let closes = top.iter().position(|sentence| sentence.0 < quote.close && sentence.1 >= quote.close && prose[quote.close..sentence.1].chars().all(|c| c.is_ascii_punctuation())); matches!((opens, closes), (Some(opens), Some(closes)) if opens <= closes) }; - let framed = quotes.iter().copied().filter(|quote| !standalone(quote)).collect(); + let (standalone, framed) = quotes.iter().copied().partition(stands); let mut lists = vec![top]; lists.extend(quotes.iter().map(|quote| segment(quote.inside.0, &prose[quote.inside.0..quote.inside.1]))); - Reading { lists, framed } + Reading { lists, standalone, framed } +} + +/// `prose[first..end]` without the marks of the standalone quotations inside it (I16.2): her marks say a paragraph is +/// speech, and the line is the speech. What lies between two quotations, a paragraph break, stays. +fn unmarked(prose: &str, first: usize, end: usize, standalone: &[Quotation]) -> String { + let mut line = String::new(); + let mut at = first; + for quote in standalone.iter().filter(|quote| first <= quote.open && quote.close <= end) { + line.push_str(&prose[at..quote.open]); + line.push_str(&prose[quote.inside.0..quote.inside.1]); + at = quote.close; + } + line.push_str(&prose[at..end]); + line } /// The line her cited spans make, or why not. Each span is located in her prose after the one before it and must be /// whole sentences of one list (`read`), each span's first sentence the one after the last span's last; the line is her -/// prose from the first sentence to the last, verbatim, and it may neither start nor end inside a framed quotation. A -/// line that holds a framed quotation whole ("Kiko's "plan" is a mess.") is hers to say. +/// prose from the first sentence to the last, verbatim but for the marks of a standalone quotation (`unmarked`), and it +/// may neither start nor end inside a framed quotation. A line that holds a framed quotation whole ("Kiko's "plan" is a +/// mess.") is hers to say, marks and all. fn built(prose: &str, spans: &[String]) -> Result<(String, Vec), &'static str> { - let Reading { lists, framed } = read(prose); + let Reading { lists, standalone, framed } = read(prose); let mut from = 0; // The list the line is in, and its last sentence so far. let mut run: Option<(usize, usize)> = None; @@ -212,7 +230,7 @@ fn built(prose: &str, spans: &[String]) -> Result<(String, Vec), &'static if inside(first) || inside(from) { return Err("it starts or ends inside a quotation her sentence frames: words she would or would not say, not words she says"); } - Ok((prose[first..from].to_owned(), located)) + Ok((unmarked(prose, first, from, &standalone), located)) } /// Whether a line is someone else's words: long enough to judge, and nearly all a run of what she heard, by word diff --git a/crates/mind-body/src/projection/interpret/tests.rs b/crates/mind-body/src/projection/interpret/tests.rs index b43d837..7a5171a 100644 --- a/crates/mind-body/src/projection/interpret/tests.rs +++ b/crates/mind-body/src/projection/interpret/tests.rs @@ -58,8 +58,14 @@ fn decided(prose: &str, say: serde_json::Value) -> Value { decided_in(&packet(), prose, say) } +/// The lines said. Every line any test here says is held to I16.2: no speech mark at either end. fn texts(decision: &Value) -> Vec { - decision["said"].as_array().unwrap().iter().map(|line| line["text"].as_str().unwrap().to_owned()).collect() + let said: Vec = decision["said"].as_array().unwrap().iter().map(|line| line["text"].as_str().unwrap().to_owned()).collect(); + for line in &said { + let marks = ['"', '\u{201C}', '\u{201D}']; + assert!(!line.starts_with(marks) && !line.ends_with(marks), "a posted line keeps a speech mark: {line:?}"); + } + said } fn refused_why(decision: &Value) -> String { @@ -101,6 +107,26 @@ fn a_standalone_quotation_is_sayable_sentence_by_sentence() { assert!(texts(&decided(curly, json!([{ "spans": ["Not"] }]))).is_empty()); } +#[test] +fn a_quoted_paragraph_posts_without_its_marks_however_it_is_cited() { + let prose = "I lean in.\n\n\"Hi there.\"\n\nThat's enough."; + // Cited with its marks, the run is in her prose's own list; cited by its inside, in the quotation's. One line. + assert_eq!(says(prose, &["\"Hi there.\""]).0, ["Hi there."]); + assert_eq!(says(prose, &["Hi there."]).0, ["Hi there."]); + let curly = "\u{201C}No. Not yet.\u{201D} I shake my head."; + assert_eq!(says(curly, &["\u{201C}No.", "Not yet.\u{201D}"]).0, ["No. Not yet."]); + // Closing punctuation after the mark stays with the sentence. + assert_eq!(says("\"Fine\". I mean it.", &["\"Fine\"."]).0, ["Fine."]); +} + +#[test] +fn a_run_of_quoted_paragraphs_posts_each_inside_and_what_lies_between() { + let prose = "I think it over.\n\n\"Hi Meta.\"\n\n\"I'm here, and I'm fine.\"\n\nThen I wait."; + assert_eq!(says(prose, &["\"Hi Meta.\"", "\"I'm here, and I'm fine.\""]).0, ["Hi Meta.\n\nI'm here, and I'm fine."]); + // A framed quotation the line holds whole keeps its marks: they are hers, inside her sentence. + assert_eq!(says("\"Yes.\" Kiko's \"plan\" is a mess.", &["\"Yes.\"", "Kiko's \"plan\" is a mess."]).0, ["Yes. Kiko's \"plan\" is a mess."]); +} + /// Whether citing `spans` of `prose` says anything, and why not. fn says(prose: &str, spans: &[&str]) -> (Vec, String) { let decision = decided(prose, json!([{ "spans": spans }])); -- 2.47.3 From d7c04b122cabc613133c052d7d0bcce9924823a3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 20 Nov 2026 13:44:19 +0100 Subject: [PATCH 006/283] 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("