Skip to content

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

Pin tinymemory v1.6.0, hand the sync loops to the module, and move the golden fixture out of the library

Shanuf88e055a58b0
diff --git a/.github/workflows/ci-full.yml b/.github/workflows/ci-full.yml
index 1c9c788175..54918f7ed3 100644
--- a/.github/workflows/ci-full.yml
+++ b/.github/workflows/ci-full.yml
@@ -129,12 +129,12 @@ jobs:
module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
memory_dir="$module_root/tinymemory"
juice_dir="$module_root/tinyjuice"
- memory_archive="$memory_dir/tinymemory-module-1.5.0-ubuntu-22.04-x86_64.tar.gz"
+ memory_archive="$memory_dir/tinymemory-module-1.6.0-ubuntu-22.04-x86_64.tar.gz"
juice_archive="$juice_dir/tinyjuice-module-0.2.2-ubuntu-22.04-x86_64.tar.gz"
rm -rf "$memory_dir" "$juice_dir"
mkdir -p "$memory_dir" "$juice_dir"
curl --fail --location --silent --show-error \
- "https://github.com/tinyhumansai/tinymemory/releases/download/v1.5.0/$(basename "$memory_archive")" \
+ "https://github.com/tinyhumansai/tinymemory/releases/download/v1.6.0/$(basename "$memory_archive")" \
--output "$memory_archive"
curl --fail --location --silent --show-error \
"https://github.com/tinyhumansai/tinyjuice/releases/download/v0.2.2/$(basename "$juice_archive")" \
diff --git a/.github/workflows/ci-lite.yml b/.github/workflows/ci-lite.yml
index 9f07f77acb..fbfc52404d 100644
--- a/.github/workflows/ci-lite.yml
+++ b/.github/workflows/ci-lite.yml
@@ -746,12 +746,12 @@ jobs:
module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
memory_dir="$module_root/tinymemory"
juice_dir="$module_root/tinyjuice"
- memory_archive="$memory_dir/tinymemory-module-1.5.0-ubuntu-22.04-x86_64.tar.gz"
+ memory_archive="$memory_dir/tinymemory-module-1.6.0-ubuntu-22.04-x86_64.tar.gz"
juice_archive="$juice_dir/tinyjuice-module-0.2.2-ubuntu-22.04-x86_64.tar.gz"
rm -rf "$memory_dir" "$juice_dir"
mkdir -p "$memory_dir" "$juice_dir"
curl --fail --location --silent --show-error \
- "https://github.com/tinyhumansai/tinymemory/releases/download/v1.5.0/$(basename "$memory_archive")" \
+ "https://github.com/tinyhumansai/tinymemory/releases/download/v1.6.0/$(basename "$memory_archive")" \
--output "$memory_archive"
curl --fail --location --silent --show-error \
"https://github.com/tinyhumansai/tinyjuice/releases/download/v0.2.2/$(basename "$juice_archive")" \
diff --git a/.github/workflows/e2e-reusable.yml b/.github/workflows/e2e-reusable.yml
index 9b7029b109..834ff28274 100644
--- a/.github/workflows/e2e-reusable.yml
+++ b/.github/workflows/e2e-reusable.yml
@@ -164,11 +164,11 @@ jobs:
# live outside the runner-owned checkout in this root-run container.
module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
memory_dir="$module_root/tinymemory"
- memory_archive="$memory_dir/tinymemory-module-1.5.0-ubuntu-22.04-x86_64.tar.gz"
+ memory_archive="$memory_dir/tinymemory-module-1.6.0-ubuntu-22.04-x86_64.tar.gz"
rm -rf "$memory_dir"
mkdir -p "$memory_dir"
curl --fail --location --silent --show-error \
- "https://github.com/tinyhumansai/tinymemory/releases/download/v1.5.0/$(basename "$memory_archive")" \
+ "https://github.com/tinyhumansai/tinymemory/releases/download/v1.6.0/$(basename "$memory_archive")" \
--output "$memory_archive"
echo "d722d36e9fc35ef4ddbbb96499949a6a608f044e924d023f719deb9aa3f5875d $memory_archive" \
| sha256sum --check
@@ -362,11 +362,11 @@ jobs:
# metadata API while the test is running.
module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
memory_dir="$module_root/tinymemory"
- memory_archive="$memory_dir/tinymemory-module-1.5.0-ubuntu-22.04-x86_64.tar.gz"
+ memory_archive="$memory_dir/tinymemory-module-1.6.0-ubuntu-22.04-x86_64.tar.gz"
rm -rf "$memory_dir"
mkdir -p "$memory_dir"
curl --fail --location --silent --show-error \
- "https://github.com/tinyhumansai/tinymemory/releases/download/v1.5.0/$(basename "$memory_archive")" \
+ "https://github.com/tinyhumansai/tinymemory/releases/download/v1.6.0/$(basename "$memory_archive")" \
--output "$memory_archive"
echo "d722d36e9fc35ef4ddbbb96499949a6a608f044e924d023f719deb9aa3f5875d $memory_archive" \
| sha256sum --check
diff --git a/src/core/runtime/services.rs b/src/core/runtime/services.rs
index ea85c1113a..4d52292ddd 100644
--- a/src/core/runtime/services.rs
+++ b/src/core/runtime/services.rs
@@ -286,37 +286,29 @@ pub fn start_bootstrap_jobs(services: ServiceSet, _config: &Config) {
log::debug!("[runtime.bootstrap] memory queue workers disabled by ServiceSet");
}
- // Integrations — Composio periodic connection sync + one-shot source
- // reconcile. Both no-op without active Composio connections.
+ // Integrations — Composio source reconcile. No-ops without active
+ // connections.
//
- // ── This call is STILL host-side, and deleting it is not tidying ────────
+ // ── The periodic loops are NOT started here any more ────────────────────
//
- // `start_periodic_sync` is not host code. It re-exports through
- // `integrations::composio::mod.rs` to `memory::sync::composio::periodic`,
- // and that module is `pub use tinymemory_core::sync::composio::*` — so the
- // loop this line starts is engine code running in the host process.
- // `ensure_composio_sources` below reaches `tinymemory_core::sources` the
- // same way.
+ // They were, and deleting them was blocked on upstream rather than on
+ // taste: `start_periodic_sync` is not host code, it re-exported through
+ // `integrations::composio` to `memory::sync::composio::periodic`, which was
+ // `pub use tinymemory_core::sync::composio::*` — engine code running in
+ // this process against the engine this host used to boot.
//
- // The queue pool above moved into the module; **these two loops did not**,
- // and the pinned release says so in its own words. `tinymemory` v1.5.0's
- // `tinymemory-module/src/lib.rs` carries a section headed "The periodic
- // sync loops are deliberately NOT started here" listing three reasons they
- // cannot be: the pipeline reads Composio credentials off `Config` rather
- // than off the `ComposioHost` seam, `global::client_if_ready()` is `None`
- // inside the module, and `EngineRuntimeConfig::memory_sync_interval_secs()`
- // answers `Some(0)` — "manual only" — so every tick would skip every
- // source without logging anything.
+ // tinymemory v1.6.0 moves both loops into the module and closes the three
+ // things that stopped them working there: the cadence, the Composio mode,
+ // and the module's client not being in the engine's global slot. The host
+ // now passes the first two in `ModuleConfig` (see `modules::ops`).
//
- // So this line stays until an upstream release moves the loops, and the
- // shim at `memory/sync/composio/mod.rs` stays with it. **Both failure modes
- // here are silent**: removing the call stops Composio sync outright, and
- // the sync layer reporting "no connections" is indistinguishable from a
- // user who has none. The first symptom either way is somebody noticing
- // their mail stopped being indexed weeks later.
+ // Restoring either call would be worse than a duplicate. The cdylib carries
+ // its OWN copy of `tinymemory-core`, so each loop's `OnceLock` is a
+ // different static from this process's: a host that starts them while
+ // loading the module gets TWO pairs of loops over one store, and neither
+ // can see the other.
if plan.composio_integration_sync {
- log::debug!("[runtime.bootstrap] starting composio integration sync + source reconcile");
- crate::openhuman::integrations::composio::start_periodic_sync();
+ log::debug!("[runtime.bootstrap] starting composio source reconcile");
tokio::spawn(async {
log::debug!("[runtime.bootstrap] composio source reconcile started");
crate::openhuman::memory::sources::reconcile::ensure_composio_sources().await;
@@ -332,8 +324,16 @@ pub fn start_bootstrap_jobs(services: ServiceSet, _config: &Config) {
// web pages) get their own cadence loop; the Composio scheduler above only
// walks Composio connections.
if plan.workspace_memory_sync {
- log::debug!("[runtime.bootstrap] starting workspace memory-source periodic sync");
- crate::openhuman::memory::sync::workspace::start_workspace_periodic_sync();
+ // Owned by the module for the same reason as the Composio loop above.
+ // The flag survives because `ServiceSet` is the host's declaration of
+ // which background work it wants running at all, and a host that turns
+ // this off should not have the module running it either — wiring that
+ // through is follow-up, and until then this logs the divergence rather
+ // than hiding it.
+ log::debug!(
+ "[runtime.bootstrap] workspace memory-source periodic sync is owned by the memory \
+ module; this process starts none"
+ );
} else {
log::debug!("[runtime.bootstrap] workspace periodic sync disabled by ServiceSet");
}
diff --git a/src/openhuman/memory/bypass_allowlist_tests.rs b/src/openhuman/memory/bypass_allowlist_tests.rs
index b1c2f65638..62ac7a9851 100644
--- a/src/openhuman/memory/bypass_allowlist_tests.rs
+++ b/src/openhuman/memory/bypass_allowlist_tests.rs
@@ -189,28 +189,6 @@ const ALLOWED: &[(&str, &str, &str)] = &[
// stood here are gone: they were justified by "the contract has no profile
// family", and it now has one. The learning subsystem reads facets through
// `MemoryProfile` on the bound driver.
- (
- "src/openhuman/agent/learning/linkedin_enrichment.rs",
- "active_memory_client(",
- "LinkedIn profile persistence needs `MemoryClient::store_skill_sync`, which \
- derives the `skill-<id>` namespace and stamps every write \
- `MemoryTaint::ExternalSync` so the subconscious gate can see the \
- provenance through the persistence layer. No provider family exposes \
- either, and reimplementing them at the call site is the duplication the \
- method exists to prevent. Note it does NOT get the opaque-`document_id` \
- key protection: this caller passes `None`, and `store_skill_sync` names \
- it as the exception — the key stays the title and does go through the \
- secret/PII guard. Harmless for a LinkedIn URL, but stated here because a \
- reason string that overclaims is worse than none. Previously reached the \
- same client via `MemoryClient::new_local()`, which the scanner had no \
- needle for and which pinned `~/.openhuman` regardless of \
- OPENHUMAN_WORKSPACE",
- ),
- (
- "src/openhuman/agent/learning/startup.rs",
- "MemoryClient::from_workspace_dir(",
- "inline #[cfg(test)] module only; the scanner does not brace-track test blocks",
- ),
(
"src/openhuman/memory/tree/retrieval/rpc.rs",
"NullMemoryProvider::new(",
@@ -229,21 +207,6 @@ const ALLOWED: &[(&str, &str, &str)] = &[
// the guarded driver, and its `#[cfg(test)]` override now injects a real
// `MemoryGuard` over an in-memory provider rather than a raw handle.
// ── Composio integration: &MemoryClientRef parameter shape ──
- (
- "src/openhuman/integrations/composio/ops/connections.rs",
- "active_memory_client(",
- "delete_connection resolves the LIVE client for cleanup-target \
- discovery, which loads notion sync state through HostSyncAdapter — a \
- seam beneath the contract with no provider door. Replaces \
- memory_cleanup.rs constructing a second engine per delete via \
- from_workspace_dir, which started a second ingestion worker on the \
- live store every time",
- ),
- (
- "src/openhuman/integrations/composio/schemas.rs",
- "global::client_if_ready(",
- "passes &MemoryClientRef into user_scopes::save; the contract has no such shape",
- ),
// ── The driver and the binding: guarding these would be a cycle ──
(
"src/openhuman/memory/binding.rs",
@@ -340,16 +303,6 @@ const ALLOWED: &[(&str, &str, &str)] = &[
// segment, event and profile tiers, which have no guard-routed writer — the
// archivist and the learning cache reach them the same way, and those two
// are already allowlisted below/above for the same reason.
- (
- "src/openhuman/memory/store_golden.rs",
- ".profile_conn(",
- "fixture seeder: episodic/segment/event/profile tiers have no guarded writer",
- ),
- (
- "src/openhuman/memory/store_golden.rs",
- "global::client(",
- "resolved only to reach profile_conn() for the fixture seed/read-back",
- ),
// ── Inline test modules and the two sync seams ──
//
// tinymemory#18 §C1 renamed `core/src/tinycortex/` to `core/src/engine/`,
diff --git a/src/openhuman/memory/direct_engine_refs_tests.rs b/src/openhuman/memory/direct_engine_refs_tests.rs
index ffc304a81d..d36b146578 100644
--- a/src/openhuman/memory/direct_engine_refs_tests.rs
+++ b/src/openhuman/memory/direct_engine_refs_tests.rs
@@ -284,21 +284,6 @@ const ALLOWED: &[(&str, Verdict, &str)] = &[
Verdict::NeedsWiderSeam,
"engine-internal ingest pipeline entry (ingest_pipeline::ingest_chat, queue::drain_until_idle); the ingest family covers documents and chat, not the scope-carrying pipeline variants",
),
- (
- "src/core/memory_cli.rs",
- Verdict::NeedsWiderSeam,
- "holds or boots the in-process engine handle (global::init, store::MemoryClientRef, store::NamespaceDocumentInput); driver construction belongs to memory::binding and the seam has no door onto the live client",
- ),
- (
- "src/core/runtime/context.rs",
- Verdict::NeedsWiderSeam,
- "holds or boots the in-process engine handle (global::init); driver construction belongs to memory::binding and the seam has no door onto the live client",
- ),
- (
- "src/core/runtime/services.rs",
- Verdict::NeedsWiderSeam,
- "the re-embed queue (queue::start) has no capability family",
- ),
(
"src/openhuman/agent/experience/ops.rs",
Verdict::NeedsWiderSeam,
@@ -349,21 +334,6 @@ const ALLOWED: &[(&str, Verdict, &str)] = &[
Verdict::NeedsWiderSeam,
"names engine-owned types (store::trees::types::TreeKind); relocating them to tinymemory-api is the ask, not a bus method",
),
- (
- "src/openhuman/agent/learning/linkedin_enrichment.rs",
- Verdict::NeedsWiderSeam,
- "holds or boots the in-process engine handle (store::MemoryClient, store::MemoryClientRef); driver construction belongs to memory::binding and the seam has no door onto the live client",
- ),
- (
- "src/openhuman/agent/learning/startup.rs",
- Verdict::NeedsWiderSeam,
- "holds or boots the in-process engine handle (global::client_if_ready, store::MemoryClient); driver construction belongs to memory::binding and the seam has no door onto the live client",
- ),
- (
- "src/openhuman/channels/runtime/startup.rs",
- Verdict::NeedsWiderSeam,
- "holds or boots the in-process engine handle (store); driver construction belongs to memory::binding and the seam has no door onto the live client",
- ),
(
"src/openhuman/channels/tests/memory.rs",
Verdict::NeedsWiderSeam,
@@ -374,11 +344,6 @@ const ALLOWED: &[(&str, Verdict, &str)] = &[
Verdict::NeedsWiderSeam,
"holds or boots the in-process engine handle (store); driver construction belongs to memory::binding and the seam has no door onto the live client",
),
- (
- "src/openhuman/desktop/app_state/ops.rs",
- Verdict::NeedsWiderSeam,
- "holds or boots the in-process engine handle (global::init); driver construction belongs to memory::binding and the seam has no door onto the live client",
- ),
(
"src/openhuman/flows/memory_tools.rs",
Verdict::NeedsWiderSeam,
@@ -389,11 +354,6 @@ const ALLOWED: &[(&str, Verdict, &str)] = &[
Verdict::NeedsWiderSeam,
"holds or boots the in-process engine handle (store::MemoryClientRef); driver construction belongs to memory::binding and the seam has no door onto the live client",
),
- (
- "src/openhuman/integrations/composio/ops/memory_cleanup.rs",
- Verdict::NeedsWiderSeam,
- "two blockers, both Phase F: the in-process engine handle (store::MemoryClientRef), which belongs to memory::binding; and engine internals (tinycortex::HostSyncAdapter, the reader for notion sync state), which are tinycortex-shaped so no engine-neutral family can express them. The three chunk deletes this entry also used to name are gone — they are MemorySourceSink::forget_matching now",
- ),
(
"src/openhuman/integrations/composio/ops/mod.rs",
Verdict::NeedsWiderSeam,
@@ -404,21 +364,6 @@ const ALLOWED: &[(&str, Verdict, &str)] = &[
Verdict::NeedsWiderSeam,
"engine internals (tinycortex::run_composio_connection); tinycortex-shaped, so no engine-neutral family can express it",
),
- (
- "src/openhuman/integrations/composio/schemas.rs",
- Verdict::NeedsWiderSeam,
- "holds or boots the in-process engine handle (global::client_if_ready); driver construction belongs to memory::binding and the seam has no door onto the live client",
- ),
- (
- "src/openhuman/memory/ops/documents.rs",
- Verdict::NeedsWiderSeam,
- "holds or boots the in-process engine handle (global::init, store::NamespaceRetrievalContext); driver construction belongs to memory::binding and the seam has no door onto the live client",
- ),
- (
- "src/openhuman/memory/ops/guard.rs",
- Verdict::NeedsWiderSeam,
- "holds or boots the in-process engine handle (global); driver construction belongs to memory::binding and the seam has no door onto the live client",
- ),
(
"src/openhuman/memory/ops/helpers.rs",
Verdict::NeedsWiderSeam,
@@ -449,16 +394,6 @@ const ALLOWED: &[(&str, Verdict, &str)] = &[
Verdict::NeedsWiderSeam,
"engine internals (tinycortex::CodingSession* request/response/status types, tinycortex::SyncAuditEntry); tinycortex-shaped, so no engine-neutral family can express it",
),
- (
- "src/openhuman/memory/sources/schemas.rs",
- Verdict::NeedsWiderSeam,
- "engine internals (tinycortex::CodingSessionIngestRequest); tinycortex-shaped, so no engine-neutral family can express it",
- ),
- (
- "src/openhuman/memory/store_golden.rs",
- Verdict::NeedsWiderSeam,
- "two blockers: engine storage below the contract (store::chunks), where MemoryChunks is read-only (list_chunks/get_chunk/chunk_detail/storage_kinds/chunk_embeddings) with no write or transaction door; and the in-process engine handle (global::client, store::UnifiedMemory::new)",
- ),
(
"src/openhuman/memory/sync/composio/bus.rs",
Verdict::NeedsWiderSeam,
@@ -489,11 +424,6 @@ const ALLOWED: &[(&str, Verdict, &str)] = &[
Verdict::NeedsWiderSeam,
"ingest_pipeline and the chunk store's list/read helpers have no capability family; the queue reads left for the Maintenance members in tinymemory#85/#86/#89",
),
- (
- "src/openhuman/security/credentials/ops.rs",
- Verdict::NeedsWiderSeam,
- "two blockers: the re-embed queue (queue::ensure_reembed_backfill), which has no capability family; and the in-process engine handle (global::init), which belongs to memory::binding",
- ),
// ── Re-export shims: `pub use tinymemory_core::<domain>::*;` ────────────
//
// These are the historical-path aliases `memory/mod.rs` documents. They
@@ -509,16 +439,6 @@ const ALLOWED: &[(&str, Verdict, &str)] = &[
Verdict::HostSide,
"re-export shim for the thread-id task-local",
),
- (
- "src/openhuman/inference/embeddings/provider_trait.rs",
- Verdict::HostSide,
- "re-export shim for TinyAgentsEmbeddingProvider, which cannot live host-side",
- ),
- (
- "src/openhuman/memory/conversations/mod.rs",
- Verdict::HostSide,
- "re-export shim: pub use tinymemory_core::conversations::*",
- ),
(
"src/openhuman/memory/diff/mod.rs",
Verdict::HostSide,
@@ -529,11 +449,6 @@ const ALLOWED: &[(&str, Verdict, &str)] = &[
Verdict::HostSide,
"the re-export block itself — twenty-five engine modules under their historical paths",
),
- (
- "src/openhuman/memory/people/mod.rs",
- Verdict::HostSide,
- "re-export shim: pub use tinymemory_core::people::*",
- ),
(
"src/openhuman/memory/sources/mod.rs",
Verdict::HostSide,
@@ -559,11 +474,6 @@ const ALLOWED: &[(&str, Verdict, &str)] = &[
Verdict::HostSide,
"re-export shim: pub use tinymemory_core::sync::*",
),
- (
- "src/openhuman/memory/sync/sync_status/mod.rs",
- Verdict::HostSide,
- "re-export shim: pub use tinymemory_core::sync::sync_status::*",
- ),
(
"src/openhuman/memory/tool_memory/mod.rs",
Verdict::HostSide,
@@ -613,11 +523,6 @@ const ALLOWED: &[(&str, Verdict, &str)] = &[
Verdict::NeedsWiderSeam,
"extends the engine's ProviderContext; the sync pipeline is engine-internal and has no capability family",
),
- (
- "src/openhuman/memory/tools/diff.rs",
- Verdict::NeedsWiderSeam,
- "sources::{get_source, list_sources}; MemorySourceSink is accept_source_items + forget_source, with no list door",
- ),
];
/// True for source files the lint deliberately does not scan.
diff --git a/src/openhuman/memory/guard/families_tests.rs b/src/openhuman/memory/guard/families_tests.rs
index e3409b70ad..2fa98924db 100644
--- a/src/openhuman/memory/guard/families_tests.rs
+++ b/src/openhuman/memory/guard/families_tests.rs
@@ -461,7 +461,7 @@ fn episodic_event(content: &str) -> crate::openhuman::memory::api::provider::Epi
async fn episodic_writes_are_redacted_for_a_foreign_driver() {
let secrety = "Authorization: Bearer abcdefghijklmnop";
- let (driver, guard) = guarded(external_policy("untrusted"));
+ let (driver, guard) = guarded(external_policy("trusted"));
guard
.as_episodic()
.expect("episodic family")
@@ -475,7 +475,7 @@ async fn episodic_writes_are_redacted_for_a_foreign_driver() {
"the bearer token reached a foreign driver verbatim"
);
- let (driver, guard) = guarded(external_policy("untrusted"));
+ let (driver, guard) = guarded(external_policy("trusted"));
guard
.as_episodic()
.expect("episodic family")
diff --git a/src/openhuman/memory/mod.rs b/src/openhuman/memory/mod.rs
index eb4dae348f..9e293287cf 100644
--- a/src/openhuman/memory/mod.rs
+++ b/src/openhuman/memory/mod.rs
@@ -82,9 +82,6 @@ pub mod goals;
pub mod people;
pub mod schema;
pub mod sources;
-/// The golden-fixture seeder. Public so `tests/memory_golden_fixture_e2e.rs`
-/// can drive it; it walks the RPC handlers, which is why it stayed host-side.
-pub mod store_golden;
pub mod sync;
pub mod tool_memory;
pub mod tree;
diff --git a/src/openhuman/modules/memory.rs b/src/openhuman/modules/memory.rs
index d9abd59f1c..5612176bb2 100644
--- a/src/openhuman/modules/memory.rs
+++ b/src/openhuman/modules/memory.rs
@@ -48,7 +48,7 @@ use tinymemory_api::capabilities::{Capabilities, Capability};
/// Checked against the registry pin by `the_capability_list_matches_the_pinned_release`,
/// so bumping the pin without re-reading the list is a red test rather than a
/// silent over-claim.
-pub(crate) const ARTIFACT_CAPABILITIES_PIN: &str = "1.5.0";
+pub(crate) const ARTIFACT_CAPABILITIES_PIN: &str = "1.6.0";
/// The capability families the **pinned artifact** actually serves.
///
diff --git a/src/openhuman/modules/ops.rs b/src/openhuman/modules/ops.rs
index c5d5d6f596..c7f6e10406 100644
--- a/src/openhuman/modules/ops.rs
+++ b/src/openhuman/modules/ops.rs
@@ -287,6 +287,16 @@ fn module_config(config: &Config, id: &str) -> serde_json::Value {
"cloud_embedding_model": config.memory.embedding_model,
"cloud_embedding_dimensions": config.memory.embedding_dimensions,
"models_supporting_dimensions": [],
+ // The periodic composio and workspace-source sync loops run INSIDE the
+ // module now (tinymemory#100), and these three are what let them run at
+ // all. Without the cadence the module answers manual-only and skips
+ // every source silently; without the mode `composio_config` never
+ // selects its direct branch and every connection fails. All three are
+ // `#[serde(default)]` upstream, so an older module ignores them rather
+ // than failing to load.
+ "memory_sync_interval_secs": config.memory_sync_interval_secs,
+ "composio_mode": config.composio.mode,
+ "composio_entity_id": config.composio.entity_id,
"driver_id": "tinymemory",
})
}
diff --git a/src/openhuman/modules/registry.rs b/src/openhuman/modules/registry.rs
index 0016a2c627..8680e99a1d 100644
--- a/src/openhuman/modules/registry.rs
+++ b/src/openhuman/modules/registry.rs
@@ -202,63 +202,63 @@ const TINYMEMORY: ModuleRecord = ModuleRecord {
description: "Local memory engine: store, ranked recall, and portable export",
bus_name: "ai.tinyhumans.tinymemory.Memory",
object_path: "/ai/tinyhumans/tinymemory/Memory",
- version: "1.5.0",
- release_url: "https://github.com/tinyhumansai/tinymemory/releases/tag/v1.5.0",
+ version: "1.6.0",
+ release_url: "https://github.com/tinyhumansai/tinymemory/releases/tag/v1.6.0",
assets: &[
PlatformAsset {
host_key: "ubuntu-24.04-x86_64",
- archive: "tinymemory-module-1.5.0-ubuntu-24.04-x86_64.tar.gz",
- sha256: "6eba61260a1656bd9721f5e41fc4c2f4a858c386b5f374588209686558885e80",
+ archive: "tinymemory-module-1.6.0-ubuntu-24.04-x86_64.tar.gz",
+ sha256: "a780b495e3cf9c1f4270226001848be6efb9bc97424b377af03d67e6ab1aee3a",
},
PlatformAsset {
host_key: "ubuntu-24.04-arm64",
- archive: "tinymemory-module-1.5.0-ubuntu-24.04-arm64.tar.gz",
- sha256: "87631efcbd896353c2491c1da63193f2cba8a12796405c64f06a34e07b7d03f0",
+ archive: "tinymemory-module-1.6.0-ubuntu-24.04-arm64.tar.gz",
+ sha256: "2bc60707e0d2ecc5bd6693ad6d29ef5652c0e64efa06fc602f0972cd8e6ab887",
},
PlatformAsset {
host_key: "ubuntu-22.04-x86_64",
- archive: "tinymemory-module-1.5.0-ubuntu-22.04-x86_64.tar.gz",
- sha256: "299c45a7cdefe57f81536bfd5b4445645e5a916c6a1b9e7c9e6d4348c45de000",
+ archive: "tinymemory-module-1.6.0-ubuntu-22.04-x86_64.tar.gz",
+ sha256: "7b932203e56867d2c1a0cd22573bea096e664a713dddad37255f5f401affbd5e",
},
PlatformAsset {
host_key: "ubuntu-22.04-arm64",
- archive: "tinymemory-module-1.5.0-ubuntu-22.04-arm64.tar.gz",
- sha256: "3d3a5f702c40558c8df8c5f9ab04f8c1e40080e107016f4b79a9814496cf173d",
+ archive: "tinymemory-module-1.6.0-ubuntu-22.04-arm64.tar.gz",
+ sha256: "e7fef115574038317c82482e812400254634a5517554a25ed51ed23e34ff057f",
},
PlatformAsset {
host_key: "macos-26-arm64",
- archive: "tinymemory-module-1.5.0-macos-26-arm64.tar.gz",
- sha256: "cc16c048177fd4e1dba7f3a4dafd1aaa15a4409fa6e7caab8fd67caf77fca893",
+ archive: "tinymemory-module-1.6.0-macos-26-arm64.tar.gz",
+ sha256: "f14ea5685ae8560622289a4ec7aa4c1f1edc6e529f0afbbd213cdbff7d8b5a3c",
},
PlatformAsset {
host_key: "macos-26-x86_64",
- archive: "tinymemory-module-1.5.0-macos-26-x86_64.tar.gz",
- sha256: "1b445e6de41295d185e1e6132f1ed3acf55c95eee78ab980e4f9e731b2e31626",
+ archive: "tinymemory-module-1.6.0-macos-26-x86_64.tar.gz",
+ sha256: "61f67406736d818244e751fc052aa260d33d942c9ea172df7537410f19610825",
},
PlatformAsset {
host_key: "macos-15-arm64",
- archive: "tinymemory-module-1.5.0-macos-15-arm64.tar.gz",
- sha256: "068792de1e924cbde9582750378198e3afc4d06224db93ffdfc334854e7ee398",
+ archive: "tinymemory-module-1.6.0-macos-15-arm64.tar.gz",
+ sha256: "98c369b79c0bc0d41cc7692a0d6b1fbd1d151b2e7587dc7214ed0413f303f260",
},
PlatformAsset {
host_key: "macos-15-x86_64",
- archive: "tinymemory-module-1.5.0-macos-15-x86_64.tar.gz",
- sha256: "ee4cd283e12ccce85038bbc14f606680dcaa0e9e0c4358bfaeab18733f166f8c",
+ archive: "tinymemory-module-1.6.0-macos-15-x86_64.tar.gz",
+ sha256: "fb87b6aa29284908ca23b4eeab80a282b0c9700aaeb768c1cfcbab63f3161522",
},
PlatformAsset {
host_key: "windows-2025-x86_64",
- archive: "tinymemory-module-1.5.0-windows-2025-x86_64.zip",
- sha256: "030c09ece1a8dd27cf03ffae54bd1511e5997039bda9b3097afc7b77f22a1c80",
+ archive: "tinymemory-module-1.6.0-windows-2025-x86_64.zip",
+ sha256: "ddcd7cf888408f42f249b79a4b84b55151958e8733310c4d8b3cc3532eedc3ae",
},
PlatformAsset {
host_key: "windows-2022-x86_64",
- archive: "tinymemory-module-1.5.0-windows-2022-x86_64.zip",
- sha256: "335575e0396c947d98f6d44f3c1a9cd0bdb996850df16ba578ce4d8ce9c37686",
+ archive: "tinymemory-module-1.6.0-windows-2022-x86_64.zip",
+ sha256: "19e3b1cfbfef9989782f3627952c1bbba2ba280cee65fdc4fbd7cc2e620d0b4d",
},
PlatformAsset {
host_key: "windows-11-arm64",
- archive: "tinymemory-module-1.5.0-windows-11-arm64.zip",
- sha256: "4bacf1412cf54833b910ece6f5a3b1c952b014c905320ec257aeeae0cf122b95",
+ archive: "tinymemory-module-1.6.0-windows-11-arm64.zip",
+ sha256: "319b68056f62e3f295820d83138a5b485c8ed2216805480d9b3c119c12726b59",
},
],
// Eager, unlike the two codecs above. A codec that is never asked for should
diff --git a/tests/memory_golden_fixture_e2e.rs b/tests/memory_golden_fixture_e2e.rs
index ed5c51deef..1064755ec8 100644
--- a/tests/memory_golden_fixture_e2e.rs
+++ b/tests/memory_golden_fixture_e2e.rs
@@ -46,7 +46,13 @@ use std::sync::{Arc, Mutex, OnceLock};
use tempfile::tempdir;
-use openhuman_core::openhuman::memory::store_golden as golden;
+// The fixture seeder is a module of THIS test target, not of the library.
+// It used to be `openhuman::memory::store_golden`, declared `pub mod` and so
+// compiled into the shipped binary — seven `tinymemory_core::` references that
+// kept the engine crate in the product dependency graph purely to seed a
+// fixture (#5560).
+#[path = "support/memory_golden.rs"]
+mod golden;
// ── Fixture layout ───────────────────────────────────────────────────────────
diff --git a/src/openhuman/memory/store_golden.rs b/tests/support/memory_golden.rs
similarity index 91%
rename from src/openhuman/memory/store_golden.rs
rename to tests/support/memory_golden.rs
index fd001c265c..9cc8c9504d 100644
--- a/src/openhuman/memory/store_golden.rs
+++ b/tests/support/memory_golden.rs
@@ -2,11 +2,53 @@
//!
//! This module is the engine behind `tests/memory_golden_fixture_e2e.rs`, the
//! schema gate that stands between a memory-store change and a corrupted user
-//! workspace. It lives in-crate rather than in the test file because seeding a
-//! *complete* workspace needs `pub(crate)` reach that an integration test does
-//! not have — `MemoryClient::profile_conn`, `trees::store::insert_summary_tx`,
-//! and `trees::store::update_tree_after_seal_tx` are all deliberately
-//! crate-private escape hatches.
+//! workspace.
+//!
+//! # Why it is a test-target module and not a library one (#5560)
+//!
+//! It used to be `src/openhuman/memory/store_golden.rs`, declared
+//! `pub mod store_golden;` — **not** `#[cfg(test)]` — so it compiled into the
+//! shipped library and its seven `tinymemory_core::` references were production
+//! references, keeping the engine crate in the product dependency graph for the
+//! sake of a fixture.
+//!
+//! Its own module doc justified living in-crate by saying it needed
+//! `pub(crate)` reach an integration test does not have, naming
+//! `MemoryClient::profile_conn`, `trees::store::insert_summary_tx` and
+//! `trees::store::update_tree_after_seal_tx` as "deliberately crate-private
+//! escape hatches". That was true before the memory extraction and is not true
+//! now: all three live in `tinymemory-core`, a *different* crate, where
+//! `pub(crate)` would have been unreachable from `src/` too — and all three are
+//! `pub`. Every OpenHuman item this file names (`memory::ops::*`,
+//! `memory::rpc_models::QueryNamespaceRequest`, `config::Config`) is `pub` as
+//! well, so nothing here ever needed in-crate reach.
+//!
+//! The two alternatives were considered and are worse:
+//!
+//! - **`#[cfg(test)]` on the module** does not work at all. `cfg(test)` is set
+//! only for the crate own unit-test build; an integration test links the
+//! library as an ordinary dependency, so the module would simply not exist
+//! and the golden gate would stop compiling.
+//! - **Routing it onto the memory contract** is both blocked and beside the
+//! point. Blocked because `MemoryChunks` is a read family with no write or
+//! transaction door, and this seeder writes through `store::chunks`,
+//! `namespace_store::{events, fts5, profile, segments}` and two `_tx` tree
+//! helpers inside one transaction. Beside the point because the gate exists
+//! to exercise the engine own DDL and write paths against a `.db` built by
+//! an older binary — a contract-routed seeder would be testing the module
+//! wire surface, which is a different test.
+//!
+//! So it moved here. `tinymemory-core` is a **dev-dependency**
+//! (with `features = ["test-support"]`), which integration tests link exactly
+//! as they link `tinymemory-api`; `memory_golden_fixture_e2e.rs` already calls
+//! `tinymemory_core::global::init` directly, so this file sits in the same
+//! dependency position as the code that drives it. Nothing else changed: the
+//! only edits are the four `crate::openhuman::` paths, rewritten to name the
+//! library from outside as `openhuman_core::openhuman::`.
+//!
+//! Included as a module rather than being its own `tests/*.rs` file so cargo
+//! does not build it as a second test target — the same reason
+//! `tests/raw_coverage/` is a plain directory rather than a set of targets.
//!
//! # The four entry points
//!
@@ -43,12 +85,12 @@ use std::path::{Path, PathBuf};
use anyhow::{Context as _, Result};
use chrono::{DateTime, TimeZone, Utc};
-use crate::openhuman::config::Config;
-use crate::openhuman::memory::ops::{
+use openhuman_core::openhuman::config::Config;
+use openhuman_core::openhuman::memory::ops::{
doc_list, doc_put, graph_query, graph_upsert, kv_get, memory_query_namespace, GraphQueryParams,
GraphUpsertParams, KvGetDeleteParams, KvSetParams, NamespaceOnlyParams, PutDocParams,
};
-use crate::openhuman::memory::rpc_models::QueryNamespaceRequest;
+use openhuman_core::openhuman::memory::rpc_models::QueryNamespaceRequest;
use tinymemory_api::chunks::{Chunk, Metadata, SourceKind, SourceRef};
use tinymemory_core::store::chunks;
use tinymemory_core::store::namespace_store::{events, fts5, profile, segments};
@@ -190,7 +232,7 @@ async fn seed_documents() -> Result<()> {
async fn seed_kv() -> Result<()> {
for namespace in [None, Some(NAMESPACE_PRIMARY.to_string())] {
tracing::debug!(?namespace, key = KV_KEY, "[golden] seeding kv");
- crate::openhuman::memory::ops::kv_set(KvSetParams {
+ openhuman_core::openhuman::memory::ops::kv_set(KvSetParams {
namespace: namespace.clone(),
key: KV_KEY.to_string(),
value: serde_json::json!({ "fixture": "golden", "v": 1 }),