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
fix(storage): correct lease expiry boundary check
Steven Enamakel650c329070e3
diff --git a/crates/openhuman-core/proptest-regressions/storage/lease_model_tests.txt b/crates/openhuman-core/proptest-regressions/storage/lease_model_tests.txtnew file mode 100644index 0000000000..3cfb3b1a6b--- /dev/null+++ b/crates/openhuman-core/proptest-regressions/storage/lease_model_tests.txt@@ -0,0 +1,7 @@+# Seeds for failure cases proptest has generated in the past. It is+# automatically read and these particular cases re-run before any+# novel cases are generated.+#+# It is recommended to check this file in to source control so that+# everyone who runs the test benefits from these saved cases.+cc 7db526ff184e6a4384a8e5154f3f9b487f6545fd3766102792af780b583ee9f0 # shrinks to (nodes, steps) = (2, [Acquire(0), Advance(999), Acquire(1)])diff --git a/crates/openhuman-core/src/storage/lease.rs b/crates/openhuman-core/src/storage/lease.rsindex eb14987aa3..0c1508a0d8 100644--- a/crates/openhuman-core/src/storage/lease.rs+++ b/crates/openhuman-core/src/storage/lease.rs@@ -233,7 +233,7 @@ pub(crate) fn decide(unclean: true,};}- if now_ms + 1 >= record.expires_at_ms {+ if now_ms >= record.expires_at_ms {return Takeover::Take {epoch: next,unclean: true,