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/core/runtime/context_for_agent.rs,crates/openhuman-co

Steven Enamakelee4872bf8220
diff --git a/crates/openhuman-core/src/core/runtime/context_for_agent.rs b/crates/openhuman-core/src/core/runtime/context_for_agent.rs
index f7871ce248..3ff0ac05ab 100644
--- a/crates/openhuman-core/src/core/runtime/context_for_agent.rs
+++ b/crates/openhuman-core/src/core/runtime/context_for_agent.rs
@@ -30,6 +30,8 @@ impl CoreContext {
workspace_binding: RwLock::new(binding),
domains: self.domains,
tool_groups: self.tool_groups.clone(),
+ autonomy_tier_source: self.autonomy_tier_source,
+ autonomy_tier_ceiling: self.autonomy_tier_ceiling,
components: self.components,
embedder_config: self.embedder_config.clone(),
user_skill_roots: self.user_skill_roots,
diff --git a/crates/openhuman-core/src/core/runtime/context_test_support.rs b/crates/openhuman-core/src/core/runtime/context_test_support.rs
index 741aca0b3a..f7e554bb9a 100644
--- a/crates/openhuman-core/src/core/runtime/context_test_support.rs
+++ b/crates/openhuman-core/src/core/runtime/context_test_support.rs
@@ -20,6 +20,8 @@ impl CoreContext {
}))),
domains,
tool_groups: Default::default(),
+ autonomy_tier_source: AutonomyTierSource::LiveConfig,
+ autonomy_tier_ceiling: None,
components: Default::default(),
embedder_config: None,
user_skill_roots: true,
@@ -66,6 +68,8 @@ impl CoreContext {
}))),
domains,
tool_groups: Default::default(),
+ autonomy_tier_source: AutonomyTierSource::Captured,
+ autonomy_tier_ceiling: None,
components: Default::default(),
embedder_config: Some(config),
user_skill_roots: true,
diff --git a/crates/openhuman-core/src/core/runtime/context_tests.rs b/crates/openhuman-core/src/core/runtime/context_tests.rs
index 1412a87a3f..e9747a9d44 100644
--- a/crates/openhuman-core/src/core/runtime/context_tests.rs
+++ b/crates/openhuman-core/src/core/runtime/context_tests.rs
@@ -9,6 +9,8 @@ fn ctx(dir: &str) -> Arc<CoreContext> {
}))),
domains: crate::core::runtime::DomainSet::full(),
tool_groups: Default::default(),
+ autonomy_tier_source: AutonomyTierSource::LiveConfig,
+ autonomy_tier_ceiling: None,
components: Default::default(),
embedder_config: None,
user_skill_roots: true,
@@ -45,6 +47,8 @@ fn ctx_with_config(config: crate::config::Config) -> Arc<CoreContext> {
}))),
domains: crate::core::runtime::DomainSet::full(),
tool_groups: Default::default(),
+ autonomy_tier_source: AutonomyTierSource::Captured,
+ autonomy_tier_ceiling: None,
components: Default::default(),
embedder_config: Some(config),
user_skill_roots: true,
@@ -386,6 +390,8 @@ fn degraded_context_rejects_workspace_bound_stores() {
}))),
domains: crate::core::runtime::DomainSet::full(),
tool_groups: Default::default(),
+ autonomy_tier_source: AutonomyTierSource::LiveConfig,
+ autonomy_tier_ceiling: None,
components: Default::default(),
embedder_config: None,
user_skill_roots: true,
diff --git a/crates/openhuman-core/src/core/runtime/context_turn_origin.rs b/crates/openhuman-core/src/core/runtime/context_turn_origin.rs
index 761ee07b9a..6360b20172 100644
--- a/crates/openhuman-core/src/core/runtime/context_turn_origin.rs
+++ b/crates/openhuman-core/src/core/runtime/context_turn_origin.rs
@@ -39,6 +39,8 @@ impl CoreContext {
}))),
domains: crate::core::runtime::DomainSet::full(),
tool_groups: Default::default(),
+ autonomy_tier_source: AutonomyTierSource::LiveConfig,
+ autonomy_tier_ceiling: None,
components: Default::default(),
embedder_config: None,
user_skill_roots: true,
@@ -101,6 +103,8 @@ impl CoreContext {
),
domains: ctx.domains,
tool_groups: ctx.tool_groups.clone(),
+ autonomy_tier_source: ctx.autonomy_tier_source,
+ autonomy_tier_ceiling: ctx.autonomy_tier_ceiling,
components: ctx.components,
embedder_config: ctx.embedder_config.clone(),
user_skill_roots: ctx.user_skill_roots,