Skip to content

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

refactor(tinyflows): reflow gate_call_for_tier call

Steven Enamakel02c3d1f23fa6
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/tools/native.rs b/crates/openhuman-core/src/flows/tinyflows/caps/tools/native.rs
index e7ca8050ed..06cb06d465 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/tools/native.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/tools/native.rs
@@ -48,14 +48,9 @@ impl ToolBackend for NativeToolBackend {
let tier_decision = super::super::enforce_node_tier_gate(ctx.security, class, "tool_call")?;
let summary = crate::security::approval::summarize_action(tool_name, &args);
let redacted = crate::security::approval::redact_args(&args);
- let (outcome, audit_id) = super::super::gate_call_for_tier(
- ctx.approval,
- tier_decision,
- tool_name,
- &summary,
- redacted,
- )
- .await;
+ let (outcome, audit_id) =
+ super::super::gate_call_for_tier(ctx.approval, tier_decision, tool_name, &summary, redacted)
+ .await;
if let crate::security::approval::GateOutcome::Deny { reason } = outcome {
return Err(EngineError::Capability(reason));
}