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
Merge remote-tracking branch 'origin/main' into epic-8055-75-schedule-adoption
Steven Enamakel170660ae339f
diff --cc crates/openhuman-app/Cargo.lockindex 5f52a1f9cf,6a4d4ca3b0..dbb682a6e1--- a/crates/openhuman-app/Cargo.lock+++ b/crates/openhuman-app/Cargo.lock@@@ -6374,10 -6441,10 +6441,10 @@@ source = "registry+https://github.com/rchecksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"dependencies = ["fastrand",- "getrandom 0.3.4",+ "getrandom 0.4.3","once_cell","rustix 1.1.5",- "windows-sys 0.52.0",+ "windows-sys 0.59.0",][[package]]@@@ -7809,9 -7906,19 +7907,19 @@@ checksum = "f2f6fb2847f6742cd76af783a2adependencies = ["memoffset","tempfile",- "windows-sys 0.60.2",+ "windows-sys 0.61.2",]+ [[package]]+ name = "ulid"+ version = "1.2.1"+ source = "registry+https://github.com/rust-lang/crates.io-index"+ checksum = "470dbf6591da1b39d43c14523b2b469c86879a53e8b758c8e090a470fe7b1fbe"+ dependencies = [+ "rand 0.9.5",+ "web-time",+ ]+[[package]]name = "uname"version = "0.1.1"diff --cc crates/openhuman-core/src/cron/bus_host.rsindex 96288bb0ad,12464313d5..30adcee831--- a/crates/openhuman-core/src/cron/bus_host.rs+++ b/crates/openhuman-core/src/cron/bus_host.rs@@@ -319,23 -251,15 +319,23 @@@ pub(crate) async fn register(binding: B})}-/// Whether a job of `job_type` may run under `binding`, and the refusal text+/// Whether a job may run under `binding`, and the refusal text/// if not.-pub(crate) fn kind_refusal(binding: &Binding, job_type: &JobType) -> Option<String> {- (binding.is_agent_only() && !matches!(job_type, JobType::Agent)).then(|| {- "blocked by hosting policy: only agent cron jobs run here; shell and flow jobs are disabled"+pub(crate) fn kind_refusal(binding: &Binding, job: &CronJob) -> Option<String> {+ let trusted_memory_job = crate::cron::system_jobs::trusted_system_job_owner(job).is_some();+ (binding.is_agent_only()+ && !matches!(job.job_type, JobType::Agent)+ && !trusted_memory_job)+ .then(|| {+ "blocked by hosting policy: only agent cron jobs and trusted memory maintenance run here; shell and user flow jobs are disabled".to_string()- })+ })}- #[cfg(test)]+ #[cfg(all(test, feature = "modules"))]#[path = "bus_host_tests.rs"]mod tests;++#[cfg(test)]+#[path = "bus_host_trusted_system_tests.rs"]+mod trusted_system_tests;diff --cc crates/openhuman-core/src/cron/client_testing.rsindex 37f0f64da3,074c651c8c..db4c75ee6e--- a/crates/openhuman-core/src/cron/client_testing.rs+++ b/crates/openhuman-core/src/cron/client_testing.rs@@@ -5,9 -5,8 +5,9 @@@ use super::*use crate::storage::{Scope, StorageBackend};use std::sync::Arc;use tinyflows_bus::schedule::types::CronRun;+use tinyflows_bus::schedule::CronJob;- fn run<T: DeserializeOwned + Send + 'static>(+ fn run<T: Send + DeserializeOwned + 'static>(backend: &Arc<dyn StorageBackend>,scope: &Scope,operation: StoreOperation,diff --cc crates/openhuman-core/src/cron/store.rsindex 1ddbfd1078,e85b3495de..2c7661343d--- a/crates/openhuman-core/src/cron/store.rs+++ b/crates/openhuman-core/src/cron/store.rs@@@ -302,6 -308,32 +302,32 @@@ pub fn list_runs(config: &Config, job_i)}+ /// Moves a job's next run to `at`, which no production path can do directly+ /// (a patch reschedules from the schedule, not to a given instant). Writes the+ /// instant the store keeps (`next_run_ms`), so the due-job query sees it.+ #[cfg(test)]+ pub(crate) fn force_next_run_for_test(+ config: &Config,+ job_id: &str,+ at: DateTime<Utc>,+ ) -> Result<()> {+ use tinystoragedrivers::Precondition;+ let opened = crate::storage::local::open("cron::store", &config.workspace_dir)?;+ let docs = std::sync::Arc::clone(opened.scoped()?.documents());+ let job_id = job_id.to_string();+ crate::storage::block_on_anyhow(async move {+ let stored = docs+ .get("cron.jobs", &job_id)+ .await?+ .ok_or_else(|| anyhow::anyhow!("no job {job_id}"))?;+ let mut doc = stored.doc;+ doc["next_run_ms"] = serde_json::json!(at.timestamp_millis());+ docs.put("cron.jobs", &job_id, doc, Precondition::None)+ .await?;+ Ok(())+ })+ }+#[cfg(test)]#[path = "store_tests.rs"]-mod tests;+pub(crate) mod tests;diff --cc crates/openhuman-core/src/integrations/composio/mod.rsindex cd56009460,b45f1790db..171030e320--- a/crates/openhuman-core/src/integrations/composio/mod.rs+++ b/crates/openhuman-core/src/integrations/composio/mod.rs@@@ -50,8 -48,7 +50,9 @@@ pub(crate) mod direct_authpub mod execute_dispatch;pub(crate) mod file_store;mod file_store_documents;+pub(crate) mod flow_backend;+pub mod flow_gate;+ pub(crate) use file_store_documents::migrate_legacy_state;pub mod googlecalendar_args;pub mod identity;pub mod identity_store;diff --cc scripts/ci/check-openhuman-rust-layout.mjsindex 8a47247de5,02ca6c67e6..ee5cebd12b--- a/scripts/ci/check-openhuman-rust-layout.mjs+++ b/scripts/ci/check-openhuman-rust-layout.mjs@@@ -40,10 -40,10 +40,10 @@@ const LEGACY_LIMIT_ENTRIES =// their current sizes while follow-up work separates their test concerns.// `core/` was pruned from the line limit by name until these pins; its// oversized files are pinned at the size they had when enforcement began.- ["crates/openhuman-core/src/core/all.rs", 1230],+ ["crates/openhuman-core/src/core/all.rs", 1234],["crates/openhuman-core/src/core/all_tests.rs", 1465],- ["crates/openhuman-core/src/core/events.rs", 1803],- ["crates/openhuman-core/src/core/events_tests.rs", 997],+ ["crates/openhuman-core/src/core/events.rs", 1793],+ ["crates/openhuman-core/src/core/events_tests.rs", 988],["crates/openhuman-core/src/core/observability.rs", 3466],];const LEGACY_LIMITS = new Map(LEGACY_LIMIT_ENTRIES);diff --cc vendor/tinyflowsindex 98caac43b2,cad43f9799..9b558667c2--- a/vendor/tinyflows+++ b/vendor/tinyflows@@@ -1,1 -1,1 +1,1 @@@- Subproject commit 98caac43b202e2aefefbb9157185924aa0b291d7-Subproject commit cad43f9799cf20f2815325a1a50b2116d6942642++Subproject commit 9b558667c20f01fa264e0c40545753b69b2e3877