[Phase 6.3.5] Context Assembly System #88

Closed
opened 2026-04-07 03:13:30 +00:00 by Mark · 0 comments
Owner

Parent: #73 (Conversation/Project Memory)

Overview

Build context assembly system to intelligently construct LLM context from memory layers.

Details

Create substrate/context_assembler.py:

ContextAssembler class:

  • assemble_context(conversation_id, max_tokens, include_*) -> AssembledContext
  • prioritize_content(items, max_tokens) -> list[ContextItem]

Context Layers:

  1. Working memory (recent turns, active TODOs, current files)
  2. Relevant episodes (semantic search)
  3. Key facts (structured knowledge)
  4. Active TODOs (current work)
  5. Project goals (high-level context)

Prioritization:

  • Relevance scoring via embeddings
  • Token budget management
  • Critical information preservation

Acceptance Criteria

  • Context within token limit: 100%
  • Critical info included: >95%
  • Relevant episodes found: >90%
  • Latency: <100ms
## Parent: #73 (Conversation/Project Memory) ## Overview Build context assembly system to intelligently construct LLM context from memory layers. ## Details Create `substrate/context_assembler.py`: **ContextAssembler class:** - assemble_context(conversation_id, max_tokens, include_*) -> AssembledContext - prioritize_content(items, max_tokens) -> list[ContextItem] **Context Layers:** 1. Working memory (recent turns, active TODOs, current files) 2. Relevant episodes (semantic search) 3. Key facts (structured knowledge) 4. Active TODOs (current work) 5. Project goals (high-level context) **Prioritization:** - Relevance scoring via embeddings - Token budget management - Critical information preservation ## Acceptance Criteria - [ ] Context within token limit: 100% - [ ] Critical info included: >95% - [ ] Relevant episodes found: >90% - [ ] Latency: <100ms
Mark closed this issue 2026-04-07 03:41:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/mesh-seed#88
No description provided.