ENGINEERING

Human-in-the-Loop Flake Quarantine: Slack Approval Before Skipping

On a repeated CI failure, posts a Slack message with retry-or-skip buttons and the LLM's recommendation.

CategoryEngineering
Enginesim
Difficultyintermediate
Triggerevent
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitHub webhook: test fails second time in a rowGitHubGitHub
  • ActionSummarize failure and recommend retry vs. skipOpenAI
  • ActionPost Slack message with Retry/Skip buttonsSlack
  • LogicBranch on engineer's button choice
  • ActionRe-dispatch CI job (Retry) or open ticket (Skip)GitHubGitHub
  • OutputReply in Slack thread with ticket and MR linksSlack

What it does

This workflow keeps a human in the loop. When a test fails repeatedly, it summarizes the failure, asks an LLM for a retry-or-skip recommendation, and posts both to Slack with action buttons. Nothing is quarantined until an engineer clicks, so risky skips never happen silently.

When to use it

Use it on teams that want automation to do the gathering and reasoning but reserve the quarantine decision for a person. Ideal for critical repos where skipping the wrong test could mask a real failure.

How it works

  1. 1A GitHub webhook fires when a job fails for the second consecutive time on the same test.
  2. 2An OpenAI step writes a short failure summary plus a recommendation (retry transient infra vs. skip persistent flake).
  3. 3A Slack message posts the summary, recommendation, and Retry / Skip buttons to the team channel.
  4. 4A logic branch reads the button clicked: Retry re-dispatches the GitHub workflow; Skip proceeds.
  5. 5On Skip, it opens a Linear flake ticket and a draft skip MR, then replies in-thread with the links.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitHubRepos, issues, pull requests, actions.
  2. 2
    Connect OpenAIModels, embeddings, files.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  4. 4
    Connect LinearIssues, projects, cycles, triage.
  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.