Skip to content

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

chore(memory): remove unused identity imports

Steven Enamakel0f9cd321fc52
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs
index 3c96f65763..125ef692b0 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs
@@ -576,8 +576,7 @@ async fn the_approval_context_survives_await_points_and_a_move_between_tasks() {
/// an environment without one leaves the run's own alone.
#[test]
fn the_memory_identity_rides_the_run_and_its_children() {
- use tinymemory_tools::layout::identity::Identity;
-
+
let mut context = OpenHumanRunContext::new();
assert_eq!(context.memory_identity, None);
diff --git a/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs b/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs
index ebb77df653..dbbc8bc6d1 100644
--- a/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs
@@ -4,7 +4,6 @@ use chrono::Utc;
use tinyagents_harness::summarization::ConcatSummarizer;
use crate::memory::lifecycle::hooks::{post_turn, pre_turn_work};
-use tinymemory_tools::layout::identity::Identity;
use crate::memory::test_fixtures::{bind_reference, config_in};
struct Failing;
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/memory_pack_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/memory_pack_tests.rs
index 0499ef1457..89a09cd1ba 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/memory_pack_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/memory_pack_tests.rs
@@ -9,7 +9,6 @@ use tinyagents_harness::context::RunConfig;
use tinyinference_llm::message::Message;
use crate::memory::lifecycle::hooks::{MemoryTurn, TurnPack, OPEN_TAG};
-use tinymemory_tools::layout::identity::Identity;
fn context(pack: Option<TurnPack>) -> RunContext<OpenHumanRunContext> {
let config = crate::config::Config::default();
diff --git a/crates/openhuman-core/src/memory/backfill.rs b/crates/openhuman-core/src/memory/backfill.rs
index f76eb249f1..41810991c5 100644
--- a/crates/openhuman-core/src/memory/backfill.rs
+++ b/crates/openhuman-core/src/memory/backfill.rs
@@ -38,7 +38,7 @@ use serde::{Deserialize, Serialize};
use crate::config::Config;
use crate::memory::engine::{self, BoundEngine};
-use tinymemory_tools::layout::identity::{Identity, ResolvedIdentity};
+use tinymemory_tools::layout::identity::ResolvedIdentity;
use crate::threads::store::blocking as threads;
use tinymemory_api::{Error, Result};
use tinymemory_integrations::import::ImportPhase;
diff --git a/crates/openhuman-core/src/memory/brain.rs b/crates/openhuman-core/src/memory/brain.rs
index 0a98cd3e0b..a9f72b19df 100644
--- a/crates/openhuman-core/src/memory/brain.rs
+++ b/crates/openhuman-core/src/memory/brain.rs
@@ -21,7 +21,6 @@ use crate::config::Config;
use super::engine;
use super::lifecycle::jobs;
-use tinymemory_tools::layout::identity::Identity;
use tinymemory_api::{Error, Result};
/// Largest file `memory_brain_ingest` reads, in bytes.
diff --git a/crates/openhuman-core/src/memory/brain_tests.rs b/crates/openhuman-core/src/memory/brain_tests.rs
index 2f77d0aee7..4b840d2ef5 100644
--- a/crates/openhuman-core/src/memory/brain_tests.rs
+++ b/crates/openhuman-core/src/memory/brain_tests.rs
@@ -1,6 +1,5 @@
use super::*;
-use tinymemory_tools::layout::identity::Identity;
use tinymemory_tools::layout::placement::file_into;
use tinymemory_api::{ItemKind, MemoryMeta, MetaFilter};
diff --git a/crates/openhuman-core/src/memory/confinement_tests.rs b/crates/openhuman-core/src/memory/confinement_tests.rs
index 6deb13f505..fd2fff580f 100644
--- a/crates/openhuman-core/src/memory/confinement_tests.rs
+++ b/crates/openhuman-core/src/memory/confinement_tests.rs
@@ -1,6 +1,5 @@
use std::sync::Arc;
-use tinymemory_api::conformance::ReferenceEngine;
use tinymemory_api::{
Error, LearningKind, MemoryEngine, MemoryMeta, MetaFilter, Namespace, Reach, SourceKind,
SourceRef, StoreItem,
diff --git a/crates/openhuman-core/src/memory/layout_migration/app_host.rs b/crates/openhuman-core/src/memory/layout_migration/app_host.rs
index 2ad9c8fa96..0e2e602c61 100644
--- a/crates/openhuman-core/src/memory/layout_migration/app_host.rs
+++ b/crates/openhuman-core/src/memory/layout_migration/app_host.rs
@@ -12,8 +12,6 @@ use super::claim::ClaimKey;
use super::state::FileStateStore;
use crate::config::{Config, MemoryLayoutMode};
use crate::memory::engine::{self, CORTEXDB_ENGINE};
-use crate::memory::scope;
-use tinymemory_tools::layout::identity::Identity;
use tinymemory_api::{Error, Result};
/// The app's [`lm::LayoutHost`], bound to one account's config.
diff --git a/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rs b/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rs
index ee7c30143b..350490b10f 100644
--- a/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rs
@@ -6,7 +6,6 @@ use tinymemory_api::{
};
use tinymemory_tools::recall::SkipReason;
-use tinymemory_tools::layout::identity::Identity;
use crate::memory::test_fixtures::{bind_reference, config_in, stored};
type PreTurnArgs = (
diff --git a/crates/openhuman-core/src/memory/lifecycle/mod_tests.rs b/crates/openhuman-core/src/memory/lifecycle/mod_tests.rs
index ee8449f713..1b81523f2a 100644
--- a/crates/openhuman-core/src/memory/lifecycle/mod_tests.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/mod_tests.rs
@@ -1,6 +1,5 @@
use super::*;
-use tinymemory_tools::layout::identity::Identity;
use crate::memory::test_fixtures::{bind_reference, config_in};
#[test]
diff --git a/crates/openhuman-core/src/memory/lifecycle/prefetch_tests.rs b/crates/openhuman-core/src/memory/lifecycle/prefetch_tests.rs
index c129592002..702b569977 100644
--- a/crates/openhuman-core/src/memory/lifecycle/prefetch_tests.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/prefetch_tests.rs
@@ -1,6 +1,5 @@
use super::*;
-use tinymemory_tools::layout::identity::Identity;
use crate::memory::test_fixtures::config_in;
const MAX_PENDING: usize = 16;
diff --git a/crates/openhuman-core/src/memory/lifecycle/views.rs b/crates/openhuman-core/src/memory/lifecycle/views.rs
index eac65af2e8..8aa41c5db7 100644
--- a/crates/openhuman-core/src/memory/lifecycle/views.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/views.rs
@@ -7,8 +7,6 @@ use tinymemory_tools::{ContextPack, SessionStart};
use crate::config::schema::MemoryRecallConfig;
use crate::config::Config;
-use crate::memory::scope;
-use tinymemory_tools::layout::identity::Identity;
use tinymemory_api::{Error, Result};
use super::jobs;
diff --git a/crates/openhuman-core/src/memory/lifecycle/views_tests.rs b/crates/openhuman-core/src/memory/lifecycle/views_tests.rs
index cd74459812..d6c1faa431 100644
--- a/crates/openhuman-core/src/memory/lifecycle/views_tests.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/views_tests.rs
@@ -4,7 +4,6 @@ use chrono::Utc;
use tinymemory_api::{LearningKind, MemoryEngine, MemoryMeta, StoreItem};
use crate::memory::lifecycle::hooks::pre_turn_work;
-use tinymemory_tools::layout::identity::Identity;
use crate::memory::test_fixtures::{bind_reference, config_in};
#[test]
diff --git a/crates/openhuman-core/src/memory/schemas_tests.rs b/crates/openhuman-core/src/memory/schemas_tests.rs
index d78ef940e2..a252fc6d08 100644
--- a/crates/openhuman-core/src/memory/schemas_tests.rs
+++ b/crates/openhuman-core/src/memory/schemas_tests.rs
@@ -5,6 +5,7 @@ use crate::core::runtime::DispatchCtx;
use crate::core::runtime::DomainSet;
use crate::memory::test_fixtures::{bind_reference, config_in};
use serde_json::{json, Map, Value};
+use tinymemory_api::MemoryEngine;
/// Every method of the spec's RPC table (`docs/specs/memory-v2.md`), exactly.
const SPEC_METHODS: [&str; 35] = [
diff --git a/crates/openhuman-core/src/memory/tool_writes_tests.rs b/crates/openhuman-core/src/memory/tool_writes_tests.rs
index 1f79b0c827..1d610653f1 100644
--- a/crates/openhuman-core/src/memory/tool_writes_tests.rs
+++ b/crates/openhuman-core/src/memory/tool_writes_tests.rs
@@ -1,5 +1,4 @@
use super::*;
-use tinymemory_tools::layout::identity::Identity;
use crate::memory::test_fixtures::{bind_reference, config_in, stored, RefusingEngine};
use serde_json::json;
use tinymemory_api::Reach;
diff --git a/crates/openhuman-core/src/memory/tools_read_tests.rs b/crates/openhuman-core/src/memory/tools_read_tests.rs
index c73c42071b..7ae83f4d67 100644
--- a/crates/openhuman-core/src/memory/tools_read_tests.rs
+++ b/crates/openhuman-core/src/memory/tools_read_tests.rs
@@ -2,7 +2,6 @@
//! and fetch leave the calling thread out.
use super::*;
-use tinymemory_tools::layout::identity::Identity;
use crate::memory::test_fixtures::{bind_reference, config_in};
use tinymemory_api::MemoryEngine;
diff --git a/crates/openhuman-core/src/memory/tools_tests.rs b/crates/openhuman-core/src/memory/tools_tests.rs
index 62379a2808..0d65951303 100644
--- a/crates/openhuman-core/src/memory/tools_tests.rs
+++ b/crates/openhuman-core/src/memory/tools_tests.rs
@@ -3,7 +3,6 @@ use super::*;
fn ambient() -> DispatchCtx {
DispatchCtx::ambient()
}
-use tinymemory_tools::layout::identity::Identity;
use crate::memory::test_fixtures::{bind_reference, config_in, stored};
use std::path::{Path, PathBuf};
use tinymemory_api::{ItemKind, MetaFilter, Namespace};
diff --git a/crates/openhuman-core/src/profiles/layout_tests.rs b/crates/openhuman-core/src/profiles/layout_tests.rs
index 20bc73dcfb..9022865934 100644
--- a/crates/openhuman-core/src/profiles/layout_tests.rs
+++ b/crates/openhuman-core/src/profiles/layout_tests.rs
@@ -76,8 +76,7 @@ fn a_profile_binds_its_user_root_never_an_org_root() {
#[test]
fn the_memory_binding_wins_over_pins_and_teams() {
- use tinymemory_tools::layout::identity::Identity;
- let layout = profile_layout(Path::new("/srv/oh"), &id());
+ let layout = profile_layout(Path::new("/srv/oh"), &id());
let mut config = profile_config(&layout, &id());
config.memory.agents.insert(
"planner".into(),