heartbeat: the swarm's addressing table in heartbeat.cc, written by the poll; Personas rank the stagger and list to from it

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-07 00:59:02 +01:00
commit cfef5bee4f
7 changed files with 291 additions and 63 deletions

View file

@ -9,16 +9,16 @@ use eureka_pipeline::{OrgRepo, Short};
use crate::chat_client::ChatDelivery;
/// A word a message may call a Mind or her project by.
#[derive(Clone, Debug, PartialEq, Eq)]
pub(crate) struct Name {
#[derive(Clone, Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct Name {
pub(crate) text: String,
/// Matched case-sensitively, as written; otherwise in any case.
pub(crate) exact: bool,
}
/// Whom a delivery may be addressing: one Mind's Matrix id and her names.
#[derive(Clone, Debug, PartialEq, Eq)]
pub(crate) struct Addressee {
#[derive(Clone, Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct Addressee {
matrix_id: String,
names: Vec<Name>,
}