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

Steven Enamakelec94b8d9d76d
diff --git a/crates/openhuman-core/src/core/runtime/context.rs b/crates/openhuman-core/src/core/runtime/context.rs
index 3a614d828b..dd7f0935c5 100644
--- a/crates/openhuman-core/src/core/runtime/context.rs
+++ b/crates/openhuman-core/src/core/runtime/context.rs
@@ -744,7 +744,7 @@ mod agent_parts;
#[path = "context_overlay.rs"]
mod overlay;
-pub use overlay::ContextOverlay;
+pub use overlay::{AutonomyTierSource, ContextOverlay};
#[cfg(test)]
#[path = "context_test_support.rs"]
diff --git a/crates/openhuman-core/src/core/runtime/dispatch_ctx.rs b/crates/openhuman-core/src/core/runtime/dispatch_ctx.rs
index 7b25b886de..cac3b618b0 100644
--- a/crates/openhuman-core/src/core/runtime/dispatch_ctx.rs
+++ b/crates/openhuman-core/src/core/runtime/dispatch_ctx.rs
@@ -160,6 +160,20 @@ impl DispatchCtx {
self.resolved().and_then(|core| core.agent_policy())
}
+ /// Source binding for live autonomy-tier decisions under this dispatch.
+ pub fn autonomy_tier_source(&self) -> super::AutonomyTierSource {
+ self.resolved()
+ .map_or(super::AutonomyTierSource::LiveConfig, |core| {
+ core.autonomy_tier_source()
+ })
+ }
+
+ /// Fixed autonomy ceiling inherited by this dispatch, if any.
+ pub fn autonomy_tier_ceiling(&self) -> Option<crate::security::AutonomyLevel> {
+ self.resolved()
+ .and_then(|core| core.autonomy_tier_ceiling())
+ }
+
/// Whether the interactive approval gate is off for the agent this call
/// runs for.
pub fn approvals_disabled(&self) -> bool {
diff --git a/crates/openhuman-embed/src/agent/build.rs b/crates/openhuman-embed/src/agent/build.rs
index af5bef46ac..02b0dda685 100644
--- a/crates/openhuman-embed/src/agent/build.rs
+++ b/crates/openhuman-embed/src/agent/build.rs
@@ -317,6 +317,9 @@ pub(crate) fn instantiate(runtime: &Runtime, spec: AgentSpec) -> Result<AgentInn
)
.with_privacy_mode(config.privacy.mode),
)),
+ autonomy_tier_source: Some(openhuman_core::core::runtime::AutonomyTierSource::Captured),
+ autonomy_tier_ceiling: host_only
+ .then_some(openhuman_core::security::AutonomyLevel::ReadOnly),
approvals_disabled: !access.approval_gate_enabled(),
definitions,
};