DEVOPS

Escalate Long-Overdue Flags: Page the Owner When Cleanup Stalls

Daily check for flags more than 90 days past kill-date with an open removal ticket that nobody has touched, then escalates via PagerDuty to the owning service's on-call.

CategoryDevOps
Enginesim
Difficultyadvanced
Triggerschedule
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerDaily schedule runs escalation check
  • ActionQuery registry for flags 90+ days overduePostgreSQLPostgres
  • ActionCheck Linear ticket status and last activityLinearLinear
  • LogicKeep flags with stalled open tickets
  • OutputOpen PagerDuty incident for owning servicePagerDutyPagerDuty

What it does

Finds feature flags that are severely overdue, more than 90 days past their kill-date, that already have an open Linear removal ticket which has seen no activity. For these stalled, high-risk flags it raises a PagerDuty incident against the owning service so the on-call engineer is accountable for closing it out.

When to use it

Use this as the last-resort tier of flag governance. Most cleanup should resolve via MRs and nudges; this catches the dangerous long-tail of forgotten flags wrapping production behavior that no reminder has shifted. Tune the threshold to your risk tolerance.

How it works

  1. 1A daily schedule runs the escalation check.
  2. 2It queries the Postgres registry for flags over 90 days past kill-date.
  3. 3It checks Linear for each flag's removal ticket and its last-activity timestamp.
  4. 4A logic step keeps only flags whose ticket is open and stale beyond the inactivity window.
  5. 5For each, it opens a PagerDuty incident routed to the owning service's escalation policy with flag context and the ticket link.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect PostgresAny Postgres URL — query, write, migrate.
  2. 2
    Connect LinearIssues, projects, cycles, triage.
  3. 3
    Connect PagerDutyIncidents, on-call, escalations.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    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.