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 <noreply@anthropic.com>
This commit is contained in:
parent
d86157433a
commit
ee01a80cfb
1 changed files with 342 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# Persona-only Eureka: the heartbeat map
|
# 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
|
## 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`).
|
- 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.
|
- 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.
|
- 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/<slug>/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<WakeCause>`, 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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue