Files
llm-multiverse/implementation-plans/issue-011.md
shahondin1624 1ee3da58f3 feat: define all service proto files (#9-#15)
- audit.proto: AuditService with Append RPC, AuditEntry, AuditAction enum
- secrets.proto: SecretsService with GetSecret RPC
- memory.proto: MemoryService with QueryMemory (streaming), WriteMemory, GetCorrelated
- model_gateway.proto: ModelGatewayService with StreamInference, Inference, GenerateEmbedding, IsModelReady
- search.proto: SearchService with Search RPC, SearchResult
- tool_broker.proto: ToolBrokerService with DiscoverTools, ExecuteTool (streaming), ValidateCall
- orchestrator.proto: OrchestratorService with ProcessRequest (streaming)

All protos pass buf lint and buf build.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 07:31:37 +01:00

1.5 KiB

Implementation Plan — Issue #11: Define memory.proto

Metadata

Field Value
Issue #11
Title Define memory.proto
Milestone Phase 1: Proto Definitions
Labels type:feature, priority:critical, lang:protobuf, service:memory
Status COMPLETED
Language Protobuf
Related Plans issue-008.md
Blocked by #8 (completed)

Acceptance Criteria

  • MemoryService with QueryMemory (streaming), WriteMemory, GetCorrelated RPCs
  • MemoryEntry message with embeddings and metadata
  • Uses SessionContext from common.proto
  • Proto compiles without errors

Architecture Analysis

Vector-backed memory storage with staged coarse-to-fine retrieval, backed by DuckDB with VSS. QueryMemory is server-streaming, returning ranked results with cosine similarity scores and optional cached extracted segments. MemoryEntry carries name/description/corpus embeddings (from nomic-embed-text), tags, correlating_ids, access tracking, and provenance. MemoryProvenance enum distinguishes internal vs. external content for poisoning protection. GetCorrelated retrieves related memory entries by correlating IDs (descriptions only, not full corpus).

Files to Create/Modify

File Action Purpose
proto/llm_multiverse/v1/memory.proto Modify Define MemoryService, MemoryEntry, MemoryProvenance enum, and request/response types

Deviation Log

(No deviations)