Skip to content

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

feat(memory): add backfill status and start RPC methods

Steven Enamakeldab207b4d67a
diff --git a/app/src/services/rpcMethods.ts b/app/src/services/rpcMethods.ts
index c4c49ba3af..000cd87043 100644
--- a/app/src/services/rpcMethods.ts
+++ b/app/src/services/rpcMethods.ts
@@ -45,6 +45,8 @@ export const CORE_RPC_METHODS = {
memoryItemsGet: 'openhuman.memory_items_get',
memoryConversationsGet: 'openhuman.memory_conversations_get',
memoryConversationsSet: 'openhuman.memory_conversations_set',
+ memoryConversationsBackfillStatus: 'openhuman.memory_conversations_backfill_status',
+ memoryConversationsBackfillStart: 'openhuman.memory_conversations_backfill_start',
memorySourcesList: 'openhuman.memory_sources_list',
memorySourcesAdd: 'openhuman.memory_sources_add',
memorySourcesRemove: 'openhuman.memory_sources_remove',
diff --git a/crates/openhuman-core/src/memory/schemas_tests.rs b/crates/openhuman-core/src/memory/schemas_tests.rs
index 897406b27a..c3020fc205 100644
--- a/crates/openhuman-core/src/memory/schemas_tests.rs
+++ b/crates/openhuman-core/src/memory/schemas_tests.rs
@@ -6,7 +6,7 @@ use crate::memory::test_fixtures::{bind_reference, config_in};
use serde_json::{json, Map, Value};
/// Every method of the spec's RPC table (`docs/specs/memory-v2.md`), exactly.
-const SPEC_METHODS: [&str; 22] = [
+const SPEC_METHODS: [&str; 24] = [
"openhuman.memory_engines_list",
"openhuman.memory_engine_get",
"openhuman.memory_engine_set",
@@ -19,6 +19,8 @@ const SPEC_METHODS: [&str; 22] = [
"openhuman.memory_items_get",
"openhuman.memory_conversations_get",
"openhuman.memory_conversations_set",
+ "openhuman.memory_conversations_backfill_status",
+ "openhuman.memory_conversations_backfill_start",
"openhuman.memory_sources_list",
"openhuman.memory_sources_add",
"openhuman.memory_sources_remove",
diff --git a/tests/in_process/config_auth_app_state_connectivity_e2e.rs b/tests/in_process/config_auth_app_state_connectivity_e2e.rs
index ae5e946468..6d40768d1e 100644
--- a/tests/in_process/config_auth_app_state_connectivity_e2e.rs
+++ b/tests/in_process/config_auth_app_state_connectivity_e2e.rs
@@ -1865,6 +1865,8 @@ async fn worker_a_controller_schemas_are_fully_exposed() {
"openhuman.memory_context_get",
"openhuman.memory_context_refresh",
"openhuman.memory_context_set",
+ "openhuman.memory_conversations_backfill_start",
+ "openhuman.memory_conversations_backfill_status",
"openhuman.memory_conversations_get",
"openhuman.memory_conversations_set",
"openhuman.memory_engine_get",
diff --git a/tests/memory_v2_e2e.rs b/tests/memory_v2_e2e.rs
index 45f3256089..e31fa851a8 100644
--- a/tests/memory_v2_e2e.rs
+++ b/tests/memory_v2_e2e.rs
@@ -364,6 +364,10 @@ async fn memory_is_off_when_signed_out() {
("openhuman.memory_items_list", json!({})),
("openhuman.memory_explore", json!({ "facet": "kind" })),
("openhuman.memory_items_get", json!({ "ids": ["x"] })),
+ (
+ "openhuman.memory_conversations_backfill_start",
+ json!({ "consent": true }),
+ ),
("openhuman.memory_sources_sync", json!({})),
("openhuman.memory_context_refresh", json!({})),
("openhuman.memory_import_start", json!({ "consent": true })),
@@ -1379,6 +1383,8 @@ async fn memory_v2_registers_exactly_the_documented_methods() {
"items_get",
"conversations_get",
"conversations_set",
+ "conversations_backfill_status",
+ "conversations_backfill_start",
"sources_list",
"sources_add",
"sources_remove",