Bartholomew Guard: shipping an AI safety gate for destructive actions
说明与用途
Bartholomew Guard 是一个安全层,阻止 AI 生成的危险命令在开发和 CI 环境中执行,并提供解释和审计日志。
问题
AI agents can issue destructive or high‑risk commands that bypass normal safety checks, leading to accidental data loss or system compromise.
结果
Implemented a practical safety layer that blocks unsafe AI‑generated shell commands, provides clear explanations, and logs decisions for auditability, enhancing developer confidence in AI‑assisted workflows.
工作流
- 1. Install Bartholomew Guard as a VS Code extension or GitHub Action.
- 2. When an AI agent proposes a shell command, the guard evaluates intent and pattern matching.
- 3. If the command is flagged as destructive, the guard blocks execution and returns a denial message.
- 4. The decision is logged in a receipt‑style record for audit.
- 5. Developers continue the workflow with safe commands.
- 6. Review logs to understand denied actions and adjust policies if needed.
证据
We built Bartholomew to stop unsafe AI-driven commands before they execute.
The guard evaluates command intent, flags destructive patterns, and denies actions like shell deletion, risky file operations, and unsafe execution paths.
- 记录日期: 2026-09-20T23:30:43.252Z