Skip to content

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

chore: files changed crates/openhuman-core/src/modules/registry_contract_tests.rs,crates/openhuman-e

Steven Enamakel62569ee1c3d7
diff --git a/crates/openhuman-core/src/modules/registry_contract_tests.rs b/crates/openhuman-core/src/modules/registry_contract_tests.rs
index e0d7cea4f9..c8f6bb5bdf 100644
--- a/crates/openhuman-core/src/modules/registry_contract_tests.rs
+++ b/crates/openhuman-core/src/modules/registry_contract_tests.rs
@@ -178,57 +178,57 @@ fn the_flows_record_serves_the_schedule_object() {
assert_eq!(component_for("tinyflows"), Some("tinyflows"));
}
-/// The pins are the published v0.8.25 `checksum.toml` (the first release with
-/// schedule contract v6).
+/// The pins are the published v0.8.26 `checksum.toml` (the first release with
+/// schedule contract v6 and Copilot prompt resources).
#[test]
fn the_flows_record_pins_every_host_of_one_release() {
let record = find("tinyflows").unwrap();
- assert_eq!(record.version, "0.8.25");
+ assert_eq!(record.version, "0.8.26");
assert_eq!(record.assets.len(), 11);
let expected = [
(
- "tinyflows-module-0.8.25-macos-26-arm64.tar.gz",
- "af7e4fd98885704f4745384b32f628128954389595269698bc26fa90be41ea68",
+ "tinyflows-module-0.8.26-macos-26-arm64.tar.gz",
+ "7580d7ca414b1a1cb5d950cb02ca274bad3028bfcd6193a0bf1101f36e8e3f0c",
),
(
- "tinyflows-module-0.8.25-macos-26-x86_64.tar.gz",
- "d253d9ca4d95b806042b7b5bc4f98acfdb174c0512e3fb7035a46a7e0e07b39d",
+ "tinyflows-module-0.8.26-macos-26-x86_64.tar.gz",
+ "92ed4344f3838f35a030caf88407886127c0293529d06640b124c3e708f8998a",
),
(
- "tinyflows-module-0.8.25-macos-15-arm64.tar.gz",
- "2f6a938f3d12874db93d3b44eca3e7aa44418cd1c6d07a06813d3ff10eddacbe",
+ "tinyflows-module-0.8.26-macos-15-arm64.tar.gz",
+ "2aae71e0d241d0cf39e219b96b10ddacc24b3c5c9e88d32acaf8dccc221c3da3",
),
(
- "tinyflows-module-0.8.25-macos-15-x86_64.tar.gz",
- "7dafc35c4754e1198209f0fd182e3ab3e7e1aa2bb6cfdcfad1bae0649049aa7f",
+ "tinyflows-module-0.8.26-macos-15-x86_64.tar.gz",
+ "3c5fcc9302ee1a11334eb9aead916a607fc7a01d9aa067545c0c41bf118e58db",
),
(
- "tinyflows-module-0.8.25-ubuntu-24.04-x86_64.tar.gz",
- "1a713e76ff38034481a06cfc0dc9cee1c59af80af6338d9d4a4c8901fbab7c8f",
+ "tinyflows-module-0.8.26-ubuntu-24.04-x86_64.tar.gz",
+ "4f5030fba094e81e909ad342b6a31abf55ae0615c0b894c4c71f1d712fa2981c",
),
(
- "tinyflows-module-0.8.25-ubuntu-24.04-arm64.tar.gz",
- "b0f59ee5d2f7726f409a5e3d5cd48eea2f2a2f32fe82a070eb8758ee80ae2646",
+ "tinyflows-module-0.8.26-ubuntu-24.04-arm64.tar.gz",
+ "442963394c17e5c43e02b3e57558b2549c752048eef36a616b03119b84cc556e",
),
(
- "tinyflows-module-0.8.25-ubuntu-22.04-x86_64.tar.gz",
- "4d8f500c83243894daea71a3051c1d549269cd2079bf114469c41324a7e3733d",
+ "tinyflows-module-0.8.26-ubuntu-22.04-x86_64.tar.gz",
+ "e86eda1b9d37d9733f265821ff0d7e89e276991ce7cae2838d6c7a273d15631f",
),
(
- "tinyflows-module-0.8.25-ubuntu-22.04-arm64.tar.gz",
- "3eadc6e3e71a6176354a695b33897b6eda61ba469f26dc51e27dd3e966cebda0",
+ "tinyflows-module-0.8.26-ubuntu-22.04-arm64.tar.gz",
+ "4b0deb89170ccbf22ae89d994520559c4243c24822d376d6bf92b72c01efc9d9",
),
(
- "tinyflows-module-0.8.25-windows-2025-x86_64.zip",
- "9cf9b8bf35b4e7134a57dc5e03d14966c9ff468bfec16fcac8b22285dcbc2e40",
+ "tinyflows-module-0.8.26-windows-2025-x86_64.zip",
+ "f13088909316c00873ff87b9ee2970d35c231c946f27f3506ecdf6f7bc0b20c0",
),
(
- "tinyflows-module-0.8.25-windows-2022-x86_64.zip",
- "bb5c8d97030aa53a05c3baf60bb1e3a6a8631be6add72a03823052b795fb1286",
+ "tinyflows-module-0.8.26-windows-2022-x86_64.zip",
+ "f71ba5038f4658ab4b29967eb37020376e5e5a1fc32323036a8bdd079e140b9a",
),
(
- "tinyflows-module-0.8.25-windows-11-arm64.zip",
- "712cf7bc89b3d0a1a02beff3d792990047cd946a23433a3e6f54b35545963ad8",
+ "tinyflows-module-0.8.26-windows-11-arm64.zip",
+ "96c860ecce2d82537aedb2efd97c8c4fc9b023c0b370e06be8a0efe50cbef078",
),
];
for (asset, (archive, sha256)) in record.assets.iter().zip(expected) {
diff --git a/crates/openhuman-embed/tests/cron_agents.rs b/crates/openhuman-embed/tests/cron_agents.rs
index 9df8b67b71..2a2b9db4df 100644
--- a/crates/openhuman-embed/tests/cron_agents.rs
+++ b/crates/openhuman-embed/tests/cron_agents.rs
@@ -232,7 +232,7 @@ fn background_services_drive_the_scheduler_and_stop_with_the_runtime() {
tokio::spawn(async {
let backend = stub_backend().await;
let mut config = offline_config();
- config.reliability.scheduler_poll_secs = 1;
+ config.reliability.scheduler_poll_secs = 5;
let temp = tempfile::tempdir().expect("workspace");
let workspace = Workspace::dir(temp.path().join("state"));
let runtime = Runtime::builder()
@@ -268,6 +268,13 @@ fn background_services_drive_the_scheduler_and_stop_with_the_runtime() {
*fired.lock().unwrap() > 0
})
.await;
+ wait_for("the first scheduled run to finish", || {
+ runtime
+ .cron()
+ .runs("svc-tick", 10)
+ .is_ok_and(|runs| runs.first().is_some_and(|run| run.status == "ok"))
+ })
+ .await;
let runs_after_first = runtime.cron().runs("svc-tick", 10).unwrap().len();
assert!(runs_after_first > 0, "the scheduler records its callback");
@@ -279,7 +286,9 @@ fn background_services_drive_the_scheduler_and_stop_with_the_runtime() {
// Explicit control.
runtime.stop_services();
wait_for_services_changed(&mut events, false).await;
- tokio::time::sleep(Duration::from_millis(1_250)).await;
+ // The host scheduler clamps the configured poll cadence to at least five
+ // seconds, so observe beyond one full effective poll interval.
+ tokio::time::sleep(Duration::from_millis(6_200)).await;
assert_eq!(
runtime.cron().runs("svc-tick", 10).unwrap().len(),
runs_after_first,
@@ -287,14 +296,17 @@ fn background_services_drive_the_scheduler_and_stop_with_the_runtime() {
);
runtime.start_services().await;
wait_for_services_changed(&mut events, true).await;
- wait_for("the scheduler to fire after restart", || {
- runtime.cron().runs("svc-tick", 10).unwrap().len() > runs_after_first
+ wait_for("the scheduler to complete a run after restart", || {
+ runtime.cron().runs("svc-tick", 10).is_ok_and(|runs| {
+ runs.len() > runs_after_first
+ && runs.first().is_some_and(|run| run.status == "ok")
+ })
})
.await;
let runs_after_restart = runtime.cron().runs("svc-tick", 10).unwrap().len();
drop(runtime);
- tokio::time::sleep(Duration::from_millis(1_250)).await;
+ tokio::time::sleep(Duration::from_millis(6_200)).await;
let second = Runtime::builder()
.config(config)
.workspace(workspace)
@@ -327,7 +339,7 @@ fn deferred_services_wait_for_the_host_so_a_due_job_finds_its_handler() {
tokio::spawn(async {
let backend = stub_backend().await;
let mut config = offline_config();
- config.reliability.scheduler_poll_secs = 1;
+ config.reliability.scheduler_poll_secs = 5;
let runtime = Runtime::builder()
.config(config)
.workspace(Workspace::Ephemeral)
@@ -351,7 +363,9 @@ fn deferred_services_wait_for_the_host_so_a_due_job_finds_its_handler() {
JobSchedule::Every { ms: 1_000 },
))
.unwrap();
- tokio::time::sleep(Duration::from_secs(2)).await;
+ // The scheduler clamps host polling to five seconds; wait beyond
+ // that interval so an incorrectly-started scheduler would run.
+ tokio::time::sleep(Duration::from_millis(6_200)).await;
assert!(
runtime.cron().runs("deferred-tick", 10).unwrap().is_empty(),
"a deferred build must not run the due job"