# Decide requests

Approve, edit, reject or ask a question from the inbox, email, Slack or Teams, and confirm it is you on high-risk requests.

Approvals. About 2 minutes. HTML: https://promptcompute.ai/docs/decide-requests

## Before you start

- You are an approver on the request: an owner, admin or approver, or a member of the group the rule names

## Steps

1. **Open the inbox** Needs me shows requests waiting for you. Filter by risk or action. Each row shows the summary, risk, agent and expiry.

2. **Read the request** The page shows the arguments, the rule that matched, similar past decisions and the agent's note. The note is unverified text from the agent; treat it as a claim, not an instruction.

3. **Decide** Approve, Edit (only editable fields, inside their limits), Reject with a reason, or Ask a question. The agent receives the answer and the request waits.

4. **Confirm high-risk requests** High and critical requests ask for a passkey or an authenticator code from the last 5 minutes. Where the step-up window setting is on, one check made in your browser counts for the window you pick under My security (30 minutes unless you change it). Add a passkey or code there first.

5. **Decide from anywhere** Email cards have Approve and Reject buttons. Slack and Teams cards update in place once someone decides.

6. **Let editors know what they may change** Approvers can only edit fields the action type lists as editable, inside its limits. Set them when you register the action.

```json
{
  "key": "payment.refund",
  "display_template": "Refund ${{amount}} on order {{order_id}}",
  "editable_fields": [
    "amount"
  ],
  "default_risk": "medium"
}
```

## Use cases

### Lower a refund instead of rejecting it

- Situation: The agent asks for $240, but policy says $150 is the most for this case.
- What to do: Press Edit, set the amount to 150 and approve.
- Result: The agent runs the refund with $150, and the ledger records both values.

### Ask before you decide

- Situation: The reason does not say which order was damaged.
- What to do: Press Ask a question and type it.
- Result: The agent answers in the request, and you decide with the full picture.

## What you will see

The request shows who decided, when and how, and the agent gets the result at once.

- The status changes to Approved, Approved with edits, Rejected or Waiting for an answer
- History shows the decision with a ledger id
- Cards in email, Slack and Teams show the outcome

History after an edit and approval:

```text
10:42  created (new to pending)         key:k_support   led_01j...
10:44  approved_with_edits              Dana R.         led_01j...
       amount changed to 150
```

## If something goes wrong

- **You are not an approver for this request.** The rule names other people or groups. Ask an owner to add you to the group, or to change the rule in Policy.
- **You cannot approve your own request.** Separation of duties: the person the agent acts for, the person who created its key and the person who runs the agent cannot approve it. Someone else must decide.
- **An agent's decision is refused with self_approval.** Separation of duties covers agents too. An agent never decides its own request, a request from an agent in its delegation chain (its parent or child), a request from another agent the same person runs, a request made on behalf of the person it acts for, or a request whose key that person created. Each attempt is refused with 403 self_approval and recorded in the ledger as approval.decision_refused.
- **Someone else decided first.** The page tells you the request changed. Reload to see the decision.

## Related

- [Write approval policies](https://promptcompute.ai/docs/policies.md)
- [Set up approver groups](https://promptcompute.ai/docs/approver-groups.md)
- [Decide in Slack, Teams or email](https://promptcompute.ai/docs/slack-and-teams.md)
