
The code freeze that wasn’t
In July 2025, SaaStr’s founder was building an app with Replit’s AI agent. During an explicit code freeze, the agent ran destructive commands against the live production database and wiped records for more than 1,200 executives. Replit responded by separating development and production databases and adding a planning-only mode.
The lesson is not that AI is dangerous. It is that the freeze was an instruction, not a permission. Nothing in the platform made the command impossible. Most teams running AI agents have that gap somewhere.
Why governance is now an operations problem
AI agents now open pull requests, triage incidents and resize clusters. In managed services, one agent may touch dozens of client environments in a shift. So the real question is: what is this AI allowed to do, where, under whose identity, and how would we know if it went wrong? The answer must be enforced by identity and platform controls, not a sentence in a prompt. Teams that get this right ship faster, because guardrails remove the fear that slows every approval.
Delivery: five gates from idea to retirement
- Intake and tiering. Register every use case, including AI inside SaaS tools. Tier 1 is internal and read-only; Tier 2 writes to systems or faces customers; Tier 3 touches regulated data or acts autonomously.
- Design review. Check data residency and retention, and decide where a human must approve. If one agent can read private data, ingest untrusted content and send data out, redesign it.
- Evaluation. Test accuracy, prompt-injection resistance and cost against agreed thresholds. No numbers, no release.
- Controlled rollout. Shadow mode first, then a small cohort, with a tested kill switch on-call can pull in five minutes.
- Operate and retire. Re-evaluate on every model or prompt change; on retirement, revoke keys and delete stored memory.

Figure 1: The five delivery gates, with a loop back to evaluation on every change
The core rule: prompts, model versions, tool permissions and connectors are all code, with version control and review. Map the gates to the NIST AI RMF, ISO/IEC 42001, the EU AI Act (high-risk obligations from December 2027) and, in India, the DPDP Rules (from May 2027) and CERT-In’s six-hour incident reporting. (Not legal advice.)
Cloud operations: let AI act, but on a leash

Figure 2: The L0–L4 autonomy ladder for AI in cloud operations
Promote individual runbooks on evidence, and demote them automatically after any AI-caused incident. Four rules keep this safe:
- Tenant isolation: an agent for Client A never holds credentials that reach Client B.
- Blast-radius limits: cap resources, cost and production access per action.
- Runbooks, not improvisation: at L2 and above, AI uses tested runbooks and dry-runs first.
- Platform-enforced freezes: a change freeze revokes the agent’s write access in IAM.
Write each client’s autonomy level into the SOW.
Security: treat every agent as a privileged user
In June 2025, researchers disclosed EchoLeak, a Microsoft 365 Copilot flaw where one crafted email could make the assistant leak internal data without a single click. Microsoft patched it, but the pattern applies to any AI that reads untrusted content and can reach sensitive data.
Use the OWASP Top 10 for LLM Applications and for Agentic Applications as your threat checklist.
The model is never the security boundary. A prompt that says “do not delete anything” is a hope. An IAM policy that makes deletion impossible is a control.

Figure 3: Every agent action passes through identity, gateway and policy checks before it runs
Make the safe path the fast path
- Guardrails as code (OPA, SCPs, Azure Policy) in every pipeline.
- A paved road: a pre-approved AI platform with logging and evaluation built in.
- One AI gateway for authentication, cost caps, redaction and audit logs.
- Proportionate review: only Tier 3 goes to the governance board.
- Measured value: capture a baseline before go-live, then track hours saved and time to resolve.
Run AI like a production service
Monitor quality on sampled traffic, re-test after any model change, log every tool call and approver, and cap cost per agent. Watch for drift when providers update or retire models, and alert when cost per task jumps, because runaway agent loops get expensive quickly. Add AI incidents to your incident process: pull the kill switch, preserve logs, notify the client, and run a blameless review. Every agent needs a named human owner.
Who owns what
Leaders: approve an AI policy by risk tier, keep a live inventory with named owners, put autonomy levels into client contracts, and fund the paved road, not just pilots.
Senior engineers: design least-privilege identities, enforce freezes in IAM, version every prompt and permission, and test kill switches in game days.
A 90-day roadmap
Ownership first, guardrails second, scale last.

Figure 4: The 90-day roadmap, with two gates between phases
Don’t move to the next phase until its gate is met. Scaling AI before owners exist simply scales the risk.
Conclusion
The teams that win with AI won’t have the most pilots. They’ll be the ones clients trust to let AI act in production, built on ownership, least privilege, tested runbooks and a kill switch that works. The Replit agent didn’t need to be smarter. It needed fewer permissions.
Over to you: where is your team on the autonomy ladder today?
The blog is written by Nitin Ghodke (Senior Manager - Technical Operations @ Cloud.in)
No comments:
Post a Comment