feat(memory): singleton ingestion + status RPC + UI pill (#1126)

This commit is contained in:
Steven Enamakel
2026-05-03 12:52:55 -07:00
committed by GitHub
parent 744344e4de
commit 52eb3a175f
12 changed files with 652 additions and 10 deletions
+20 -1
View File
@@ -72,6 +72,23 @@ pub enum DomainEvent {
/// this variant is a hook for future ingestion subscribers to react to pull
/// requests. See `src/openhuman/memory/ops.rs` for the RPC handlers.
MemorySyncRequested { channel_id: Option<String> },
/// A memory ingestion job started running on the local extraction LLM.
/// Ingestion is singleton — this fires once, then a matching
/// [`Self::MemoryIngestionCompleted`] follows when the job finishes.
MemoryIngestionStarted {
document_id: String,
title: String,
namespace: String,
queue_depth: usize,
},
/// A memory ingestion job finished (successfully or with an error).
MemoryIngestionCompleted {
document_id: String,
namespace: String,
success: bool,
elapsed_ms: u64,
queue_depth: usize,
},
// ── Channels ────────────────────────────────────────────────────────
/// An inbound channel message from the transport layer, ready for processing.
@@ -366,7 +383,9 @@ impl DomainEvent {
Self::MemoryStored { .. }
| Self::MemoryRecalled { .. }
| Self::MemorySyncRequested { .. } => "memory",
| Self::MemorySyncRequested { .. }
| Self::MemoryIngestionStarted { .. }
| Self::MemoryIngestionCompleted { .. } => "memory",
Self::ChannelInboundMessage { .. }
| Self::ChannelMessageReceived { .. }