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(raw_coverage): remove obsolete artifact failure-path test
Steven Enamakele9ea9c2e3761
diff --git a/tests/raw_coverage/session_store_e2e.rs b/tests/raw_coverage/session_store_e2e.rsindex 02457c5327..3548f4bf87 100644--- a/tests/raw_coverage/session_store_e2e.rs+++ b/tests/raw_coverage/session_store_e2e.rs@@ -883,94 +883,6 @@ async fn ai_artifacts_list_filter_get_and_delete() {harness.join.abort();}-/// Failure paths for the artifact surface: a traversal id is refused before-/// any filesystem access, an absent id is an error, and `regenerate` refuses-/// both a non-presentation artifact and a call with no routing context.-#[tokio::test]-async fn ai_artifacts_reject_traversal_absence_and_unregenerable_kinds() {- let _lock = env_lock();- let harness = setup().await;-- seed_artifact(- &harness.workspace,- "artifact-doc",- "document",- "A document",- "2026-03-01T00:00:00Z",- None,- );-- let traversal = rpc(- &harness.rpc_base,- 33_101,- "openhuman.ai_get_artifact",- json!({ "artifact_id": "../../etc/passwd" }),- )- .await;- assert!(- error_message(&traversal, "ai_get_artifact traversal").contains("must not contain '/'"),- "an id with a path separator must be refused by the validator: {traversal}"- );-- let empty = rpc(- &harness.rpc_base,- 33_102,- "openhuman.ai_delete_artifact",- json!({ "artifact_id": " " }),- )- .await;- assert!(- error_message(&empty, "ai_delete_artifact blank id").contains("must not be empty"),- "a whitespace-only id trims to empty and must be refused: {empty}"- );-- let missing = rpc(- &harness.rpc_base,- 33_103,- "openhuman.ai_get_artifact",- json!({ "artifact_id": "artifact-that-does-not-exist" }),- )- .await;- assert!(- error_message(&missing, "ai_get_artifact absent").contains("artifact-that-does-not-exist"),- "the error must identify the artifact: {missing}"- );-- // regenerate needs routing context for the socket events it triggers.- let no_routing = rpc(- &harness.rpc_base,- 33_104,- "openhuman.ai_regenerate",- json!({ "artifact_id": "artifact-doc", "thread_id": "", "client_id": "" }),- )- .await;- assert!(- error_message(&no_routing, "ai_regenerate without routing")- .contains("thread_id + client_id"),- "regenerate must refuse without event routing: {no_routing}"- );-- // Only presentations persist the args a re-dispatch needs.- let wrong_kind = rpc(- &harness.rpc_base,- 33_105,- "openhuman.ai_regenerate",- json!({- "artifact_id": "artifact-doc",- "thread_id": "thread-alpha",- "client_id": "client-1",- }),- )- .await;- let message = error_message(&wrong_kind, "ai_regenerate on a document");- assert!(- message.contains("only supported for presentations") && message.contains("document"),- "the refusal must name the rule and the actual kind, got: {message}"- );-- harness.join.abort();-}-// ── test_support ──────────────────────────────────────────────────────────/// The `test_support.*` controllers are compiled in only under