Skip to content

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

fix(memory): version-gap message for the pre-release override member\n\nMaintainer review, points 2 and 3: an operator running the override\nagainst the released v1.13.6 module got the bus's member-resolution\nerror verbatim -- an internal fault string for what is a version gap.\nThe RPC now maps that class to "requires tinymemory >= 1.13.7". And the\nschema description states the surface's audience plainly: operator/CLI\nby design for now, with the in-app affordance tracked in #5935 -- said\nout loud so the missing caller reads as a decision, not an oversight.\n

Shanu979421f367a7
diff --git a/src/openhuman/memory/ops/sync.rs b/src/openhuman/memory/ops/sync.rs
index 8bdee0f80a..bd97c4646d 100644
--- a/src/openhuman/memory/ops/sync.rs
+++ b/src/openhuman/memory/ops/sync.rs
@@ -386,7 +386,24 @@ pub async fn memory_scheduler_override(
crate::openhuman::modules::memory::ModuleMemoryProvider::from_boot_policy()
.override_scheduler_gate(seconds)
.await
- .map_err(|error| format!("scheduler override: {error}"))?;
+ .map_err(|error| {
+ let rendered = error.to_string();
+ // Against the released v1.13.6 module the member does not
+ // exist yet (it ships in tinymemory#127), and the bus answers
+ // with a member-resolution error. An operator running this
+ // today should read a version gap, not an internal fault
+ // (review finding on #5932).
+ if rendered.contains("MemberNotFound")
+ || rendered.contains("UnknownMethod")
+ || rendered.contains("no such member")
+ {
+ "this build's memory module does not support the scheduler override \
+ (requires tinymemory >= 1.13.7)"
+ .to_string()
+ } else {
+ format!("scheduler override: {rendered}")
+ }
+ })?;
Ok(RpcOutcome::new(
SchedulerOverrideResult {
overridden: true,
diff --git a/src/openhuman/memory/schemas/sync.rs b/src/openhuman/memory/schemas/sync.rs
index dc4ee2cbca..548e201b4d 100644
--- a/src/openhuman/memory/schemas/sync.rs
+++ b/src/openhuman/memory/schemas/sync.rs
@@ -81,7 +81,9 @@ pub(super) fn schema(function: &str) -> Option<ControllerSchema> {
function: "scheduler_override",
description: "Open a bounded manual-override window on the memory module's background \
scheduler gate, so user-requested maintenance runs even while the gate \
- is paused (mode=off, signed out, on battery). Clamped to one hour.",
+ is paused (mode=off, signed out, on battery). Clamped to one hour. \
+ Operator/CLI surface by design for now -- the in-app affordance is \
+ tracked in #5935 and lands with the UI half of that issue.",
inputs: vec![FieldSchema {
name: "seconds",
ty: TypeSchema::Option(Box::new(TypeSchema::U64)),