Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(mcp): remove unused debug prompt size and cron scheduler gate modules

Steven Enamakel88a29bd3b099
diff --git a/crates/openhuman-core/src/agent/debug/prompt_size.rs b/crates/openhuman-core/src/agent/debug/prompt_size.rs
index 141f9c1c86..7637257f37 100644
--- a/crates/openhuman-core/src/agent/debug/prompt_size.rs
+++ b/crates/openhuman-core/src/agent/debug/prompt_size.rs
@@ -95,7 +95,7 @@ impl PromptSizeReport {
///
/// Split out from [`Self::build`] so `dump-all` can report every agent
/// without paying a second render per agent — each render fetches live
- /// Composio connections and walks the memory tree.
+ /// Composio connections.
pub fn from_dump(dumped: &DumpedPrompt) -> Self {
let sections = split_sections(&dumped.text);
let mut tools: Vec<ToolSize> = dumped
diff --git a/crates/openhuman-core/src/cron/scheduler_gate/gate.rs b/crates/openhuman-core/src/cron/scheduler_gate/gate.rs
index 364aa52928..adeb89c379 100644
--- a/crates/openhuman-core/src/cron/scheduler_gate/gate.rs
+++ b/crates/openhuman-core/src/cron/scheduler_gate/gate.rs
@@ -119,8 +119,8 @@ pub fn init_global(cfg: SchedulerGateConfig) {
}
/// Process-wide resume signal (#2831). Fired whenever the gate transitions
-/// **out of** a paused state — the user toggles Memory Tree back on
-/// ([`update_config`]) or signs back in ([`set_signed_out`]). Background loops
+/// **out of** a paused state — the user changes the scheduler-gate setting
+/// back to a running mode ([`update_config`]) or signs back in ([`set_signed_out`]). Background loops
/// (e.g. the Composio periodic scheduler) park on [`resume_notify`] so they can
/// resume work within seconds instead of waiting out their next tick boundary.
static RESUME_NOTIFY: OnceLock<Arc<Notify>> = OnceLock::new();
@@ -133,8 +133,8 @@ static RESUME_NOTIFY: OnceLock<Arc<Notify>> = OnceLock::new();
/// mid-tick, a single permit is stored so the *next* `notified()` returns at
/// once — a resume that arrives during a tick is never lost.
///
-/// **Over-notifying is safe by design.** A spurious wake (e.g. Memory Tree
-/// toggled on while still signed out, so the effective policy is still paused)
+/// **Over-notifying is safe by design.** A spurious wake (e.g. the gate
+/// un-paused while still signed out, so the effective policy is still paused)
/// just causes one cheap gate-checked tick that re-reads [`current_policy`] and
/// no-ops. We therefore fire on each individual un-pause transition rather than
/// computing the precise combined (config × signed-out) edge.
@@ -147,7 +147,7 @@ pub fn resume_notify() -> Arc<Notify> {
/// Update the gate's view of user config (e.g. after a settings change).
///
/// Fires [`resume_notify`] when this update moves the policy out of a paused
-/// state (e.g. Memory Tree toggled back on), so parked background loops resume
+/// state (e.g. a switch back to a running mode), so parked background loops resume
/// promptly (#2831).
pub fn update_config(cfg: SchedulerGateConfig) {
let Some(state) = STATE.get() else {
diff --git a/crates/openhuman-core/src/cron/scheduler_gate/mod.rs b/crates/openhuman-core/src/cron/scheduler_gate/mod.rs
index b5c8741be4..f0e9c0af7c 100644
--- a/crates/openhuman-core/src/cron/scheduler_gate/mod.rs
+++ b/crates/openhuman-core/src/cron/scheduler_gate/mod.rs
@@ -1,6 +1,6 @@
//! Scheduler gate — gates background AI work on host conditions.
//!
-//! Background AI tasks (memory-tree digests, embeddings, summarisation) used
+//! Background AI tasks (embeddings, summarisation, connection syncs) used
//! to run flat-out and made the host visibly lag, especially on battery.
//! This module exposes a single decision point — [`current_policy`] — that
//! background workers consult before spending CPU/GPU on LLM-bound work.
diff --git a/crates/openhuman-core/src/mcp/audit/mod.rs b/crates/openhuman-core/src/mcp/audit/mod.rs
index 998725d1af..d7c7081c5f 100644
--- a/crates/openhuman-core/src/mcp/audit/mod.rs
+++ b/crates/openhuman-core/src/mcp/audit/mod.rs
@@ -6,7 +6,7 @@
//!
//! # Where the rows are now
//!
-//! The table used to be created inside this application's memory-tree database,
+//! The table used to be created inside a database owned by the retired v1 memory system,
//! which is precisely what made it unmovable. It has its own file now,
//! `mcp_audit/mcp_audit.db`, under the same workspace directory. Rows written
//! before the move stay where they were: an audit log is history rather than
diff --git a/crates/openhuman-core/src/mcp/server/mod.rs b/crates/openhuman-core/src/mcp/server/mod.rs
index fecc6528a4..b161fef8b2 100644
--- a/crates/openhuman-core/src/mcp/server/mod.rs
+++ b/crates/openhuman-core/src/mcp/server/mod.rs
@@ -4,7 +4,7 @@
//! Stdio mode writes newline-delimited JSON-RPC to stdout; HTTP mode speaks
//! Streamable HTTP + SSE on a local bind address. Diagnostics go through stderr logging.
//!
-//! Most tools (memory tree reads, core/agent introspection) are read-only and
+//! Most tools (memory reads, core/agent introspection) are read-only and
//! gated through `SecurityPolicy` with `ToolOperation::Read`. The one
//! exception is `agent.run_subagent`, which runs through `ToolOperation::Act`
//! and is advertised to clients via MCP tool annotations