DEVOPS

Agent-Driven Drift Triage with Reconciliation Proposal

An agent investigates each detected Terraform drift, decides whether to import, revert, or update code, drafts a reconciliation PR, and asks the owning team to approve in Slack.

CategoryDevOps
EngineSim + Paperclip
Difficultyadvanced
Triggerschedule
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerScheduled drift sweep
  • Actionterraform plan, collect drifted resourcesShell
  • ActionGather GitHub + Datadog context per resourceGitHubGitHub
  • LogicAgent classifies: import / revert / codify
  • ActionOpen draft reconciliation PRGitHubGitHub
  • OutputPost proposal to Slack for approvalSlack

What it does

For each drifted resource, an agent reads the plan diff, recent GitHub history, and Datadog change context to reason about why the resource drifted, then recommends one of three resolutions: import the live change into state, revert it via apply, or update the Terraform code to match. It drafts the corresponding GitHub PR and requests human approval in Slack.

When to use it

Use it when raw drift alerts aren't actionable enough and you want a first-pass judgment — distinguishing an intentional hotfix that should be codified from an accidental change that should be reverted — before a human commits time to it.

How it works

  1. 1A scheduled trigger kicks off a drift sweep.
  2. 2An action runs `terraform plan` and collects each drifted resource.
  3. 3The agent gathers context from GitHub commit history and Datadog change events per resource.
  4. 4A logic step has the agent classify each drift as import, revert, or codify.
  5. 5An action opens a draft GitHub PR with the proposed reconciliation.
  6. 6An output step posts the recommendation and PR link to Slack for owner approval.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect ShellRun sandboxed commands inside the workspace.
  2. 2
    Connect GitHubRepos, issues, pull requests, actions.
  3. 3
    Connect DatadogMetrics, traces, log search.
  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.