Skip to main content
When AI agents write code, they introduce a unique risk: autonomous modification of production systems without human review. TealTiger’s Code Change Governance introduces the CODE_CHANGE action class — a dedicated governance domain for AI-driven code modifications with path allowlists, branch restrictions, diff hash requirements, and a two-person rule.
Code Change Governance addresses the intersection of OWASP ASI-03 (Insecure Tool Execution) and ASI-08 (Excessive Agency) — the risk that AI coding agents modify critical files, push to protected branches, or make changes that bypass standard code review processes.

Why This Matters

Compliance alignment: NIST AI RMF (GOVERN 3 — human oversight), ISO 42001 (A.8.4 — system integrity), SOC 2 CC8.1 (change management), EU AI Act Article 14 (human oversight).

CODE_CHANGE Action Class

The CODE_CHANGE action class is a specialized governance domain for any action that modifies source code, configuration files, or infrastructure-as-code:

Path Allowlists

Path allowlists define which files and directories an agent is permitted to modify. They use glob patterns with negation support:

Pattern Syntax


Branch Allowlists

Branch allowlists control which Git branches an agent can push to or create PRs against:

Diff Hash Requirement

Every code change must include a cryptographic hash of the diff — creating a tamper-evident record of exactly what was changed:
The diff hash serves multiple purposes:
  1. Non-repudiation — Proves exactly what the agent intended to change
  2. Tamper detection — Any modification after governance approval is detectable
  3. Audit trail — Links the governance decision to the specific code change
  4. Replay prevention — Hash is unique to this specific diff

Two-Person Rule

The two-person rule requires that code changes made by an AI agent are approved by a human before they take effect. This implements the principle that no single entity (human or AI) can unilaterally modify production code.

Two-Person Rule Configuration


Integration with CI/CD

Code Change Governance integrates with your existing CI/CD pipeline:

Configuration