Module memory_console

Module memory_console 

Source
Expand description

Shared memory console service for CLI and GUI inspection workflows.

This module provides the unified memory-console surface used across CLI, GUI, and agent-facing memory inspection flows. It composes two underlying systems:

  • session working memory from agent_sessions
  • durable memory-bank entries from gestura_core::memory_bank

§Design role

The memory console is intentionally a facade-level service instead of a standalone domain crate because it coordinates multiple domains at once:

  • session storage
  • durable memory-bank retrieval and mutation
  • task lifecycle/memory event integration
  • shared DTOs consumed by both CLI and GUI presentation layers

§High-signal workflows

  • overview facets and counts for memory health
  • cross-memory search over working and durable memory
  • inspection of promotions, archival state, and provenance
  • task-aware memory lifecycle views for handoffs and blockers

This keeps memory-related UX parity in one core-owned place instead of duplicating query logic in multiple frontends.

Structs§

MemoryConsoleCount
A simple count bucket for overview facets.
MemoryConsoleEntryDetail
Full durable memory detail including content.
MemoryConsoleEntrySummary
Durable memory summary displayed in lists and search results.
MemoryConsoleOverview
Overview payload for the memory console home screen.
MemoryConsoleQuery
Search filters shared by CLI, GUI, and slash/TUI memory consoles.
MemoryConsoleSearchResponse
Combined search response for working + durable memory.
MemoryConsoleSessionSummary
Lightweight session summary used by the memory console.
PromoteMemoryCandidateRequest
Request for promoting a working-memory candidate into durable memory.
TaskMemoryConsoleDetail
Task-memory detail view shared by CLI and GUI.
UpdateMemoryEntryRequest
Request for updating an existing durable memory entry.
WorkingMemoryMatch
Search hit from session working memory.

Enums§

MemoryConsoleError
Errors produced while inspecting or mutating memory-console state.

Functions§

clear_memory_console
Clear all durable memory entries in the workspace.
delete_memory_entry_by_id
Delete a durable memory entry by id.
get_memory_console_overview
Build a memory-console overview for a workspace and optional session.
get_memory_entry_detail
Look up a durable memory entry by CLI/GUI id.
get_memory_promotion_candidates
Return promotion candidates for the selected session.
get_task_memory_console_detail
Read task-local memory lifecycle information.
get_working_memory_snapshot
Return the current session working-memory snapshot.
list_memory_console_sessions
List recent sessions for global memory-console browsing.
load_memory_console_session
Resolve a session id or prefix into a persisted session.
promote_memory_candidate
Promote a working-memory candidate into durable memory.
refresh_memory_console_governance
Refresh persisted governance suggestions for durable memory.
search_memory_console
Search across working memory and durable memory using shared filters.
set_memory_entry_archived
Archive or unarchive a durable memory entry.
update_memory_entry_detail
Update a durable memory entry in place.

Type Aliases§

MemoryConsoleResult
Result type for memory-console workflows.