Industries / platforms

Deploy approvals for DevOps AI agents

Your platform agent ships the routine stuff in seconds. The deploys that can take prod down wait for whoever's on call, and every code.deploy gets sealed to the person who cleared it.

code.deploycb.guard({ action }, fn)request_clearanceget_ledger
the record · hash-linked #9f3c sealed #4b71 sealed #e2d9 sealed #a08c sealed #1f4c sealed chain intact

The problem

Give a DevOps agent the keys and it'll happily roll a hundred deploys a week. Patch bumps, config nudges, a flag flipped on staging. Almost all of it is fine. Then one run pushes a code.deploy to prod that carries an irreversible migration, or widens an IAM role nobody reviewed, and you find out from PagerDuty at 02:00. Pull deploy rights from the agent and you've just hired a human to babysit dependency bumps.

The half-measures everyone reaches for don't actually stop anything. A green CI gate is a check the agent can pass without a single person reading the diff. A "approve?" ping in Slack is a message, not a control: the agent ships whether or not anyone reacts. What's missing is a real stop. Low-risk ships go straight through, anything hitting production or with a wide blast radius parks until a named on-call engineer signs it, and afterwards you can point at exactly who cleared which release. That's what ai-agent-deploy-approvals-devops is for.

How ClearedBy handles it

  1. 01

    The agent checks in before it deploys

    Before running code.deploy the agent calls ClearedBy with the specifics: service, target environment, the diff, whether a migration runs. The call blocks on a verdict, so the deploy can't go out ahead of the decision.

  2. 02

    Your policy sorts routine from risky

    Staging ships, patch bumps and low-blast-radius changes clear in milliseconds, untouched. Production deploys, schema migrations, IAM edits and infra teardown get held and pushed to whoever holds the pager.

  3. 03

    On-call clears it from wherever they are

    The reviewer sees the diff, the environment and the blast radius, then clears, rejects or sends it back from Slack or their phone. Only after a clear does the agent get a short-lived credential to actually deploy. No clear, no credential.

  4. 04

    The release lands on a tamper-evident record

    Cleared, auto-cleared or rejected, each code.deploy is hash-linked into a record bound by passkey to the engineer who signed it. Your change log and your audit trail end up being the same artefact.

What the gate sees
code.deploy · service=payments-api · env=production · migration=true · release-bot → held: production deploy with schema migration · routed to on-call (A. Okafor)

FAQ

How do I gate prod and big blast-radius deploys without slowing the routine ones?

The policy reads the params the agent passes: environment, migration flag, service, lines touched. Staging and small changes clear on their own; only production, migrations, IAM changes and wide-blast-radius deploys route to a person.

Does this plug into GitHub Actions and the pipeline we already run?

Yes. ClearedBy can catch deploy events from platforms like GitHub, or you wrap the deploy step itself with guard() so the gate sits inside the pipeline rather than beside it.

It's the middle of the night and on-call is asleep. What happens to a held deploy?

It routes to your on-call channel and a mobile workspace, so it can be cleared from a phone in seconds. If nobody acts before the timeout, the policy escalates or lets it expire. It never ships on its own.

Won't a gate add latency to every deploy?

No. Anything that matches your policy clears in milliseconds with no human involved, so your normal cadence doesn't move. Only the consequential few percent ever sit and wait.

What do I hand a SOC 2 or change-management auditor?

Every deploy, auto-cleared or human-cleared, becomes a hash-linked record tied to the passkey identity of whoever signed it. That's a change history with no gaps and nothing editable after the fact.

Related use cases

Let your agents run. Inside the rules you set.

Your platform agent ships the routine stuff in seconds. The deploys that can take prod down wait for whoever's on call, and every code.deploy gets sealed to the person who cleared it.