返回顶部
l

layered-memory-architecture

Build cheap, truthful long-term memory for agents with a layered architecture instead of a memory blob. Design, explain, audit, or improve a system that separates hot canon, durable topic doctrine, project-scoped working memory, episodic logs, and generated live summaries. Use when creating token-efficient agent memory, reducing memory bloat and context cost, comparing layered memory against generic persistent-memory systems, defining memory boundaries, improving retrieval trust, or migrating fr

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.2
安全检测
已通过
121
下载量
0
收藏
概述
安装方式
版本历史

layered-memory-architecture

# Memory Architecture Design memory as a system, not a bucket. ## Core stance Optimize for: 1. truthful retrieval 2. low token cost 3. clear boundaries 4. maintainable long-horizon continuity 5. project isolation where needed Do not default to "store more and search later." First decide what kind of memory something is. ## The five-layer model Use these layers consistently: 1. **Hot canon** - Small, frequently loaded, cross-session truths. - Identity, preferences, standing doctrine, current priorities, compact cross-project lessons. - Keep it aggressively bounded. 2. **Durable topic doctrine** - Stable architecture notes, decisions, playbooks, operating rules, and domain context. - More detailed than hot canon, but still curated. 3. **Project-scoped working memory** - Raw or evolving material tied to one initiative. - Research notes, migration plans, transcripts, experiment outputs, snapshots. - Promote only distilled lessons upward. 4. **Episodic logs** - What happened today or in a specific work session. - Events, observations, intermediate findings, next steps. - Default landing zone for fresh information. 5. **Generated live summaries** - Rebuildable operator read models for current state. - Queue views, alerts, health snapshots, status summaries, compact log digests. - Treat as derived state, not durable canon. ## Memory classification rule Before writing memory, classify the item: - **Cross-cutting durable truth** → hot canon - **Durable but detailed rule / doctrine / architecture** → topic doc - **Project-bound raw or changing context** → project memory - **Fresh event or observation** → episodic log - **Current operational snapshot** → generated summary only If uncertain, bias downward: - daily/project first - promote later - avoid prematurely canonizing noise ## Promotion / demotion flow Use this ladder: - fresh event → episodic log or project artifact - repeated / stable lesson → topic doc - hottest compact cross-cutting truth → hot canon - volatile state → generated summary - stale bulky detail → keep in project/archive, not hot canon ## Truthfulness rules Never let memory blur these categories: - durable truth - project-specific context - current live status - historical event log - derived summary Do not promote temporary red/yellow/green conditions, queue counts, disk snapshots, or stale alerts into canon unless they reveal a durable rule. ## Retrieval policy Retrieve in this order: 1. hot canon 2. compact index/selector 3. relevant topic docs 4. project memory only if the task is project-specific 5. generated summaries before raw logs for live-state questions 6. raw logs only when summary is insufficient or needs verification 7. episodic logs only when recent event history matters The goal is not maximum recall. The goal is the right recall. ## Comparison frame When comparing layered memory against generic persistent-memory tools, use this lens: ### Generic persistent-memory systems usually optimize for: - saving more facts - retrieving facts later - one-store convenience - simple demo value ### Layered memory systems optimize for: - memory boundaries - retrieval trust - token hygiene - long-term maintainability - project isolation - separation of canon vs live state Use this summary line: - **"Persistent memory is a feature. Memory architecture is a system."** If needed, read `references/scorecard.md` for a compact comparison rubric. ## Anti-patterns Flag these quickly: - one giant memory blob with weak boundaries - logs and durable truths mixed together - live status stored as long-term canon - duplicated facts across layers without summary/detail distinction - always-append workflows with no dedupe or demotion - semantic search over stale and current facts without authority separation - project details contaminating global memory ## Output patterns For comparisons or teaching material, prefer one of these structures: - **scorecard**: category-by-category ratings and winners - **analogy**: bucket/backpack vs compartments/ship - **thesis**: "remember more" vs "remember the right things in the right places" - **migration plan**: how to move from blob memory to layered memory ## Use bundled references only when needed - Read `references/scorecard.md` when preparing a digestible comparison, talk track, or publishable rubric. - Read `references/migration-pattern.md` when helping someone convert an existing persistent-memory setup into a layered one. - Read `references/layout-template.md` when the user wants a concrete starter structure for implementing layered memory in a workspace. - Read `references/audit-checklist.md` when the user wants a repeatable audit of an existing memory setup instead of a high-level philosophy discussion. - Read `references/classifier-pattern.md` when the user wants a lightweight routing rule for deciding where fresh information belongs. - Read `references/promotion-trigger-pattern.md` when the user wants a safe promotion model for moving notes upward over time. - Read `references/summary-generator-pattern.md` when the user wants live-state summaries that remain derived and rebuildable rather than polluting canon. ## Reliability rules - Prefer the smallest useful memory change over a total rewrite. - Do not invent hidden automation or magical persistence claims. - Keep implementation recommendations explicit about which layer is authoritative. - If offering migration advice, separate immediate low-risk fixes from optional later refinements. - If the user wants operational memory, keep generated summaries distinct from canon. - Treat lightweight automations as helpers that nominate or summarize, not as silent canon-writing authorities. Keep the explanation compact unless the user explicitly wants a deep comparison.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 layered-memory-architecture-1776023371 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 layered-memory-architecture-1776023371 技能

通过命令行安装

skillhub install layered-memory-architecture-1776023371

下载 Zip 包

⬇ 下载 layered-memory-architecture v0.1.2

文件大小: 15.75 KB | 发布时间: 2026-4-13 10:49

v0.1.2 最新 2026-4-13 10:49
- Added several new reference guides: layout template, audit checklist, classifier pattern, promotion trigger pattern, and summary generator pattern.
- Expanded "Use bundled references only when needed" section to include guidance for each new reference file.
- Added new "Reliability rules" section covering best practices for changes, automation limits, implementation boundaries, and migration advice.
- No changes to core layered memory architecture concepts or primary guidance.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部