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/flows/tinyflows/caps/ops_tier_live_config_tests.rs,cr

Steven Enamakelf23be633a4e6
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_live_config_tests.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_live_config_tests.rs
index 9de224ff90..d3117d0743 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_live_config_tests.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_live_config_tests.rs
@@ -40,13 +40,12 @@ async fn one_live_capability_observes_full_readonly_full_updates() {
let dir = tempfile::tempdir().unwrap();
let mut config = persisted_tier_config(dir.path(), true, AutonomyLevel::Full);
save_tier_config(&config).await;
- let mut decoy = persisted_tier_config(
+ let decoy = persisted_tier_config(
&dir.path().join("decoy-profile"),
true,
AutonomyLevel::ReadOnly,
);
save_tier_config(&decoy).await;
- decoy.autonomy.level = AutonomyLevel::ReadOnly;
let origin = crate::agent::turn_origin::AgentTurnOrigin::TrustedAutomation {
job_id: "issue48-flow-run".to_string(),
source: crate::agent::turn_origin::TrustedAutomationSource::Workflow {
@@ -431,4 +430,3 @@ async fn http_adapter_passes_its_live_upgrade_to_the_http_gate_without_egress()
"the refreshed policy must pass the inner NetGate and reach URL validation"
);
}
-
diff --git a/crates/openhuman-embed/src/agent/build_tests.rs b/crates/openhuman-embed/src/agent/build_tests.rs
index 25ac34aba8..cbc9a97dea 100644
--- a/crates/openhuman-embed/src/agent/build_tests.rs
+++ b/crates/openhuman-embed/src/agent/build_tests.rs
@@ -46,13 +46,10 @@ async fn config_fn_final_autonomy_is_captured_on_the_built_agent_context() {
.await
.expect("runtime with a file-backed ReadOnly config");
let agent = runtime
- .agent(
- crate::AgentSpec::new("config-fn-tier")
- .config(|effective| {
- effective.autonomy.enabled = true;
- effective.autonomy.level = AutonomyLevel::Full;
- }),
- )
+ .agent(crate::AgentSpec::new("config-fn-tier").config(|effective| {
+ effective.autonomy.enabled = true;
+ effective.autonomy.level = AutonomyLevel::Full;
+ }))
.expect("AgentSpec config_fn builds");
assert_eq!(agent.inner.config.autonomy.level, AutonomyLevel::Full);