> Markdown version of [/videos/100706-ship-happens-guardrails-for-ai-written-code](https://www.wearedevelopers.com/videos/100706-ship-happens-guardrails-for-ai-written-code). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Ship Happens: Guardrails for AI-Written Code AI generates code fast, but humans still own the outages. See how runtime feature flags and automated observability let you ship AI-written code safely without reviewing every single line. - **Speakers:** [Anthony Nguyen](https://www.wearedevelopers.com/@anthony-nguyen) - **Event:** Conference India 2026 - **Published:** November 25, 2026 - **Duration:** 30:31 - **URL:** https://www.wearedevelopers.com/videos/100706-ship-happens-guardrails-for-ai-written-code - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/72d4e04465c9ba7f73caffda802970d5/thumbnails/thumbnail.jpg?time=30000ms ## Summary AI coding agents have dramatically increased the volume of code teams can produce, making manual human code reviews and testing an unscalable bottleneck. Anthony Nguyen from LaunchDarkly explains that while AI accelerates development, human engineers remain responsible when outages occur. To safely match the speed of AI code generation, teams must build an automated software delivery assembly line where humans define upfront release policies and agents execute the repeatable delivery work. The core strategy requires decoupling deployment from release using runtime feature flags. Instead of releasing changes to all users upon deployment, teams wrap high-risk changes in feature flags and use progressive rollouts across cohorts. By pairing LaunchDarkly with observability platforms like New Relic to compare error rates and performance metrics between baseline and new versions, systems can achieve automated self-healing by instantly disabling degraded flags without redeploying. Nguyen demonstrates this workflow using LaunchDarkly's GitHub application powered by Claude. When a pull request is opened, the AI analyzes the commit diff, recommends wrapping the new code in a feature flag, commits the flag logic, and triggers a progressive rollout from test environments to production. To prevent technical debt, the agent also manages the flag lifecycle by automatically generating pull requests to clean up and archive stale flags after 90 days of inactivity. **Keywords:** ai coding agents, automated software delivery, launchdarkly, feature flag lifecycle management, progressive rollouts, decoupling deployment from release, runtime guardrails, automated self-healing, cohort metrics comparison, release policy automation, claude, new relic observability, dependency flags, stale flag cleanup, in-memory flag evaluation, ci/cd pipeline automation ## Chapters 1. **Scaling production deployments with AI code generation** (00:02) — High-volume AI code generation overwhelms manual review processes, requiring automated delivery pipelines and production guardrails to prevent outages. 1. **Transitioning from semi-autonomous to policy-driven delivery** (04:20) — Relying on manual testing in lower environments bottlenecks AI coding speed, so engineering teams must shift toward defining upfront release policies and guardrails. 1. **Decoupling deployment from release with feature flags** (06:20) — Pushing code directly to users risks widespread outages, whereas wrapping changes in feature flags with cohort metrics enables progressive rollouts and automated rollbacks. 1. **Automating feature flag creation in pull requests** (10:20) — Manually wrapping high-risk changes in feature flags slows down developers, so an AI-powered GitHub app can analyze pull requests to inject flag code and provision release policies. 1. **Executing progressive rollouts across multiple environments** (14:30) — Releasing new builds to all users simultaneously risks broad failures, which can be mitigated by configuring automated release pipelines that incrementally increase traffic exposure. 1. **Automating feature flag cleanup and lifecycle management** (19:59) — Accumulating stale feature flags creates technical debt in the codebase, which AI agents can resolve by automatically generating pull requests to remove and archive inactive flags. 1. **Evaluating flag performance, offline defaults, and dependencies** (25:14) — Concerns around runtime latency, offline mobile behavior, and conflicting code changes are addressed using in-memory rule evaluation, fallback defaults, and parent-child flag dependencies. ## Related Moments - [Managing and controlling agentic code at enterprise scale](https://www.wearedevelopers.com/videos/100172-after-the-framework-wars-what-s-next-for-web-development) (from "After the Framework Wars: What’s Next for Web Development") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/d10aaac612eb1249d5c669c9467f46cb/thumbnails/thumbnail.jpg?time=87830ms - [Controlling production risks with automated feature flags](https://www.wearedevelopers.com/videos/100602-keeping-code-quality-at-ai-speed) (from "Keeping Code Quality at AI Speed") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/d0c76e7a3bed6ac28c5064d37faabde4/thumbnails/thumbnail.jpg?time=166870ms - [Scaling engineering teams and identifying evolving delivery bottlenecks](https://www.wearedevelopers.com/videos/100443-engineering-moneyball-how-we-benchmarked-google-vs-meta) (from "Engineering Moneyball: How We Benchmarked Google vs Meta") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/bd0bb39915435da1b27abde7f5c6c655/thumbnails/thumbnail.jpg?time=87660ms - [Shifting developer workloads and realistic AI productivity gains](https://www.wearedevelopers.com/videos/1830-wearedevelopers-live-speculaitions) (from "WeAreDevelopers LIVE - SpeculAItions") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/2cdb4226b123a771ffa9261c5605d057/thumbnails/thumbnail.jpg?time=202197ms - [Navigating AI layoffs and automating pull request reviews](https://www.wearedevelopers.com/videos/100641-when-writing-code-is-no-longer-the-bottleneck) (from " When Writing Code is No Longer the Bottleneck") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/89818a77cd5c3b1d7fed7c6da4cb75ac/thumbnails/thumbnail.jpg?time=30000ms - [Balancing platform availability and security with AI feature releases](https://www.wearedevelopers.com/videos/100106-craftsmanship-in-the-age-of-agents) (from "Craftsmanship in the Age of Agents") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/5cc4c451ee822779d03603dddefbf2e9/thumbnails/thumbnail.jpg?time=138600ms ## Related Articles - [What is Agentic Programming and Why Should Developers Care?](https://www.wearedevelopers.com/magazine/625-what-is-agentic-programming-and-why-should-developers-care) - [Building an Agentic Software Factory](https://www.wearedevelopers.com/magazine/796-building-an-agentic-software-factory) - [Exploring AI: Opportunities and Risks for Developers](https://www.wearedevelopers.com/magazine/522-exploring-ai-opportunities-and-risks-for-developers) - [MLOps And AI Driven Development](https://www.wearedevelopers.com/magazine/82-mlops-and-ai-driven-development) ## Related Jobs - [Staff Software Engineer, Copilot Code Review](https://www.wearedevelopers.com/jobs/ext/4743636-staff-software-engineer-copilot-code-review) at **GitHub** - [Principal Software Engineer, Copilot Code Review](https://www.wearedevelopers.com/jobs/ext/4667602-principal-software-engineer-copilot-code-review) at **GitHub** - [Staff Software Engineer, GitHub Intelligence (Copilot Agents)](https://www.wearedevelopers.com/jobs/ext/4850314-staff-software-engineer-github-intelligence-copilot-agents) at **GitHub** - [Senior Software Engineer, Enterprise Products](https://www.wearedevelopers.com/jobs/ext/4915393-senior-software-engineer-enterprise-products) at **GitHub** - [Senior Software Engineer - Semantic Data Lake (Open)SDE3](https://www.wearedevelopers.com/jobs/48597-senior-software-engineer-semantic-data-lake-open-sde3) at **WEX** - [Senior Software Engineer](https://www.wearedevelopers.com/jobs/ext/4786821-senior-software-engineer) at **GitHub**