The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: fix typos in documentation and comments
Steven Enamakelb8e09ddc2ef4
diff --git a/crates/openhuman-core/src/agent/README.md b/crates/openhuman-core/src/agent/README.mdindex 4dc20afe68..ddf540f10c 100644--- a/crates/openhuman-core/src/agent/README.md+++ b/crates/openhuman-core/src/agent/README.md@@ -26,7 +26,7 @@ Multi-agent orchestration domain. Owns the LLM tool-calling loop, sub-agent disp| `debug/` | Renders the exact system prompt a live session would see for a given agent, via `Agent::from_config_for_agent` || `experience/` | Local procedural operating experience capture for self-learning ([README](experience/README.md)) || `file_state/` | Process-wide read/write stamps so parallel sub-agents and worker threads detect stale file contents before writing |-| `goals/` | Host adapters around `tinyagents_graph::goals`: workspace-store resolution, domain events, heartbeat dispatch, and the `goal_*` tools ([README](goals/README.md)) |+| `goals/` | Host adapters around `tinyagents_graph::goals`: workspace-store resolution, domain events, turn accounting, and the `goal_*` tools ([README](goals/README.md)) || `harness/` | Legacy/product prompt and definition helpers used by the session host; generic loop mechanics are imported from TinyAgents ([README](harness/README.md)) || `harness_init/` | One-time first-run provisioning (Python/spaCy/Kompress/Node) before the harness can run ([README](harness_init/README.md)) || `learning/` | Reflection, tool-outcome tracking, user-profile inference from transcripts ([README](learning/README.md)) |diff --git a/crates/openhuman-core/src/agent/debug/mod.rs b/crates/openhuman-core/src/agent/debug/mod.rsindex d707a8d683..184097ad07 100644--- a/crates/openhuman-core/src/agent/debug/mod.rs+++ b/crates/openhuman-core/src/agent/debug/mod.rs@@ -182,7 +182,7 @@ async fn load_dump_config(// The contract event sink still installs, idempotently, for the same reason// as in `runtime::context`: it is a `tinymemory-api` seam with a live// production publisher, and it drops silently rather than loudly when- // unwired. Same rationale as `memory_cli` / `subconscious_cli`.+ // unwired. Same rationale as `memory_cli`.crate::memory::host::install_memory_event_sink();Ok(config)diff --git a/crates/openhuman-core/src/agent/harness/definition/tier.rs b/crates/openhuman-core/src/agent/harness/definition/tier.rsindex cfb9d267ad..4101381727 100644--- a/crates/openhuman-core/src/agent/harness/definition/tier.rs+++ b/crates/openhuman-core/src/agent/harness/definition/tier.rs@@ -70,9 +70,8 @@ impl std::fmt::Display for AgentTier {/// not into each other (a depth-blowing recursion of slow models).////// Note this forbids same-tier and worker-as-parent hops, **not** upward hops:-/// `reasoning → chat` is a real, intentional builtin edge (the `subconscious`-/// reasoner can hand a follow-up back to the `orchestrator` chat agent), so it-/// must stay legal. The harness'es `MAX_SPAWN_DEPTH` cap bounds chain length+/// `reasoning → chat` is a legal edge (a reasoning agent can hand a follow-up+/// back to the `orchestrator` chat agent), so it must stay allowed. The harness'es `MAX_SPAWN_DEPTH` cap bounds chain length/// independently of tier direction.////// This is the static authoring rule the loader walks over declared `subagents`diff --git a/crates/openhuman-core/src/agent/harness/definition_tests.rs b/crates/openhuman-core/src/agent/harness/definition_tests.rsindex 0bb3d8aaaf..032a02fc67 100644--- a/crates/openhuman-core/src/agent/harness/definition_tests.rs+++ b/crates/openhuman-core/src/agent/harness/definition_tests.rs@@ -317,8 +317,8 @@ fn tier_transition_rejects_reasoning_to_reasoning() {#[test]fn tier_transition_allows_upward_reasoning_to_chat() {- // Upward delegation is intentionally legal: the `subconscious` reasoner- // hands follow-ups back to the `orchestrator` chat agent. Only same-tier+ // Upward delegation is intentionally legal: a reasoning agent may hand+ // follow-ups back to the `orchestrator` chat agent. Only same-tier// and worker-as-parent hops are forbidden.assert!(validate_tier_transition(AgentTier::Reasoning, AgentTier::Chat).is_ok());}diff --git a/crates/openhuman-core/src/agent/learning/linkedin_enrichment/memory_persistence.rs b/crates/openhuman-core/src/agent/learning/linkedin_enrichment/memory_persistence.rsindex 59121a82a3..884780c258 100644--- a/crates/openhuman-core/src/agent/learning/linkedin_enrichment/memory_persistence.rs+++ b/crates/openhuman-core/src/agent/learning/linkedin_enrichment/memory_persistence.rs@@ -57,8 +57,8 @@ pub(super) async fn profile_memory_writer(/// `put_doc`, which is what `MemoryDocuments::put_document` resolves to on the/// embedded driver — same upsert, same background graph-extraction enqueue./// `ExternalSync` is carried explicitly for the same reason `store_skill_sync`-/// hard-coded it: a scraped third-party profile is not user-authored, and the-/// subconscious gate reads that provenance off the persisted chunk.+/// hard-coded it: a scraped third-party profile is not user-authored, and that+/// provenance must survive on the persisted chunk.////// The dedup key is the title, matching `store_skill_sync`'s `document_id: None`/// branch — LinkedIn enrichment has no stable upstream id to key on.diff --git a/crates/openhuman-core/src/agent/learning/transcript_ingest/types.rs b/crates/openhuman-core/src/agent/learning/transcript_ingest/types.rsindex ccf871e97c..7fc5fde923 100644--- a/crates/openhuman-core/src/agent/learning/transcript_ingest/types.rs+++ b/crates/openhuman-core/src/agent/learning/transcript_ingest/types.rs@@ -12,7 +12,7 @@ pub const CONVERSATION_MEMORY_NAMESPACE: &str = "conversation_memory";/// Memory namespace for transcript-derived higher-level reflections —/// patterns, repeated mistakes, opportunities. Surfaced through the-/// subconscious / Intelligence UI rather than the prompt context block.+/// Intelligence UI rather than the prompt context block.pub const CONVERSATION_REFLECTIONS_NAMESPACE: &str = "conversation_reflections";/// Memory namespace holding raw, verbatim user messages captured by thediff --git a/crates/openhuman-core/src/agent/mod.rs b/crates/openhuman-core/src/agent/mod.rsindex c3f2491a6a..809ba253b1 100644--- a/crates/openhuman-core/src/agent/mod.rs+++ b/crates/openhuman-core/src/agent/mod.rs@@ -79,8 +79,8 @@ pub mod tool_policy;pub mod tools;pub mod triage;/// Turn-origin task-local — explicit trust/routing label scoped by every-/// entry point that invokes the agent (web chat, channel runtime,-/// subconscious, cron, CLI). Read by the approval gate to make+/// entry point that invokes the agent (web chat, channel runtime, cron,+/// background jobs, CLI). Read by the approval gate to make/// origin-aware decisions rather than inferring trust from the absence of/// `APPROVAL_CHAT_CONTEXT`.pub mod turn_origin;diff --git a/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rs b/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rsindex 2b7251dd58..54f45f8512 100644--- a/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rs+++ b/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rs@@ -124,7 +124,7 @@ pub(crate) async fn build_root_parent(/// Ensure a parent execution context is installed for `fut`, then run it — the/// single blessed entry point for **controller-spawned background orchestration/// surfaces** that have no enclosing agent turn (the workflow-run engine, the-/// agent-team runtime, the subconscious tick).+/// agent-team runtime, cron jobs).////// Folds [`build_root_parent`] + [`with_parent_context`] into one call so a/// surface cannot install a hand-rolled parent, and — the TAURI-RUST-HMWdiff --git a/crates/openhuman-core/src/agent/orchestration/parent_context/builder_tests.rs b/crates/openhuman-core/src/agent/orchestration/parent_context/builder_tests.rsindex c522b3bcfd..264d94e50a 100644--- a/crates/openhuman-core/src/agent/orchestration/parent_context/builder_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/parent_context/builder_tests.rs@@ -11,7 +11,7 @@ fn test_config() -> (tempfile::TempDir, Config) {}/// Baseline for the bug: with no enclosing agent turn there is no ambient-/// parent — exactly the state the subconscious tick spawned `context_scout`+/// parent — exactly the state a background surface spawned `context_scout`/// in (TAURI-RUST-HMW / #4337), which made `run_subagent` return/// `NoParentContext`.#[tokio::test]@@ -24,7 +24,7 @@ async fn no_ambient_parent_outside_with_root_parent() {/// Regression (TAURI-RUST-HMW / #4337): `with_root_parent` must install a/// real parent for the wrapped future so a background orchestration surface-/// (subconscious tick, workflow engine, team runtime) can spawn sub-agents+/// (cron job, workflow engine, team runtime) can spawn sub-agents/// without hitting `NoParentContext`. Proven by observing the installed/// parent from inside the future.#[tokio::test]@@ -32,16 +32,16 @@ async fn with_root_parent_installs_parent_for_inner_future() {let (_dir, config) = test_config();let observed = with_root_parent(&config,- "subconscious",- "subconscious",- "subconscious",+ "cron",+ "cron",+ "cron",async { current_parent().map(|p| p.agent_definition_id) },).await.expect("root parent builds from config");assert_eq!(observed.as_deref(),- Some("subconscious"),+ Some("cron"),"inner future must observe the installed root parent");}diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rsindex 203df7797a..654f48d66e 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs@@ -369,7 +369,7 @@ async fn missing_prompt_returns_error() {assert!(result.output().contains("prompt"));}-/// B40 / Gap 4: a delegating agent (orchestrator/subconscious) calling+/// B40 / Gap 4: a delegating agent (e.g. the orchestrator) calling/// `spawn_async_subagent` directly from a thread-less context (flow/// `agent` node, CLI, cron) must get a clear, actionable error instead of/// silently accepting the spawn and later dropping its result indiff --git a/crates/openhuman-core/src/agent/plan_review/tool.rs b/crates/openhuman-core/src/agent/plan_review/tool.rsindex 56461700b6..7dd4397b77 100644--- a/crates/openhuman-core/src/agent/plan_review/tool.rs+++ b/crates/openhuman-core/src/agent/plan_review/tool.rs@@ -5,7 +5,7 @@//! executing it. On an interactive (`WebChat`) turn the call blocks on//! [`PlanReviewGate`] until the user decides; the tool result then tells the//! agent to proceed / stop / revise. On any non-interactive origin (cron,-//! subconscious, CLI, channels) there is no human to ask, so the tool+//! background jobs, CLI, channels) there is no human to ask, so the tool//! auto-approves immediately — background automation is never blocked.use async_trait::async_trait;@@ -39,7 +39,7 @@ impl Tool for RequestPlanReviewTool {}fn description(&self) -> &str {- "Pause the turn so the user can approve a thread-scoped plan before you execute it. Blocks until they decide, then returns `approved`, `rejected`, or `revise` with their feedback. Non-interactive turns (cron / subconscious / CLI) auto-approve."+ "Pause the turn so the user can approve a thread-scoped plan before you execute it. Blocks until they decide, then returns `approved`, `rejected`, or `revise` with their feedback. Non-interactive turns (cron / CLI) auto-approve."}fn parameters_schema(&self) -> serde_json::Value {diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rsindex 9ee409a8c7..5e6bad8134 100644--- a/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs@@ -192,14 +192,14 @@ fn other_builtins_default_to_worker_tier() {for def in load_builtins().unwrap() {if matches!(def.id.as_str(),- "orchestrator" | "planner" | "subconscious" | "flow_discovery"+ "orchestrator" | "planner" | "flow_discovery") {continue;}assert_eq!(def.agent_tier,AgentTier::Worker,- "{} should default to worker tier (only orchestrator/planner/subconscious/flow_discovery are non-worker today)",+ "{} should default to worker tier (only orchestrator/planner/flow_discovery are non-worker today)",def.id);}diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_tier_gate_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_tier_gate_tests.rsindex 38f22218f9..679025db79 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_tier_gate_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_tier_gate_tests.rs@@ -79,7 +79,7 @@ fn tier_gate_denies_chat_to_chat() {#[test]fn tier_gate_allows_upward_reasoning_to_chat() {use crate::agent::harness::definition::AgentTier;- // Upward delegation is intentionally legal (subconscious reasoner →+ // Upward delegation is intentionally legal (reasoning agent →// orchestrator chat). The gate must not deny it.let mut parent = make_def_named_tools(&[]);let mut child = make_def_named_tools(&[]);diff --git a/crates/openhuman-core/src/agent/tinyagents/host/agent_memory.rs b/crates/openhuman-core/src/agent/tinyagents/host/agent_memory.rsindex a0ca7b282e..92d71e3c39 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/agent_memory.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/agent_memory.rs@@ -55,8 +55,7 @@//! `Memory::store_with_taint`. It **fails closed to//! [`MemoryTaint::ExternalSync`]**: an agent turn may have been summarizing an//! email or a web page, this adapter cannot tell, and `ExternalSync` is the-//! value OpenHuman's subconscious gate treats as "unknown origin, refuse-//! external-effect tools". [`OpenHumanAgentMemory::with_taint`] lets a wiring+//! conservative "not user-authored" provenance. [`OpenHumanAgentMemory::with_taint`] lets a wiring//! site that genuinely knows better relax it.//!//! # Contract mismatches resolveddiff --git a/crates/openhuman-core/src/agent/tinyagents/host/budget_gate.rs b/crates/openhuman-core/src/agent/tinyagents/host/budget_gate.rsindex 19fd30a8d4..fa509fd850 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/budget_gate.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/budget_gate.rs@@ -108,7 +108,7 @@ pub struct OpenHumanBudgetGate {/// deliberately never enter it. Routing a user-initiated turn through it/// would stall the chat until the turn timeout for anyone who is signed out/// on a local/BYOK model, or who merely paused background AI. Cron and- /// subconscious wiring sites opt in with+ /// other background wiring sites opt in with/// [`Self::as_background_work`](Self::as_background_work).background: bool,}@@ -141,7 +141,7 @@ impl OpenHumanBudgetGate {////// Only then does [`acquire`](Self::acquire) queue behind/// [`scheduler_gate`], which is the concurrency limiter for background AI —- /// cron jobs, the subconscious tick, memory workers. Interactive turns must+ /// cron jobs, memory workers. Interactive turns must/// **not** opt in: the gate's `Paused` arm waits for background work to be/// re-enabled, which for a user-initiated chat means waiting until the turn/// times out.diff --git a/crates/openhuman-embed/src/harness/builder.rs b/crates/openhuman-embed/src/harness/builder.rsindex 231c763447..00cd4e0c6d 100644--- a/crates/openhuman-embed/src/harness/builder.rs+++ b/crates/openhuman-embed/src/harness/builder.rs@@ -143,7 +143,7 @@ impl HarnessBuilder {/// Override which background services run.////// The default is deliberately minimal — see [`Harness`] — because cron,- /// heartbeat and the memory queue are what make a second core in the same+ /// the login-gated services and the memory queue are what make a second core in the same/// process corrupt shared state. Widen it only if you need what they do.pub fn services(mut self, services: ServiceSet) -> Self {self.services = Some(services);diff --git a/crates/openhuman-embed/src/harness/provider.rs b/crates/openhuman-embed/src/harness/provider.rsindex 4d333483c2..54c1d537af 100644--- a/crates/openhuman-embed/src/harness/provider.rs+++ b/crates/openhuman-embed/src/harness/provider.rs@@ -13,7 +13,7 @@//! `#[serde(skip)]` field that has no place in `config.toml` to be saved into,//! carried per call. The route pins only the four roles a turn actually runs on//! (chat, reasoning, agentic, coding) and deliberately leaves the background-//! roles — memory, embeddings, heartbeat, learning — alone, because those run+//! roles — memory, embeddings, learning — alone, because those run//! tier-specific models a chat endpoint generally cannot serve.use crate::turn::Route;diff --git a/crates/openhuman-embed/src/runtime/builder.rs b/crates/openhuman-embed/src/runtime/builder.rsindex e47e838d2d..8bdb78ef2d 100644--- a/crates/openhuman-embed/src/runtime/builder.rs+++ b/crates/openhuman-embed/src/runtime/builder.rs@@ -120,7 +120,7 @@ impl RuntimeBuilder {/// Override which background services run.////// The default is deliberately minimal (only the harness init step):- /// cron, heartbeat and the memory queue each write to the workspace on+ /// cron, the login-gated services and the memory queue each write to the workspace on/// their own schedule, turning a library call into a background process/// the caller did not ask for.pub fn services(mut self, services: ServiceSet) -> Self {