| Filename | Latest commit message | Latest commit date |
|---|---|---|
The harness judges candidate persona states before any Mind holds them, through the same `project` the live turn will use: every case is one `project` call. - `--room <fixture.toml>`: a mocked room in place of the mouth and the room tail: her id, rooms, messages (sender, display name, room, ago, body; new, tag, mentions, dm, follow_up, reply_to), a mocked now and a "last heard from" table. The fixture is a MouthReader, so addressing is still `address::is_for`. The live room filter that `--room` used to name is now `--in`. - `--state` is checked as a put checks content: huginn-mind's P1 to P3 now live in one owner, `persona::validate_document`, which the put calls. - `--through persona`: the Persona stage (C3b's first piece). One tool-less connector call under Ghostlight's persona membrane over identity, narration and the heard lines; prose capped at 180 words; would-say lines are the double-quoted spans; usage per call. Tuning gains `[persona]` (model, guidance, words). - `--batch <plan> --out <md>`: states x scenarios x samples, one Markdown report with packets, narration, prose, would-say lines, word counts, distinct-2 and cross-state word similarity, and a total-usage footer. - `--simulate <plan> --out <md>`: up to eight personas taking turns in one room. Wake is is_for plus the ruled set (addressed, any human in her rooms, the beat); `wake = "all_messages"` is the old loop as a control. Woken personas run in a seeded order; quoted lines join the room as from her id. State does not evolve (`state_after_turn` is the seam for C3b/C3c). Metrics: messages, silence, who addresses whom, Mind-to-Mind chains, lexical convergence, a work-talk heuristic, usage. - With a state file and a fixture no daemon and no mouth is needed (bin test). - Request ids take the wall clock, so a fixture's fixed now cannot replay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
| .. | ||
| fixtures/harness | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| clippy.toml | ||
| README.md | ||
mind-body
The Mind's body: the control store, the unit launcher, the mind-heartbeat, the
inert mind-persona organ and the mind-self-run actuator.
mind-self-run --instance <slug> [--endpoint rudp://<ip>:<port>] runs inside
mind-self@<instance>. It finds her one open Self run, starts claude over
stream-json with a fixed argument list, asks for the flush once at the context
ceiling and stops a child that outlives the flush (SIGINT, then SIGTERM and SIGKILL). It exits 0 when the child exited 0, 1
otherwise, 3 when she has no single open Self run and 2 when the arguments are
wrong or the mind cannot be reached.
The heartbeat
mind-heartbeat is the one process that decides who wakes and when. It starts a Persona's unit and writes no Mind: the beat (HEARTBEAT_BEAT_S, default 1800 s) goes to the idle, released Mind that has waited longest, bent by a member addressing her, and the operator or another Mind naming a Persona wakes her at once, once per message. mind-heartbeat timeline prints its latest record.
mind-persona is inert: it reads the brakes and exits dead or no organ. It writes nothing. Nothing launches mind-self-run.
The actuator has its own ignored test, the_real_bin_finds_her_run_... in
tests/self_run.rs: the real mind-self-run against the real daemon with a
fake claude first on PATH. It needs the daemon built beside the binary and a
POSIX shell, not root:
cargo build -p huginn-daemon -p mind-body --all-targets && cargo test -p mind-body --test self_run -- --include-ignored
Mutation testing of the actuator, with the globs that reach the library and the
binary: cargo mutants -p mind-body -f "**/src/self_run.rs" -f "**/src/bin/mind-self-run.rs". The binary's mutants are killed only by the
lane above.