·
Last changedVersion:
No hardening report available.
You're using a skill that will guide you through configuring guarded rollouts in LaunchDarkly. Your job is to design rollout stages, select monitoring metrics, choose which regressions roll back automatically, and start the rollout after the user approves the plan.
This skill requires the remotely hosted LaunchDarkly MCP server to be configured in your environment.
Required MCP tools:
start-guarded-rollout -- start a progressive rollout with monitoringget-flags -- inspect the flag and its variationsget-metrics -- find metrics to monitor during the rolloutOptional MCP tools:
stop-guarded-rollout -- halt an active rollout immediatelytoggle-flag -- ensure the flag is turned on before startingcreate-metric -- create metrics if they don't existcreate-approval-request -- submit a change for approval when a tool returns requiresApproval: trueA guarded rollout progressively increases traffic to a new feature flag variation through a series of stages. At each stage, LaunchDarkly monitors selected metrics for regressions. If a regression is detected, the rollout can automatically pause and notify the team — or even roll back.
| Component | Description |
|---|---|
Test variation | The new variation being rolled out |
Control variation | The existing/baseline variation |
Stages | Steps with increasing traffic percentage and monitoring windows |
Metrics | What to monitor for regressions (error rate, latency, etc.) |
Auto-rollback | Per metric: whether a regression rolls back automatically or only notifies |
Rollout weights use thousandths (basis points):
1000 = 1%10000 = 10%50000 = 50%, the maximum for a guarded stageThe monitoring window is specified in milliseconds:
3600000 = 1 hour86400000 = 24 hours604800000 = 7 daysconfirm: true, start a rollout, stop a rollout, create a metric, or submit an approval request only after the user explicitly approves that specific action in the current conversationBefore starting a guarded rollout:
get-flags to inspect the flag — note the variation IDs for test and control. Confirm the test and control variations with the user by name and value, and keep the IDs matched to those confirmed variationsget-metrics to find metrics suitable for monitoringget-flags to check that the default rule and targeting serve the control variation, and show that check to the user. Explain that turning the flag on serves it in the target environment. Call toggle-flag with on: true and confirm: true only after the user explicitly approvesPlan the rollout progression. A typical pattern:
| Stage | Traffic | Monitoring Window | Purpose |
|---|---|---|---|
1 | 1% | 1 hour | Smoke test — catch obvious crashes |
2 | 10% | 24 hours | Early signal on metrics |
3 | 50% | 24 hours | Confidence building |
Each stage's rolloutWeight is capped at 50000 (50%). Do not add a 100% stage: after the last stage passes, LaunchDarkly completes the rollout.
Select metrics that indicate problems. Each metric entry takes exactly key (a metric or metric group key), isGroup, and autoRollback (roll back automatically on regression, or only notify):
| Metric Type | Example | autoRollback |
|---|---|---|
Error rate |
|
|
Latency |
|
|
Conversion |
|
|
Before calling start-guarded-rollout, show the user a summary of the full plan:
autoRollback valueWait for the user's explicit approval of this plan before continuing. If the user asks for changes, update the plan and review it again.
After the user approves, use start-guarded-rollout:
All keys, IDs, and the production environment in this example are illustrative. Take the real values from the user and the approved plan.
get-flags to confirm the guarded rollout is activeReport results:
If issues arise or you need to halt the rollout, explain to the user that stopping immediately halts the progressive rollout and locks the flag at its current state. Include "confirm": true only after the user explicitly approves, then call stop-guarded-rollout:
This immediately stops the progressive rollout and locks the flag at its current state.
| Situation | Action |
|---|---|
Flag is off | Check with |
Active rollout exists | Report the existing rollout to the user, including its current stage, traffic percentage, monitored metrics, and owner if known. Explain that stopping it locks the flag at its current state. Call |
No suitable metrics | Propose metric definitions to the user, covering key, tracked event, and success criteria. Call |
Approval required | The tool returns |
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.cgr.dev/public/github.com/launchdarkly/skills/feature-flags/launchdarkly-guarded-rollout:latest
Apache-2.0
HARDENING.md
LICENSE
SKILL.md