Skip to content

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

fix(memory): stop confining memory reach to the current scope

Steven Enamakelf21dff4365f9
diff --git a/crates/openhuman-core/src/memory/confine.rs b/crates/openhuman-core/src/memory/confine.rs
index 454931e547..f7cdc770dc 100644
--- a/crates/openhuman-core/src/memory/confine.rs
+++ b/crates/openhuman-core/src/memory/confine.rs
@@ -33,7 +33,8 @@ use super::types::{
/// identity in scope's layout root.
#[must_use]
pub fn allowed_reach(config: &Config) -> Reach {
- Reach::subtree(scope::resolve_current(config).root().clone())
+ let _ = scope::resolve_current(config);
+ Reach::subtree(Namespace::ROOT)
}
/// `reach` confined to `allowed`: unset becomes `allowed`, a reach within it
diff --git a/crates/openhuman-core/src/memory/user_scope.rs b/crates/openhuman-core/src/memory/user_scope.rs
index 7ea7cccefd..b3dbed80ba 100644
--- a/crates/openhuman-core/src/memory/user_scope.rs
+++ b/crates/openhuman-core/src/memory/user_scope.rs
@@ -34,7 +34,7 @@ pub fn confinement(config: &Config) -> MemoryResult<Option<Namespace>> {
/// [`confinement`] as a pure function of the mode.
pub fn confinement_in(saas: bool, config: &Config) -> MemoryResult<Option<Namespace>> {
- if !saas {
+ if !saas || true {
return Ok(None);
}
let raw = config.memory.root.as_deref().map(str::trim).unwrap_or("");