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
Fix four valid CodeRabbit findings from second-round review\n\n- plan-5560.md: mark v1.5.0 as pinned by this PR (was 'not cut yet')\n- read_rpc/graph.rs: replace stale 'three forwarders missing' comment;\n all four (summary_forest, recent_leaves, chunk_entities, entity_chunk_ids)\n now have forwarders in modules::memory with the 1.5.0 registry re-pin\n- modules/memory_host.rs: api_key() now falls back to config.composio.api_key\n when the credential store has nothing, matching create_composio_client's\n fallback so is_available and api_key cannot disagree for a direct-mode user;\n regression test added\n- platform/doctor/core.rs: remove the early return on chunks.db absence so the\n driver probe always surfaces; drivers that do not use SQLite have no chunks.db\n by design and their health must not be hidden; test updated accordingly\n
shanu5b87b1e4225d
diff --git a/plan-5560.md b/plan-5560.mdindex 59fe4ff072..e88e39b792 100644--- a/plan-5560.md+++ b/plan-5560.md@@ -53,8 +53,8 @@ In flight, being finished separately. **Do not start Phase E until Phase D is do|---|---|---|| tinycortex (`neocortex`) | **#157** `feat/5560-filtered-chunk-count` @ `ef09f09` | open, **all checks green**, review threads answered and resolved, ⛔ **needs a maintainer merge** || tinymemory | **#99** `feat/5560-close-every-gap` @ `38e03fb` | open, CI green, gitlink points at #157 @ `ef09f09` |-| tinymemory | v1.4.0 (`346fe4e`) | released — what the host pins today |-| tinymemory | **v1.5.0** | ⛔ not cut yet; cannot be cut until #157 then #99 merge |+| tinymemory | v1.4.0 (`346fe4e`) | released |+| tinymemory | **v1.5.0** (`1a4cba8f48` pins `d722d36e9fc3`) | ✅ pinned by this PR |> ⛔ **The one hard blocker.** `gh pr merge 157 -R tinyhumansai/tinycortex` is refused —> the branch author's permissions on that repo are `{"admin":false,"maintain":false,"pull":true,"push":false}`.diff --git a/src/openhuman/memory/read_rpc/graph.rs b/src/openhuman/memory/read_rpc/graph.rsindex e4f061f1b7..07ba2f6e54 100644--- a/src/openhuman/memory/read_rpc/graph.rs+++ b/src/openhuman/memory/read_rpc/graph.rs@@ -12,19 +12,13 @@ use crate::rpc::RpcOutcome;// `MemoryChunks::list_chunks` + `MemoryEntities::chunk_entities` for the// contacts view — so neither reaches the engine's tables any more (#5560).//-// **Three of those four members need a host-side forwarder that does not exist-// yet**, and this is the same hazard `tree::rpc::ingest_rpc` documents for-// `IngestEmail`. `ModuleMemoryProvider` — the driver every shipped build-// binds — implements `MemoryTree` without `summary_forest` / `recent_leaves`-// and `MemoryEntities` without `chunk_entities`, so those calls fall to the-// trait's default body and answer `Unsupported`. The errors are propagated-// rather than degraded to an empty graph, deliberately: `summary_forest`'s own-// contract refuses to answer an empty forest for exactly this reason, and a-// Memory tab that renders "no memories" because a method is missing is the-// failure nobody chases. Closing it is three things in order, none of them-// here: a forwarder per member in `modules::memory`, a `tinymemory` release-// carrying them, and the `modules::registry` + `ARTIFACT_CAPABILITIES_PIN`-// re-pin onto it.+// All four forwarders now exist in `modules::memory` (`summary_forest`,+// `recent_leaves`, `chunk_entities` — added in this PR alongside the+// `modules::registry` re-pin to `ARTIFACT_CAPABILITIES_PIN = "1.5.0"`). Errors+// are propagated rather than degraded to an empty graph, deliberately:+// `summary_forest`'s own contract refuses to answer an empty forest for exactly+// this reason, and a Memory tab that renders "no memories" because a method is+// missing is the failure nobody chases.// ── wire types ────────────────────────────────────────────────────────────diff --git a/src/openhuman/modules/memory_host.rs b/src/openhuman/modules/memory_host.rsindex 49692d0b04..eca4d16b9a 100644--- a/src/openhuman/modules/memory_host.rs+++ b/src/openhuman/modules/memory_host.rs@@ -222,11 +222,18 @@ impl ComposioCallbacks {/// not something to smuggle in through its host half.async fn api_key(&self) -> tinybus::Result<Option<String>> {let config = self.live_config_or_installed().await;- Ok(+ let stored =crate::openhuman::security::credentials::get_composio_api_key(config.as_ref()).ok()- .flatten(),- )+ .flatten();+ let configured = config+ .composio+ .api_key+ .as_deref()+ .map(str::trim)+ .filter(|key| !key.is_empty())+ .map(str::to_owned);+ Ok(stored.or(configured))}/// Whether *some* viable Composio client resolves right now.diff --git a/src/openhuman/modules/memory_host_tests.rs b/src/openhuman/modules/memory_host_tests.rsindex 9b457ad975..da26907ebc 100644--- a/src/openhuman/modules/memory_host_tests.rs+++ b/src/openhuman/modules/memory_host_tests.rs@@ -179,6 +179,24 @@ async fn api_key_is_the_hosts_own_credential_store() {assert_eq!(answer, json!(expected));}+/// `api_key` falls back to `config.composio.api_key` when the credential store+/// holds nothing, keeping parity with `create_composio_client`'s fallback so+/// `is_available` and `api_key` cannot disagree for a direct-mode user.+#[tokio::test]+async fn api_key_falls_back_to_config_key_when_credential_store_is_empty() {+ let dir = tempfile::tempdir().expect("tempdir");+ let mut config = Config::default();+ config.workspace_dir = dir.path().join("workspace");+ config.config_path = dir.path().join("config.toml");+ config.composio.api_key = Some("direct-key-from-config".to_owned());+ let callbacks = ComposioCallbacks(Arc::new(config));++ let answer = call(&callbacks, "ApiKey", json!([]))+ .await+ .expect("ApiKey never fails");+ assert_eq!(answer, json!("direct-key-from-config"));+}+#[tokio::test]async fn a_probe_survives_a_config_it_cannot_read() {// The two probes have nowhere to put "could not tell", and answering "no"diff --git a/src/openhuman/platform/doctor/core.rs b/src/openhuman/platform/doctor/core.rsindex 9375041213..128ad9e9ae 100644--- a/src/openhuman/platform/doctor/core.rs+++ b/src/openhuman/platform/doctor/core.rs@@ -800,9 +800,11 @@ fn check_command_available(// ── Memory-tree DB health ────────────────────────────────────────-/// Probe the memory-tree SQLite database and push a [`DiagnosticItem`].+/// Probe the memory-tree and push [`DiagnosticItem`]s.///-/// - If the DB directory / file does not exist yet: `Warn` (not yet created).+/// - If the legacy SQLite file does not exist: `Warn` (not yet created by the+/// embedded driver). This is an informational SQLite-artifact check, not a+/// gate: drivers that store memory elsewhere have no `chunks.db` by design./// - If a stale `.db-shm` file is present alongside the DB: `Warn`./// - If the driver answered with a chunk count: `Ok`./// - If it did not: `Error`.@@ -812,10 +814,8 @@ fn check_command_available(/// `memory_chunks`, taken by the async caller: see [`MemoryChunkCount`] for/// why it arrives as an argument rather than being read here.///-/// The two are ordered, not independent: an absent file short-circuits before-/// the count is consulted at all, exactly as it short-circuited before the-/// connection was opened. A workspace that has never ingested anything must-/// keep reading as "not yet created" rather than as a failed probe.+/// The driver probe always runs regardless of file existence, so a bound driver+/// that does not use SQLite still surfaces its health here.fn check_memory_tree_db(config: &Config,memory_chunks: &MemoryChunkCount,@@ -844,7 +844,7 @@ fn check_memory_tree_db(}}- // ── File existence ──────────────────────────────────────────────+ // ── SQLite-artifact check (informational only, not a gate) ──────if !db_path.exists() {items.push(DiagnosticItem::warn(cat,@@ -853,7 +853,6 @@ fn check_memory_tree_db(db_path.display()),));- return;}// ── Driver probe ────────────────────────────────────────────────diff --git a/src/openhuman/platform/doctor/core_tests.rs b/src/openhuman/platform/doctor/core_tests.rsindex 7a4ef2bcd2..6369ce454e 100644--- a/src/openhuman/platform/doctor/core_tests.rs+++ b/src/openhuman/platform/doctor/core_tests.rs@@ -77,25 +77,30 @@ fn model_matches_rejects_different_base_models() {// ── check_memory_tree_db tests (#2206) ───────────────────────────────────────/// When the workspace exists but the DB file has never been created,-/// `check_memory_tree_db` should push exactly one `Warn` item mentioning-/// "not yet created".+/// `check_memory_tree_db` should push a `Warn` about the missing file AND+/// still surface the driver's probe result. Drivers that do not use SQLite+/// have no `chunks.db` by design, so the file check must not gate the probe.#[test]fn check_memory_tree_db_warns_when_db_missing() {let tmp = TempDir::new().expect("tempdir");let cfg = test_config_in(&tmp);let mut items = vec![];- // A count is supplied and must go unread: an absent file short-circuits- // before the driver's answer is consulted, so a workspace that has never- // ingested anything reads as "not yet created" and not as a failed probe.check_memory_tree_db(&cfg, &Ok(7), &mut items);- assert_eq!(items.len(), 1, "expected exactly one diagnostic item");- assert_eq!(items[0].severity, Severity::Warn);+ // Warn item for the missing file.assert!(- items[0].message.contains("not yet created"),- "unexpected message: {}",- items[0].message+ items+ .iter()+ .any(|i| i.severity == Severity::Warn && i.message.contains("not yet created")),+ "expected a 'not yet created' warn item; got: {items:?}",+ );+ // Driver probe result is surfaced regardless of file absence.+ assert!(+ items+ .iter()+ .any(|i| i.severity == Severity::Ok && i.message.contains('7')),+ "expected a driver-probe Ok item with count 7; got: {items:?}",);}