See how Nexus turns high-friction enterprise workflows into production software Read customer stories →
LaunchDarklyBeta

Ship dark with LaunchDarkly: health-gated feature flag rollouts.

Ship dark: flags created OFF, health-gated rollout, auto-rollback.

  1. Merge darkflag created OFF
  2. 1% → 10% → 50% → 100%health-gated steps
  3. Auto-rollbackon regression
The flow

Every user-facing change gets its own flag

Nexus Factory plans, builds, reviews, and merges. LaunchDarkly controls who sees each change. The flag exists, switched off, before the code lands.

How Nexus Factory and LaunchDarkly work togetherThree lanes. The factory plans and codes behind a flag. The flag is created OFF in LaunchDarkly, then the code merges. The app ships and reports errors to CloudWatch tagged by flag. The factory reads health, decides to advance, hold or roll back, and sets the rollout percentage in LaunchDarkly.NexusFactoryLaunchDarklyYour app+ CloudWatchchanges whosees the code1Planmarks user-facing work2Codewraps it in a flag3Create flagOFF, tagged (API)4Merge darkcode lands, flag OFF5App shipsold behavior for all6Report errorsto CloudWatch, by flag7Read healthlast 5 minutes8Decideadvance, hold, back9Set rollout %1, 10, 50, 100Regression at any step: back to 0%. Health data missing: hold.After 100%: a cleanup change removes the dead branch and the flag is archived.
In the product

Flags show up where the work happens

Overview page showing recent work with flag chips and an Autonomous Rollout card at 10 percent
Overview. Recent work with its flags, and every flag that is mid-rollout. Sample data.
Tasks list with flag badges such as 1 flag at 10 percent, and an All tasks filter
Tasks. How many flags each task uses, and how far they are. Sample data.
Task detail Feature flags section listing two flags with stage and percentage
Task detail. Each flag next to the code that created it. Sample data.
How a rollout decides

Two inputs, four outcomes

HealthWait at this step over?Factory does
HealthyYesAdvance one step: 1% → 10% → 50% → 100%
HealthyNoHold
RegressedEitherRoll back to 0%
Not enough dataEitherHold. It never acts on missing data.

What it measures

  • Your app's error count divided by its request count, from CloudWatch. Error rate only today, not latency.
  • A recent window, 5 minutes by default. Each step then waits before the next, 1 hour by default.
  • When the metric is tagged by flag and variation, users on the new code are compared with users still on the old code.

When it rolls back

  • The new code's error rate is above 5%, or more than 20% higher than the old code's. Rates under 0.1% are treated as noise.
  • It needs at least 200 requests on the new code in the window to judge. Below that it holds, so a 1% step on a quiet app waits for traffic.
  • If the old-code group has under 200 requests, only the 5% limit applies.
  • If the metric is not tagged by flag, it can't tell which change caused a spike, so it holds instead of rolling back.
  • Every number here is set per project.
What is real today

Live, beta, and next

Results from our own project, Nov 6–17

  • Flags create themselves. The factory creates each flag OFF and tags it with its requirement and task before the code merges. No one writes flag code or clicks Create.
  • 9 rolled out through all four steps to 100% on the factory's own decisions, a few minutes per step. Our test setup waits 1 minute per step.
  • 12 were rolled back at once on Nov 12, when a short spike of server errors (3 of 42 requests) hit our shared load balancer. That signal was not tied to any one flag, so we changed the rule the same day: without per-flag data the factory now holds instead.
  • Flag created OFF and tagged with its requirement and task, before merge
  • Flags on the overview, the task list, and each task
  • Cleanup of retired flags
  • Kill switch: turn the flag off in LaunchDarkly
  • Automatic rollout and rollback on health
  • A regression opens a fix requirement
  • Hand the rollout to LaunchDarkly's release automation (guarded rollouts, Release Autopilot)
  • Guarded Releases for the apps the factory builds for clients

Background: LaunchDarkly's guide Ship AI-built code with AgentControl or CodeControl. Read: shipping dark with LaunchDarkly.

How it works

Set up in 4 steps

  1. 1

    In Settings (or per project), add your LaunchDarkly client-side ID, environment, and default project key. A management API token and server SDK key are stored as secrets, never shown back.

  2. 2

    Turn on "Use LaunchDarkly for this project" in the project form.

  3. 3

    For health-gated rollout, emit error and request metrics to CloudWatch tagged with FlagKey and FlagVariation, and configure the project health metric.

  4. 4

    Start the guarded rollout by setting the flag to 1% in LaunchDarkly; the factory takes it from there.

Next steps

Next steps after LaunchDarkly

See pricing · Read customer stories

Ready to ship faster?

Start with the self-serve factory, or talk to our team about Nexus Enterprise.