Let the Agent Propose, Let the Pipeline Commit: A Staged Gate for AI-Assisted Changes
A team member used an AI assistant to propose changes, but the preview environment broke due to a lack of permissions tracking. To fix this, the author implemented a staged gate system where the assistant proposes changes in small, separately-permissioned stages. This ensures that the assistant can't make irreversible changes without human oversight. The stages include: Scan (read-only), Draft (proposed changes), Rehearse (commands execute in a sandbox), Commit (human approval), and Trace (tracking changes).