Skip to content

Feature: Integrate structured memory system (e.g. MemPalace) for cross-evolution reasoning #14

@richardiitse

Description

@richardiitse

Summary

SkillClaw's current workflow engine is stateless across evolution cycles — each round only sees the current SKILL.md + new session evidence. There is no persistent reasoning memory that captures cross-round insights such as:

  • "Changing skill A caused skill B to regress"
  • "This pattern of failure was already addressed in v3 but reverted in v5"
  • "User X's environment has specific quirks that require conditional guidance"

While the agent engine (OpenClaw-based) supports session continuity and MEMORY.md, the more commonly used workflow engine lacks structured cross-evolution memory.

Proposal

Integrate a structured memory system (e.g., MemPalace) into the evolve pipeline to enable:

  1. Cross-evolution reasoning memory — Retain insights across cycles (e.g., which edits helped, which regressed, skill interdependencies)
  2. Semantic knowledge graphs — Link related skills, failure patterns, and environment-specific quirks beyond simple skill-name grouping
  3. Privacy-aware memory rooms — Isolate user-specific knowledge from shared evolution signals (related to Cross user interaction data aggregation may lead to user preferences/information leakage #11)
  4. Retrieval-augmented evolution — Instead of injecting full SKILL.md content every round, retrieve only relevant memory fragments, reducing context window pressure

Why

  • Paper experiments show strong results on WildClawBench, but real-world multi-user deployments will face more diverse and noisy signals
  • Current "memory = current skill file" approach works for iterative refinement but misses higher-order patterns across skills and evolution rounds
  • A structured memory layer could also address the privacy concern raised in Cross user interaction data aggregation may lead to user preferences/information leakage #11 by partitioning shared vs. private knowledge

Possible Implementation Paths

  1. Lightweight: Add a persistent evolve_memory.json that the LLM reads/writes each cycle, storing cross-round observations
  2. Medium: Integrate MemPalace-style room-based memory with semantic retrieval
  3. Full: Build a knowledge graph layer linking skills, sessions, users, and evolution outcomes

Happy to discuss further or contribute to a design doc.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions