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(docs): remove outdated references to "subconscious" and "heartbeat" across codebase
Steven Enamakelf018d3174c95
diff --git a/crates/openhuman-core/src/config/schema/autonomy.rs b/crates/openhuman-core/src/config/schema/autonomy.rsindex b64bd70db6..9c3a1b0836 100644--- a/crates/openhuman-core/src/config/schema/autonomy.rs+++ b/crates/openhuman-core/src/config/schema/autonomy.rs@@ -54,10 +54,8 @@ pub struct AutonomyConfig {pub auto_approve: Vec<String>,/// When true, the approval gate auto-approves ALL tool calls without/// prompting the user — a blanket bypass of the interactive approval- /// flow, not just the per-tool `auto_approve` allowlist above. A- /// subconscious tick whose memory context is tainted by external-sync- /// content, and any unlabelled call site, are still hard-denied- /// regardless of this flag (see `ApprovalGate::intercept_audited_inner`).+ /// flow, not just the per-tool `auto_approve` allowlist above. An+ /// unlabelled call site is still hard-denied regardless of this flag (see `ApprovalGate::intercept_audited_inner`)./// Hard security blocks (`is_always_forbidden`, `is_workspace_internal_path`,/// `ToolPolicyMiddleware`) live on independent code paths inside the tool/// implementations themselves and are unaffected by this setting.diff --git a/crates/openhuman-core/src/cron/scheduler_gate/README.md b/crates/openhuman-core/src/cron/scheduler_gate/README.mdindex 7f23aede13..d55c4757d5 100644--- a/crates/openhuman-core/src/cron/scheduler_gate/README.md+++ b/crates/openhuman-core/src/cron/scheduler_gate/README.md@@ -56,7 +56,7 @@ No dependency on any other `openhuman` domain or on `crate::core::*`.Consumed in-process across the codebase (discoverable via `grep scheduler_gate`):-- Background workers / pipelines: `memory/schema.rs`, `memory_queue/worker.rs`, `memory_tree/tree/rpc.rs`, `memory_sync/composio/periodic.rs`, `subconscious/engine.rs`, `learning/reflection.rs`, `autocomplete/core/engine.rs`, `task_sources/route.rs`, `agent/triage/evaluator.rs`.+- Background workers / pipelines: `memory/schema.rs`, `memory_queue/worker.rs`, `memory_tree/tree/rpc.rs`, `memory_sync/composio/periodic.rs`, `learning/reflection.rs`, `autocomplete/core/engine.rs`, `task_sources/route.rs`, `agent/triage/evaluator.rs`.- Inference layer: `inference/provider/openhuman_backend.rs`, `inference/provider/factory.rs`, `inference/local/service/{vision_embed.rs,public_infer.rs}`, `inference/voice/postprocess.rs`.- Credentials lifecycle (signed-out kill switch): `credentials/ops.rs`, `credentials/bus.rs`.- Bootstrap / transport: `core/jsonrpc.rs` (calls `init_global` during server bootstrap), `core/observability.rs`, plus the domain wiring in `openhuman/mod.rs` and config schema in `config/schema/scheduler_gate.rs`.diff --git a/crates/openhuman-core/src/desktop/overlay/mod.rs b/crates/openhuman-core/src/desktop/overlay/mod.rsindex 54385cfe7a..438126d6d6 100644--- a/crates/openhuman-core/src/desktop/overlay/mod.rs+++ b/crates/openhuman-core/src/desktop/overlay/mod.rs@@ -11,8 +11,8 @@//! 1. **STT / dictation** — driven by the existing `dictation:toggle`//! and `dictation:transcription` events (see `voice::dictation_listener`).//! 2. **Attention** — a short, user-visible message the core wants to-//! surface without stealing focus. Any core-side caller (subconscious-//! loop, heartbeat, and other services) can publish an+//! surface without stealing focus. Any core-side caller (cron jobs and+//! other background services) can publish an//! `OverlayAttentionEvent` via [`publish_attention`] and it will be//! broadcast to the overlay window as `overlay:attention`.//!diff --git a/crates/openhuman-core/src/desktop/overlay/types.rs b/crates/openhuman-core/src/desktop/overlay/types.rsindex 878c1be879..f1ef2cea25 100644--- a/crates/openhuman-core/src/desktop/overlay/types.rs+++ b/crates/openhuman-core/src/desktop/overlay/types.rs@@ -35,8 +35,8 @@ pub struct OverlayAttentionEvent {/// auto-dismissing back to idle. `None` → frontend default.#[serde(default, skip_serializing_if = "Option::is_none")]pub ttl_ms: Option<u32>,- /// Free-form source label for logging / debugging ("subconscious",- /// "heartbeat", "subconscious", …). Optional.+ /// Free-form source label for logging / debugging ("cron", …).+ /// Optional.#[serde(default, skip_serializing_if = "Option::is_none")]pub source: Option<String>,}diff --git a/crates/openhuman-core/src/flows/memory_tools.rs b/crates/openhuman-core/src/flows/memory_tools.rsindex 4ad6693d4f..10e8fec643 100644--- a/crates/openhuman-core/src/flows/memory_tools.rs+++ b/crates/openhuman-core/src/flows/memory_tools.rs@@ -15,7 +15,7 @@//! `namespace` parameter a caller could override. Every write is tainted//! [`MemoryTaint::ExternalSync`] (automation output, not user-authored//! fact), matching the same taint sync pipelines use for third-party-//! content, so the subconscious gate treats it exactly as conservatively.+//! content, so it is treated exactly as conservatively.//! [`FlowMemoryRecallTool`]'s `scope: "flows"` is read-only cross-flow//! visibility — it can never be used to write outside a flow's own//! namespace either.diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/agent.rs b/crates/openhuman-core/src/flows/tinyflows/caps/agent.rsindex f4b13e7d98..1a3ac7eea3 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/agent.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/agent.rs@@ -33,7 +33,7 @@ use crate::inference::provider::{is_raw_passthrough_model, role_for_model_tier};/// complete tool loop. The definition's `ToolScope` / `sandbox_mode` //// `max_iterations` govern the turn, so an agent node gains its curated/// toolset with no graph change. This is the same harness pattern-/// `flows_build` / `flows_discover` / cron / subconscious use, so "every node+/// `flows_build` / `flows_discover` / cron use, so "every node/// is a tinyagents graph" still holds: `run_single` itself routes through the/// default agent graph, i.e. a nested tinyagents graph (the agent turn) inside/// the flow's tinyagents graph.@@ -475,7 +475,7 @@ impl OpenHumanAgentRunner {////// **Synchronous only (B40 / Gap 4).** A flow `agent` node runs here with/// no explicit chat thread on its run context. If the- /// agent it runs is a delegating agent (orchestrator/subconscious) and+ /// agent it runs is a delegating agent (e.g. the orchestrator) and/// calls `spawn_async_subagent` directly, the tool now refuses (see the/// `parent_thread_id.is_none()` guard in/// `agent_orchestration::tools::spawn_async_subagent`) rather thandiff --git a/crates/openhuman-core/src/inference/README.md b/crates/openhuman-core/src/inference/README.mdindex 1586485348..cb52345f29 100644--- a/crates/openhuman-core/src/inference/README.md+++ b/crates/openhuman-core/src/inference/README.md@@ -10,7 +10,7 @@ compatibility aliases in `crates/openhuman-core/src/core/legacy_aliases.rs`.## Responsibilities-- Resolve workload names (`chat`, `reasoning`, `agentic`, `coding`, `memory`, `embeddings`, `heartbeat`, `learning`, etc.) and provider strings (`openhuman`, `cloud`, `ollama:<model>`, `lmstudio:<model>`, `claude_agent_sdk:<model>`, `claude-code:<model>`, `<slug>:<model>[@<temp>]`) to a concrete `Arc<dyn tinyinference_llm::ChatModel<()>>` + model id.+- Resolve workload names (`chat`, `reasoning`, `agentic`, `coding`, `memory`, `embeddings`, `learning`, etc.) and provider strings (`openhuman`, `cloud`, `ollama:<model>`, `lmstudio:<model>`, `claude_agent_sdk:<model>`, `claude-code:<model>`, `<slug>:<model>[@<temp>]`) to a concrete `Arc<dyn tinyinference_llm::ChatModel<()>>` + model id.- Manage the local AI runtime: detect/spawn/adopt `ollama serve`, probe LM Studio over HTTP (never spawned), select OpenHuman-owned artifact paths, invoke TinyInference's Ollama/Piper installers, and enforce a minimum-context-window floor. Local STT (whisper.cpp) was retired; STT is now cloud/engine-configurable via `voice_server.stt_engine` (see `config/migrations/retire_local_whisper_stt.rs`).- Provide chat, vision (multimodal), summarization, embeddings, sentiment, and "should react" inference operations.- Preserve product-specific config-rejection, billing, and authentication policy while TinyInference owns provider-failure classification and TinyAgents owns model-call retry execution.diff --git a/crates/openhuman-core/src/inference/provider/factory.rs b/crates/openhuman-core/src/inference/provider/factory.rsindex b7d94ee7f8..2a528ebb8d 100644--- a/crates/openhuman-core/src/inference/provider/factory.rs+++ b/crates/openhuman-core/src/inference/provider/factory.rs@@ -1,6 +1,6 @@//! Unified chat-provider factory.//!-//! Resolves workload names (e.g. `"reasoning"`, `"heartbeat"`) to a+//! Resolves workload names (e.g. `"reasoning"`, `"learning"`) to a//! crate-native `ChatModel` plus the concrete model id selected for a workload.//!//! ## Provider-string grammardiff --git a/crates/openhuman-core/src/inference/provider/factory/turn_model.rs b/crates/openhuman-core/src/inference/provider/factory/turn_model.rsindex 9e11249a99..7bc5509647 100644--- a/crates/openhuman-core/src/inference/provider/factory/turn_model.rs+++ b/crates/openhuman-core/src/inference/provider/factory/turn_model.rs@@ -161,7 +161,7 @@ pub(super) fn create_turn_chat_model_with_native_tools_and_route_inner(////// The triage path needs this: [`build_remote_provider`](crate::agent::triage::routing)/// forces the managed backend (`provider_string == `[`PROVIDER_OPENHUMAN`]) when the-/// subconscious route is local / BYOK-incomplete — the #1257 *"triage never goes+/// chat route is local / BYOK-incomplete — the #1257 *"triage never goes/// local"* invariant — which a plain [`create_turn_chat_model`] (role → `provider_for_role`)/// would violate by building the local model.///diff --git a/crates/openhuman-core/src/inference/provider/factory_egress_fallback_tests.rs b/crates/openhuman-core/src/inference/provider/factory_egress_fallback_tests.rsindex 2515b81534..4df098ed60 100644--- a/crates/openhuman-core/src/inference/provider/factory_egress_fallback_tests.rs+++ b/crates/openhuman-core/src/inference/provider/factory_egress_fallback_tests.rs@@ -16,12 +16,12 @@ async fn create_chat_model_managed_emits_exactly_one_egress_realpath() {let mut rx = crate::core::bus::BUS.get().unwrap().receiver();// Unique model marker so the process-wide bus can't confuse a concurrent- // test's managed event with ours. `heartbeat` has no managed tier and+ // test's managed event with ours. `learning` has no managed tier and// resolves to the managed backend, so `default_model` flows through verbatim.let marker = "egress-managed-realpath-marker-v1";let mut config = Config::default();config.default_model = Some(marker.to_string());- let _ = create_chat_model_with_model_id("heartbeat", &config, 0.7);+ let _ = create_chat_model_with_model_id("learning", &config, 0.7);// Bound the drain with a unique sentinel published AFTER our construction.let sentinel = "egress-managed-sentinel-end";@@ -121,9 +121,7 @@ fn local_chat_still_routes_background_roles_to_the_managed_backend() {"embeddings","memory","summarization",- "heartbeat","learning",- "subconscious","agentic","burst",] {@@ -241,9 +239,7 @@ fn cloud_fallback_roles_match_the_roles_provider_for_role_actually_falls_back()"embeddings","memory","summarization",- "heartbeat","learning",- "subconscious","agentic","burst",] {diff --git a/crates/openhuman-core/src/integrations/composio/auth_retry.rs b/crates/openhuman-core/src/integrations/composio/auth_retry.rsindex 617da04775..766c0427b0 100644--- a/crates/openhuman-core/src/integrations/composio/auth_retry.rs+++ b/crates/openhuman-core/src/integrations/composio/auth_retry.rs@@ -8,7 +8,7 @@//! `retries_once_only_even_when_second_call_still_errors` regression),//! this wrapper calls the non-retrying [`ComposioClient::execute_tool_once`]//! primitive instead. Direct callers of `execute_tool` (LinkedIn enrichment,-//! heartbeat collectors, tool schemas) still get #1707's inner retry.+//! tool schemas) still get #1707's inner retry.//!//! Composio reports `connection.status == ACTIVE` ~1-2s after the user//! finishes OAuth, but its action-execution gateway can take anotherdiff --git a/crates/openhuman-core/src/integrations/composio/client/factory.rs b/crates/openhuman-core/src/integrations/composio/client/factory.rsindex 1688d71529..1071ef3d42 100644--- a/crates/openhuman-core/src/integrations/composio/client/factory.rs+++ b/crates/openhuman-core/src/integrations/composio/client/factory.rs@@ -17,7 +17,7 @@ use super::connections::ComposioClient;/// direct-mode rollout (#1710), where the backend-only nature caused/// direct-mode users to false-negative the "signed in" check (the/// agent-tool registration gate, slack sync RPC, `tools.composio_execute`-/// controller, and heartbeat calendar collector all silently dropped+/// controller all silently dropped/// direct-mode users). Locking down here prevents future regressions —/// any new probe or execution path is forced through the mode-aware/// surface.diff --git a/crates/openhuman-core/src/integrations/composio/googlecalendar_args.rs b/crates/openhuman-core/src/integrations/composio/googlecalendar_args.rsindex 6b0b675a9b..09b65880c3 100644--- a/crates/openhuman-core/src/integrations/composio/googlecalendar_args.rs+++ b/crates/openhuman-core/src/integrations/composio/googlecalendar_args.rs@@ -2,9 +2,8 @@//!//! Background (issue #1714): when the agent asks Composio for calendar//! events on behalf of the user, the per-call argument object is built-//! either inside the agent loop (model-constructed) or inside the-//! heartbeat planner (`heartbeat/planner/collectors.rs`). Both paths-//! historically went out with UTC-encoded `timeMin` / `timeMax` and no+//! inside the agent loop (model-constructed) or by a direct call site.+//! Both historically went out with UTC-encoded `timeMin` / `timeMax` and no//! `timeZone` / `singleEvents` field.//!//! Two practical consequences for users in non-UTC timezones (real@@ -23,8 +22,7 @@//! against a different zone slide outside the window.//!//! The fix is to default both fields at the *execute* boundary so the-//! agent's prompt template, the heartbeat planner, and any future-//! direct call site all benefit — no per-call-site discipline required.+//! agent's prompt template and any direct call site all benefit — no per-call-site discipline required.//! Callers that pass either field explicitly win; we never overwrite//! user-supplied intent.diff --git a/crates/openhuman-core/src/integrations/composio/googlecalendar_args_tests.rs b/crates/openhuman-core/src/integrations/composio/googlecalendar_args_tests.rsindex 1746164ac2..e2aaa2e8d6 100644--- a/crates/openhuman-core/src/integrations/composio/googlecalendar_args_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/googlecalendar_args_tests.rs@@ -32,7 +32,7 @@ fn injects_tz_and_single_events_when_absent() {#[test]fn does_not_overwrite_caller_supplied_time_zone() {- // Power-user / heartbeat path may pass an explicit zone that+ // A power-user / direct call path may pass an explicit zone that// differs from the host. We must respect it, not silently swap to// host zone — the caller has more context than the host clock.let args = apply_calendar_query_defaults(diff --git a/crates/openhuman-core/src/memory/agent/README.md b/crates/openhuman-core/src/memory/agent/README.mdindex 29268eee70..05a6bbfe38 100644--- a/crates/openhuman-core/src/memory/agent/README.md+++ b/crates/openhuman-core/src/memory/agent/README.md@@ -32,7 +32,7 @@ content/├── chat/ # Conversation chunks (by source)│ └── conversations-agent/│ └── {hash}.md-├── episodic/ # Session/subconscious episode chunks+├── episodic/ # Session episode chunks│ └── {session_id}/│ └── {hash}.md├── raw/ # Raw ingested documents (GitHub, Gmail, etc.)diff --git a/crates/openhuman-core/src/modules/host.rs b/crates/openhuman-core/src/modules/host.rsindex 9007aa3d3f..3c9719b80e 100644--- a/crates/openhuman-core/src/modules/host.rs+++ b/crates/openhuman-core/src/modules/host.rs@@ -11,7 +11,7 @@//! That is a real limitation and worth naming: a module on this bus cannot//! publish a `DomainEvent`, so it can serve requests but cannot participate in//! the core's event flow. For a codec that is exactly right — a document writer-//! has nothing to say to the subconscious. A module that did need to emit events+//! has no events to publish. A module that did need to emit events//! would need `OnceBus` to share its broker first.//!//! # What loading a module meansdiff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rsindex dcbbc93826..53c67c08e0 100644--- a/crates/openhuman-core/src/tools/ops.rs+++ b/crates/openhuman-core/src/tools/ops.rs@@ -1164,7 +1164,7 @@ fn tool_group(name: &str) -> crate::core::all::DomainGroup {"audio_generate_and_email_podcast",];// Threads: thread_* / todo_* handled by prefix below; these are the extras.- // Subconscious monitor + proactive-notify tools (Automation family).+ // Monitor + proactive-notify tools (Automation family).const MONITORS: &[&str] = &["monitor","monitor_list",@@ -1269,7 +1269,7 @@ fn tool_group(name: &str) -> crate::core::all::DomainGroup {// leak the #4808 review flagged. Keep these in// lockstep with the `push(...)` tags in `core::all`.//- // Automation: scheduled jobs (`cron_*`) plus the subconscious monitor ++ // Automation: scheduled jobs (`cron_*`) plus the monitor +// proactive-notify surface.if name.starts_with("cron_") || name == "schedule" || MONITORS.contains(&name) {return DomainGroup::Automation;diff --git a/crates/openhuman-core/src/tools/status/ops.rs b/crates/openhuman-core/src/tools/status/ops.rsindex fa972103fb..400940346d 100644--- a/crates/openhuman-core/src/tools/status/ops.rs+++ b/crates/openhuman-core/src/tools/status/ops.rs@@ -70,7 +70,7 @@ fn classify_class(error_text: &str, timed_out: bool) -> ToolFailureClass {}// `POLICY_DENIED_MARKER` — a this-turn denial: the user answered "no" at// the approval prompt, the prompt's channel dropped, the origin was- // subconscious-tainted, or the prompt's TTL expired. All are+ // unlabelled, or the prompt's TTL expired. All are// non-retryable refusals (UserDeclined), split only by copy: a TTL// expiry reads "approval expired", an explicit refusal reads "declined".if text.contains(crate::security::POLICY_DENIED_MARKER) {diff --git a/crates/openhuman-core/src/voice/realtime_harness/chat_delivery.rs b/crates/openhuman-core/src/voice/realtime_harness/chat_delivery.rsindex a48fb61e43..7e1d803db2 100644--- a/crates/openhuman-core/src/voice/realtime_harness/chat_delivery.rs+++ b/crates/openhuman-core/src/voice/realtime_harness/chat_delivery.rs@@ -31,8 +31,8 @@ pub(super) const VOICE_CHAT_THREAD_ID: &str = "proactive:voice";pub(super) const VOICE_CHAT_CLIENT_ID: &str = "system";/// Deliver a deferred voice turn's answer into the user's in-app chat. Publishes-/// a `proactive_message` on the web-channel event bus — the same seam cron and the-/// subconscious use — which the frontend renders as an assistant message in a+/// a `proactive_message` on the web-channel event bus — the same seam cron+/// uses — which the frontend renders as an assistant message in a/// visible thread. Web-only: it does not fan out to external channels (#5399).pub(super) fn deliver_voice_result_to_chat(correlation_id: &str,