Skip to content

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

refactor(tinyflows): restructure tier capability definitions

Steven Enamakelc3327967fd16
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs b/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs
index a2f2da2248..5a2ac3f3bd 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/tier.rs
@@ -92,6 +92,7 @@ pub(crate) fn enforce_node_tier_gate(
/// `intercept_audited`, forcing the real parking/HITL flow. `GateDecision::Allow`
/// (and any other origin shape) passes through unchanged — existing behavior.
pub(crate) async fn gate_call_for_tier(
+ approval: &crate::security::approval::ApprovalTurnContext,
tier_decision: GateDecision,
tool_name: &str,
action_summary: &str,
@@ -113,12 +114,12 @@ pub(crate) async fn gate_call_for_tier(
);
turn_origin::with_origin(
escalated,
- gate.intercept_audited(tool_name, action_summary, args_redacted),
+ gate.intercept_audited(approval, tool_name, action_summary, args_redacted),
)
.await
}
None => {
- gate.intercept_audited(tool_name, action_summary, args_redacted)
+ gate.intercept_audited(approval, tool_name, action_summary, args_redacted)
.await
}
}