DEVOPS

Validate flag MRs against live Vercel state before merge

When a merge request edits flags.json, validates the proposed flags against the live Vercel Edge Config and schema rules.

CategoryDevOps
Enginesim
Difficultyadvanced
Triggerwebhook
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitLab MR opened or updated webhookGitLabGitLab
  • LogicFilter: MR modifies flags.json
  • ActionFetch proposed flags + live Edge ConfigVercelVercel
  • LogicValidate schema, compute intended diff
  • OutputPost preflight approve/block comment on MRGitLabGitLab

What it does

Gives reviewers a preflight check before a flag change merges. When an MR touches `flags.json`, it parses the proposed flags, validates them against schema rules (valid keys, allowed value types, no orphaned references) and compares the intended change to the current live Vercel Edge Config so reviewers see exactly which keys will flip and by how much. It posts a structured comment on the MR marking it safe or flagging conflicts.

When to use it

Use it as a required check in your flag-change review flow so risky edits, malformed JSON, or surprise overwrites of recently-changed live values get caught at review time instead of after deploy.

How it works

  1. 1A GitLab merge-request webhook triggers on open and update events.
  2. 2A logic step filters to MRs that modify `flags.json`.
  3. 3Fetch the proposed `flags.json` from the MR source branch and read the current live values from the Vercel Edge Config.
  4. 4A logic step validates schema and computes the intended diff, flagging malformed entries or clobbered live changes.
  5. 5Post an approve-or-block preflight comment back on the GitLab MR with the diff and any warnings.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitLabRepos, MRs, pipelines, registry.
  2. 2
    Connect VercelDeploys, runtime logs, analytics.
  3. 3
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  4. 4
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  5. 5
    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.