Files
nexus/wiki/concepts/Pattern-Key.md
2026-04-17 23:18:07 +08:00

37 lines
988 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Pattern-Key"
type: concept
tags: [openclaw, memory, agent]
last_updated: 2026-04-17
---
## Definition
Pattern-Key模式键是 Self-Improving Skill 中用于追踪同一类型问题生命周期的检索键,帮助 Agent 区分一次性错误和系统性重复。
## Usage
在 LRN 记录的 Metadata 中使用:
```markdown
### Metadata
- Pattern-Key: cron.telegram-delivery
- Recurrence-Count: 2
- See Also: LRN-20260325-001
```
## Detection Logic
| Recurrence-Count | 含义 | 处理方式 |
|-----------------|------|---------|
| 1 | 一次性错误 | 记录并解决 |
| 2+ | 系统性重复 | 需要系统性修复 |
## Example
- `cron.daily-self-review`出现9次持续优化领域
- `cron.telegram-delivery`出现2次第二次解决
## Core Insight
Pattern-Key 重复本身就是一个信号——第一次记了,第二次就该解决了。
## Related
- [[Self-Improving Skill]]
- [[每日复盘机制]]
- [[双层记忆架构]]
- [[OpenClaw]]