Skip to content

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

docs(triage): say why acknowledge writes nothing, not that it will one day\n\nThe arm logged `memory-write is a future addition`, which described an\nunimplemented plan rather than the behaviour — and the plan was wrong. Writing a\nsummary here would duplicate a document the connector sync has already ingested:\nthe same mail, a second copy, competing with extracted memories for the same\nrecall slots. That is #5312, and #5315 is the fix; this arm should not reopen it.\n\nAcknowledge is a classification, not a write, and the two things worth keeping\nare already kept. What the trigger *was* is durable in the composio\ntrigger-history JSONL, written before the triage gates so it survives even with\ntriage disabled. What it was *judged to be* went out as `TriggerEvaluated` a few\nlines above, for every action.\n\nWhat is actually missing is a record of what happened *after* the verdict — for\nevery action, not just this one — which belongs in its own surface rather than\nbolted onto one branch. Filed as #5408, and referenced from the comment so the\nnext reader finds the work instead of re-deriving the note.\n\nThe log line now states what happened and where to look, and carries `source`\nand `card_linked`. The sibling DROP arm gets the same two fields: both are\n"no downstream work" verdicts, and a dashboard filtering on `source=` would\notherwise silently see only half of them.\n\nagent::triage 70 tests pass.\n\nClaude-Session: https://claude.ai/code/session_01SRSNnqQsokuGmkbpLoLCGy\n

yh9284b795576a178
diff --git a/src/openhuman/agent/triage/escalation.rs b/src/openhuman/agent/triage/escalation.rs
index 53f202d67e..d9de131a0b 100644
--- a/src/openhuman/agent/triage/escalation.rs
+++ b/src/openhuman/agent/triage/escalation.rs
@@ -50,8 +50,10 @@ pub async fn apply_decision(run: TriageRun, envelope: &TriggerEnvelope) -> anyho
match run.decision.action {
TriageAction::Drop => {
tracing::debug!(
+ source = %envelope.source.slug(),
label = %envelope.display_label,
external_id = %envelope.external_id,
+ card_linked = envelope.card_link.is_some(),
reason = %run.decision.reason,
"[triage::escalation] DROP — no downstream work"
);
@@ -64,11 +66,26 @@ pub async fn apply_decision(run: TriageRun, envelope: &TriggerEnvelope) -> anyho
gate_linked_card_terminal(envelope, "drop").await;
}
TriageAction::Acknowledge => {
+ // Acknowledge is a classification, not a write. What the trigger
+ // *was* is already durable in the composio trigger-history JSONL,
+ // and what it was *judged to be* went out as `TriggerEvaluated`
+ // above. Copying a summary into the memory store on top of that
+ // would duplicate a document the connector sync already ingested —
+ // same mail, second copy, competing for the same recall slots — so
+ // this arm deliberately writes nothing.
+ //
+ // 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).
tracing::info!(
+ source = %envelope.source.slug(),
label = %envelope.display_label,
external_id = %envelope.external_id,
+ card_linked = envelope.card_link.is_some(),
reason = %run.decision.reason,
- "[triage::escalation] ACKNOWLEDGE — logged (memory-write is a future addition)"
+ "[triage::escalation] ACKNOWLEDGE — no autonomous action; \
+ recorded as TriggerEvaluated, input retained in trigger history"
);
// Acknowledge means "seen, no autonomous action needed" — same as
// drop, the linked card must not be picked up by the board poller.