DEVOPS

Auto-remediate unauthorized Vercel flag drift and page on conflict

Detects live Edge Config flags that diverge from GitLab, reverts them to the committed value automatically, and pages PagerDuty when a flag can't be safely auto-resolved.

CategoryDevOps
Enginesim
Difficultyadvanced
Triggerschedule
Steps7
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerFrequent schedule fires
  • ActionFetch live Edge Config + source flags.jsonVercelVercel
  • LogicClassify drift: auto-revert vs. unresolved
  • ActionRevert auto-fixable flags to source valueVercelVercel
  • LogicBranch: unresolved drift remains?
  • ActionPage PagerDuty for unresolved driftPagerDutyPagerDuty
  • OutputPost remediation summary to SlackSlack

What it does

Treats GitLab as the only authority and self-heals production. It compares the live Vercel Edge Config against the committed `flags.json`, automatically reverts unauthorized live-only or value-drifted flags back to source, and logs every correction. Ambiguous cases (a flag present live but with no entry in source) are escalated rather than guessed.

When to use it

Use it on high-blast-radius stores where an out-of-band flag flip is an incident, not a curiosity. Auto-revert keeps prod aligned with reviewed config; the page ensures a human handles anything the rule can't resolve cleanly.

How it works

  1. 1A schedule fires the reconciler frequently (default every 5 minutes).
  2. 2Fetch live Edge Config values from Vercel and the canonical `flags.json` from GitLab.
  3. 3A logic step classifies each drift as auto-revertible (value mismatch against a known key) or unresolved (live-only with no source entry).
  4. 4For auto-revertible drift, patch the Edge Config back to the source value via Vercel.
  5. 5Branch: if any unresolved drift remains, trigger a PagerDuty incident with the flag details; otherwise post a quiet remediation summary to Slack.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect VercelDeploys, runtime logs, analytics.
  2. 2
    Connect GitLabRepos, MRs, pipelines, registry.
  3. 3
    Connect PagerDutyIncidents, on-call, escalations.
  4. 4
    Connect SlackChannels, DMs, threads, mentions.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.