Skip to content

feat: add session context store for ephemeral per-thread memory#91

Merged
veeso merged 11 commits intomainfrom
feat/session-context
Mar 12, 2026
Merged

feat: add session context store for ephemeral per-thread memory#91
veeso merged 11 commits intomainfrom
feat/session-context

Conversation

@veeso
Copy link
Copy Markdown
Collaborator

@veeso veeso commented Mar 12, 2026

Summary

  • Session context store: new SessionContextStore that captures ephemeral, per-thread facts (environment details, conventions, restrictions) via a SaveSessionContextTool, giving the agent short-term memory within a conversation without polluting persistent storage
  • Unified memory wiring: introduces MemoryContext struct that bundles both persistent MemoryStore and SessionContextStore, ensuring all agents (including incident investigation sub-agents) receive memory preambles and save tools through a single parameter
  • Cleanup: removes the unused interaction memory infrastructure (models, traits, JSONL storage, NoopEmbedding, RegexIntentGenerator) that was never wired into the agent

Test plan

  • cargo test — all existing tests pass
  • cargo clippy --all-targets --all-features -- -D warnings — no warnings
  • Run with ENGINE_TYPE=rig and verify session context facts are injected into preamble during multi-turn conversations
  • Verify persistent memory still loads and saves correctly across restarts

🤖 Generated with Claude Code

veeso added 11 commits March 12, 2026 09:28
The entire interaction memory infrastructure (models, traits, JSONL
storage, NoopEmbedding, RegexIntentGenerator) was never wired into
the agent. Only session memory is active and remains.
…gents

Bundles MemoryStore and SessionContextStore into a single MemoryContext
struct so that every agent builder receives memory preambles and save
tools through one parameter. This fixes incident investigation agents
not having access to session context or persistent memory.
@veeso veeso merged commit c3a5099 into main Mar 12, 2026
5 checks passed
@veeso veeso deleted the feat/session-context branch March 12, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant