Skip to content

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

Merge upstream/main

Shanu7403a566b7e5
diff --cc src/openhuman/memory/direct_engine_refs_tests.rs
index 02d2ccdcc0,720c493ff4..81f11a5259
--- a/src/openhuman/memory/direct_engine_refs_tests.rs
+++ b/src/openhuman/memory/direct_engine_refs_tests.rs
@@@ -394,11 -418,11 +418,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/cron/scheduler.rs",
- "src/openhuman/config/ops/model.rs",
-- Verdict::NeedsWiderSeam,
- "task-local host policy living in the engine crate (source_scope::with_source_scope); belongs in tinymemory-api, not a bus method",
- "the re-embed queue (queue::ensure_reembed_backfill, queue::requeue_failed_after_provider_change) has no capability family",
-- ),
(
"src/openhuman/desktop/app_state/ops.rs",
Verdict::NeedsWiderSeam,
diff --cc src/openhuman/memory/tree/tree/rpc.rs
index 1def052e64,86b745fa2b..42ec35151f
--- a/src/openhuman/memory/tree/tree/rpc.rs
+++ b/src/openhuman/memory/tree/tree/rpc.rs
@@@ -1091,7 -1105,8 +1091,7 @@@ mod tests
use serde_json::json;
use tempfile::TempDir;
use tinycortex::memory::ingest::canonicalize::document::DocumentInput;
- use tinymemory_core::store::chunks::types::SourceKind;
+ use tinymemory_api::chunks::SourceKind;
- use tinymemory_core::queue as jobs;
fn test_config() -> (TempDir, Config) {
let tmp = TempDir::new().unwrap();
diff --cc src/openhuman/modules/memory.rs
index e1b75fad49,7d212fcd2f..5660f4ae99
--- a/src/openhuman/modules/memory.rs
+++ b/src/openhuman/modules/memory.rs
@@@ -122,15 -140,16 +140,16 @@@ fn capabilities_for(assume_full: bool)
fn artifact_serves(capability: Capability) -> bool {
assume_full_capabilities() || ARTIFACT_CAPABILITIES.contains(&capability)
}
- 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::health::MemoryHealth;
- use crate::openhuman::memory::api::provider::types::{
+ use async_trait::async_trait;
+ use tinymemory_api::chunks::Chunk;
+ use tinymemory_api::error::MemoryError;
+ use tinymemory_api::goals::GoalsDoc;
+ use tinymemory_api::health::MemoryHealth;
+ use tinymemory_api::provider::types::{
DiffReport, EntityHit, ExportPage, ExportRecord, ImportOutcome, IngestItem, IngestOutcome,
-- MaintenanceReport, SnapshotRef, SourceItem, SourceScope,
++ MaintenanceReport, QueueFailure, QueueStats, SnapshotRef, SourceItem, SourceScope, StoreStats,
};
- use crate::openhuman::memory::api::provider::{
+ use tinymemory_api::provider::{
AddressBookSeedOutcome, ChunkDetail, ChunkEmbedding, ChunkQuery, CoverWindowQuery, EntityMatch,
FacetType, FastRetrieveQuery, MemoryChunks, MemoryCore, MemoryDiff, MemoryDocuments,
MemoryEntities, MemoryGoals, MemoryGraph, MemoryIngest, MemoryMaintenance, MemoryPeople,
@@@ -950,6 -969,6 +969,18 @@@ impl MemoryMaintenance for ModuleMemory
async fn doctor(&self) -> Result<MaintenanceReport, MemoryError> {
module_call!(self, "doctor", "Doctor", ())
}
++ async fn retry_failed(&self) -> Result<MaintenanceReport, MemoryError> {
++ module_call!(self, "retry_failed", "RetryFailed", ())
++ }
++ async fn store_stats(&self) -> Result<StoreStats, MemoryError> {
++ module_call!(self, "store_stats", "StoreStats", ())
++ }
++ async fn queue_stats(&self, kind: Option<&str>) -> Result<QueueStats, MemoryError> {
++ module_call!(self, "queue_stats", "QueueStats", (kind,))
++ }
++ async fn latest_queue_failure(&self) -> Result<Option<QueueFailure>, MemoryError> {
++ module_call!(self, "latest_queue_failure", "LatestQueueFailure", ())
++ }
}
#[cfg(test)]
diff --cc tests/raw_coverage/memory_threads_raw_coverage_e2e.rs
index 5f1347b325,a3b3e4546f..1511f00fe5
--- a/tests/raw_coverage/memory_threads_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/memory_threads_raw_coverage_e2e.rs
@@@ -2091,10 -2091,12 +2091,15 @@@ fn memory_retrieval_embedding_and_rpc_m
category: Some(MemoryCategory::Conversation),
session_id: Some("session-2"),
min_score: Some(0.5),
+ // Self-echo exclusion is a separate concern from this coverage test's
+ // namespace/category/session assertions below; `None` means "exclude
+ // nothing", matching this literal's pre-existing behavior before the
+ // field was added.
+ exclude_session_id: None,
cross_session: true,
+ // Shape assertion, not behaviour: this exercises the field surface, so
+ // the exclusion is the "exclude nothing" value.
+ exclude_session_id: None,
};
assert!(opts.cross_session);
assert_eq!(opts.category.unwrap().to_string(), "conversation");