Loading...
Loading...
Compare original and translation side by side
1. DENY — block the first Edit/Write/Bash attempt
2. FORCE — tell the model exactly which facts to gather
3. ALLOW — permit retry after facts are presented1. 拦截 — 阻止首次编辑/写入/Bash尝试
2. 强制 — 明确告知模型需要收集哪些事实
3. 允许 — 在提交事实后允许重试| Task | Gated | Ungated | Gap |
|---|---|---|---|
| Analytics module | 8.0/10 | 6.5/10 | +1.5 |
| Webhook validator | 10.0/10 | 7.0/10 | +3.0 |
| Average | 9.0 | 6.75 | +2.25 |
| 任务 | 带关卡 | 无关卡 | 差距 |
|---|---|---|---|
| 分析模块 | 8.0/10 | 6.5/10 | +1.5 |
| Webhook验证器 | 10.0/10 | 7.0/10 | +3.0 |
| 平均 | 9.0 | 6.75 | +2.25 |
Before editing {file_path}, present these facts:
1. List ALL files that import/require this file (use Grep)
2. List the public functions/classes affected by this change
3. If this file reads/writes data files, show field names, structure,
and date format (use redacted or synthetic values, not raw production data)
4. Quote the user's current instruction verbatim在编辑{file_path}前,请提供以下事实:
1. 列出所有导入/引用该文件的文件(使用Grep)
2. 列出此变更会影响的公开函数/类
3. 如果该文件会读取/写入数据文件,请展示字段名称、结构、
和日期格式(使用脱敏或合成值,而非原始生产数据)
4. 逐字引用用户当前的指令Before creating {file_path}, present these facts:
1. Name the file(s) and line(s) that will call this new file
2. Confirm no existing file serves the same purpose (use Glob)
3. If this file reads/writes data files, show field names, structure,
and date format (use redacted or synthetic values, not raw production data)
4. Quote the user's current instruction verbatim在创建{file_path}前,请提供以下事实:
1. 指明将调用此新文件的文件及行号
2. 确认没有现有文件具备相同功能(使用Glob)
3. 如果该文件会读取/写入数据文件,请展示字段名称、结构、
和日期格式(使用脱敏或合成值,而非原始生产数据)
4. 逐字引用用户当前的指令rm -rfgit reset --hardgit push --forcedrop table1. List all files/data this command will modify or delete
2. Write a one-line rollback procedure
3. Quote the user's current instruction verbatimrm -rfgit reset --hardgit push --forcedrop table1. 列出该命令将修改或删除的所有文件/数据
2. 编写一行回滚流程
3. 逐字引用用户当前的指令Quote the user's current instruction verbatim.逐字引用用户当前的指令。scripts/hooks/gateguard-fact-force.jsscripts/hooks/gateguard-fact-force.jspip install gateguard-ai
gateguard init.gateguard.ymlpip install gateguard-ai
gateguard init.gateguard.yml%Y/%m/%d %H:%M%Y/%m/%d %H:%M.gateguard.yml.venv/node_modules/.git/.gateguard.yml.venv/node_modules/.git/safety-guardcode-reviewersafety-guardcode-reviewer