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 Enamakele6503d36787b
diff --git a/crates/openhuman-core/src/memory/deletion.rs b/crates/openhuman-core/src/memory/deletion.rs
index b5a7ede2ad..ce54723247 100644
--- a/crates/openhuman-core/src/memory/deletion.rs
+++ b/crates/openhuman-core/src/memory/deletion.rs
@@ -126,6 +126,9 @@ impl DeletionExecutor for Executor<'_> {
let bound = engine::resolve(self.config)
.engine()
.map_err(|error| error.code().to_string())?;
+ // Pending source/thread filters keep TinyMemory's ordinary root-tree
+ // default: all ordinary scopes, but never a service sandbox. Do not
+ // narrow them to one authenticated profile root.
let ops = MemoryOps::unconfined();
ops.forget_or_enqueue(Some(bound.engine.as_ref()), deletion.clone(), |deletion| {
enqueue(&self.config.workspace_dir, deletion);
@@ -176,6 +179,8 @@ pub async fn forget_thread(config: &Config, thread_id: &str) -> usize {
return 0;
}
};
+ // Match queued deletion's ordinary root-tree filter, including when the
+ // profile root sits above other ordinary namespaces.
let ops = MemoryOps::unconfined();
let engine = bound.as_ref().map(|bound| bound.engine.as_ref());
match ops
diff --git a/crates/openhuman-core/src/memory/sources/mod.rs b/crates/openhuman-core/src/memory/sources/mod.rs
index c4a198c72c..4632d406e5 100644
--- a/crates/openhuman-core/src/memory/sources/mod.rs
+++ b/crates/openhuman-core/src/memory/sources/mod.rs
@@ -166,6 +166,8 @@ pub async fn forget_items(config: &Config, id: &str) -> Result<usize> {
Err(Error::Off(_)) => None,
Err(error) => return Err(error),
};
+ // Source IDs span ordinary scopes; the engine's default root reach
+ // excludes service sandboxes without restricting cleanup to one profile.
let ops = MemoryOps::unconfined();
let engine = bound.as_ref().map(|bound| bound.engine.as_ref());
let forgotten = ops