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.