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
chore(scheduler-gate): update docs and pin exemption for tinymemory-api decision logic
Steven Enamakelec8250b59a56
diff --git a/crates/openhuman-core/src/cron/scheduler_gate/README.md b/crates/openhuman-core/src/cron/scheduler_gate/README.mdindex 6b36520fe5..6c77675d12 100644--- a/crates/openhuman-core/src/cron/scheduler_gate/README.md+++ b/crates/openhuman-core/src/cron/scheduler_gate/README.md@@ -17,8 +17,8 @@ Gates background AI work (memory-tree digests, embeddings, summarisation, triage| --- | --- || `crates/openhuman-core/src/cron/scheduler_gate/mod.rs` | Module docstring + re-exports of the public surface. || `crates/openhuman-core/src/cron/scheduler_gate/gate.rs` | Process-wide singleton: cached `State` (config + signals + policy), the 30s sampler task, the single-slot LLM semaphore, `LlmPermit` RAII guard, signed-out override, and `init_global`/`update_config`/`current_policy`/`current_signals`/`wait_for_capacity`. Holds the per-tokio-runtime test-state scaffolding. |-| `crates/openhuman-core/src/cron/scheduler_gate/policy.rs` | Pure decision logic: `decide(signals, cfg) -> Policy`, the `Policy` and `PauseReason` enums, and their `as_str` / `pause_reason` helpers. Evaluation order: user mode override → server mode → power-aware stand-down → hard CPU ceiling → battery/CPU headroom. |-| `crates/openhuman-core/src/cron/scheduler_gate/signals.rs` | `Signals` snapshot + `Signals::sample()`. Probes battery (via `starship_battery`), CPU usage (via `sysinfo`, two-refresh delta), and detects server/container mode. Honours `OPENHUMAN_ON_AC_POWER`, `OPENHUMAN_BATTERY_CHARGE`, `OPENHUMAN_DEPLOYMENT` env overrides plus Kubernetes / `/.dockerenv` heuristics. |+| `tinymemory-api` (`host::scheduler_gate_decide`, vendored) | Pure decision logic: `decide(signals, cfg) -> Policy`, the `Signals` snapshot, with `Policy` / `PauseReason` beside `SchedulerGateConfig` in `host::scheduler_gate`. Evaluation order: user mode override → server mode → power-aware stand-down → hard CPU ceiling → battery/CPU headroom. |+| `crates/openhuman-core/src/cron/scheduler_gate/signals.rs` | `sample() -> Signals` (the `Signals` type lives in `tinymemory-api`). Probes battery (via `starship_battery`), CPU usage (via `sysinfo`, two-refresh delta), and detects server/container mode. Honours `OPENHUMAN_ON_AC_POWER`, `OPENHUMAN_BATTERY_CHARGE`, `OPENHUMAN_DEPLOYMENT` env overrides plus Kubernetes / `/.dockerenv` heuristics. |## Public surfacediff --git a/crates/openhuman-core/src/cron/scheduler_gate/gate.rs b/crates/openhuman-core/src/cron/scheduler_gate/gate.rsindex 43c584a2fe..7c41906eb4 100644--- a/crates/openhuman-core/src/cron/scheduler_gate/gate.rs+++ b/crates/openhuman-core/src/cron/scheduler_gate/gate.rs@@ -13,8 +13,8 @@ use parking_lot::RwLock;use tokio::sync::{Notify, OwnedSemaphorePermit, Semaphore};use crate::config::{Config, SchedulerGateConfig};-use tinymemory_api::host::{decide, PauseReason, Policy};use crate::cron::scheduler_gate::signals::{self, Signals};+use tinymemory_api::host::{decide, PauseReason, Policy};/// Process-wide ceiling on concurrent LLM-bound work.///diff --git a/scripts/ci/module-pin-exemptions.json b/scripts/ci/module-pin-exemptions.jsonindex 0521fae80b..9ae857c5d5 100644--- a/scripts/ci/module-pin-exemptions.json+++ b/scripts/ci/module-pin-exemptions.json@@ -39,7 +39,8 @@{"id": "tinymemory","submodule": "vendor/tinymemory",- "expect": "v1.17.0-4-g0c754584",+ "expect": "v1.17.0-6-gea7dee8",+ "reason": "The pin is v1.17.0 plus pure-library additions only: the new crate tinymemory-conversations (tinymemory#170) and the pure `host::scheduler_gate_decide` module in tinymemory-api (tinymemory#172: the `decide` function and the plain-data `Signals` snapshot beside `SchedulerGateConfig`/`Policy`), stacked on it (branch oh-scheduler-gate-decide-on-v1.17.0). The core links both as Rust path dependencies. No module, contract or bus source changes, so the registry's v1.17.0 artifact still matches the contract compiled here. Remove when tinymemory#170 and #172 ship in a release and both pins move to it.","reason": "The pin is v1.17.0 plus only the new pure-library crate tinymemory-conversations (tinymemory#170), which the core links as a Rust path dependency. git diff v1.17.0..0c754584 adds only that crate and its workspace entry; no module, contract or bus source changes, so the registry's v1.17.0 artifact still matches the contract compiled here. Remove when tinymemory#170 ships in a release and both pins move to it."},{