Skip to content

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

chore(storage): drop tinyagents_graph storage ownership

Steven Enamakelec24f7f0dc6b
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.toml
index 21eeb3e09f..9f10a6bcb2 100644
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@ -53,6 +53,7 @@ crate-type = ["rlib"]
# contracts. Unconditional because cron and module callbacks remain available
# without the OpenHuman `flows` surface; engine and catalog implementations are
# reached only through the loaded module's bus endpoints.
+tinyflows = { path = "../../vendor/tinyflows/crates/tinyflows" }
tinyflows-bus = { path = "../../vendor/tinyflows/crates/tinyflows-bus" }
# Reads the stores tinyflows hosts used before storage moved onto the ports
# (`flows.db`, `jobs.db`, `checkpoints.db`, drafts). Only its pure SQLite readers
diff --git a/crates/openhuman-core/src/agent/tinyagents/delegation_tests.rs b/crates/openhuman-core/src/agent/tinyagents/delegation_tests.rs
deleted file mode 100644
index d7b35958f1..0000000000
--- a/crates/openhuman-core/src/agent/tinyagents/delegation_tests.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-use super::*;
-
-/// The graph mechanics, the revision budget, checkpoint/resume
-/// classification and the on-disk state shape are all tested upstream in
-/// `tinyagents_graph::delegation`. What is testable *here* is the only
-/// behaviour this file adds: that a run gets OpenHuman's tracing sink
-/// attached, and that an explicit one is never overridden.
-#[test]
-fn tracing_sink_is_attached_when_the_caller_supplies_none() {
- let config = with_tracing_sink(DelegationConfig::default());
- assert!(
- config.event_sink.is_some(),
- "every delegation run must be journalled onto openhuman tracing"
- );
-}
-
-#[test]
-fn an_explicit_sink_is_not_overridden() {
- let mine: Arc<dyn tinyagents_graph::stream::GraphEventSink> =
- Arc::new(tinyagents_graph::stream::CollectingSink::default());
- let config = with_tracing_sink(DelegationConfig {
- event_sink: Some(mine.clone()),
- ..DelegationConfig::default()
- });
- let attached = config.event_sink.expect("kept");
- assert!(
- Arc::ptr_eq(&mine, &attached),
- "a caller-supplied sink is kept, not replaced"
- );
-}
diff --git a/crates/openhuman-core/src/storage/boot.rs b/crates/openhuman-core/src/storage/boot.rs
index 3d50415bdd..57d792a6bf 100644
--- a/crates/openhuman-core/src/storage/boot.rs
+++ b/crates/openhuman-core/src/storage/boot.rs
@@ -205,12 +205,6 @@ async fn post_migrate_importers(
record(report, scope, "import_legacy_kv", &error);
}
}
- if let Err(error) = tinyagents_graph::import_legacy_leases(scoped).await {
- record(report, scope, "import_legacy_leases", &error);
- }
- if let Err(error) = tinyagents_graph::import_legacy_task_cache(scoped).await {
- record(report, scope, "import_legacy_task_cache", &error);
- }
for (step, error) in super::host_importers::run(scoped).await {
record(report, scope, step, &error);
}
diff --git a/crates/openhuman-core/src/storage/schema.rs b/crates/openhuman-core/src/storage/schema.rs
index c04d2b6387..e8f2755d07 100644
--- a/crates/openhuman-core/src/storage/schema.rs
+++ b/crates/openhuman-core/src/storage/schema.rs
@@ -37,7 +37,6 @@ pub fn owner_schemas() -> Vec<Schema> {
tinyagents_session::ledger_storage_schema(),
tinyagents_session::history_storage_schema(),
tinyagents_session::conversations_storage_schema(),
- tinyagents_graph::storage_schema(),
tinyagents_tasks::storage_schema(),
crate::security::approval::storage_schema(),
crate::security::devices::storage_schema(),
diff --git a/crates/openhuman-core/src/storage/schema_tests.rs b/crates/openhuman-core/src/storage/schema_tests.rs
index b971dd356b..8765691573 100644
--- a/crates/openhuman-core/src/storage/schema_tests.rs
+++ b/crates/openhuman-core/src/storage/schema_tests.rs
@@ -7,7 +7,6 @@ fn every_owner_composes_without_collision() {
for expected in [
"harness",
"session",
- "graph",
"tasks",
"approvals",
"devices",