返回顶部
c

commitment-engine承诺引擎

小梦的承诺引擎——将口头任务转化为可追踪的定时承诺,确保到点执行、不遗漏、不等人催。

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

commitment-engine

Commitment Engine v2(承诺引擎)

设计原理

LLM 的 context window 是"短期记忆",heartbeat 每次唤醒时 context 几乎是空的。靠"记住规则"来保证定时执行,和靠"记住闹钟"来准时起床一样不靠谱。

核心思想:把"记忆"变成"文件",把"意愿"变成"状态机",把"希望他做"变成"系统保证他做"。

参考架构:HZL 共享任务账本(durable task state + atomic claiming + session-safe handoffs)。

承诺账本(Commitment Ledger)

位置:INLINECODE0

录入规则(⛔H12 硬规则)

小梦收到带时间点的任务时,必须在回复前先写入承诺账本(WAL 协议的延伸)。

自动识别的模式:

  • - A梦说"每天X点做Y" → recurring 承诺
  • A梦说"X点前给我Y" → one-time 承诺
  • A梦说"记得做X"(无明确时间)→ one-time,deadline=当天21:00
  • 小梦对外承诺"我稍后给你" → one-time,deadline=1小时内
  • A梦说"取消XX"/"不用了" → 对应承诺改为 INLINECODE5

录入即确认:录入后立即在回复中说"记下了,[时间]前搞定"。

账本格式

CODEBLOCK0

状态枚举:activepreparingawaiting_confirmexecutingcompleted/failed/overdue/INLINECODE13

状态机

CODEBLOCK1

每次状态变化必须:①更新 commitments.md ②写入当日 memory。

Heartbeat 承诺检查协议

每次 heartbeat 的第一个动作(优先于消息扫描、info-scout 等一切):

CODEBLOCK2

与 cron 的协同

承诺引擎是"软保障"(每次 heartbeat 检查),cron 是"硬保障"(到点必触发)。

对于 recurring 且时间固定的承诺(如C001每日17:50报告),同时注册一个 openclaw cron job:

CODEBLOCK3

这样即使 heartbeat 恰好错过时间窗口,cron 也会准时触发。

与 H10 硬规则的关系

H10(显式承诺必须自追踪)是行为规则——告诉小梦"你必须追踪"。
H12(承诺即录入)是执行规则——告诉小梦"怎么录入"。
承诺引擎是系统机制——保证"heartbeat+cron 双重检查,不依赖记忆"。

三层防线:H10要求追踪 → H12确保录入 → heartbeat+cron确保执行。

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 commitment-engine-1775914628 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 commitment-engine-1775914628 技能

通过命令行安装

skillhub install commitment-engine-1775914628

下载

⬇ 下载 commitment-engine v1.0.0(免费)

文件大小: 2.65 KB | 发布时间: 2026-4-12 09:32

v1.0.0 最新 2026-4-12 09:32
Commitment Engine v2.0.0 introduces a robust, file-based system to reliably track and execute time-bound commitments.

- All verbal commitments with timepoints are now recorded in a structured "commitments.md" ledger.
- Commitment states and transitions are managed by a defined state machine, ensuring tasks move from creation to completion or appropriate closure.
- Automated heartbeat and cron processes provide dual assurance for timely execution, reducing reliance on short-term memory.
- State changes and critical events are systematically logged to enhance traceability and accountability.
- Supports recurring and one-time tasks, explicit cancellation, and automatic reminders and escalations for overdue commitments.

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

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

p2p_official_large
返回顶部