| Filename | Latest commit message | Latest commit date |
|---|---|---|
A Persona reply gains `remember` (memories of seven sorts, about the batch's people), `settle` (close an open ask: done is Recorded, declined and wrong Withdrawn, with her reason) and `start_self_run.for_ask` (take an ask on by id or as `new:<i>`). The organ fills where a memory was learned, whether it was direct and its event ids; the model cannot write them. One admission per turn carries the memories, the settles and the Pulse after the says, then the Self run (follow-up and the ask's Deferred in one admission), then the ack. A refusal fails the turn as Failure::Memory with the says sent and no ack. admit_pulse is gone. recall.rs reads only her own mind: open asks first on every turn including a wake, memory about the batch's other senders, the nearest memory, follow-up and ruling by MindPort::query_near, and the newest memory; de-duplicated and capped at 20 items and 16 KiB. render_input gains "What you remember" after the goals section; follow-ups and rulings that section already lists are not repeated. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| clippy.toml | ||
| README.md | ||
mind-body
The Mind's body: the control store, the launch primitive, the mind-heartbeat
timeline 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: each beat falls when the Minds' voted tempo has passed and goes to the Mind that has waited longest, bent by the urgency she declares and a member addressing her; the operator tagging or naming a Persona launches her at once. mind-heartbeat timeline prints its latest record.
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.