Skip to content

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

docs: add module-level doc comment to web_chat types and clean up stale path references

Steven Enamakeld2748c6794f7
diff --git a/crates/openhuman-core/src/inference/mod.rs b/crates/openhuman-core/src/inference/mod.rs
index 7af7b95583..4817ffa06a 100644
--- a/crates/openhuman-core/src/inference/mod.rs
+++ b/crates/openhuman-core/src/inference/mod.rs
@@ -2,9 +2,9 @@
//!
//! This module is the canonical home for all inference concerns:
//! - `local/` — Ollama / LM Studio / Piper runtime management
-//! (was `crates/openhuman-core/src/local_ai/`)
+//! (was `local_ai/`)
//! - `provider/` — native chat models, cloud/local routing, auth and errors
-//! (was `crates/openhuman-core/src/providers/`)
+//! (was `providers/`)
//! - `voice/` — transcription (STT) and TTS inference implementations
//! (moved from `crates/openhuman-core/src/voice/`)
//! - `http/` — OpenAI-compatible `/v1/chat/completions` endpoint
diff --git a/crates/openhuman-core/src/inference/provider/mod.rs b/crates/openhuman-core/src/inference/provider/mod.rs
index 2f3c552027..ef394bdaae 100644
--- a/crates/openhuman-core/src/inference/provider/mod.rs
+++ b/crates/openhuman-core/src/inference/provider/mod.rs
@@ -1,6 +1,7 @@
//! Native chat-model construction plus cloud/local inference policy and DTOs.
//!
-//! This module was previously `crates/openhuman-core/src/providers/`. It now lives under
+//! This module was previously `providers/` (in the pre-consolidation,
+//! single-crate `src/openhuman/` layout). It now lives under
//! `inference/provider/` so all inference concerns (local runtime, cloud
//! providers, HTTP endpoint) share a single domain root.
diff --git a/crates/openhuman-core/src/memory/guard/mod.rs b/crates/openhuman-core/src/memory/guard/mod.rs
index a2918c4376..2b0422b671 100644
--- a/crates/openhuman-core/src/memory/guard/mod.rs
+++ b/crates/openhuman-core/src/memory/guard/mod.rs
@@ -65,16 +65,17 @@
//! here as intra-doc links since this crate no longer depends on that crate
//! — see `crates/openhuman-core/src/memory/README.md` for the split.)
//!
-//! **That is confinement, not policy** — for the callers listed below, which
-//! still reach `ProfileStore` directly and so run beneath every one of the
-//! seven steps above: no tier check, no source scope, no taint, no redaction,
-//! no budget, no audit.
+//! **That is confinement, not policy** — any caller that still reaches
+//! `ProfileStore` directly runs beneath every one of the seven steps above:
+//! no tier check, no source scope, no taint, no redaction, no budget, no
+//! audit.
//!
//! This note used to say the fix "needs a fourteenth family in
//! `tinycortex_api`". **That family now exists.** The contract has
//! `MemoryProfile` (`tinymemory_api::provider::profile`, eleven methods) and
//! [`families::GuardedProfile`] implements it, so the guarded door is built.
-//! What remains is migrating the callers below onto it, plus the release lag on
+//! What remains is migrating any remaining direct `ProfileStore` caller onto
+//! it, plus the release lag on
//! the module that serves it — `MemoryProfile` is one of the five families that
//! shipped in no released artifact until v1.2.0, so a caller moved onto it
//! before the registry re-pin would get a runtime `Unsupported`. The host-side
diff --git a/crates/openhuman-core/src/web_chat/types.rs b/crates/openhuman-core/src/web_chat/types.rs
index a7337a37ed..535cc3fbfc 100644
--- a/crates/openhuman-core/src/web_chat/types.rs
+++ b/crates/openhuman-core/src/web_chat/types.rs
@@ -1,3 +1,8 @@
+//! Shared state and RPC parameter types for the web chat turn: the cached
+//! `SessionEntry`/`SessionCacheFingerprint`, in-flight/parallel turn tracking
+//! (`InFlightEntry`, `ParallelEntry`), the turn result (`WebChatTaskResult`),
+//! and the `channel.web_*` request param structs.
+
use serde::Deserialize;
use crate::agent::Agent;