返回顶部
m

memory-referee

Memory hygiene and adjudication layer for OpenClaw agent workflows. Deduplicates entities, resolves naming conflicts, separates facts from goals from speculation, archives stale records, enforces consistent schemas, detects contradictions, and preserves provenance. Complements ontology and Proactive Agent.

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

memory-referee

# memory-referee **ontology** and **Proactive Agent** give agents the ability to remember more. **memory-referee** is designed to work alongside skills like ontology and Proactive Agent to give that memory a cleaner foundation to stand on — deduplicating entities, resolving naming conflicts, separating facts from goals from speculation, archiving stale records, and enforcing consistent schemas. --- > Built with [Saturnday](https://www.saturnday.dev) — AI-specific governance for AI-generated code. > > While governing the build of memory-referee, Saturnday caught the kinds of mistakes AI coders routinely ship: `.env` patterns that could expose API keys, deduplication logic that could silently drop memory records, fake tests that passed while verifying almost nothing, and runtime validation gaps that would let malformed records corrupt downstream decisions. > > That is the difference between AI-generated code and governed AI-generated code. > [www.saturnday.dev](https://www.saturnday.dev) --- ## When to Use Invoke this skill whenever an agent's memory store may have accumulated: - **Duplicate or near-duplicate records** that should be collapsed into a single canonical entry - **Naming conflicts** where the same entity appears under multiple aliases - **Mixed classification** — facts, goals, and speculation interleaved without clear labelling - **Stale records** that have aged past their useful window and should be archived - **Schema drift** — records that no longer conform to the expected structure - **Contradictions** — two records that assert incompatible facts about the same entity Use it after running ontology or Proactive Agent to clean up accumulated memory before passing it downstream. ## Inputs Each record in `raw_records` must be a JSON object with the following fields: | Field | Type | Required | Description | |-------|------|----------|-------------| | `id` | `string` | yes | Unique identifier for the record | | `kind` | `string` | yes | One of `fact`, `goal`, or `speculation` | | `entity` | `string` | yes | The entity this record is about | | `content` | `string` | yes | The record's content | | `timestamp` | `string` | yes | ISO 8601 date string | | `provenance` | `object` | yes | Single provenance object: `{ sourceId, sourceLabel, capturedAt }`. The skill wraps this internally into an array to support merged records with multiple sources. | | `tags` | `string[]` | no | Optional tags | ## Outputs | Field | Type | Description | |-------|------|-------------| | `report` | `string` | Markdown adjudication report summarising all decisions | | `result` | `object` | Structured JSON with deduplicated, classified, validated records | ## Usage ### CLI ```sh echo '[{"id":"r1","kind":"fact","entity":"Alice","content":"Alice prefers dark mode","timestamp":"2026-03-27T00:00:00Z","provenance":{"sourceId":"s1","sourceLabel":"pref-log","capturedAt":"2026-03-27T00:00:00Z"}}]' | node dist/index.js ``` ### Library ```typescript import { main } from 'memory-referee'; const records = [ { id: 'r1', kind: 'fact', entity: 'Alice', content: 'Alice prefers dark mode', timestamp: '2026-03-27T00:00:00Z', provenance: { sourceId: 's1', sourceLabel: 'pref-log', capturedAt: '2026-03-27T00:00:00Z' } } ]; const { markdown, json, report } = main(JSON.stringify(records)); console.log(markdown); // human-readable adjudication report console.log(json); // structured JSON output ```

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 memory-referee-1775995162 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 memory-referee-1775995162 技能

通过命令行安装

skillhub install memory-referee-1775995162

下载 Zip 包

⬇ 下载 memory-referee v0.1.0

文件大小: 34.65 KB | 发布时间: 2026-4-13 11:00

v0.1.0 最新 2026-4-13 11:00
Initial release of memory-referee: a robust memory adjudication layer for OpenClaw agent workflows.

- Deduplicates memory entities and resolves naming conflicts
- Separates facts, goals, and speculation; assigns clear classification
- Detects contradictions, archives stale records, and enforces schema consistency
- Preserves full provenance for each record after deduplication/merging
- Produces a human-readable adjudication report and structured JSON output

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

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

p2p_official_large
返回顶部