Safety Nets & Controls

Source: content/manual/03-ai-agents/chapters/02-safety-nets-and-controls.md

Purpose and scope

Ensure AI contributions are reversible, testable, and auditable.

Outcomes

  • Tests fail before regressions escape.
  • Rollbacks are fast and routine.
  • Security scanning covers generated code.

Signals of trouble

  • Agent commits bypass reviews.
  • Untracked prompt changes alter behavior.
  • Rollbacks require manual, risky steps.

Remediation steps

  1. Enforce tests and static checks on AI changes.
  2. Wrap risky changes with flags; use canaries.
  3. Store prompts and tool configs in Git with reviews.

Checklists and assets

References

  • Security scanning policies; feature flag playbooks.