When an AI coding agent can push code straight to production without any human checkpoint, a single mis‑generated query can corrupt databases, expose secrets, and trigger costly incident responses. The financial impact of a rogue change often dwarfs the convenience gained from full automation, and regulators increasingly expect clear separation of responsibilities. That is why segregation of duties matters even for machine‑driven developers.
Current practice: agents with unchecked power
Many teams treat an AI coding assistant as just another library. The agent runs inside a CI pipeline, authenticates with a static service account, and talks directly to the target system, whether a PostgreSQL instance, a Kubernetes cluster, or an SSH host. The service account typically has broad write privileges, and the pipeline does not require a human to approve the final step. As a result, the organization loses visibility into who (or what) actually performed each operation, and there is no barrier to prevent a dangerous command from being executed.
What segregation of duties aims to fix
Segregation of duties requires that no single identity, human or non‑human, can both create a change and deploy it without independent verification. In practice this means splitting the responsibilities of code generation, approval, and execution across distinct entities. The AI agent should be allowed to generate code, but a separate policy decision must decide whether that code is safe to run. Even after the decision, the system must retain a reliable record of the execution for audit and forensics.
Implementing this split without a dedicated control point leaves a gap: the request still reaches the database or cluster directly, bypassing any real‑time check, audit, or data‑masking step. The setup, service accounts, OIDC tokens, role bindings, identifies the caller, but it does not enforce the policy that the caller must be vetted before the command touches the target.
Introducing hoop.dev as the enforcement layer
Running AI agents against production? hoop.dev is an open-source proxy that sits between agents and your databases and servers. It checks every command at runtime and masks sensitive data before it reaches the agent. Try it free: hoop.dev/start
