Skip to content

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

docs: update stale module paths in docs and comments

Steven Enamakelc6a2af577d8b
diff --git a/crates/openhuman-core/src/agent/context/README.md b/crates/openhuman-core/src/agent/context/README.md
index c3dd6d2a3d..3689fb5d9c 100644
--- a/crates/openhuman-core/src/agent/context/README.md
+++ b/crates/openhuman-core/src/agent/context/README.md
@@ -19,7 +19,7 @@ Global context management for agent sessions: system-prompt assembly, per-sessio
| [`crates/openhuman-core/src/agent/context/manager.rs`](./manager.rs) | `ContextManager`: per-session handle agents hold. Owns the default prompt builder, `ContextStatsState`, and the `ContextConfig`-derived knobs. Surfaces `build_system_prompt` / `build_system_prompt_tiered`, `stats()`, the getters the tinyagents turn reads (`tool_result_budget_bytes`, `compaction_enabled`, `autocompact_enabled`, `microcompact_keep_recent`, `autocompact_enabled`, `compaction()` (trigger override and strategy), `prefer_markdown_tool_output`), and the session-memory trigger/mark methods. |
| `crates/openhuman-core/src/agent/context/stats.rs` | `ContextStatsState`: last provider usage, context-window utilisation, and the shared `SessionMemoryHandle` (`Arc<Mutex<SessionMemoryState>>`). Pure state; issues no LLM calls and does not mutate history. |
| `crates/openhuman-core/src/agent/context/session_memory.rs` | `SessionMemoryState` / `SessionMemoryConfig`: threshold-gated `should_extract` decision (token growth, tool calls, and turns must all cross) and extraction bookkeeping. Holds `ARCHIVIST_EXTRACTION_PROMPT`. State-tracking only; does not spawn the archivist. |
-| `crates/openhuman-core/src/agent/context/channels_prompt.rs` | Bespoke free functions `build_system_prompt(...)` / `build_system_prompt_with_identity(...)` (plus `PromptIdentityOverride`, `ProjectContextPlacement`, `render_project_context`) for channel runtimes (Discord/Slack/Telegram/…). Byte-stable for prefix-cache hits; injects workspace bootstrap files (`SOUL.md`, `IDENTITY.md`, optional `PROFILE.md`/`MEMORY.md`, with profile overrides for `SOUL.md`/`MEMORY.md`), tools, safety, skills, runtime, and channel-capabilities sections. |
+| `crates/openhuman-core/src/channels/prompt.rs` | Bespoke free functions `build_system_prompt(...)` / `build_system_prompt_with_identity(...)` (plus `PromptIdentityOverride`, `ProjectContextPlacement`, `render_project_context`) for channel runtimes (Discord/Slack/Telegram/…). Byte-stable for prefix-cache hits; injects workspace bootstrap files (`SOUL.md`, `IDENTITY.md`, optional `PROFILE.md`/`MEMORY.md`, with profile overrides for `SOUL.md`/`MEMORY.md`), tools, safety, skills, runtime, and channel-capabilities sections. |
| [`crates/openhuman-core/src/agent/context/manager_tests.rs`](./manager_tests.rs), [`channels_prompt_tests.rs`](./channels_prompt_tests.rs), `session_memory_tests.rs` | Sibling test files wired via `#[cfg(test)] #[path = "..."] mod tests;` from their source file (the layout check rejects inline test modules). |
## History (#4249)
diff --git a/crates/openhuman-core/src/web_chat/ops/turn_guards.rs b/crates/openhuman-core/src/web_chat/ops/turn_guards.rs
index d55436a37c..022663faa6 100644
--- a/crates/openhuman-core/src/web_chat/ops/turn_guards.rs
+++ b/crates/openhuman-core/src/web_chat/ops/turn_guards.rs
@@ -15,7 +15,7 @@ use crate::agent::turn_env::HostTurnEnv;
/// (env `OPENHUMAN_WEB_TURN_TIMEOUT_SECS=0`).
///
/// This is the turn's fixed total ceiling (issue #4746), and the single source
-/// of truth for the turn's deadlines (`agent::session_host::turn_backstop`, default 3600s,
+/// of truth for the turn's deadlines (`web_chat::turn_guards::backstop`, default 3600s,
/// the harness's own turn ceiling). The harness derives two earlier points
/// from it:
///
@@ -116,7 +116,7 @@ where
};
// The session turn carries the matching `TurnDeadline` on its explicit
// host environment (`run_turn_under_cancel_and_deadline`), so the
- // harness (`agent::session_host::turn_backstop`) winds down before `d`.
+ // harness (`web_chat::turn_guards::backstop`) winds down before `d`.
tokio::time::timeout(d, turn)
.await
.map_err(|_elapsed| Stop::Ceiling(d))
diff --git a/crates/openhuman-core/src/web_chat/turn_activity.rs b/crates/openhuman-core/src/web_chat/turn_activity.rs
index f1ac17ea96..2ebf0dbb03 100644
--- a/crates/openhuman-core/src/web_chat/turn_activity.rs
+++ b/crates/openhuman-core/src/web_chat/turn_activity.rs
@@ -23,7 +23,7 @@
//! What remains idle is time no other bound covers: session checkout before
//! the run, the persistence plumbing after it, or a harness that went silent
//! with no call open. The fixed total ceiling still exists (the backstop in
-//! `agent::session_host::turn_backstop`) and still anchors the harness wind-down; it no
+//! `web_chat::turn_guards::backstop`) and still anchors the harness wind-down; it no
//! longer doubles as the hang detector.
//!
//! The clock is [`tokio::time::Instant`], so time the machine spends asleep is
diff --git a/docs/dep-audit/2026-10-11-legacy-candidates.md b/docs/dep-audit/2026-10-11-legacy-candidates.md
index 306491822b..f21463f48f 100644
--- a/docs/dep-audit/2026-10-11-legacy-candidates.md
+++ b/docs/dep-audit/2026-10-11-legacy-candidates.md
@@ -50,7 +50,7 @@ Required proof: product about_app list/search/lookup no longer offer the unsuppo
## rss-bench: keep the instrumentation gate
-Moving binaries did not eliminate their host-side instrumentation. OpenHuman [declares the off-by-default gate](../../crates/openhuman-core/Cargo.toml), [enables the deterministic provider override under it](../../crates/openhuman-core/src/inference/provider/factory.rs), and [allows profiling-only UTC forcing](../../crates/openhuman-core/src/agent/prompts/render_helpers/section_renderers.rs). None is a default or desktop product feature.
+Moving binaries did not eliminate their host-side instrumentation. OpenHuman [declares the off-by-default gate](../../crates/openhuman-core/Cargo.toml), [enables the deterministic provider override under it](../../crates/openhuman-core/src/inference/provider/factory.rs), and [allows profiling-only UTC forcing](../../crates/openhuman-core/src/prompts/section_renderers.rs). None is a default or desktop product feature.
The external [profile manifest](https://github.com/tinyhumansai/openhuman-benchmarks/blob/3ac3de418eb8ff94498552724456ee201dd0c117/profile/Cargo.toml) requires `rss-bench` for both `rss-bench` and `library-profile`, forwarding it to `openhuman-core/rss-bench`. [Its mock providers](https://github.com/tinyhumansai/openhuman-benchmarks/blob/3ac3de418eb8ff94498552724456ee201dd0c117/profile/src/bin/library_profile/mock.rs) explicitly depend on the gated deterministic override. [The feature-forwarding checker](../../scripts/ci/check-feature-forwarding.mjs) already documents this intentional core-only exception.
diff --git a/docs/gitbooks/en/developing/architecture/security.md b/docs/gitbooks/en/developing/architecture/security.md
index 1b97eb7d21..aa5347f0fd 100644
--- a/docs/gitbooks/en/developing/architecture/security.md
+++ b/docs/gitbooks/en/developing/architecture/security.md
@@ -98,7 +98,7 @@ Local PII detection belongs to [`tinymemory_api::safety`](https://github.com/tin
- `crates/openhuman-core/src/tools/ops.rs` and `tools/impl/{browser,document,filesystem,network,presentation,system}/`: every executable tool consults `SecurityPolicy`.
- `crates/openhuman-core/src/tools/impl/network/{gate,mcp,mcp_server_tools}.rs`: risk-classify outbound calls.
- `crates/openhuman-core/src/memory/guard.rs`: wraps every memory write in `security::scrub::host_policy()`.
-- `crates/openhuman-core/src/agent/tools/delegate.rs`: sub-agent dispatch goes through the autonomy gate.
+- `crates/openhuman-core/src/tools/delegate.rs`: sub-agent dispatch goes through the autonomy gate.
- `crates/openhuman-core/src/security/credentials/`: uses `SecretStore` and `redact`.
## Tests