Skip to content

tracking(draft): Smart Memory beta → main#38

Draft
win4r wants to merge 14 commits intomainfrom
dev/smart-memory-v1.1.0
Draft

tracking(draft): Smart Memory beta → main#38
win4r wants to merge 14 commits intomainfrom
dev/smart-memory-v1.1.0

Conversation

@win4r
Copy link
Owner

@win4r win4r commented Mar 3, 2026

Smart Memory Beta Tracking (dev/smart-memory-v1.1.0 → main)

Status: Draft / Tracking PR — NOT ready to merge. This PR exists to coordinate community testing and follow-up PRs.

What’s included (high level)

  • Smart Extraction (LLM-powered)
    • 6-category extraction (profile / preferences / entities / events / cases / patterns)
    • L0/L1/L2 layered metadata (falls back to regex capture when disabled or LLM init fails)
  • Lifecycle Scoring
    • Retrieval score adjustment using decay + tier floors
    • (Beta) bounded tier/access metadata write-backs
  • Access Reinforcement (from PR feat: add access reinforcement for memory time-decay #37, now in main as v1.0.26)
    • Frequently manually recalled memories decay more slowly (spaced-repetition style)
    • AccessTracker debounced metadata write-back

Install the beta (does NOT affect stable users)

npm i memory-lancedb-pro@beta

Current tags:

  • latest: 1.0.26
  • beta: 1.1.0-beta.2

Configuration quick-start

{
  "plugins.entries.memory-lancedb-pro": {
    "config": {
      "smartExtraction": true,
      "llm": {
        "apiKey": "${OPENAI_API_KEY}",
        "model": "gpt-4o-mini",
        "baseURL": "https://api.openai.com/v1"
      },
      "extractMinMessages": 4,
      "extractMaxChars": 8000,
      "retrieval": {
        "timeDecayHalfLifeDays": 60,
        "reinforcementFactor": 0.5,
        "maxHalfLifeMultiplier": 3
      }
    }
  }
}

Test checklist (community help wanted)

  • Smart extraction triggers only when conversation length ≥ extractMinMessages
  • Extraction category correctness (6-category system)
  • Dedup/merge behavior (no memory spam)
  • Retrieval quality vs stable (hybrid + rerank)
  • Access reinforcement: repeated manual recall makes old memories stay relevant longer
  • No unexpected writes / performance regressions (watch logs)
  • Backward compatibility: existing DB works; disabling smartExtraction restores regex-only behavior

Known risks / areas to review

  • Beta introduces additional metadata and bounded write-backs (tier + access stats) — please report any performance or correctness issues.
  • Ensure config schema matches runtime behavior (no additionalProperties startup failures).

How to contribute

  • Please open PRs targeting dev/smart-memory-v1.1.0 (not main).
  • Include:
    • a short test plan
    • before/after behavior notes
    • any config schema changes updated in openclaw.plugin.json

References

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.

2 participants