The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(triage): say what an acknowledge actually retains, per source\n\nThe log claimed "input retained in trigger history" for every acknowledged\ntrigger. Only the composio path has that archive — `trigger_history` is written\nby `ComposioTriggerSubscriber` before the triage gates. A webhook, cron,\nwebview, or external acknowledge leaves nothing but the `TriggerEvaluated`\nevent, so the line pointed an operator at a record that was never written for\nfour of the five sources.\n\nThe retention claim is now a `retained` field derived from\n`envelope.source`: the composio archive, or "none — verdict only".\n\nRegression pins that only composio names an archive.\n\nagent::triage 71 pass.\n\nReported by CodeRabbit on #5410.\n\nClaude-Session: https://claude.ai/code/session_01SRSNnqQsokuGmkbpLoLCGy\n
yh92899cec9b6bc32
diff --git a/src/openhuman/agent/triage/escalation.rs b/src/openhuman/agent/triage/escalation.rsindex d9de131a0b..146039e701 100644--- a/src/openhuman/agent/triage/escalation.rs+++ b/src/openhuman/agent/triage/escalation.rs@@ -25,7 +25,7 @@ use crate::openhuman::agent::orchestration::parent_context::build_root_parent;use crate::openhuman::config::Config;use super::decision::TriageAction;-use super::envelope::{TaskCardLink, TriggerEnvelope};+use super::envelope::{TaskCardLink, TriggerEnvelope, TriggerSource};use super::evaluator::TriageRun;use super::events;@@ -74,18 +74,23 @@ pub async fn apply_decision(run: TriageRun, envelope: &TriggerEnvelope) -> anyho// same mail, second copy, competing for the same recall slots — so// this arm deliberately writes nothing.//+ // What survives differs by source, so the log says which — only the+ // composio path archives its input, and claiming otherwise sends an+ // operator looking for a record that was never written.+ //// What is genuinely missing is not a copy of the input but a record- // of what happened *after* the verdict, for every action, not just- // this one. That belongs in a progress surface of its own rather- // than bolted onto the acknowledge branch (#5408).+ // of what happened *after* the verdict, for every action and every+ // source, not just this one. That belongs in a progress surface of+ // its own rather than bolted onto the acknowledge branch (#5408).tracing::info!(source = %envelope.source.slug(),label = %envelope.display_label,external_id = %envelope.external_id,card_linked = envelope.card_link.is_some(),+ retained = %retained_input_note(&envelope.source),reason = %run.decision.reason,"[triage::escalation] ACKNOWLEDGE — no autonomous action; \- recorded as TriggerEvaluated, input retained in trigger history"+ recorded as TriggerEvaluated");// Acknowledge means "seen, no autonomous action needed" — same as// drop, the linked card must not be picked up by the board poller.@@ -342,6 +347,21 @@ async fn dispatch_linked_card(crate::openhuman::agent::task_dispatcher::dispatch_card(link.location.clone(), card).await}+/// What survives an acknowledged trigger, for the source it actually came from.+///+/// The composio webhook path archives every event to a daily JSONL before the+/// triage gates, so its input is durable whatever the verdict. No other source+/// has an equivalent: a webhook, cron, webview, or external trigger leaves only+/// the `TriggerEvaluated` event. Saying "retained in trigger history" for all+/// of them would tell an operator to go looking for a record that was never+/// written.+fn retained_input_note(source: &TriggerSource) -> &'static str {+ match source {+ TriggerSource::Composio { .. } => "trigger-history archive",+ _ => "none — verdict only",+ }+}+/// Terminally gate a card-linked trigger that triage decided to `drop` //// `acknowledge`, so the board poller (which dispatches any pending/// `Todo`/`Ready` card) won't re-run it. Only a still-pending card is gated;diff --git a/src/openhuman/agent/triage/escalation_tests.rs b/src/openhuman/agent/triage/escalation_tests.rsindex d957fcd951..d80c27dae9 100644--- a/src/openhuman/agent/triage/escalation_tests.rs+++ b/src/openhuman/agent/triage/escalation_tests.rs@@ -360,3 +360,40 @@ async fn apply_decision_escalate_failure_publishes_failed_event() {if external_id == "esc-escalate-fail")));}++/// Only the composio path archives its input before triage. Naming a+/// trigger-history record for a webhook or cron acknowledge would send an+/// operator looking for a file that was never written.+#[test]+fn only_composio_claims_a_retained_input() {+ assert_eq!(+ retained_input_note(&TriggerSource::Composio {+ toolkit: "gmail".into(),+ trigger: "GMAIL_NEW_GMAIL_MESSAGE".into(),+ }),+ "trigger-history archive"+ );++ for source in [+ TriggerSource::Webhook {+ tunnel_id: "t".into(),+ method: "POST".into(),+ path: "/x".into(),+ },+ TriggerSource::Cron {+ job_id: "j".into(),+ job_name: "nightly".into(),+ },+ TriggerSource::WebviewIntegration {+ provider: "gmail".into(),+ account_id: "a".into(),+ },+ ] {+ assert_eq!(+ retained_input_note(&source),+ "none — verdict only",+ "{} has no archive to point at",+ source.slug()+ );+ }+}