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
test(agent): assert the resumed transcript file carries no side-channel markers
M3gA-Mind1fd21d60bb42
diff --git a/crates/openhuman-core/src/agent/harness/session/session_resume_request_id_tests.rs b/crates/openhuman-core/src/agent/harness/session/session_resume_request_id_tests.rsindex 724806cc3f..b9b4d5ddd7 100644--- a/crates/openhuman-core/src/agent/harness/session/session_resume_request_id_tests.rs+++ b/crates/openhuman-core/src/agent/harness/session/session_resume_request_id_tests.rs@@ -80,6 +80,28 @@ fn resumed_rows_keep_their_own_extra_metadata() {rows[3].failure && rows[3].failure_detail.as_deref() == Some("boom"),"the replayed tool row keeps its failure flag and detail");++ // The display reader reconstructs from the line fields, so assert the file+ // itself too: the markers are an in-memory side-channel and must never be+ // persisted, and each row's caller metadata must be on disk in its original+ // shape.+ let raw = std::fs::read_to_string(&second).expect("read persisted transcript");+ for marker in [+ "openhuman_replayed",+ "openhuman_tool_failure",+ "openhuman_wrapped_value\":{",+ ] {+ assert!(+ !raw.contains(marker),+ "the persisted transcript must not carry {marker}: {raw}"+ );+ }+ assert!(+ raw.contains(r#""extra_metadata":"pinned""#)+ && raw.contains(r#""extra_metadata":{"openhuman_wrapped_value":"pinned"}"#)+ && raw.contains(r#""extra_metadata":"tool-note""#),+ "each row's caller metadata must be persisted in its original shape: {raw}"+ );}/// #6282 review: when a resumed transcript is later reduced, the writer's