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.
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
- An owner or admin role, to set a price
- The undo price switched on for your org (it is planned, and off until then)
Steps
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) ornone(cannot be taken back, such as a migration, a sent message or a payment). Ask for one withget_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" }Know what each price waits for
A
one_clickaction will pass on its checks: your policy, the autonomy dial and your limits. Acleanupaction will also need a trace and an approving second opinion. Anoneaction will always wait for a person. No score or dial moves an action between prices.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 staysnonewhatever price anyone sets.Get a second opinion on a cleanup action
Call
plan_second_opinion, then have a reviewer file the answer withsubmit_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.Change a price
An agent can propose a new price with
propose_undo_classorPOST /v1/undo-proposals. Only an owner or admin, signed in as themselves, sets it withset_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
- A request shows its undo price and where the price came from
- A cleanup request names the second opinion that let it through, or the one that held it
- Every price change appears in the ledger with who made it
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 personIf 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.