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
Pin tinymemory v1.5.0 and guard the ten members the contract just gained
Shanu1a4cba8f48dc
diff --git a/.github/workflows/ci-full.yml b/.github/workflows/ci-full.ymlindex ab494db79a..1c9c788175 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.4.0-ubuntu-22.04-x86_64.tar.gz"+ memory_archive="$memory_dir/tinymemory-module-1.5.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.4.0/$(basename "$memory_archive")" \+ "https://github.com/tinyhumansai/tinymemory/releases/download/v1.5.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.ymlindex b68b004596..9f07f77acb 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.4.0-ubuntu-22.04-x86_64.tar.gz"+ memory_archive="$memory_dir/tinymemory-module-1.5.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.4.0/$(basename "$memory_archive")" \+ "https://github.com/tinyhumansai/tinymemory/releases/download/v1.5.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.ymlindex 55dd78f798..9b7029b109 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.4.0-ubuntu-22.04-x86_64.tar.gz"+ memory_archive="$memory_dir/tinymemory-module-1.5.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.4.0/$(basename "$memory_archive")" \+ "https://github.com/tinyhumansai/tinymemory/releases/download/v1.5.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.4.0-ubuntu-22.04-x86_64.tar.gz"+ memory_archive="$memory_dir/tinymemory-module-1.5.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.4.0/$(basename "$memory_archive")" \+ "https://github.com/tinyhumansai/tinymemory/releases/download/v1.5.0/$(basename "$memory_archive")" \--output "$memory_archive"echo "d722d36e9fc35ef4ddbbb96499949a6a608f044e924d023f719deb9aa3f5875d $memory_archive" \| sha256sum --checkdiff --git a/Cargo.lock b/Cargo.lockindex e72749a48b..4a792d65a9 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -6553,7 +6553,7 @@ dependencies = [[[package]]name = "tinymemory"-version = "1.3.0"+version = "1.4.0"dependencies = ["anyhow","async-trait",diff --git a/src/openhuman/memory/guard/families.rs b/src/openhuman/memory/guard/families.rsindex f2f89b8f34..fcec9da2ae 100644--- a/src/openhuman/memory/guard/families.rs+++ b/src/openhuman/memory/guard/families.rs@@ -36,7 +36,7 @@ use crate::openhuman::memory::api::chunks::Chunk;use crate::openhuman::memory::api::error::MemoryError;use crate::openhuman::memory::api::goals::GoalsDoc;use crate::openhuman::memory::api::provider::chunks::{- ChunkDetail, ChunkEmbedding, ChunkQuery, MemoryChunks,+ ChunkDetail, ChunkEmbedding, ChunkListRow, ChunkQuery, MemoryChunks, SourceTotal,};use crate::openhuman::memory::api::provider::episodic::{ConversationSegment, EpisodicTurn, MemoryEpisodic,@@ -53,7 +53,8 @@ use crate::openhuman::memory::api::provider::retrieval::{RetrievalResponse, SourceRetrievalQuery,};use crate::openhuman::memory::api::provider::types::{- DiffReport, EntityHit, IngestItem, IngestOutcome, MaintenanceReport, SnapshotRef, SourceItem,+ ChunkEntityOccurrence, DiffReport, EntityHit, EntityOccurrence, ForgetOutcome, ForgetSelector,+ IngestItem, IngestOutcome, MaintenanceReport, PurgeOutcome, SnapshotRef, SourceItem,SourceScope,};use crate::openhuman::memory::api::provider::{@@ -62,7 +63,9 @@ use crate::openhuman::memory::api::provider::{MemoryTree,};use crate::openhuman::memory::api::tool_memory::ToolMemoryRule;-use crate::openhuman::memory::api::tree::{IngestRequest, QueryResult, TreeStatus};+use crate::openhuman::memory::api::tree::{+ IngestRequest, QueryResult, SummaryForest, TreeLeaf, TreeStatus,+};use crate::openhuman::memory::api::types::NamespaceMemoryHit;use crate::openhuman::memory::api::types::{GraphRelationRecord, MemoryKvRecord, MemoryTaint, NamespaceDocumentInput,@@ -476,6 +479,39 @@ impl MemoryTree for GuardedTree {.admit_write(Capability::Tree, "tree.cascade", namespace, false)?;self.family()?.cascade(namespace).await}++ /// Enumerates the sealed forest, so it narrows by the ambient scope for the+ /// same reason [`Self::query_source`] does: a summary is derived from the+ /// chunks beneath it, and handing back a node built from sources the caller+ /// may not read discloses their contents in condensed form.+ async fn summary_forest(+ &self,+ limit: usize,+ scope: Option<&SourceScope>,+ ) -> Result<SummaryForest, MemoryError> {+ self.policy+ .admit_read(Capability::Tree, "tree.summary_forest", NO_NAMESPACE, false)?;+ let effective = self.policy.narrow_scope(scope);+ self.family()?+ .summary_forest(limit, effective.as_ref())+ .await+ }++ /// Leaves are chunks, so this is the same disclosure as+ /// [`Self::query_source`] with a different ordering, and takes the same+ /// intersection.+ async fn recent_leaves(+ &self,+ limit: usize,+ scope: Option<&SourceScope>,+ ) -> Result<Vec<TreeLeaf>, MemoryError> {+ self.policy+ .admit_read(Capability::Tree, "tree.recent_leaves", NO_NAMESPACE, false)?;+ let effective = self.policy.narrow_scope(scope);+ self.family()?+ .recent_leaves(limit, effective.as_ref())+ .await+ }}// ── Entities ─────────────────────────────────────────────────────────────────@@ -530,6 +566,58 @@ impl MemoryEntities for GuardedEntities {)?;self.family()?.touch_entities(namespace, entity_ids).await}++ /// The occurrence index has no namespace and the contract gives this member+ /// no scope argument, so there is nothing to intersect — the tier check is+ /// the whole gate. Worth stating rather than leaving as an apparent+ /// omission beside the scoped members above.+ async fn top_entities(+ &self,+ kind: Option<&str>,+ limit: usize,+ ) -> Result<Vec<EntityOccurrence>, MemoryError> {+ self.policy.admit_read(+ Capability::Entities,+ "entities.top_entities",+ NO_NAMESPACE,+ false,+ )?;+ self.family()?.top_entities(kind, limit).await+ }++ /// Scoped by the chunk ids the caller already holds: it can only name+ /// chunks a previous, scoped read handed it, so this adds no reach beyond+ /// the read that produced them.+ async fn chunk_entities(+ &self,+ chunk_ids: &[String],+ kinds: Option<&[String]>,+ ) -> Result<Vec<ChunkEntityOccurrence>, MemoryError> {+ self.policy.admit_read(+ Capability::Entities,+ "entities.chunk_entities",+ NO_NAMESPACE,+ false,+ )?;+ self.family()?.chunk_entities(chunk_ids, kinds).await+ }++ /// Returns ids only, never content. A caller still has to read those chunks+ /// through [`MemoryChunks`] to see anything, and that path applies the+ /// scope intersection.+ async fn entity_chunk_ids(+ &self,+ entity_id: &str,+ limit: usize,+ ) -> Result<Vec<String>, MemoryError> {+ self.policy.admit_read(+ Capability::Entities,+ "entities.entity_chunk_ids",+ NO_NAMESPACE,+ false,+ )?;+ self.family()?.entity_chunk_ids(entity_id, limit).await+ }}// ── Graph ────────────────────────────────────────────────────────────────────@@ -766,6 +854,23 @@ impl MemorySourceSink for GuardedSources {)?;self.family()?.forget_source(source_id).await}++ /// The one door for every scoped forget, so it takes the same write tier as+ /// [`Self::forget_source`]. The selector names what to remove rather than+ /// carrying content, which is why the egress flag is `false` — the same+ /// reading its single-source sibling makes.+ async fn forget_matching(+ &self,+ selector: &ForgetSelector,+ ) -> Result<ForgetOutcome, MemoryError> {+ self.policy.admit_write(+ Capability::Sources,+ "sources.forget_matching",+ NO_NAMESPACE,+ false,+ )?;+ self.family()?.forget_matching(selector).await+ }}// ── Maintenance ──────────────────────────────────────────────────────────────@@ -814,6 +919,21 @@ impl MemoryMaintenance for GuardedMaintenance {)?;self.family()?.doctor().await}++ /// Empties the whole store, so it takes the write tier rather than+ /// `doctor`'s read one — and deliberately carries no scope, because there+ /// is no scoped reading of "purge everything". A source-restricted caller+ /// that reached this would be destroying rows it is not even allowed to+ /// read; the write tier is what stops it.+ async fn purge_all(&self) -> Result<PurgeOutcome, MemoryError> {+ self.policy.admit_write(+ Capability::Maintenance,+ "maintenance.purge_all",+ NO_NAMESPACE,+ false,+ )?;+ self.family()?.purge_all().await+ }}// ── People ───────────────────────────────────────────────────────────────────@@ -938,6 +1058,66 @@ impl MemoryChunks for GuardedChunks {self.family()?.list_chunks(query, effective.as_ref()).await}+ /// The count that labels a [`Self::list_chunks`] page, and it must be+ /// narrowed by exactly the same rule. A total computed against a wider+ /// scope than the page it labels leaks the existence of rows the caller may+ /// not read — "showing 20 of 4000" tells a source-restricted turn how much+ /// it is not being shown.+ async fn count_chunks(+ &self,+ query: &ChunkQuery,+ scope: Option<&SourceScope>,+ ) -> Result<u64, MemoryError> {+ self.policy.admit_read(+ Capability::Chunks,+ "chunks.count_chunks",+ NO_NAMESPACE,+ false,+ )?;+ let effective = self.policy.narrow_scope(scope);+ self.family()?.count_chunks(query, effective.as_ref()).await+ }++ /// Same rows as [`Self::list_chunks`] with the stored facts beside them, so+ /// the same intersection applies for the same reason.+ async fn list_chunk_details(+ &self,+ query: &ChunkQuery,+ scope: Option<&SourceScope>,+ ) -> Result<Vec<ChunkListRow>, MemoryError> {+ self.policy.admit_read(+ Capability::Chunks,+ "chunks.list_chunk_details",+ NO_NAMESPACE,+ false,+ )?;+ let effective = self.policy.narrow_scope(scope);+ self.family()?+ .list_chunk_details(query, effective.as_ref())+ .await+ }++ /// Per-source totals are computed from the chunks the scope admits, not+ /// filtered afterwards — so a restricted caller must not learn that a+ /// forbidden source exists by seeing its row, nor see a permitted source+ /// carrying a count that includes rows it cannot read.+ async fn source_totals(+ &self,+ limit: usize,+ scope: Option<&SourceScope>,+ ) -> Result<Vec<SourceTotal>, MemoryError> {+ self.policy.admit_read(+ Capability::Chunks,+ "chunks.source_totals",+ NO_NAMESPACE,+ false,+ )?;+ let effective = self.policy.narrow_scope(scope);+ self.family()?+ .source_totals(limit, effective.as_ref())+ .await+ }+async fn get_chunk(&self, chunk_id: &str) -> Result<Option<Chunk>, MemoryError> {self.policy.admit_read(Capability::Chunks, "chunks.get_chunk", NO_NAMESPACE, false)?;diff --git a/src/openhuman/modules/memory.rs b/src/openhuman/modules/memory.rsindex d61e228c1a..d9abd59f1c 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.4.0";+pub(crate) const ARTIFACT_CAPABILITIES_PIN: &str = "1.5.0";/// The capability families the **pinned artifact** actually serves.///diff --git a/src/openhuman/modules/registry.rs b/src/openhuman/modules/registry.rsindex b3e63b261f..0016a2c627 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.4.0",- release_url: "https://github.com/tinyhumansai/tinymemory/releases/tag/v1.4.0",+ version: "1.5.0",+ release_url: "https://github.com/tinyhumansai/tinymemory/releases/tag/v1.5.0",assets: &[PlatformAsset {host_key: "ubuntu-24.04-x86_64",- archive: "tinymemory-module-1.4.0-ubuntu-24.04-x86_64.tar.gz",- sha256: "3cd26ffd585c4ea47e950454208ffbb8028b8c9f288a6d37002b6449a2caea25",+ archive: "tinymemory-module-1.5.0-ubuntu-24.04-x86_64.tar.gz",+ sha256: "6eba61260a1656bd9721f5e41fc4c2f4a858c386b5f374588209686558885e80",},PlatformAsset {host_key: "ubuntu-24.04-arm64",- archive: "tinymemory-module-1.4.0-ubuntu-24.04-arm64.tar.gz",- sha256: "3ab2b78457f46c75e12cba9591a63aec53b9c654b10d28d47af865a03cd79894",+ archive: "tinymemory-module-1.5.0-ubuntu-24.04-arm64.tar.gz",+ sha256: "87631efcbd896353c2491c1da63193f2cba8a12796405c64f06a34e07b7d03f0",},PlatformAsset {host_key: "ubuntu-22.04-x86_64",- archive: "tinymemory-module-1.4.0-ubuntu-22.04-x86_64.tar.gz",- sha256: "d722d36e9fc35ef4ddbbb96499949a6a608f044e924d023f719deb9aa3f5875d",+ archive: "tinymemory-module-1.5.0-ubuntu-22.04-x86_64.tar.gz",+ sha256: "299c45a7cdefe57f81536bfd5b4445645e5a916c6a1b9e7c9e6d4348c45de000",},PlatformAsset {host_key: "ubuntu-22.04-arm64",- archive: "tinymemory-module-1.4.0-ubuntu-22.04-arm64.tar.gz",- sha256: "25a39d8d1b866e3693d0eef6372a5eab74497da8389a04407234139b83b01373",+ archive: "tinymemory-module-1.5.0-ubuntu-22.04-arm64.tar.gz",+ sha256: "3d3a5f702c40558c8df8c5f9ab04f8c1e40080e107016f4b79a9814496cf173d",},PlatformAsset {host_key: "macos-26-arm64",- archive: "tinymemory-module-1.4.0-macos-26-arm64.tar.gz",- sha256: "26ecc5f8f066d2ef3ce7a88c9373683dfd8c2b79b60d5fe32c07bca793c2be9d",+ archive: "tinymemory-module-1.5.0-macos-26-arm64.tar.gz",+ sha256: "cc16c048177fd4e1dba7f3a4dafd1aaa15a4409fa6e7caab8fd67caf77fca893",},PlatformAsset {host_key: "macos-26-x86_64",- archive: "tinymemory-module-1.4.0-macos-26-x86_64.tar.gz",- sha256: "1c82e091618f0b390c9d772390b86d8ee597d477ace279133b7fd5ed2f50f1cd",+ archive: "tinymemory-module-1.5.0-macos-26-x86_64.tar.gz",+ sha256: "1b445e6de41295d185e1e6132f1ed3acf55c95eee78ab980e4f9e731b2e31626",},PlatformAsset {host_key: "macos-15-arm64",- archive: "tinymemory-module-1.4.0-macos-15-arm64.tar.gz",- sha256: "1ba808517f9c1e2d438dabacb214ea40112d2f659ae1bd751664fd1103309e3d",+ archive: "tinymemory-module-1.5.0-macos-15-arm64.tar.gz",+ sha256: "068792de1e924cbde9582750378198e3afc4d06224db93ffdfc334854e7ee398",},PlatformAsset {host_key: "macos-15-x86_64",- archive: "tinymemory-module-1.4.0-macos-15-x86_64.tar.gz",- sha256: "c942505e7ee7d4311a9a81826ae66512aecfab3b3083c806421cb35c775bfe22",+ archive: "tinymemory-module-1.5.0-macos-15-x86_64.tar.gz",+ sha256: "ee4cd283e12ccce85038bbc14f606680dcaa0e9e0c4358bfaeab18733f166f8c",},PlatformAsset {host_key: "windows-2025-x86_64",- archive: "tinymemory-module-1.4.0-windows-2025-x86_64.zip",- sha256: "69ad29b061085da95939237ada6e323f5b04c80837a637ad0a55484ec7542226",+ archive: "tinymemory-module-1.5.0-windows-2025-x86_64.zip",+ sha256: "030c09ece1a8dd27cf03ffae54bd1511e5997039bda9b3097afc7b77f22a1c80",},PlatformAsset {host_key: "windows-2022-x86_64",- archive: "tinymemory-module-1.4.0-windows-2022-x86_64.zip",- sha256: "31ff3dfc7b1ea0b4749beec49edf6d44b6cc8e3a49d2c20dde6306bce924f91b",+ archive: "tinymemory-module-1.5.0-windows-2022-x86_64.zip",+ sha256: "335575e0396c947d98f6d44f3c1a9cd0bdb996850df16ba578ce4d8ce9c37686",},PlatformAsset {host_key: "windows-11-arm64",- archive: "tinymemory-module-1.4.0-windows-11-arm64.zip",- sha256: "00c111b3ad2e42b092f21b44a7d98764d6af8c48bd03995cc751af079bf7ed8a",+ archive: "tinymemory-module-1.5.0-windows-11-arm64.zip",+ sha256: "4bacf1412cf54833b910ece6f5a3b1c952b014c905320ec257aeeae0cf122b95",},],// Eager, unlike the two codecs above. A codec that is never asked for shoulddiff --git a/vendor/tinymemory b/vendor/tinymemoryindex 38e03fb90d..d85b8f9814 160000--- a/vendor/tinymemory+++ b/vendor/tinymemory@@ -1 +1 @@-Subproject commit 38e03fb90db769b5ce987927d603b0e53bf6c0c8+Subproject commit d85b8f98147c4706791a5e1ae1e4127d7bbdc298