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
docs(cron): document memory maintenance jobs in agent-jobs-only mode
Steven Enamakel4e5e62cc2729
diff --git a/crates/openhuman-core/src/config/schema/cron.rs b/crates/openhuman-core/src/config/schema/cron.rsindex ccfed6cac7..7bb9801bb0 100644--- a/crates/openhuman-core/src/config/schema/cron.rs+++ b/crates/openhuman-core/src/config/schema/cron.rs@@ -11,11 +11,12 @@ pub struct CronConfig {pub enabled: bool,#[serde(default = "default_cron_max_run_history")]pub max_run_history: usize,- /// Operator-owned mode for hosted deployments: only agent jobs bound to- /// the conversation that created them. Shell and flow jobs are refused- /// at add, update, run and dispatch; delivery is limited to `origin` and- /// `none`; recurring jobs must keep to [`Self::min_interval_secs`] and- /// the number of enabled jobs to [`Self::max_active_jobs`].+ /// Operator-owned mode for hosted deployments: agent jobs bound to the+ /// conversation that created them, plus the memory domain's two+ /// code-owned maintenance jobs. Shell and user-owned flow jobs are refused+ /// at add, update, run and dispatch; memory jobs are seeded internally and+ /// count toward [`Self::max_active_jobs`]. Delivery is limited to `origin`+ /// and `none`; recurring jobs must keep to [`Self::min_interval_secs`].#[serde(default)]pub agent_jobs_only: bool,/// With `agent_jobs_only`: the shortest gap allowed between runs of adiff --git a/crates/openhuman-core/src/core/runtime/saas.rs b/crates/openhuman-core/src/core/runtime/saas.rsindex 2dd4155a66..f24241af5b 100644--- a/crates/openhuman-core/src/core/runtime/saas.rs+++ b/crates/openhuman-core/src/core/runtime/saas.rs@@ -158,8 +158,10 @@ impl std::fmt::Debug for SaasConfig {#[derive(Debug, Clone, PartialEq, Deserialize)]#[serde(deny_unknown_fields)]pub struct SaasCronConfig {- /// Allow only agent jobs bound to the conversation that created them:- /// no shell or flow jobs, no chosen delivery destination.+ /// Allow agent jobs bound to their creating conversation and the memory+ /// domain's two code-owned maintenance jobs. Shell and user-owned flow+ /// jobs remain disabled; delivery is limited to `origin` and `none`, the+ /// recurrence interval still applies, and memory jobs consume the cap.#[serde(default)]pub agent_jobs_only: bool,/// With `agent_jobs_only`: seconds between runs of a recurring job, at least.diff --git a/crates/openhuman-core/src/cron/bus_host.rs b/crates/openhuman-core/src/cron/bus_host.rsindex 9ae7538b9c..614b4eecc3 100644--- a/crates/openhuman-core/src/cron/bus_host.rs+++ b/crates/openhuman-core/src/cron/bus_host.rs@@ -283,8 +283,7 @@ pub(crate) async fn register(binding: Binding) -> Result<HostRegistration, Strin/// Whether a job may run under `binding`, and the refusal text/// if not.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();+ 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)diff --git a/crates/openhuman-core/src/cron/limits.rs b/crates/openhuman-core/src/cron/limits.rsindex c209907d85..4f8c72941c 100644--- a/crates/openhuman-core/src/cron/limits.rs+++ b/crates/openhuman-core/src/cron/limits.rs@@ -14,8 +14,8 @@ use anyhow::{bail, Result};use chrono::{Duration, Utc};use crate::config::Config;-use crate::cron::{delivery_mode, CronJob, CronJobPatch, DeliveryConfig, JobType, Schedule};use crate::cron::system_jobs::TrustedSystemJobOwner;+use crate::cron::{delivery_mode, CronJob, CronJobPatch, DeliveryConfig, JobType, Schedule};/// Whether `config` restricts cron to agent jobs.pub fn enforced(config: &Config) -> bool {