Approvals

Undo price

Gate each action by what it would take to undo it. Planned: the gates will run once the undo price is switched on for your org.

About 5 minutes

Transcript (30 seconds)

Every action will carry the price of undoing it.

A draft undoes in one click and passes on its checks.

Shared code takes cleanup, so it also needs a second opinion.

A migration or a payment cannot be taken back, so it always waits for a person.

Only an owner or admin changes a price, and the ledger records it.

Before you start

Steps

  1. Read an action's price

    Every action type will carry one of three prices: one_click (undone in one step with nothing lost, such as a draft or a test), cleanup (undone with work, such as shared code or a CRM field) or none (cannot be taken back, such as a migration, a sent message or a payment). Ask for one with get_undo_class, or over the API.

    GET /v1/undo-classes/email.draft.create
    
    200 OK
    { "key": "email.draft.create", "undo": "one_click", "classed": true, "source": "table" }
  2. Know what each price waits for

    A one_click action will pass on its checks: your policy, the autonomy dial and your limits. A cleanup action will also need a trace and an approving second opinion. A none action will always wait for a person. No score or dial moves an action between prices.

  3. Leave an unclassed action at none

    An action type nobody has priced will be treated as none, so it waits for a person. An action in one of the six critical classes stays none whatever price anyone sets.

  4. Get a second opinion on a cleanup action

    Call plan_second_opinion, then have a reviewer file the answer with submit_second_opinion. The reviewer works in a separate run, with read-only tools and a model other than the worker's, and someone other than the requester must file it. An open blocking opinion holds the request until a person decides.

  5. Change a price

    An agent can propose a new price with propose_undo_class or POST /v1/undo-proposals. Only an owner or admin, signed in as themselves, sets it with set_undo_class, and each change is a ledger entry.

Use cases

Docs edits ship on their checks

The situation
Your agent fixes typos in the docs dozens of times a week.
What to do
Leave the docs edit at its starting price, one_click.
What happens
Each edit will pass when its checks pass, and nobody is paged.

A migration always waits

The situation
An agent proposes a database migration late on a Friday.
What to do
Nothing to do: a migration is priced none.
What happens
The request will wait for a person, whatever the dial or the agent's past record says.

What you will see

Once it is on, each request will show its price, and only the actions that are costly to undo will wait for a person.

It worked when

Example output: Three requests and their prices

email.draft.create      one_click  passed on its checks
code.pr.merge           cleanup    passed: trace and an approving second opinion
database.migration.run  none       waiting for a person

If something goes wrong

A cleanup request is still waiting
It needs a trace (the request names the worker's run) and an approving second opinion from someone other than the requester. One filed by the requester holds it for a person.
set_undo_class is refused
Only an owner or admin, signed in as themselves, sets a price. An API key or an agent can propose one with propose_undo_class.
An action you priced still waits for a person
An action in one of the six critical classes stays none whatever its price says.