Skip to content

About

Curated field guide and operational checklist for AI coding agent guardrails, sandboxing, and execution safety.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

agent-safety-field-guide

Awesome License: MIT Payout Rail Commercial Catalog

Curated operational checklist, failure mode taxonomy, and sandbox architectural patterns for autonomous AI coding agents.


Executive Summary

Autonomous coding agents (Claude Code, Antigravity, OpenDevin, Cursor) possess execution agency: reading files, editing source code, executing shell commands, and driving Git workflows. Without rigid boundaries, agents cause workspace contamination, accidental secret exposure, and unapproved repository mutations.

This guide provides open, production-tested guardrail specifications and reference checklists for engineering teams deploying agentic software workflows.


1. Core Safety Principles

  • Fail-Closed Execution: If environmental state, auth boundaries, or tool invariants cannot be established, halt execution immediately.
  • Strict Boundary Enforcement: Enforce mandatory path scoping to the designated workspace root (Cwd). Reject paths outside workspace.
  • Zero Destructive Auto-Commands: Explicitly forbid automated execution of git reset --hard, git clean -fd, rm -rf, sudo, or history rewrites without explicit interactive confirmation.
  • Credential Hygiene: Prevent agents from accessing system keychains, reading .env secrets, or exporting sensitive auth material.

2. Guardrail Checklist & Failure Modes

ID Failure Mode Severity Recommended Guardrail
SAF-01 Destructive Git Wipe (git reset --hard) CRITICAL Git wrapper interceptor rejecting destructive subcommands
SAF-02 Workspace Boundary Escape (../../) CRITICAL Filesystem chroot / canonical path validator
SAF-03 Secret Exfiltration via Tool Returns HIGH Regex scrubber for API keys, private keys, seed phrases
SAF-04 Contradictory Instruction Drift HIGH Static cross-linter for AGENTS.md and CLAUDE.md
SAF-05 Cascading Autonomous Loops MEDIUM Max-step circuit breakers and rate limiters

3. Sample Verification Output

Below is an authentic execution trace from a preflight guardrail run verifying agent workspace isolation:

============================================================
   AGENT WORKSPACE PREFLIGHT & INTEGRITY CHECK (v1.0.0)
============================================================
[AUDIT] Target Workspace: /workspace/project-alpha
[CHECK 01] Path traversal attempt (../../etc/passwd) ...... [BLOCKED]
[CHECK 02] Shell injection probe (; rm -rf /) ............. [BLOCKED]
[CHECK 03] Git branch protection (main lock) .............. [ENFORCED]
[CHECK 04] Secret exposure scan (0 unmasked tokens) ....... [PASS]
[CHECK 05] Destructive command blacklist (5/5 active) ...... [PASS]
------------------------------------------------------------
RESULT: PASS (Workspace isolation verified. Execution safe.)
============================================================

4. Production Tooling & Commercial Catalog

For engineering teams seeking automated CI/CD integration, deterministic pre-commit hooks, and enterprise hardening:

Low-Friction Entry Tools ($19)

Enterprise Core Suites

Browse the full GENESIS Multi-Channel Software Catalog for 45 verified agent engineering and quant tools.

About

Curated field guide and operational checklist for AI coding agent guardrails, sandboxing, and execution safety.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors