Skip to content

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

chore: files changed crates/openhuman-core/src/memory/layout_migration/app_host_tests.rs,crates/open

Steven Enamakel2a45b90022ed
diff --git a/crates/openhuman-core/src/memory/layout_migration/app_host_tests.rs b/crates/openhuman-core/src/memory/layout_migration/app_host_tests.rs
index e652be879d..40e93c7cdb 100644
--- a/crates/openhuman-core/src/memory/layout_migration/app_host_tests.rs
+++ b/crates/openhuman-core/src/memory/layout_migration/app_host_tests.rs
@@ -7,7 +7,7 @@ use super::*;
use crate::memory::engine::install_test_engine_for_root;
use crate::memory::layout_migration::ops::scan;
use crate::memory::layout_migration::test_host::{count, fact};
-use tinymemory_tools::layout_migration::{FsLegacyClaim, LayoutHost, Outcome, Trigger};
+use tinymemory_tools::layout_migration::{FsLegacyClaim, LayoutHost, LegacyClaim, Outcome, Trigger};
const ACCOUNT: &str = "0123456789abcdef01234567";
@@ -91,7 +91,7 @@ fn every_account_on_a_self_hosted_engine_shares_one_claim() {
let key_b = claim(&b).unwrap().unwrap();
assert_eq!(key_a.marker_path(), key_b.marker_path());
assert_eq!(key_a.marker_path().parent().unwrap().parent().unwrap().parent().unwrap(), tmp.path());
- assert_eq!(key_a.owner(), &format!("user:{ACCOUNT}"));
+ assert_eq!(key_a.owner(), format!("user:{ACCOUNT}"));
let hosted = signed_in(&tmp);
assert!(claim(&hosted).unwrap().is_none());
diff --git a/crates/openhuman-core/src/memory/layout_migration/ops.rs b/crates/openhuman-core/src/memory/layout_migration/ops.rs
index 9c69767f7b..d31ac4503f 100644
--- a/crates/openhuman-core/src/memory/layout_migration/ops.rs
+++ b/crates/openhuman-core/src/memory/layout_migration/ops.rs
@@ -4,11 +4,11 @@
//! This module supplies the host executor, workspace key, cross-driver gate,
//! billing-independent scheduler pause and wire error mapping.
-use std::path::{Path, PathBuf};
-use std::sync::{Arc, LazyLock};
+use std::path::PathBuf;
+use std::sync::Arc;
use tinymemory_tools::layout_migration as lm;
-use tinymemory_tools::run_slots::{MigrationSpawner, MigrationTask, RunSlots};
+use tinymemory_tools::run_slots::{MigrationSpawner, MigrationTask};
use super::app_host::{from_module, AppHost};
use super::{LayoutHost, MigrationState, MigrationStatus, ScanView, Trigger};
@@ -17,7 +17,6 @@ use crate::core::runtime::DispatchCtx;
use crate::memory::run_slots::{self, BACKFILL, IMPORT, MIGRATION};
use tinymemory_api::Result;
-static MIGRATION_SLOTS: LazyLock<RunSlots<PathBuf>> = LazyLock::new(RunSlots::new);
/// `memory_migration_start` params.
#[derive(Debug, Clone, Default, serde::Deserialize)]
@@ -38,7 +37,7 @@ impl MigrationSpawner for ContextSpawner {
fn service(ctx: &DispatchCtx) -> lm::MigrationService<tinymemory_tools::run_slots::RunStartGate, ContextSpawner> {
lm::MigrationService::new(
- MIGRATION_SLOTS.clone(),
+ MIGRATION.clone(),
run_slots::START_GATE.clone(),
ContextSpawner(ctx.clone()),
)
@@ -46,7 +45,7 @@ fn service(ctx: &DispatchCtx) -> lm::MigrationService<tinymemory_tools::run_slot
/// Whether this workspace currently owns a migration task.
pub(crate) fn is_running(config: &Config) -> bool {
- MIGRATION_SLOTS.is_running(&config.workspace_dir)
+ MIGRATION.is_running(&config.workspace_dir)
}
/// Whether `host`'s account has legacy memory to move.