mind-body public surface: the drain's Start, Put, PersonaStore, trace_lines

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-27 21:21:31 +01:00
commit a8983c3c19

View file

@ -214,28 +214,33 @@ mind_body::lease_client: struct LeaseRequest # [derive (Clone , Debug , PartialE
mind_body::lease_client: struct SocketLender pub-fields[]
mind_body::lease_client: struct TokenFd pub-fields[]
mind_body::lease_client::socket: impl Lease for Granted
mind_body::persona: # [derive (Debug , PartialEq , Eq)] pub enum Outcome { Dead (HeldReason) , NoOrgan , }
mind_body::persona: # [derive (Debug , PartialEq , Eq)] pub enum Outcome { Dead (HeldReason) , Drained { turns : usize , acked_through : Option < u64 > , put_refused : usize } , Failed (String) , }
mind_body::persona: const AGENT : & str
mind_body::persona: const ENV_MINDS : & str
mind_body::persona: const ENV_MODEL : & str
mind_body::persona: const ENV_OPERATOR : & str
mind_body::persona: const ENV_ROOMS : & str
mind_body::persona: const ENV_SELF_SENDER : & str
mind_body::persona: fn carry (control : & impl ControlSource , swarm : & impl ControlSource , instance : & Slug) -> Outcome
mind_body::persona: const TURNS_PER_START : usize
mind_body::persona: fn carry < C : Chat > (control : & impl ControlSource , swarm : & impl ControlSource , instance : & Slug , build : impl FnOnce () -> Result < Start < C > >) -> Outcome
mind_body::persona: fn trace_lines (trace : & dyn Trace , last : usize) -> Result < Vec < String > >
mind_body::persona: impl Config
mind_body::persona: impl Config: fn from_args (args : & [String] , usage : & str) -> Result < (Self , Vec < String >) >
mind_body::persona: impl Config: fn from_args_and_env (args : & [String] , lookup : impl Fn (& str) -> Option < String > , usage : & str) -> Result < (Self , Vec < String >) >
mind_body::persona: impl Conversation
mind_body::persona: impl FileTrace
mind_body::persona: impl FileTrace: fn new (path : impl Into < PathBuf >) -> Self
mind_body::persona: impl PersonaStore for HuginnPersonaSource
mind_body::persona: impl Sender
mind_body::persona: impl Trace for FileTrace
mind_body::persona: impl fmt :: Display for Outcome
mind_body::persona: pub trait Trace { fn record (& self , key : & str , record : & Value) -> Result < () > ; fn records (& self) -> Result < Vec < Value > > ; }
mind_body::persona: struct Config # [derive (Clone , Debug , PartialEq , Eq)] pub-fields[rooms: Vec < String >, operators: Vec < String >, minds: Vec < String >, own_sender: String, model: String]
mind_body::persona: struct FileTrace pub-fields[]
mind_body::persona: struct Start< C : Chat > pub-fields[config: Config, persona: Box < dyn PersonaStore >, chat: C, trace: Box < dyn Trace >, addressing: Option < Box < dyn HeartbeatView > >, model: Box < dyn Model >, domain: Option < Box < dyn DomainSource > >, reads: Option < Box < dyn ReadSource > >, tuning: PathBuf, clock: Box < dyn Fn () -> DateTime < Utc > >]
mind_body::persona: struct TurnRecord # [derive (Clone , Debug , PartialEq , DatabaseEntry)] pub-fields[value: Value]
mind_body::projection: # [derive (Clone , Copy , Debug , Default , PartialEq , Eq , serde :: Deserialize)] # [serde (rename_all = "snake_case")] pub enum Through { # [default] Projector , Persona , Interpreter , }
mind_body::projection: # [derive (Debug , PartialEq , Eq)] pub enum Put { Committed , Stale , Refused (String) , }
mind_body::projection: fn project (organs : & Organs , request : & Request , now : DateTime < Utc >) -> Result < Value >
mind_body::projection: impl Affordance
mind_body::projection: impl HuginnPersonaSource
@ -245,6 +250,7 @@ mind_body::projection: impl< T : Chat > MouthReader for T
mind_body::projection: mod harness
mind_body::projection: pub trait MouthReader { fn pending (& self) -> Result < ChatPending > ; }
mind_body::projection: pub trait PersonaSource { fn persona (& self) -> Result < (Value , String) > ; }
mind_body::projection: pub trait PersonaStore : PersonaSource { fn put (& self , state : & Value , expected_updated_at : Option < & str > , session : & str) -> Result < Put > ; }
mind_body::projection: pub use domain :: { DomainFacts , DomainSource , HttpForge , MindDomain } ;
mind_body::projection: pub use narrate :: { Answer , Continued , Failed , KitModel , Model , Reasoning , Spent , Turn , connector_key } ;
mind_body::projection: pub use read :: { LiveReads , ReadFailure , ReadFixture , ReadRequest , ReadSource } ;
@ -260,9 +266,8 @@ mind_body::projection::domain: impl HttpForge
mind_body::projection::domain: impl HttpForge: fn new (base_url : & str) -> Self
mind_body::projection::domain: impl MindDomain
mind_body::projection::domain: impl MindDomain: fn new (client : HuginnClient , forge : HttpForge) -> Self
mind_body::projection::domain: impl MindDomain: fn stewarded (& self) -> Result < Vec < String > >
mind_body::projection::domain: impl Names
mind_body::projection::domain: pub trait DomainSource { fn read (& self , since : DateTime < Utc > , now : DateTime < Utc >) -> Result < DomainFacts > ; }
mind_body::projection::domain: pub trait DomainSource { fn read (& self , since : DateTime < Utc > , now : DateTime < Utc >) -> Result < DomainFacts > ; fn stewarded (& self) -> Result < Vec < String > > { Ok (Vec :: new ()) } }
mind_body::projection::domain: struct DomainFacts # [derive (Clone , Debug , Default , PartialEq , Eq , Serialize , Deserialize)] pub-fields[]
mind_body::projection::domain: struct HttpForge pub-fields[]
mind_body::projection::domain: struct MindDomain pub-fields[]