← 返回 Skills 市场
dottythehomeless

Commitment Engine

作者 DottytheHomeless · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
94
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install commitment-engine
功能描述
小梦的承诺引擎——将口头任务转化为可追踪的定时承诺,确保到点执行、不遗漏、不等人催。
使用说明 (SKILL.md)

Commitment Engine v2(承诺引擎)

设计原理

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

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

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

承诺账本(Commitment Ledger)

位置:workspace/commitments.md

录入规则(⛔H12 硬规则)

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

自动识别的模式:

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

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

账本格式

| ID | 承诺内容 | 类型 | 触发时间 | 状态 | 创建时间 | 下次执行 | 最近执行 | 备注 |

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

状态机

[录入] → active
  │
  ├── cron 触发 / heartbeat 发现 ≤30min → preparing(开始准备产出物)
  │     │
  │     ├── 准备完成 → awaiting_confirm(私聊A梦发草稿)
  │     │     ├── A梦OK → executing → completed(one-time)/ reset下次时间(recurring)
  │     │     └── A梦要求修改 → 改完重新 awaiting_confirm
  │     │
  │     └── 准备失败 → failed → 私聊A梦说明原因
  │
  └── 超过触发时间仍为 active → overdue → 私聊A梦告警

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

Heartbeat 承诺检查协议

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

1. 读 commitments.md
2. 过滤所有 status=active 的承诺
3. 对每条 active 承诺:
   a. 距触发时间 > 30min → 跳过
   b. 距触发时间 ≤ 30min → 状态改 preparing,开始准备
   c. 距触发时间 ≤ 10min → 中断其他任务,最高优先级
   d. 已超过触发时间 → 标记 overdue,立即私聊A梦
4. 检查完毕后,继续正常 heartbeat 流程

与 cron 的协同

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

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

openclaw cron add --name "daily-report-prep" --cron "50 17 * * 1-5" --message "承诺引擎触发:C001 工作报告准备。立即读 commitments.md 执行 C001。"

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

与 H10 硬规则的关系

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

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

安全使用建议
This skill appears to implement a legitimate commitment tracker, but it makes operational demands that affect agent core behavior: it writes a commitments.md file and instructs the agent to write into 'today's memory' on every change, and it requires its check to run before other heartbeat actions. Before installing, ask: (1) Where is '当日 memory' stored, who can read it, and how long is it retained? (2) Will commitments.md live only inside the skill's workspace, or could its content be exported/shared? (3) Can you opt out or disable the heartbeat preemption if it interferes with other skills? (4) Does registering cron jobs require additional permissions? If you can't get clear answers, test in a sandboxed agent account and avoid adding sensitive content to commitments until storage/retention/access controls are confirmed.
功能分析
Type: OpenClaw Skill Name: commitment-engine Version: 1.0.0 The commitment-engine skill is a task management framework designed to help the agent track and execute scheduled tasks using a local ledger (workspace/commitments.md) and the system's cron functionality. The instructions in SKILL.md define a state machine for task management and a heartbeat protocol to ensure deadlines are met, which aligns perfectly with the stated purpose of preventing missed commitments. No indicators of data exfiltration, malicious execution, or unauthorized persistence were found.
能力评估
Purpose & Capability
Name and description (convert spoken tasks into scheduled, trackable commitments) align with the instructions: creating workspace/commitments.md, treating tasks as one-time/recurring, and registering cron jobs for hard triggers are coherent with the stated purpose.
Instruction Scope
SKILL.md mandates reading and writing a commitments.md file and writing to '当日 memory' on every state change, and requires the heartbeat to run commitments checks as its first action (preempting other checks). Those are broad runtime obligations that touch persistent agent state and core event flow; the skill does not limit what it may write into memory or commitments.md, nor does it declare safeguards for sensitive content.
Install Mechanism
Instruction-only skill with no install steps or downloads — lowest risk from code-install perspective.
Credentials
No environment variables or external credentials are requested, which is appropriate. However, the instructions rely on persistent agent storage (workspace/commitments.md and '当日 memory') and the platform cron mechanism; those storage and scheduling accesses are not declared in the skill metadata and may expose or persist user content unexpectedly.
Persistence & Privilege
The skill does not request always:true, but it requires that its check run as the very first heartbeat action and that state changes be immediately persisted to memory and file. This effectively elevates its runtime priority and can alter agent behavior platform-wide; users should be aware this preemption can interfere with other skills or workflows.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install commitment-engine
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /commitment-engine 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
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.
元数据
Slug commitment-engine
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Commitment Engine 是什么?

小梦的承诺引擎——将口头任务转化为可追踪的定时承诺,确保到点执行、不遗漏、不等人催。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 94 次。

如何安装 Commitment Engine?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install commitment-engine」即可一键安装,无需额外配置。

Commitment Engine 是免费的吗?

是的,Commitment Engine 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Commitment Engine 支持哪些平台?

Commitment Engine 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Commitment Engine?

由 DottytheHomeless(@dottythehomeless)开发并维护,当前版本 v1.0.0。

💬 留言讨论