Skip to content

Feature/session memory - #10

Merged
makeitdouble merged 10 commits into
masterfrom
feature/session_memory
Jun 6, 2026
Merged

makeitdouble merged 10 commits into
masterfrom
feature/session_memory

Conversation

@makeitdouble

Copy link
Copy Markdown
Owner
  • Implement L3 session memory save flow.
  • Keep the current runtime conversation state intact after saving.
  • Clear runtime_memory_snapshots only after a successful L3 update.
  • Preserve snapshots when L3 save fails or is skipped.
  • Add runtime diagnostics for empty snapshots, capped output budget, and max-token responses.
  • Add regression tests for snapshot cleanup and failure handling.

- add session memory first iteration
- add action remember_session triggered by user completive or direct prompt
- add explicit session memory persist/restore flow and clear control
- add remember_session runtime action handling and safer marker parsing
- move memory prompts into runtime memory_rules
- add summarizer timeouts and clearer L1 batch logging
- block chat flow when brain and service are both offline
- add L3 session memory with event snapshots and remember_session completion flow
- add REMEMBER_EVENT runtime action for saving high-signal moments
- preserve durable user/jin facts, canonicalize stored_memory, and collapse duplicate fact keys
- harden runtime action parsing against quoted instructions, negated markers, and placeholder search payloads
- add safe context-window detection and max_tokens clamping for runtime requests
- improve memory UI: empty bubble cleanup, action fade, smoother L1/L2/L3 glow, and readable failure reasons
- persist explicit session bootstrap with runtime memory and event snapshots
- add tests for runtime actions, memory summarizers, websocket bootstrap, search completion, and runtime client budgets
- fix for L2 affecting runtime snapshot counter
- optimized session store logic
- optimizing session trigger logic
- add Claude\DeepSeek mode rules
- replace prompt action templates with private bracketed markers
- parse and strip internal action markers in runtime streams
- keep remember session guarded by user intent
- add tests for web search, memory actions, and marker cleanup
- drop legacy RUNTIME_ACTION marker constants and exports
- make runtime action parser bracket-marker only
- keep web search and memory actions on INTERNAL_ACTION protocol
- update stream filtering for split private markers
- rewrite action tests and probes around private markers
- keep prompt safety checks against legacy XML markers
- clear consumed snapshots after L3 save, preserve them on failures/skips
- add L3 skip/budget/max-token diagnostics
- cover cleanup and edge cases
- fix runtime model metadata selection guard
- fixes for session saving flow
- skip model metadata entries without id/model/name before substring matching
- add regression tests for bootstrap flow and model metadata selection
- add session save markers
- unified logging for MEMORY:L1\L2\L3
@makeitdouble makeitdouble self-assigned this Jun 6, 2026
@makeitdouble
makeitdouble merged commit bbdee62 into master Jun 6, 2026
1 check passed
@makeitdouble
makeitdouble deleted the feature/session_memory branch June 6, 2026 08:45
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