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
docs: add README files for scheduler gate, threads, and embed crate
Steven Enamakel310b90d4e155
diff --git a/crates/openhuman-core/src/cron/scheduler_gate/README.md b/crates/openhuman-core/src/cron/scheduler_gate/README.mdindex 889073035e..1fdea4b34e 100644--- a/crates/openhuman-core/src/cron/scheduler_gate/README.md+++ b/crates/openhuman-core/src/cron/scheduler_gate/README.md@@ -58,7 +58,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`, `learning/reflection.rs`, `autocomplete/core/engine.rs`, `task_sources/route.rs`, `agent/triage/evaluator.rs`.+- Background workers / pipelines: `memory/sources/sync.rs`, `memory/context.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/runtime/subscribers.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/threads/README.md b/crates/openhuman-core/src/threads/README.mdindex 102da125ae..57775ed1b0 100644--- a/crates/openhuman-core/src/threads/README.md+++ b/crates/openhuman-core/src/threads/README.md@@ -24,7 +24,7 @@ is intentionally no task-board, todo, or goal RPC surface here.## PersistenceConversation and message storage is delegated to-`memory::conversations::blocking`; do not call the synchronous conversation+`threads::store::blocking` (the store is `tinyagents_session::threads`); do not call the synchronous conversationstore from async handlers. Turn snapshots live under`memory/conversations/turn_states/` and are retained for settled processingreplay. The welcome migration is guarded bydiff --git a/crates/openhuman-core/src/threads/store/README.md b/crates/openhuman-core/src/threads/store/README.mdindex 2acb03ba9b..73464daf50 100644--- a/crates/openhuman-core/src/threads/store/README.md+++ b/crates/openhuman-core/src/threads/store/README.md@@ -1,32 +1,31 @@-# conversations--Workspace-backed conversation thread/message storage: transcript-persistence, not semantic indexing. This is the JSONL store of raw-thread/message records plus a trigram/CJK-bigram index for cross-thread-substring search; the summary-tree archival of the same transcripts is a-different index answering a different question and lives in-[`memory/tree/`](../tree/). See `mod.rs` for the full accounting of how this-code came back from `tinycortex::memory::conversations` in #5560: it is not-repeated here.--## Three parts--- `store/`: the implementation: on-disk format, root lifecycle, sharded- metadata/message locks, the warm index cache, and CRUD/search. Everything- it exposes is re-exported from `mod.rs`, so callers always name- `crate::memory::conversations::{…}`, never the `store` subtree directly.-- `blocking.rs`: `spawn_blocking` wrappers around every store entry- point. The store is synchronous and takes `parking_lot` locks across- fsync'd file I/O, so calling it from an `async fn` directly would park a- tokio worker thread for the whole wait; request paths must go through- `blocking` instead (#5156).+# threads/store++Workspace-backed chat thread and message storage: transcript persistence, not+memory. The store itself (on-disk format, locking, warm trigram/CJK-bigram+index for cross-thread search, CRUD) is `tinyagents_session::threads` in+`vendor/tinyagents`; this directory keeps only the host wiring and re-exports+the store so callers name `crate::threads::store::{...}`. Memory v2+(`crate::memory`) is separate: it only ingests committed turns through its own+bus subscriber (see [`memory/`](../../memory/)).++## Parts++- `mod.rs`: re-exports the store API. `ConversationMessage` and+ `ConversationMessagePatch` are host-spelled aliases of the crate's+ `ThreadMessage` / `ThreadMessagePatch`; type names never reach the disk.+- `blocking.rs`: `spawn_blocking` wrappers around every store entry point.+ The store is synchronous and takes `parking_lot` locks across fsync'd file+ I/O, so request paths must go through `blocking` rather than calling it from+ an `async fn` (#5156).- `bus.rs`: the `core::bus` subscriber(`register_conversation_persistence_subscriber`) that mirrors inbound andprocessed channel turns into the store, so channel transcripts (Slack,- Telegram, …) persist alongside the UI's own threads.+ Telegram, ...) persist alongside the UI's own threads.## On-disk layout+Unchanged from before the move:+```text<workspace>/memory/conversations/├── threads.jsonl # append-only upsert/delete log of thread metadata@@ -34,28 +33,7 @@ repeated here.└── <hex(thread_id)>.jsonl # one file per thread, its messages in order```-`store/` also builds a trigram/CJK-bigram inverted index over message content-in memory for cross-thread search (`inverted_index.rs`, `tokenize.rs`); the-index is not persisted. It is primed from the JSONL on the first search per-workspace root and then kept warm in a process-wide cache (`store_index.rs`,-`prime_index_if_cold`).--## Callers--Async request paths use the `blocking` wrappers. Grepping-`memory::conversations::` finds the store used directly by-[`threads/`](../../threads/) (`mod.rs`, `ops.rs`, `turn_state/store.rs`,-`welcome_migration.rs`), by-[`channels/`](../../channels/) (`host/adapters.rs`,-`providers/telegram/remote_control.rs`, `runtime/startup/start_channels.rs`) for-mirroring channel turns, and by the agent harness/orchestration layer-(`agent/subagent_host/`, `agent/orchestration/tools/`,-`agent/tinyagents/host/agent_memory.rs`) for-sub-agent and worker-thread transcripts.-## Tests-`store/*_tests.rs` covers the implementation (`store_tests.rs`,-`store_tests_late.rs`, `store_tests_more.rs`, `store_concurrency_tests.rs`,-`inverted_index_tests.rs`, `tokenize_tests.rs`, `types_tests.rs`);-`blocking_tests.rs` and `bus_tests.rs` cover the two wiring parts.+`blocking_tests.rs` and `bus_tests.rs` cover the wiring; the store's own tests+live in `vendor/tinyagents/crates/tinyagents-session/src/threads/`.diff --git a/crates/openhuman-embed/README.md b/crates/openhuman-embed/README.mdindex 1a64454bce..baa89a1893 100644--- a/crates/openhuman-embed/README.md+++ b/crates/openhuman-embed/README.md@@ -151,7 +151,7 @@ embeddings, voice (STT and TTS), web search, media generation, the Jev ranker,Composio and the other `/agent-integrations/*` tools, referral, and webhooks.The realtime voice agent and Socket.IO relay require a signed-in user session. Callers thatcan only send a bearer (the vendored STT and embedding clients, the connector-module's proxy route, TinyCortex's Composio sync) send the key as+module's proxy route, the memory engine's sync) send the key as`Authorization: Bearer`, which the backend accepts because it recognises the`tiny_live_` / `tiny_test_` prefix. What a key may reach is decided by itsscopes on the backend: `inference`, `voice`, `search`, `media`, `storage`,