Harness fixes: one wake rule in the heartbeat, the heartbeat's beat, group state in the Projector #80

Merged
eureka merged 2 commits from hands/harness-fixes into main 2026-11-20 03:34:37 +00:00
Owner

Follow-up to #79, after Soul's HOLD findings and Self's decisions.

What changes

  • F1, one wake rule. heartbeat::wakes(policy, addressee, delivery, speaker, mind_run) decides every off-beat wake. The live poll calls it with WakePolicy::Live, so live waking does not change until desk question po-mind-wakes-mind is answered. The human-message wake is not in the live path. The simulator calls the same function with the plan's policy: ruled, humans_pace, names_with_cap = N or all_messages. Each persona's addressee comes from the heartbeat's addressing table, read without a lock or a write, so stewarded project names count (F4).
  • F2, the beat. It falls on beat_s of simulated time and wakes one Persona: the winner of tempo::pick.
  • F5 to F8. Mind-addressed evidence is counted per wake. Reply chains are per room. A failed call counts as a failure, not as silence. A test checks that another seed changes the order.
  • F9. The --state docs say P4 and P5 are not checked.
  • Group state in the Projector's packet (select.group_state, default on, select.group_lines, select.group_bytes): one line over the room's recent lines, inside the context budget, narrated like the rest. Golden fixtures cover the four scenario rooms, and the chat golden packet is updated.
  • Reports. Wakes split by cause and by round, chains per room, failures, 18 representative lines, and a note that an explicit addressee needs the Interpreter (C3b).

Verification

Yggdrasil, ygg-verify rust image: cargo clippy -p mind-body -p huginn-mind --all-targets -- -D warnings is clean, and cargo test -p mind-body passes (565 passed, 0 failed).

Live runs

One repeat each: 12 rounds of 5 simulated minutes, a beat every 1,800 s, Life's draft for Eureka plus the 7 stored states, and the operator opening warmly in #minds. The runs ran as an unprivileged admin user on Eureka's connector credential. The state copies were readable by that user alone and are deleted.

run wakes (human / Mind-addressed / Mind unaddressed / beat) longest Mind-to-Mind chain silence per woken turn failed calls
all_messages (control) 86 (8 / 59 / 17 / 2) 31 0.116 0 172
ruled 51 (8 / 41 / 0 / 2) 23 0.059 0 102
humans_pace 10 (8 / 0 / 0 / 2) 0 0.000 0 20
names_with_cap 4 11 (8 / 1 / 0 / 2) 1 0.182 0 22
ruled, group state off 47 (8 / 37 / 0 / 2) 21 0.106 0 94

Every Mind-addressed wake was a name in the text: none was a Matrix mention or reply, and none was an id written as text. Total: 410 calls, 106,896 output and 743,001 cache-write tokens. Her trace, the heartbeat state and all 8 persona receipts were unchanged. The five mouth cursors that moved hold the mouth's own Matrix sync token (nextBatch), which its sync loop writes.

🤖 Generated with Claude Code

Follow-up to #79, after Soul's HOLD findings and Self's decisions. ## What changes - **F1, one wake rule.** `heartbeat::wakes(policy, addressee, delivery, speaker, mind_run)` decides every off-beat wake. The live poll calls it with `WakePolicy::Live`, so live waking does not change until desk question `po-mind-wakes-mind` is answered. The human-message wake is not in the live path. The simulator calls the same function with the plan's policy: `ruled`, `humans_pace`, `names_with_cap = N` or `all_messages`. Each persona's addressee comes from the heartbeat's addressing table, read without a lock or a write, so stewarded project names count (F4). - **F2, the beat.** It falls on `beat_s` of simulated time and wakes one Persona: the winner of `tempo::pick`. - **F5 to F8.** Mind-addressed evidence is counted per wake. Reply chains are per room. A failed call counts as a failure, not as silence. A test checks that another seed changes the order. - **F9.** The `--state` docs say P4 and P5 are not checked. - **Group state in the Projector's packet** (`select.group_state`, default on, `select.group_lines`, `select.group_bytes`): one line over the room's recent lines, inside the context budget, narrated like the rest. Golden fixtures cover the four scenario rooms, and the chat golden packet is updated. - **Reports.** Wakes split by cause and by round, chains per room, failures, 18 representative lines, and a note that an explicit addressee needs the Interpreter (C3b). ## Verification Yggdrasil, ygg-verify rust image: `cargo clippy -p mind-body -p huginn-mind --all-targets -- -D warnings` is clean, and `cargo test -p mind-body` passes (565 passed, 0 failed). ## Live runs One repeat each: 12 rounds of 5 simulated minutes, a beat every 1,800 s, Life's draft for Eureka plus the 7 stored states, and the operator opening warmly in #minds. The runs ran as an unprivileged admin user on Eureka's connector credential. The state copies were readable by that user alone and are deleted. | run | wakes (human / Mind-addressed / Mind unaddressed / beat) | longest Mind-to-Mind chain | silence per woken turn | failed | calls | |---|---|---|---|---|---| | all_messages (control) | 86 (8 / 59 / 17 / 2) | 31 | 0.116 | 0 | 172 | | ruled | 51 (8 / 41 / 0 / 2) | 23 | 0.059 | 0 | 102 | | humans_pace | 10 (8 / 0 / 0 / 2) | 0 | 0.000 | 0 | 20 | | names_with_cap 4 | 11 (8 / 1 / 0 / 2) | 1 | 0.182 | 0 | 22 | | ruled, group state off | 47 (8 / 37 / 0 / 2) | 21 | 0.106 | 0 | 94 | Every Mind-addressed wake was a name in the text: none was a Matrix mention or reply, and none was an id written as text. Total: 410 calls, 106,896 output and 743,001 cache-write tokens. Her trace, the heartbeat state and all 8 persona receipts were unchanged. The five mouth cursors that moved hold the mouth's own Matrix sync token (`nextBatch`), which its sync loop writes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- F1: `heartbeat::wakes(policy, addressee, delivery, speaker, mind_run)` is the one wake rule. The poll asks it with
  `WakePolicy::Live` (behaviour unchanged until `po-mind-wakes-mind` is answered); the simulator asks it with the plan's
  policy: `ruled`, `humans_pace`, `names_with_cap = N`, `all_messages`. The simulator reads each persona's addressee from
  the heartbeat's addressing table (stewarded project names included) when the plan names `heartbeat.cc`.
- F2: the beat falls on `beat_s` of simulated time and wakes one Persona, the winner of `tempo::pick`.
- F5: Mind-addressed evidence is counted per wake (its strongest evidence), not per line.
- F6: reply chains are per room and count Mind lines spoken in turns another Mind's line woke.
- F7: a failed call is a failure, apart from silence; silence rate is per woken turn that did not fail.
- F8: a test that another seed changes the order.
- F9: `--state` docs say P4 and P5 are not checked.
- Group state (`select.group_state`, default on): one packet line over the room's last `group_lines` lines: who spoke
  to whom, when a human last spoke, how many Mind lines in a row, lines to her, an open question to everyone. Inside the
  context budget, narrated by the Projector like every other line; golden fixtures for the four scenario rooms.
- Reports: wakes by cause and by round, per-room chains, failures, 18 representative lines, the explicit-addressee gap.
- Tuning: `persona.words` and `persona.guidance` get the upper bounds the Projector's knobs have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Projector (the operator: "Sounds like a Projector issue"):
- The group state is the conversation as it stands, in one room: who is talking with whom, a human's question to the
  room that others answered as covered (one nobody answered goes unmentioned), when a human last spoke, Mind lines in a
  row, and a human waiting on her by name. Never what she owes. Every count covers the window the line describes (S4);
  never several rooms folded together, never a direct message into a public room (S3). Default group_lines 12.
- Absent state is left out: no "mood: none recorded"; a bond, need, memory, stance, wondering or value without content
  is not rendered, and a bond without trust or tension says neither.
- Guidance: never retell what she heard (it reaches her verbatim), render what it stirs; never a debt; no options; leave
  out what the context does not carry; use pronouns as given. Metrics, not filters: heard_overlap (word trigrams shared
  with the heard lines) and offers_options (a narrow lexical flag), per render and per run.
- Pronouns: `[pronouns]` in the tuning by Matrix id, the swarm's people as the default, they/them for anyone else; the
  persona schema has no pronoun field for another person. A pronoun line names everyone the packet shows from the room.
  The packet speaks of her in her own pronouns throughout ("Said to him:") (S5).
- Bond lines put the kind after a dash and lists use semicolons: a label may hold a comma ("Meta, the operator").

Persona stage: continues her inner stream in the first person; speech only where her thought moves her to it, in double
quotes; others' words she recalls in single quotes; @handle tags someone. The report shows her inner prose apart from
what she would say.

humans_pace (ruling persona-only-humans-pace; the operator's words that Minds' explicit mentions wake too):
`HumansPace(cap)`: a human's line wakes her in her own room or a direct message always, and in a public room when it
addresses her or continues an exchange she is in (an exchange ends at a gap over exchange_gap_minutes, default 20); a
Mind's line wakes her only by a Matrix mention or a reply, in any room, while fewer than `cap` Mind lines in a row came
before it. Own rooms come from the plan: neither the heartbeat's table nor persona.env records ownership. Live is
unchanged. In the simulation a said line's @handle of a cast member stands in for a Matrix mention.

Soul's hold:
- S1: Config::new refuses an operator id that is also a persona's.
- S2: the simulator's beat asks heartbeat::addressed_by_member over the deliveries the mouth would give her.
- S3: --in given as a room id is read by its alias.
- S6: a scripted direct message names its recipient (`to`), is seen by sender and recipient alone, and wakes only her.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Owner

New commit 63606ef: the Projector and Persona fixes after the operator's reading of the humans_pace run, the humans_pace wake rule per persona-only-humans-pace with explicit Mind mentions, and Soul's S1 to S6. Verified on Yggdrasil: cargo clippy -p mind-body -p huginn-mind --all-targets -- -D warnings clean; cargo test -p mind-body green.

Live rerun (one repeat each, 12 rounds of 5 min; #minds public, #eureka and #kiko own rooms; same cast and seed):

run wakes (human addressed / human / Mind mention / beat) longest Mind-to-Mind chain silence per woken turn retelling / option menus calls
humans_pace (cap 4) 8 (2 / 2 / 2 / 2) 2 0.00 0 / 0 16
ruled 18 (2 / 10 / 4 / 2) 2 0.06 0 / 2 36
hello everyone, humans_pace 0 0 n/a n/a 0

Every Mind-addressed wake was an explicit @mention; none was a name in prose. Her trace, the heartbeat state and the eight receipts were unchanged. Mouth cursors moved by the mouth's own sync, as before.

Reports, and round 1's narrations before and after side by side, are in F:\Projects\swarm-experiment-2026-11\work\harness\ (sim-v3-*, round1-narrations-before-after-2026-11-20.md).

🤖 Generated with Claude Code

New commit 63606ef: the Projector and Persona fixes after the operator's reading of the humans_pace run, the `humans_pace` wake rule per `persona-only-humans-pace` with explicit Mind mentions, and Soul's S1 to S6. Verified on Yggdrasil: `cargo clippy -p mind-body -p huginn-mind --all-targets -- -D warnings` clean; `cargo test -p mind-body` green. **Live rerun** (one repeat each, 12 rounds of 5 min; #minds public, #eureka and #kiko own rooms; same cast and seed): | run | wakes (human addressed / human / Mind mention / beat) | longest Mind-to-Mind chain | silence per woken turn | retelling / option menus | calls | |---|---|---|---|---|---| | humans_pace (cap 4) | 8 (2 / 2 / 2 / 2) | 2 | 0.00 | 0 / 0 | 16 | | ruled | 18 (2 / 10 / 4 / 2) | 2 | 0.06 | 0 / 2 | 36 | | hello everyone, humans_pace | 0 | 0 | n/a | n/a | 0 | Every Mind-addressed wake was an explicit @mention; none was a name in prose. Her trace, the heartbeat state and the eight receipts were unchanged. Mouth cursors moved by the mouth's own sync, as before. Reports, and round 1's narrations before and after side by side, are in `F:\Projects\swarm-experiment-2026-11\work\harness\` (`sim-v3-*`, `round1-narrations-before-after-2026-11-20.md`). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
eureka merged commit e817b67abd into main 2026-11-20 03:34:37 +00:00
eureka deleted branch hands/harness-fixes 2026-11-20 03:34:37 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Huginn!80
No description provided.