360 Secure SkillHub
360 安全技能中心

DAF Intent Guard — 意图漂移检测

该 Skill 通过本地 Python 脚本 daf_guard.py 比较任务旧约束、新约束与锚点信息,在用户改动进行中任务或给出可能冲突的新指令时,判断应小改继续(patch)、从受影响锚点重做(replan)还是停止(abort),并返回语义距离与锚点回滚计数,供调用方决定后续执行方式。

分类:自动化
deepseek609609-collab
deepseek609609-collab
热度 32.90
最近更新 2026-05-11 17:35:31

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add deepseek609609-collab/daf-intent-guard
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
daf-intent-guard
description
Tracks intent drift across multi-turn tasks. Before executing any multi-step task, call this to detect if the user's new instruction is a small patch, requires replanning from a checkpoint, or should abort the current task entirely. Returns patch/replan/abort decision with semantic distance and anchor rollback count.
metadata
{"openclaw":{"emoji":"🎯","requires":{"bins":["python3"]}}}

DAF Intent Guard

Use this skill when:

  • A user modifies an in-progress task
  • A user gives a new instruction that might conflict with what is already done
  • You need to decide whether to continue, roll back, or restart

How to use

Call the guard before executing any new instruction on an ongoing task:

python3 {baseDir}/daf_guard.py \
  --current-anchor <index> \
  --old-constraints '<json>' \
  --new-constraints '<json>' \
  --new-action '<action>' \
  --requires '<json_array>' \
  --anchors '<json>'

Decision meanings

  • patch: Small change. Update parameters and continue from current anchor.
  • replan: Significant change. Roll back to anchor first_affected_anchor and re-execute from there.
  • abort: Task cancelled or too much has changed. Stop and confirm with user before restarting.

Example

User was booking a flight (seat locked at anchor 1), now says "change destination to New York":

  • old-constraints: {"destination":"KL","date":"today","cabin":"economy"}
  • new-constraints: {"destination":"New York","date":"today","cabin":"economy"}
  • Expected: replan (destination change affects anchor 0)