Skip to content

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

refactor(core): simplify workflow retrieval in authoring host

Steven Enamakel82a129bf2de0
diff --git a/crates/openhuman-core/src/flows/authoring_host.rs b/crates/openhuman-core/src/flows/authoring_host.rs
index 33089c4208..048de8b5c9 100644
--- a/crates/openhuman-core/src/flows/authoring_host.rs
+++ b/crates/openhuman-core/src/flows/authoring_host.rs
@@ -226,8 +226,7 @@ impl DraftPromotionCallbacks {
.await?
}
};
- let workflow: catalog::Workflow = crate::flows::store::roundtrip(outcome.value)
- .map_err(|error| error.to_string())?;
+ let workflow: catalog::Workflow = outcome.value;
Ok(SavePromotedDraftResponse::Ok(
catalog::SavePromotedDraftResult {
workflow,
diff --git a/crates/openhuman-core/src/storage/README.md b/crates/openhuman-core/src/storage/README.md
index 2c0d77dab3..2f728f470b 100644
--- a/crates/openhuman-core/src/storage/README.md
+++ b/crates/openhuman-core/src/storage/README.md
@@ -276,15 +276,15 @@ without fencing).
approvals (`security::approval`), paired devices (`security::devices`),
notifications (`desktop::notifications`) and task sources
(`integrations::task_sources`).
-- tinyflows' own stores on the ports (`tinyflows-drivers`), picked per call
- the same way: cron jobs and runs (`cron::store`, `CronDocuments`), the flow
- catalog and drafts (`flows::store`, `flows::draft_store`,
- `FlowCatalogDocuments`), per-flow engine state and dedup settlement
- (`flows::tinyflows::state::FlowState`), and the flow-run checkpointer
- (`DriverCheckpointer`). The delegation graph's checkpointer uses
+- Module-owned stores use scoped document callbacks rather than linking their
+ implementation crates into the core. TinyFlows Catalog accesses the current
+ backend through `flows::catalog_storage` and its `CatalogStorage` bus
+ contract; the Schedule service accesses cron documents through
+ `cron::documents_port`. The modules own their schemas, migrations, flow state,
+ and run checkpoints. The delegation graph's checkpointer uses
tinyagents-graph's `DriverCheckpointer`.
- `block_on_anyhow(future)`: `block_on` for those stores, whose errors are
- `anyhow::Error` (a typed `FlowUpdateError` passes through unchanged).
+ `anyhow::Error`.
- Approvals (`security::approval`), through `store_documents.rs`.
- Secrets (`storage::secrets`): the keyring's user secrets
(`security::secret_storage::get` / `set` / `delete`) and the credential stores'