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(memory): document deletion flow and pending queue
Steven Enamakel3efd02b81d23
diff --git a/crates/openhuman-core/src/memory/README.md b/crates/openhuman-core/src/memory/README.mdindex b09160104c..fb6b43287e 100644--- a/crates/openhuman-core/src/memory/README.md+++ b/crates/openhuman-core/src/memory/README.md@@ -24,6 +24,16 @@ Chat thread persistence is not memory: see [`threads/store`](../threads/store/RE- Queue and run belief builds and deferred ingests (`lifecycle::jobs`).- File synced sources into the brain (`sources`, `brain`).- Store past chats and import a v1 store, each after explicit consent.+- Delete for good (`deletion`). This covers a deleted thread's conversations,+ a disconnected connector's items, a forgotten channel's threads and a removed+ source's items.+ - A connector's own `source:<toolkit>` scope is erased outright when it+ holds only that connection's items.+ - Everything else is forgotten by `memory_ids` with an explicit+ `redact_events` cascade (the engine's default keeps the events).+ - Anything that cannot run now, because memory is off or the call failed,+ is queued and drained on the next sign-in (`CredentialChanged`) and on+ every background tick.## Key files@@ -39,11 +49,12 @@ Chat thread persistence is not memory: see [`threads/store`](../threads/store/RE| `brain.rs` | Brain source mapping and the brain ops. || `sources/` | Source registry, state and sync (folder, file, link, github, rss, composio). || `channels.rs` | Channel → thread records for forgetting a channel. |+| `deletion.rs` | Hard deletes that must reach the engine: thread forget, the pending-deletion queue (`<workspace>/memory/pending_deletions.json`) and its drain. || `backfill.rs` | Past chats from the thread store, resumable, with consent. || `import.rs` | Consent-gated, resumable v1 import. || `tools.rs` | The single `memory` agent tool and the turn's memory citations. || `ops.rs`, `explore.rs` | Engine selection, recall, fetch, learn, forget, listing; the explorer. |-| `bus.rs` | The `memory_sources_sync` / `memory_background` cron subscriber. |+| `bus.rs` | The `memory_sources_sync` / `memory_background` cron subscriber; the `memory::pending_deletions` sign-in subscriber. || `schemas.rs`, `schemas/` | The `openhuman.memory_*` controllers. || `status.rs`, `error.rs`, `types.rs` | Subsystem status, error codes, shared types. || `*_tests.rs`, `test_fixtures.rs` | Sibling unit tests. |@@ -52,7 +63,8 @@ Chat thread persistence is not memory: see [`threads/store`](../threads/store/RENo local database: items live in the engine. Local files under`<workspace>/memory/`: `jobs.json`, `channel_threads.json`,-`conversations_backfill.json`, `import_state.json`, `sources_state.json`. The+`conversations_backfill.json`, `import_state.json`, `sources_state.json`,+`pending_deletions.json`. Thesources registry is `[[memory.sources]]` in `config.toml`; the CortexDB key isin the OS keychain.