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: remove unused test module and migration readme, clean up memory guard
Steven Enamakel56c9b5bfc663
diff --git a/crates/openhuman-core/src/channels/tests/mod.rs b/crates/openhuman-core/src/channels/tests/mod.rsindex 73f15583d6..88aad3cd5f 100644--- a/crates/openhuman-core/src/channels/tests/mod.rs+++ b/crates/openhuman-core/src/channels/tests/mod.rs@@ -4,21 +4,24 @@//! `*_tests.rs`; this tree is the deliberate exception for tests that//! exercise more than one channel submodule end-to-end).//!-//! `common.rs` holds the shared fixtures every file below builds on: a fake-//! `ChatModel` per scenario (`DummyModel`, `SlowModel`, `ToolCallingModel`,+//! `common.rs` holds the shared fixtures the files below build on: fake+//! models per scenario (`DummyModel`, `SlowModel`, `ToolCallingModel`,//! `IterativeToolModel`, `HistoryCaptureModel`, `ModelCaptureModel`), fake-//! `Channel` implementations that record or replay sends+//! `Channel` implementations that record sends or always fail//! (`RecordingChannel`, `TelegramRecordingChannel`, `AlwaysFailChannel`), a-//! `NoopMemory`, a `MockPriceTool`, and `make_workspace` for identity-file-//! fixtures.+//! `NoopMemory`, a `MockPriceTool`, `make_workspace` for identity-file+//! fixtures, and a re-export of `agent::bus::use_real_agent_handler`.+//!+//! `context.rs` sits in this directory but is not declared below, so it does+//! not compile; the live coverage for `channels/context.rs` is+//! `channels/context_tests.rs`.//!-//! * `context.rs` — channel runtime-context helpers: timeout clamping,-//! history compaction, memory-context skip rules.//! * `discord_integration.rs` — end-to-end dispatch through the Discord//! channel with every cross-module boundary (agent runtime, memory,//! provider) substituted, proving the domain stays encapsulated.-//! * `health.rs` — supervised-listener health classification when a channel-//! listener keeps failing.+//! * `health.rs` — `commands::classify_health_result` and+//! `spawn_supervised_listener` marking a component errored and restarting+//! when a listener keeps failing.//! * `identity.rs` — `build_system_prompt` inlining workspace identity//! markdown into the Project Context section.//! * `memory.rs` — conversation-history and memory-context wiring through@@ -27,10 +30,13 @@//! carry the active personality; identity edits reach the next turn//! without a restart).//! * `prompt.rs` — system-prompt section assembly and bootstrap truncation.-//! * `runtime_dispatch.rs` — the dispatch loop and `RuntimeChannelMessage`-//! plumbing via `runtime::test_support`.-//! * `runtime_tool_calls.rs` — tool-call routing through-//! `process_channel_message`.+//! * `runtime_dispatch.rs` — the dispatch loop through+//! `runtime::test_support::run_dispatch_harness`: inbound-envelope+//! publication, parallel processing, typing-task cancellation, the+//! `agent.run_turn` bus route, and multimodal path-marker hardening.+//! * `runtime_tool_calls.rs` — native tool-call execution, the `/models`+//! command short-circuit, route overrides, and `max_tool_iterations`+//! through `process_channel_message`.//! * `telegram_integration.rs` — Telegram reactions, reply/thread roundtrip,//! and typing-indicator lifecycle against a recording channel.diff --git a/crates/openhuman-core/src/config/migrations/README.md b/crates/openhuman-core/src/config/migrations/README.mdindex b7e64a138f..36144993cf 100644--- a/crates/openhuman-core/src/config/migrations/README.md+++ b/crates/openhuman-core/src/config/migrations/README.md@@ -2,7 +2,7 @@Startup data-migration runner gated by `Config::schema_version`. Each migration is a one-shot, idempotent transformation of on-disk data (the persisted `config.toml` and session transcripts). The runner — `run_pending` — is invoked from `Config::load_or_init` and is a fast no-op for workspaces whose `schema_version` already matches `CURRENT_SCHEMA_VERSION`. Failures are logged but never block startup; the next launch retries from the same starting version.-> Not to be confused with the sibling `crates/openhuman-core/src/config/migration_helpers/` (singular), which is a **user-triggered RPC** that imports memory from a legacy OpenClaw workspace. This module (`migrations`, plural) is the **automatic schema-version runner** that fires once per workspace on the first launch of a new build.+> Not to be confused with the sibling `crates/openhuman-core/src/config/migration_helpers/` (singular), which is a **user-triggered RPC** (`migrate.openclaw` / `migrate.hermes`) that imports memory from another assistant's workspace. This module (`migrations`, plural) is the **automatic schema-version runner** that fires once per workspace on the first launch of a new build.## Responsibilitiesdiff --git a/crates/openhuman-core/src/memory/guard/mod.rs b/crates/openhuman-core/src/memory/guard/mod.rsindex 2b0422b671..92e0cf9be7 100644--- a/crates/openhuman-core/src/memory/guard/mod.rs+++ b/crates/openhuman-core/src/memory/guard/mod.rs@@ -9,8 +9,10 @@//! the guard *unskippable by construction* for anyone holding it, because there//! is no second, unguarded shape to reach for.//!-//! The load-bearing detail is the ten `as_*` accessors. Nine of the thirteen-//! capability families are reachable **only** through them, so an override that+//! The load-bearing detail is the `as_*` accessors. Every optional capability+//! family (23 of the contract's 26; only `MemoryCore`, `MemoryRecall` and+//! `MemoryPortability` are mandatory and implemented on the guard directly in+//! [`mandatory`]) is reachable **only** through them, so an override that//! forwarded `self.inner.as_tree()` would hand out a raw driver handle and//! defeat the entire design with one method call. Each family therefore gets//! its own decorator, owned as a field on the guard (an accessor returns a@@ -45,15 +47,16 @@//! - **Step 1's path half is a no-op**, because nothing in the contract carries//! a filesystem path to validate.//!-//! ## What this milestone does NOT do+//! ## What still hands out the bare driver//!-//! M4a is **purely additive**. [`CoreContext::memory`] is new and nothing has-//! been migrated onto it; `CoreContext::memory_binding()` and-//! `MemoryBinding::unguarded_provider()` still exist and still hand out the bare driver.-//! The one production caller of `provider()` — the health probe in-//! `memory::ops::provider` — should keep bypassing the guard: a liveness probe-//! is not product code, and running it through the tier check would make an-//! autonomy setting able to break status output.+//! [`CoreContext::memory`] is the accessor product code holds.+//! `CoreContext::memory_binding()` and `MemoryBinding::unguarded_provider()`+//! still exist and still hand out the bare driver; `memory/bypass_allowlist_tests.rs`+//! enumerates who may call them. The one production caller of+//! `unguarded_provider()` — the health probe in `memory::ops::provider` —+//! should keep bypassing the guard: a liveness probe is not product code, and+//! running it through the tier check would make an autonomy setting able to+//! break status output.//!//! ## Honesty clause: "the guard is the only path" is NOT yet true//!@@ -91,8 +94,6 @@//! `agent/learning/` are gone or moved onto the guarded surface. Confirm with//! the same grep before relying on this being still true; the allowlist test//! is the actual enforcement, this paragraph is not.-//!-//! `MemoryClient::memory_handle()` is already `pub(crate)`; do not widen it.pub mod audit;pub mod budget;