Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

v0.6.0 — Self-Healing Evolving Memory

Choose a tag to compare

@glasschan glasschan released this 28 May 21:08
· 11 commits to main since this release

Self-Healing Evolving Memory System

What's New

Phase 1: Enhanced Auto-Context Injection

  • Prefetch top 8 (was 5) — broader memory surfacing per turn
  • Category boost — corrections (1.3x), instructions (1.2x), preferences (1.15x) surface first
  • Priority boost — P1/P2 memories get slight score bump
  • Score threshold 0.4 — filters noise from low-relevance results

Phase 2: Correction Tagging + Priority

  • New category: correction — tag user behavior corrections
  • Priority field (1-5) — P1 = critical rule, P5 = low-priority fact
  • Origin field — track how memory was created (user_correction, agent_discovery, explicit, auto)
  • Payload indexes on priority + origin for fast filtered queries

Phase 3: Consolidation + Evolution

  • Correction pattern detection — clusters corrections by topic, suggests skill extraction when 3+ on same topic
  • Evolution suggestions — category imbalance, priority inflation, health checks
  • on_memory_write hook — mirrors local memory writes to Qdrant
  • on_session_end hook — auto-extracts session summaries

Config (all env-var overridable)

  • QDRANT_PREFETCH_TOP_K (default: 8)
  • QDRANT_PREFETCH_SCORE_THRESHOLD (default: 0.4)
  • QDRANT_CORRECTION_TOPIC_THRESHOLD (default: 3)
  • QDRANT_SESSION_END_EXTRACT (default: true)

Backward Compatibility

Fully backward compatible with v0.5.0 data. Priority defaults to 3, origin defaults to 'explicit'.

Files Changed

  • config.py — new constants + config keys
  • schemas.py — correction category, priority, origin fields
  • store.py — category boost, priority-aware storage, new payload indexes
  • provider.py — enhanced prefetch, on_memory_write, on_session_end, rich system prompt
  • consolidation.py — correction patterns, evolution suggestions
  • VERSION + plugin.yaml — v0.6.0