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/deletion.rs,crates/openhuman-core/src/memory/s

Steven Enamakeld59f5e57cdd8
diff --git a/crates/openhuman-core/src/memory/deletion.rs b/crates/openhuman-core/src/memory/deletion.rs
index e23230c784..30aeda8647 100644
--- a/crates/openhuman-core/src/memory/deletion.rs
+++ b/crates/openhuman-core/src/memory/deletion.rs
@@ -4,9 +4,11 @@
//! thread it owned) or removing a source asks the engine to delete for good. When memory is off
//! (signed out, no credential) the engine cannot be reached, and when it
//! fails the deletion has not happened. Either way the deletion is recorded
-//! here, in the memory state KV value `pending_deletions`, and [`drain`] runs
-//! it again on the next sign-in ([`super::bus`], on `CredentialChanged`) and
-//! on every background tick, until it succeeds.
+//! here, in the workspace-owned memory state KV value `pending_deletions`,
+//! independent of the active profile/agent scope. The host migrates old
+//! scope-owned queue entries on first access. [`drain`] runs owed work again
+//! on the next sign-in ([`super::bus`], on `CredentialChanged`) and on every
+//! background tick, until it succeeds.
//!
//! Every deletion is hard: a forget by filter removes the matched events by
//! `memory_ids` with an explicit `redact_events` cascade.
diff --git a/crates/openhuman-core/src/memory/state_store.rs b/crates/openhuman-core/src/memory/state_store.rs
index bc4e6a6c44..93214f3541 100644
--- a/crates/openhuman-core/src/memory/state_store.rs
+++ b/crates/openhuman-core/src/memory/state_store.rs
@@ -44,9 +44,7 @@ fn open_quarantining<T: DeserializeOwned>(workspace_dir: &Path, name: &str) -> R
fn profile_layout_for_workspace(
workspace_dir: &Path,
) -> Option<crate::config::schema::ProfileLayout> {
- use crate::config::schema::profile_layout::{
- PROFILE_CONFIG_FILE, PROFILE_WORKSPACE_DIR, USERS_DIR,
- };
+ use crate::config::schema::profile_layout::{PROFILE_WORKSPACE_DIR, USERS_DIR};
if let Some(profile) = crate::config::schema::ProfileLayout::of_workspace(workspace_dir) {
return Some(profile);