Skip to content

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

fix(artifacts): return unavailable store when no versioned store is configured

Steven Enamakelf1bfb35011af
diff --git a/crates/openhuman-core/src/artifacts/tiny_store.rs b/crates/openhuman-core/src/artifacts/tiny_store.rs
index 57c58c2029..4597b0f397 100644
--- a/crates/openhuman-core/src/artifacts/tiny_store.rs
+++ b/crates/openhuman-core/src/artifacts/tiny_store.rs
@@ -544,7 +544,7 @@ pub(super) fn build_artifacts_service_with_scope(
workspace_dir,
storage,
)),
- None => Arc::new(versioned_store(workspace_dir)),
+ None => Arc::new(UnavailableArtifactStore),
};
let file_store = storage
.as_ref()
diff --git a/crates/openhuman-core/src/triage/escalation_model_tests.rs b/crates/openhuman-core/src/triage/escalation_model_tests.rs
index 0f4ebd9d33..7900d8da61 100644
--- a/crates/openhuman-core/src/triage/escalation_model_tests.rs
+++ b/crates/openhuman-core/src/triage/escalation_model_tests.rs
@@ -176,7 +176,7 @@ async fn react_dispatch_keeps_routing_without_creating_child_lifecycle_records()
),
)
.await
- .expect("react escalation should complete");
+ .inspect_err(|e| eprintln!("DBGERR {e:?}")).expect("react escalation should complete");
// Prove that the requested route reached the model before checking the
// lifecycle boundary below, so a skipped dispatch cannot satisfy it.
@@ -320,7 +320,7 @@ async fn direct_turn_model_source_metadata_probe_does_not_duplicate_egress_discl
),
)
.await
- .expect("direct target turn should complete");
+ .inspect_err(|e| eprintln!("DBGERR {e:?}")).expect("direct target turn should complete");
{
let requests = requests.lock().unwrap();
@@ -428,7 +428,7 @@ async fn react_dispatch_falls_back_to_parent_model_when_hint_route_cannot_build(
),
)
.await
- .expect("react escalation should complete");
+ .inspect_err(|e| eprintln!("DBGERR {e:?}")).expect("react escalation should complete");
let builds = builds.lock().unwrap();
assert!(builds.iter().any(|(role, _)| role == "chat"));
@@ -505,7 +505,7 @@ async fn escalate_dispatch_preserves_orchestrator_tools_without_child_delegation
),
)
.await
- .expect("escalation should complete");
+ .inspect_err(|e| eprintln!("DBGERR {e:?}")).expect("escalation should complete");
let requests = requests.lock().unwrap();
assert_eq!(
@@ -606,7 +606,7 @@ async fn react_dispatch_inherits_the_parent_workload_for_inherit_targets() {
),
)
.await
- .expect("escalation should complete");
+ .inspect_err(|e| eprintln!("DBGERR {e:?}")).expect("escalation should complete");
let requests = requests.lock().unwrap();
assert_eq!(