DATA OPS

Agentic BigQuery Grant Lifecycle Reviewer with Linear Tickets

An agent reviews grants nearing expiry, decides per-grant whether to auto-extend low-risk access, revoke unused access, or open a Linear ticket for human review.

CategoryData Ops
Enginepaperclip
Difficultyadvanced
Triggerschedule
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerDaily schedule starts grant review
  • ActionPull grant metadata and recent usageGoogle BigQueryBigQuery
  • LogicAgent decides extend, revoke, or escalate
  • ActionApply extend/revoke to IAM bindingsGoogle BigQueryBigQuery
  • ActionOpen Linear ticket for escalationsLinearLinear
  • OutputNotify holder of decision on SlackSlack

What it does

This workflow uses an agent to make a judgment call on each BigQuery grant approaching expiry instead of applying one blanket rule. It weighs recent query activity, the dataset's sensitivity, and the holder's role to choose an action: auto-extend trusted low-risk access, revoke access that has gone unused, or escalate ambiguous cases to humans via a Linear ticket. Every decision is explained and the holder is told what happened.

When to use it

Use it when a fixed expiry policy is too blunt — high-traffic platforms where some grants clearly should renew and others clearly should lapse, but a meaningful middle needs human eyes. Best for teams that want to cut manual grant-review toil while keeping an auditable rationale.

How it works

  1. 1A daily schedule starts the review for grants expiring within 48 hours.
  2. 2The agent pulls each grant's metadata and recent query usage from BigQuery and the ledger.
  3. 3Per grant it decides: auto-extend, revoke, or escalate, with a written rationale.
  4. 4Extend and revoke actions are applied directly to BigQuery IAM bindings.
  5. 5Escalations open a Linear ticket assigned to the dataset owner with the agent's reasoning.
  6. 6The holder is notified on Slack of the decision and next steps.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect BigQueryDatasets, queries, schemas.
  2. 2
    Connect PostgresAny Postgres URL — query, write, migrate.
  3. 3
    Connect LinearIssues, projects, cycles, triage.
  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.