Skip to content

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

fix(observability, security): capture tool input in event projection and add tool call id to approva

Steven Enamakela1b0549f4e75
diff --git a/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs b/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs
index 99ae9a2a77..6cd169b855 100644
--- a/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs
@@ -487,7 +487,10 @@ impl EventListener for OpenhumanEventBridge {
}
}
AgentEvent::ToolStarted {
- call_id, tool_name, ..
+ call_id,
+ tool_name,
+ input,
+ ..
} => {
// Unknown/invisible tool calls no longer produce a sentinel-named
// Started event: the migration replaced `UNKNOWN_TOOL_SENTINEL` +
diff --git a/crates/openhuman-core/src/security/approval/gate_intercept.rs b/crates/openhuman-core/src/security/approval/gate_intercept.rs
index 3064b60709..1726274499 100644
--- a/crates/openhuman-core/src/security/approval/gate_intercept.rs
+++ b/crates/openhuman-core/src/security/approval/gate_intercept.rs
@@ -13,6 +13,7 @@ impl ApprovalGate {
args_redacted: serde_json::Value,
park_bound: Option<Duration>,
park_bound_elapsed: &mut bool,
+ tool_call_id: Option<&str>,
) -> (GateOutcome, Option<String>) {
// Origin tells us who scheduled this turn. Entry points (web channel,
// channel runtime, subconscious, cron, CLI) scope a typed