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: clarify embedding host boundary
Steven Enamakelcfda111b4547
diff --git a/crates/openhuman-core/src/embeddings/README.md b/crates/openhuman-core/src/embeddings/README.mdindex 11bd02b8d7..925e8e0cd6 100644--- a/crates/openhuman-core/src/embeddings/README.md+++ b/crates/openhuman-core/src/embeddings/README.md@@ -22,9 +22,6 @@ those models for OpenHuman.and re-embed/wipe policy. Provider catalogs, endpoint verification, secretredaction, model-list discovery, and dimension helpers live in`tinyinference-embeddings`.-- `noop.rs`: re-export of `tinymemory_api::host::NoopEmbedding` so the host and- the memory module share one type when embeddings are switched off.-Provider HTTP behavior and its tests belong in `tinyinference`. Do not add newper-provider clients here.diff --git a/crates/openhuman-core/src/embeddings/factory.rs b/crates/openhuman-core/src/embeddings/factory.rsindex 35e963cf18..05515f745c 100644--- a/crates/openhuman-core/src/embeddings/factory.rs+++ b/crates/openhuman-core/src/embeddings/factory.rs@@ -129,19 +129,15 @@ fn managed_credential_scope(config: &Config) -> (Option<PathBuf>, bool) {/// Returns the default embedding provider — cloud (OpenHuman backend, Voyage) —/// scoped to `config`'s credential store.///-/// This is the [`default_embedding_provider`] every caller that holds a-/// `&Config` must use. It threads the caller's real credential-store location+/// Every caller threads the real credential-store location/// ([`managed_credential_scope`]) into the cloud embedder's bearer resolver — the/// same `(state_dir, encrypt)` pair sign-in wrote the `app-session` token to — so/// a signed-in user's ingest/seal embeds read the session they actually have.///-/// The config-less [`default_embedding_provider`] hardcodes `(None, true)` and so-/// resolves `default_state_dir()` with encryption forced on; that only lands on-/// the right store for a default-root, encrypted, single-user install. Routing-/// the memory client's inline embedder through the keyless constructor is what-/// made a signed-in user's ingested documents persist vector-less — "Test-/// connection" passed (config-scoped) while the embed batch silently failed-/// (keyless scope) — #5501.+/// A former config-less constructor resolved the process default state directory+/// with encryption forced on. Routing the memory client through it made signed-in+/// users persist vector-less documents while config-scoped connection tests+/// passed (#5501), so that compatibility constructor was removed.pub fn default_embedding_provider_with_config(config: &Config) -> Arc<dyn EmbeddingProvider> {// Keep the stored value for credential lookup. Credentials are keyed by// the provider value that settings persisted; trimming before lookup candiff --git a/crates/openhuman-core/src/embeddings/factory_tests.rs b/crates/openhuman-core/src/embeddings/factory_tests.rsindex 7edf61a4e8..370aee775a 100644--- a/crates/openhuman-core/src/embeddings/factory_tests.rs+++ b/crates/openhuman-core/src/embeddings/factory_tests.rs@@ -381,8 +381,8 @@ async fn factory_managed_provider_authenticates_with_config_scoped_token() {/// #5501 regression: the memory client's inline embedder is built through/// [`default_embedding_provider_with_config`], which MUST authenticate with/// the `app-session` token under the *config* credential scope — the same-/// scope "Test connection" uses. The pre-fix keyless-/// [`default_embedding_provider`] resolved `default_state_dir()` with+/// scope "Test connection" uses. The removed pre-fix keyless constructor+/// resolved `default_state_dir()` with/// encryption forced on, so a signed-in user's ingested documents embedded/// with "No backend session" and persisted vector-less while the connection/// test still passed. A local mock stands in for the cloud backend (no