Skip to content

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

test: remove obsolete meet and subconscious e2e tests\n\nRemove end-to-end tests for the deprecated meet_join_call, meet_agent_session_lifecycle, meet_list_upcoming, meet_set_event_policy, meet_get_event_policies, and agent_meetings_generate_summary RPCs, along with the removed subconscious_status and subconscious_trigger methods. These tests covered functionality that has been retired or replaced, and keeping them would cause false failures in CI.\n\nAuto-committed-on: dragonfly\n

Steven Enamakelcf588db881bb
diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rs
index ef104e2d23..ccbd64989a 100644
--- a/tests/json_rpc_e2e.rs
+++ b/tests/json_rpc_e2e.rs
@@ -1470,43 +1470,6 @@ async fn json_rpc_tool_registry_lists_and_gets_entries() {
rpc_join.abort();
}
-#[tokio::test]
-async fn json_rpc_monitor_list_and_read_surface() {
- let _env_lock = json_rpc_e2e_env_lock();
- let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;
- let rpc_base = format!("http://{rpc_addr}");
-
- let list = post_json_rpc(&rpc_base, 33_711, "openhuman.monitor_list", json!({})).await;
- let list_result = assert_no_jsonrpc_error(&list, "monitor_list");
- let monitors = list_result
- .get("monitors")
- .and_then(Value::as_array)
- .expect("monitor_list should return monitor array");
- assert!(
- monitors.is_empty(),
- "fresh monitor list should start empty: {list_result}"
- );
-
- let missing = post_json_rpc(
- &rpc_base,
- 33_712,
- "openhuman.monitor_read",
- json!({ "monitor_id": "mon_missing" }),
- )
- .await;
- let error = assert_jsonrpc_error(&missing, "monitor_read missing");
- let message = error
- .get("message")
- .and_then(Value::as_str)
- .unwrap_or_default();
- assert!(
- message.contains("mon_missing"),
- "missing monitor error should name id in error.message: {error}"
- );
-
- rpc_join.abort();
-}
-
#[tokio::test]
async fn json_rpc_harness_init_status_returns_snapshot_envelope() {
let _env_lock = json_rpc_e2e_env_lock();
@@ -5485,105 +5448,6 @@ async fn json_rpc_removed_screen_intelligence_methods_are_not_found() {
rpc_join.abort();
}
-#[tokio::test]
-async fn json_rpc_subconscious_status_exposes_instances_and_trigger_takes_kind() {
- let _env_lock = json_rpc_e2e_env_lock();
- let tmp = tempdir().expect("tempdir");
- let home = tmp.path();
- let openhuman_home = home.join(".openhuman");
-
- let _home_guard = EnvVarGuard::set_to_path("HOME", home);
- let _workspace_guard = EnvVarGuard::unset("OPENHUMAN_WORKSPACE");
- let _backend_url_guard = EnvVarGuard::unset("BACKEND_URL");
- let _vite_backend_guard = EnvVarGuard::unset("VITE_BACKEND_URL");
-
- let (mock_addr, mock_join) = serve_on_ephemeral(mock_upstream_router()).await;
- let mock_origin = format!("http://{}", mock_addr);
- write_min_config(&openhuman_home, &mock_origin);
-
- let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;
- let rpc_base = format!("http://{}", rpc_addr);
- tokio::time::sleep(Duration::from_millis(100)).await;
-
- // ── subconscious.status: legacy top-level fields + instances[] ──────────
- let status = post_json_rpc(&rpc_base, 1101, "openhuman.subconscious_status", json!({})).await;
- let result = assert_no_jsonrpc_error(&status, "subconscious_status");
- let status_result = result.get("result").unwrap_or(result);
-
- // Legacy flattened fields (backward compat) mirror the memory instance.
- assert_eq!(
- status_result.get("instance").and_then(Value::as_str),
- Some("memory"),
- "legacy top-level mirrors the memory instance: {status_result}"
- );
- assert!(
- status_result.get("mode").and_then(Value::as_str).is_some(),
- "expected top-level mode string: {status_result}"
- );
- assert!(
- status_result
- .get("enabled")
- .and_then(Value::as_bool)
- .is_some(),
- "expected top-level enabled bool: {status_result}"
- );
-
- // Additive: instances[] with at least the memory row, each tagged.
- let instances = status_result
- .get("instances")
- .and_then(Value::as_array)
- .expect("expected instances array");
- assert!(
- !instances.is_empty(),
- "instances not empty: {status_result}"
- );
- assert!(
- instances
- .iter()
- .any(|row| row.get("instance").and_then(Value::as_str) == Some("memory")),
- "instances includes the memory row: {status_result}"
- );
-
- // ── subconscious.trigger: optional kind echoes back ─────────────────────
- // `memory` is the sole remaining world after the hosted-brain migration
- // (#4738 retired the `tinyplace` local-world subconscious).
- let trig = post_json_rpc(
- &rpc_base,
- 1102,
- "openhuman.subconscious_trigger",
- json!({ "kind": "memory" }),
- )
- .await;
- let trig_result = assert_no_jsonrpc_error(&trig, "subconscious_trigger");
- let trig_body = trig_result.get("result").unwrap_or(trig_result);
- assert_eq!(
- trig_body.get("triggered").and_then(Value::as_bool),
- Some(true),
- "trigger fire-and-forget acks: {trig_body}"
- );
- assert_eq!(
- trig_body.get("kind").and_then(Value::as_str),
- Some("memory"),
- "trigger echoes the requested kind: {trig_body}"
- );
-
- // An unknown kind is a clean JSON-RPC error, not a panic.
- let bad = post_json_rpc(
- &rpc_base,
- 1103,
- "openhuman.subconscious_trigger",
- json!({ "kind": "tinyplace" }),
- )
- .await;
- assert!(
- bad.get("error").is_some(),
- "unknown kind returns a JSON-RPC error: {bad}"
- );
-
- rpc_join.abort();
- mock_join.abort();
-}
-
#[tokio::test]
async fn json_rpc_app_state_snapshot_returns_runtime_shape() {
let _env_lock = json_rpc_e2e_env_lock();
@@ -9373,262 +9237,6 @@ async fn voice_cloud_transcribe_registered_e2e() {
rpc_join.abort();
}
-#[tokio::test]
-async fn json_rpc_meet_join_call_validates_and_returns_request_id() {
- let _env_lock = json_rpc_e2e_env_lock();
- let tmp = tempdir().expect("tempdir");
- let home = tmp.path();
-
- let _home_guard = EnvVarGuard::set_to_path("HOME", home);
- let _workspace_guard = EnvVarGuard::unset("OPENHUMAN_WORKSPACE");
- let _backend_url_guard = EnvVarGuard::unset("BACKEND_URL");
- let _vite_backend_guard = EnvVarGuard::unset("VITE_BACKEND_URL");
-
- let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;
- let rpc_base = format!("http://{}", rpc_addr);
-
- tokio::time::sleep(Duration::from_millis(50)).await;
-
- // --- happy path: validates, returns ok + request_id + normalized echo ---
- let ok = post_json_rpc(
- &rpc_base,
- 9001,
- "openhuman.meet_join_call",
- json!({
- "meet_url": "https://meet.google.com/abc-defg-hij",
- "display_name": " Agent Alice "
- }),
- )
- .await;
- let result = assert_no_jsonrpc_error(&ok, "meet_join_call ok");
- let body = result.get("result").unwrap_or(result);
- assert_eq!(body.get("ok"), Some(&json!(true)));
- let request_id = body
- .get("request_id")
- .and_then(|v| v.as_str())
- .expect("request_id present");
- assert!(!request_id.is_empty(), "request_id must not be empty");
- assert_eq!(
- body.get("meet_url").and_then(|v| v.as_str()),
- Some("https://meet.google.com/abc-defg-hij"),
- "echoed meet_url should be the normalized URL"
- );
- assert_eq!(
- body.get("display_name").and_then(|v| v.as_str()),
- Some("Agent Alice"),
- "display_name should be trimmed before echo"
- );
-
- // --- bad host: rejected as JSON-RPC error ---
- let bad_host = post_json_rpc(
- &rpc_base,
- 9002,
- "openhuman.meet_join_call",
- json!({
- "meet_url": "https://example.com/abc-defg-hij",
- "display_name": "Agent"
- }),
- )
- .await;
- assert_jsonrpc_error(&bad_host, "meet_join_call bad_host");
-
- // --- empty display name: rejected ---
- let bad_name = post_json_rpc(
- &rpc_base,
- 9003,
- "openhuman.meet_join_call",
- json!({
- "meet_url": "https://meet.google.com/abc-defg-hij",
- "display_name": " "
- }),
- )
- .await;
- assert_jsonrpc_error(&bad_name, "meet_join_call bad_name");
-
- rpc_join.abort();
-}
-
-/// Walks the full meet_agent session lifecycle:
-/// start_session → push silent frame → push loud frame ×N → push
-/// silent frames until VAD fires a turn → poll_speech (expects
-/// non-empty PCM from the brain stub) → stop_session.
-///
-/// Pins behavior the shell relies on: the RPC surface accepts
-/// base64-PCM16LE frames, fires a turn on VAD silence after speech,
-/// the brain stub enqueues outbound audio synchronously enough for a
-/// 250 ms-budget poll to see it, and stop_session returns sane
-/// counters. STT / TTS adapters are stubbed in PR1 so this stays
-/// network-free.
-#[test]
-fn json_rpc_meet_agent_session_lifecycle() {
- run_json_rpc_e2e_on_agent_stack(
- "json_rpc_meet_agent_session_lifecycle",
- json_rpc_meet_agent_session_lifecycle_inner,
- );
-}
-
-async fn json_rpc_meet_agent_session_lifecycle_inner() {
- use base64::{engine::general_purpose::STANDARD as B64, Engine as _};
-
- let _env_lock = json_rpc_e2e_env_lock();
- let tmp = tempdir().expect("tempdir");
- let home = tmp.path();
-
- let _home_guard = EnvVarGuard::set_to_path("HOME", home);
- let _workspace_guard = EnvVarGuard::unset("OPENHUMAN_WORKSPACE");
- let _backend_url_guard = EnvVarGuard::unset("BACKEND_URL");
- let _vite_backend_guard = EnvVarGuard::unset("VITE_BACKEND_URL");
-
- let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;
- let rpc_base = format!("http://{}", rpc_addr);
-
- tokio::time::sleep(Duration::from_millis(50)).await;
-
- let request_id = "e2e-meet-agent";
-
- // 1) start_session — opens registry slot, defaults sample_rate to 16000.
- let start = post_json_rpc(
- &rpc_base,
- 9101,
- "openhuman.meet_agent_start_session",
- json!({ "request_id": request_id, "sample_rate_hz": 16_000 }),
- )
- .await;
- let start_result = assert_no_jsonrpc_error(&start, "start_session ok");
- let start_body = start_result.get("result").unwrap_or(start_result);
- assert_eq!(start_body.get("ok"), Some(&json!(true)));
- assert_eq!(
- start_body.get("request_id").and_then(|v| v.as_str()),
- Some(request_id)
- );
-
- // 2) Push ~1s of "loud" PCM (square wave well above VAD threshold)
- // so the brain has enough material to NOT skip the turn.
- let loud_frame: Vec<i16> = (0..1600)
- .map(|i| if i % 2 == 0 { 8000i16 } else { -8000 })
- .collect();
- let loud_b64 = {
- let bytes: Vec<u8> = loud_frame.iter().flat_map(|s| s.to_le_bytes()).collect();
- B64.encode(bytes)
- };
- for i in 0..10 {
- let r = post_json_rpc(
- &rpc_base,
- 9110 + i,
- "openhuman.meet_agent_push_listen_pcm",
- json!({ "request_id": request_id, "pcm_base64": loud_b64 }),
- )
- .await;
- let body = assert_no_jsonrpc_error(&r, "push_listen_pcm loud");
- let body = body.get("result").unwrap_or(body);
- assert_eq!(
- body.get("turn_started"),
- Some(&json!(false)),
- "VAD must not fire while still hearing speech"
- );
- }
-
- // 3) Push silent frames until turn_started flips. With
- // VAD_HANGOVER_FRAMES=6 the turn should fire within at most
- // ~7 silent pushes (allow 12 for slop).
- let silent_frame = vec![0i16; 1600];
- let silent_b64 = {
- let bytes: Vec<u8> = silent_frame.iter().flat_map(|s| s.to_le_bytes()).collect();
- B64.encode(bytes)
- };
- let mut turn_fired = false;
- for i in 0..12 {
- let r = post_json_rpc(
- &rpc_base,
- 9130 + i,
- "openhuman.meet_agent_push_listen_pcm",
- json!({ "request_id": request_id, "pcm_base64": silent_b64 }),
- )
- .await;
- let body = assert_no_jsonrpc_error(&r, "push_listen_pcm silent");
- let body = body.get("result").unwrap_or(body);
- if body.get("turn_started") == Some(&json!(true)) {
- turn_fired = true;
- break;
- }
- }
- assert!(turn_fired, "VAD silence run failed to close utterance");
-
- // 4) Give the spawned brain turn a chance to finish, then poll for
- // synthesized PCM. The stub TTS produces 200 ms of 440 Hz tone
- // which encodes to ~6.4 KB of base64.
- //
- // The brain turn runs the full agentic path (`run_single`) before it
- // can fall back to the spoken ack that gets stub-TTS'd. In this
- // hermetic setup BACKEND_URL is unset, so each provider attempt must
- // fail a real connection first; since issue #4249 the turn also tries
- // one same-family fallback route (Workstream 02.2), so the ack (and its
- // audio) can take a few seconds to materialize — well under the 20 s
- // agentic timeout. Poll generously (up to ~12 s) so the assertion tracks
- // "audio is eventually synthesized", not a fragile sub-second deadline.
- let mut got_audio = false;
- for _ in 0..120 {
- tokio::time::sleep(Duration::from_millis(100)).await;
- let r = post_json_rpc(
- &rpc_base,
- 9150,
- "openhuman.meet_agent_poll_speech",
- json!({ "request_id": request_id }),
- )
- .await;
- let body = assert_no_jsonrpc_error(&r, "poll_speech ok");
- let body = body.get("result").unwrap_or(body);
- let b64 = body
- .get("pcm_base64")
- .and_then(|v| v.as_str())
- .unwrap_or_default();
- if !b64.is_empty() {
- got_audio = true;
- assert!(
- b64.len() > 1000,
- "stub TTS should produce a multi-KB base64 payload"
- );
- break;
- }
- }
- assert!(got_audio, "expected synthesized audio after VAD-fired turn");
-
- // 5) stop_session returns counters. listened_seconds should be
- // > 0 (we pushed >1s of audio); turn_count should be exactly 1.
- let stop = post_json_rpc(
- &rpc_base,
- 9160,
- "openhuman.meet_agent_stop_session",
- json!({ "request_id": request_id }),
- )
- .await;
- let stop_result = assert_no_jsonrpc_error(&stop, "stop_session ok");
- let stop_body = stop_result.get("result").unwrap_or(stop_result);
- assert_eq!(stop_body.get("ok"), Some(&json!(true)));
- let listened = stop_body
- .get("listened_seconds")
- .and_then(|v| v.as_f64())
- .unwrap_or(0.0);
- assert!(listened > 1.0, "expected >1s listened, got {listened:.2}");
- let turns = stop_body
- .get("turn_count")
- .and_then(|v| v.as_u64())
- .unwrap_or(0);
- assert_eq!(turns, 1, "expected exactly one brain turn");
-
- // 6) Stopping a non-existent session is an error (not silent).
- let bogus = post_json_rpc(
- &rpc_base,
- 9161,
- "openhuman.meet_agent_stop_session",
- json!({ "request_id": "never-started" }),
- )
- .await;
- assert_jsonrpc_error(&bogus, "stop_session unknown");
-
- rpc_join.abort();
-}
-
/// End-to-end coverage for the WhatsApp agent tool wrappers (issue #1341)
/// after the store's relocation to the Tauri shell.
///
@@ -14503,223 +14111,6 @@ async fn json_rpc_threads_token_usage_reads_persisted_thread_totals() {
rpc_join.abort();
}
-/// `openhuman.meet_list_upcoming` — verifies the RPC is registered, accepts
-/// optional params, and returns the correct envelope shape.
-///
-/// In the test environment there is no backend session token, so
-/// `create_composio_client` fails gracefully and the handler returns an
-/// empty meetings list (ok=true, meetings=[]) rather than an error.
-/// This validates the graceful no-calendar path without requiring a live
-/// Composio connection.
-#[tokio::test]
-async fn json_rpc_meet_list_upcoming_returns_empty_when_no_calendar_connected() {
- let _env_lock = json_rpc_e2e_env_lock();
- let tmp = tempdir().expect("tempdir");
- let home = tmp.path();
- let openhuman_home = home.join(".openhuman");
-
- let _home_guard = EnvVarGuard::set_to_path("HOME", home);
- let _workspace_guard = EnvVarGuard::unset("OPENHUMAN_WORKSPACE");
- let _backend_url_guard = EnvVarGuard::unset("BACKEND_URL");
- let _vite_backend_guard = EnvVarGuard::unset("VITE_BACKEND_URL");
-
- write_min_config(&openhuman_home, "http://127.0.0.1:9");
-
- let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;
- let rpc_base = format!("http://{rpc_addr}");
-
- tokio::time::sleep(Duration::from_millis(50)).await;
-
- // --- no params: defaults apply, returns ok=true with empty meetings ---
- let resp_default =
- post_json_rpc(&rpc_base, 9200, "openhuman.meet_list_upcoming", json!({})).await;
- let result = assert_no_jsonrpc_error(&resp_default, "meet_list_upcoming no-params");
- let body = result.get("result").unwrap_or(result);
- assert_eq!(
- body.get("ok"),
- Some(&json!(true)),
- "ok must be true when no calendar connected"
- );
- let meetings = body
- .get("meetings")
- .and_then(|v| v.as_array())
- .expect("meetings array must be present");
- assert!(
- meetings.is_empty(),
- "meetings must be empty when no Composio client available"
- );
-
- // --- explicit lookahead_minutes + limit: still returns ok=true with empty ---
- let resp_explicit = post_json_rpc(
- &rpc_base,
- 9201,
- "openhuman.meet_list_upcoming",
- json!({ "lookahead_minutes": 120, "limit": 5 }),
- )
- .await;
- let result2 = assert_no_jsonrpc_error(&resp_explicit, "meet_list_upcoming explicit params");
- let body2 = result2.get("result").unwrap_or(result2);
- assert_eq!(body2.get("ok"), Some(&json!(true)));
- assert!(body2
- .get("meetings")
- .and_then(|v| v.as_array())
- .is_some_and(|arr| arr.is_empty()));
-
- // --- invalid param type: lookahead_minutes must be a number ---
- let resp_bad = post_json_rpc(
- &rpc_base,
- 9202,
- "openhuman.meet_list_upcoming",
- json!({ "lookahead_minutes": "not-a-number" }),
- )
- .await;
- assert_jsonrpc_error(&resp_bad, "meet_list_upcoming bad lookahead type");
-
- rpc_join.abort();
-}
-
-/// `openhuman.meet_set_event_policy` / `openhuman.meet_get_event_policies` —
-/// verifies the per-event policy RPC round-trip.
-///
-/// Uses an in-process HTTP server so the store hits a real (temp) SQLite DB.
-#[tokio::test]
-async fn json_rpc_meet_event_policy_round_trip() {
- let _env_lock = json_rpc_e2e_env_lock();
- let tmp = tempdir().expect("tempdir");
- let home = tmp.path();
- let openhuman_home = home.join(".openhuman");
-
- let _home_guard = EnvVarGuard::set_to_path("HOME", home);
- let _workspace_guard = EnvVarGuard::unset("OPENHUMAN_WORKSPACE");
- let _backend_url_guard = EnvVarGuard::unset("BACKEND_URL");
- let _vite_backend_guard = EnvVarGuard::unset("VITE_BACKEND_URL");
-
- write_min_config(&openhuman_home, "http://127.0.0.1:9");
-
- let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;
- let rpc_base = format!("http://{rpc_addr}");
-
- tokio::time::sleep(Duration::from_millis(50)).await;
-
- // --- set a policy for two events ---
- let resp_set1 = post_json_rpc(
- &rpc_base,
- 9300,
- "openhuman.meet_set_event_policy",
- json!({ "calendar_event_id": "cal-evt-001", "policy": "auto" }),
- )
- .await;
- let result1 = assert_no_jsonrpc_error(&resp_set1, "set_event_policy cal-evt-001");
- let body1 = result1.get("result").unwrap_or(result1);
- assert_eq!(body1.get("ok"), Some(&json!(true)));
-
- let resp_set2 = post_json_rpc(
- &rpc_base,
- 9301,
- "openhuman.meet_set_event_policy",
- json!({ "calendar_event_id": "cal-evt-002", "policy": "skip" }),
- )
- .await;
- let result2 = assert_no_jsonrpc_error(&resp_set2, "set_event_policy cal-evt-002");
- let body2 = result2.get("result").unwrap_or(result2);
- assert_eq!(body2.get("ok"), Some(&json!(true)));
-
- // --- retrieve them in a batch ---
- let resp_get = post_json_rpc(
- &rpc_base,
- 9302,
- "openhuman.meet_get_event_policies",
- json!({ "calendar_event_ids": ["cal-evt-001", "cal-evt-002", "cal-evt-missing"] }),
- )
- .await;
- let result_get = assert_no_jsonrpc_error(&resp_get, "get_event_policies batch");
- let body_get = result_get.get("result").unwrap_or(result_get);
- assert_eq!(body_get.get("ok"), Some(&json!(true)));
- let policies = body_get.get("policies").expect("policies field");
- assert_eq!(policies.get("cal-evt-001"), Some(&json!("auto")));
- assert_eq!(policies.get("cal-evt-002"), Some(&json!("skip")));
- assert!(
- policies.get("cal-evt-missing").is_none(),
- "unknown event must be absent from policies map"
- );
-
- // --- overwrite a policy and verify the new value is returned ---
- let resp_overwrite = post_json_rpc(
- &rpc_base,
- 9303,
- "openhuman.meet_set_event_policy",
- json!({ "calendar_event_id": "cal-evt-001", "policy": "ask" }),
- )
- .await;
- assert_no_jsonrpc_error(&resp_overwrite, "set_event_policy overwrite");
-
- let resp_get2 = post_json_rpc(
- &rpc_base,
- 9304,
- "openhuman.meet_get_event_policies",
- json!({ "calendar_event_ids": ["cal-evt-001"] }),
- )
- .await;
- let result_get2 = assert_no_jsonrpc_error(&resp_get2, "get_event_policies after overwrite");
- let body_get2 = result_get2.get("result").unwrap_or(result_get2);
- let policies2 = body_get2
- .get("policies")
- .expect("policies field after overwrite");
- assert_eq!(
- policies2.get("cal-evt-001"),
- Some(&json!("ask")),
- "overwritten policy must reflect the new value"
- );
-
- // --- invalid policy string is rejected ---
- let resp_bad = post_json_rpc(
- &rpc_base,
- 9305,
- "openhuman.meet_set_event_policy",
- json!({ "calendar_event_id": "cal-evt-001", "policy": "invalid_policy" }),
- )
- .await;
- assert_jsonrpc_error(&resp_bad, "set_event_policy invalid policy");
-
- rpc_join.abort();
-}
-
-/// `openhuman.agent_meetings_generate_summary` — verifies the manual summary
-/// RPC is registered and reaches handler validation without needing an LLM.
-#[tokio::test]
-async fn json_rpc_agent_meetings_generate_summary_rejects_empty_meeting_id() {
- let _env_lock = json_rpc_e2e_env_lock();
- let tmp = tempdir().expect("tempdir");
- let home = tmp.path();
- let openhuman_home = home.join(".openhuman");
-
- let _home_guard = EnvVarGuard::set_to_path("HOME", home);
- let _workspace_guard = EnvVarGuard::unset("OPENHUMAN_WORKSPACE");
- let _backend_url_guard = EnvVarGuard::unset("BACKEND_URL");
- let _vite_backend_guard = EnvVarGuard::unset("VITE_BACKEND_URL");
-
- write_min_config(&openhuman_home, "http://127.0.0.1:9");
-
- let (rpc_addr, rpc_join) = serve_on_ephemeral(build_core_http_router(false)).await;
- let rpc_base = format!("http://{rpc_addr}");
-
- let resp = post_json_rpc(
- &rpc_base,
- 9310,
- "openhuman.agent_meetings_generate_summary",
- json!({ "meeting_id": "" }),
- )
- .await;
- let err = assert_jsonrpc_error(&resp, "agent_meetings_generate_summary empty meeting_id");
- let message = err.get("message").and_then(Value::as_str).unwrap_or("");
- assert!(
- message.contains("meeting_id must not be empty"),
- "expected generate_summary validation error, got: {err}"
- );
-
- rpc_join.abort();
-}
-
/// Seed a raw append-only session transcript at
/// `{workspace}/session_raw/{stem}.jsonl` (meta header + body lines).
fn seed_raw_transcript(workspace: &Path, stem: &str, thread_id: &str, body: &[&str]) {