agent-kill-switch

agent-kill-switch — 部署智能体前生成『制动卡』:停止条件/断权动作/责任人/恢复条件;--check 校验制动卡字段齐全,缺项 rc=1 不许上线。 适用场景:当需要智能体紧急制动卡能力时使用本技能;触发词:agent-kill-switch。

Install

openclaw skills install @zhaoxinghua09-cell/agent-kill-switch

凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:skill-quality-gate(外部公开评测门禁文档)

English

When to use

  1. Pre-launch security admission review: mandatory kill-card field completeness check.
  2. Before deploying agents handling sensitive data, funds or high-risk tasks.
  3. When stop conditions / recovery conditions are missing from the system config.

Usage

  1. Core script: agent_kill_switch.py — python agent_kill_switch.py --check.
  2. Params: --input-config (kill-card file path), --skip-check (local testing only).
  3. Verdict: rc=0 fields complete and validated; rc=1 missing fields — launch blocked.

Flow

  1. Define the kill card: config with stop conditions, revocation actions, owner, recovery conditions.
  2. Ensure agent_kill_switch.py is available.
  3. Run python agent_kill_switch.py --check --input-config <file> in the deploy tool.
  4. Watch output: rc=1 → kill card missing or invalid.
  5. Fix config per error messages until all required fields are present.
  6. Re-run check (rc=0) → sign deployment release.

Evidence & safety

  • Evidence: TBD. Version: 1.0.1. Security: no independent scan (TBD).

中文

何时用

  1. 在智能体上线前的安全准入评审阶段,需强制进行制动卡字段完整性验证。
  2. 涉及敏感数据操作、资金处理或高危任务执行的关键业务场景部署前。
  3. 当系统配置缺失「停止条件」或「恢复条件」等关键风控要素时。

用法

  1. 核心脚本:agent_kill_switch.py,调用方式为 python agent_kill_switch.py --check。
  2. 参数说明:--input-config(制动卡文件路径),--skip-check(仅用于本地测试跳过验证)。
  3. 结果判断:字段齐全且通过校验返回 0,缺项失败返回 1 不许上线。

流程

  1. 定义制动卡:编写包含停止条件、断权动作、责任人、恢复条件的配置数据。
  2. 导入脚本路径:确保环境已安装 agent_kill_switch.py。
  3. 执行检查命令:python agent_kill_switch.py --check --input-config <file>。
  4. 获取校验反馈:rc=1 则判定制动卡缺失或无效。
  5. 修正配置数据:根据报错提示补全缺失字段。
  6. 确认上线授权:rc=0 后生成部署签名放行。

证据与安全声明

  • 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
  • 版本:1.0.1
  • 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。