Skip to main content

Crate harness_context

Crate harness_context 

Source
Expand description

Runtime defaults and context-assembly helpers.

harness-core defines the abstract World/Clock/ProcessRunner/KvStore traits; this crate provides the concrete implementations the framework actually runs on.

Re-exports§

pub use file_recall::*;
pub use memory_file::*;
pub use memory_guard::*;
pub use runtime::*;

Modules§

file_recall
File-backed RecallStore: append-only JSONL transcripts, one directory per owner. Open-format, greppable, operator-owned — same posture as crate::FileMemory. Search is a linear token-overlap scan (no FTS), fine at kilobyte–MB scale; apps at scale use harness-recall-sqlite instead.
memory_file
File-backed Memory implementation.
memory_guard
Memory write-time guards: dedup + sensitivity filter.
runtime
Concrete World runtime impls.

Traits§

ContextExt
Convenience constructors and mutators for Context.

Functions§

default_world
Quick way to construct a World rooted at the given path with the default runtime impls (tokio process runner, system clock, in-memory kv) and an empty user profile.
with_profile
Builder shorthand: construct a default world and attach a profile in one go.