The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed crates/openhuman-core/src/core/runtime/context.rs,crates/openhuman-core/src/cor
Steven Enamakel0d7f870b69f0
diff --git a/crates/openhuman-core/src/core/runtime/context.rs b/crates/openhuman-core/src/core/runtime/context.rsindex 4ffde87879..982a562a15 100644--- a/crates/openhuman-core/src/core/runtime/context.rs+++ b/crates/openhuman-core/src/core/runtime/context.rs@@ -85,6 +85,9 @@ pub struct CoreContext {/// the model. Defaults to every group withheld, which is what the/// compiled-in pack table meant before the type existed.tool_groups: crate::tools::toolpacks::ToolGroups,+ /// Whether autonomy-tier checks reload config or retain this context's+ /// effective in-memory tier.+ autonomy_tier_source: super::AutonomyTierSource,/// Which tiny dependencies the config switched off (`[components]`). Only/// narrows: `domains` and `tool_groups` are already clamped by it, and this/// is kept so dispatch can answer `COMPONENT_DISABLED:<name>` for a method@@ -286,6 +289,7 @@ impl CoreContext {}))),domains,tool_groups,+ autonomy_tier_source: super::AutonomyTierSource::LiveConfig,components,embedder_config,user_skill_roots: true,@@ -418,6 +422,7 @@ impl CoreContext {workspace_binding: RwLock::new(shared_binding),domains,tool_groups: overlay.tool_groups,+ autonomy_tier_source: overlay.autonomy_tier_source,components: self.components,embedder_config: Some(overlay.config),user_skill_roots: overlay.user_skill_roots,@@ -437,6 +442,11 @@ impl CoreContext {self.session_agent.as_deref()}+ /// Source binding for autonomy-tier decisions made by long-lived adapters.+ pub fn autonomy_tier_source(&self) -> super::AutonomyTierSource {+ self.autonomy_tier_source+ }+/// The backend transport bound to this context, if the host supplied one.pub fn backend_transport(&self,diff --git a/crates/openhuman-core/src/core/runtime/context_overlay.rs b/crates/openhuman-core/src/core/runtime/context_overlay.rsindex bcd5531de5..e1d36f6302 100644--- a/crates/openhuman-core/src/core/runtime/context_overlay.rs+++ b/crates/openhuman-core/src/core/runtime/context_overlay.rs@@ -3,6 +3,18 @@use std::sync::Arc;+/// Where a derived context gets its autonomy tier for live host gates.+#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]+pub enum AutonomyTierSource {+ /// Reload the context's anchored config file for each gated operation.+ #[default]+ LiveConfig,+ /// Keep the effective tier supplied by an in-memory agent configuration.+ Captured,+ /// Keep the host-only read-only restriction even if config changes.+ ReadOnlyCeiling,+}+/// Per-agent overrides layered onto a booted context by/// [`CoreContext::derive_with`](super::CoreContext::derive_with).///@@ -42,6 +54,8 @@ pub struct ContextOverlay {/// The agent's own security policy: autonomy tier, auto-approve list,/// action budget. `None` keeps the parent's.pub agent_policy: Option<Arc<crate::security::SecurityPolicy>>,+ /// Source binding for autonomy-tier gates under this context.+ pub autonomy_tier_source: AutonomyTierSource,/// Turn the interactive approval gate off for this agent.pub approvals_disabled: bool,/// The agent's own sub-agent catalogue. `None` keeps the parent's.@@ -64,6 +78,7 @@ impl ContextOverlay {session_agent: None,profile: None,agent_policy: None,+ autonomy_tier_source: AutonomyTierSource::LiveConfig,approvals_disabled: false,definitions: None,}@@ -103,6 +118,18 @@ impl ContextOverlay {self}+ /// Keep autonomy tier bound to this context's effective in-memory config.+ pub fn captured_autonomy_tier(mut self) -> Self {+ self.autonomy_tier_source = AutonomyTierSource::Captured;+ self+ }++ /// Keep this context's effective autonomy tier at ReadOnly.+ pub fn read_only_autonomy_ceiling(mut self) -> Self {+ self.autonomy_tier_source = AutonomyTierSource::ReadOnlyCeiling;+ self+ }+/// Give the derived context its own sub-agent catalogue.pub fn definitions(mut self,