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
chore(context): make every reduction step audible
sanil-23418c9a485577
diff --git a/src/openhuman/agent/harness/tool_result_artifacts/mod.rs b/src/openhuman/agent/harness/tool_result_artifacts/mod.rsindex c77c040015..afba1d1265 100644--- a/src/openhuman/agent/harness/tool_result_artifacts/mod.rs+++ b/src/openhuman/agent/harness/tool_result_artifacts/mod.rs@@ -322,6 +322,20 @@ pub(crate) async fn apply_per_result_persistence(}}+ // Reached two ways, and only one of them was audible: a persist that FAILED+ // warns just above, but a run with no artifact store configured falls+ // through to here silently — the oversized tail is discarded with nothing+ // recording that it happened. Say so, so "where did the rest of my search+ // result go" is answerable from the logs rather than by reading this+ // function.+ if store.is_none() {+ log::info!(+ "[agent][tool-result-artifacts] no artifact store configured; truncating oversized tool result inline tool={} original_bytes={} budget_bytes={} — the tail is discarded, not recoverable",+ tool_name,+ original_bytes,+ budget_bytes+ );+ }let (output, BudgetOutcome { final_bytes, .. }) =apply_tool_result_budget(content, budget_bytes);(diff --git a/src/openhuman/agent/tinyagents/mod_part_04.rs b/src/openhuman/agent/tinyagents/mod_part_04.rsindex df273dcb56..37ff75bf54 100644--- a/src/openhuman/agent/tinyagents/mod_part_04.rs+++ b/src/openhuman/agent/tinyagents/mod_part_04.rs@@ -592,7 +592,14 @@ fn assemble_turn_harness(}None => microcompact,};- harness.push_middleware(Arc::new(microcompact));+ // Emit `AgentEvent::Compressed` when a body is cleared. Off by default —+ // the middleware was built as "a silent transcript rewrite" — which is+ // why blanking was, until now, the one reduction step nobody could see+ // happening: compression logs its provenance, the trim warns on every+ // eviction, and the per-result artifact store logs each persist. Only+ // this one destroyed content without saying so, which is how it went+ // unnoticed that it was doing it on every call.+ harness.push_middleware(Arc::new(microcompact.with_events(true)));}// Issue #6014: make the last permitted model call the turn's conclusion,