# Choosing a level for each action

Every route an agent can call needs two answers: how bad would a mistake be, and how sure must you be about the person? AllowedBy keeps them apart as **class** and **level**.

## Class: how bad is a mistake?

| Class | Meaning | Who may start the approval |
|---|---|---|
| read | No visible change | Agent or service |
| write | Reversible | Agent or service |
| write-hard | Hard to undo, or seen by others | The service only |
| irreversible | Payments, contracts, deletions | The service only |

The last column matters. For the serious classes an agent cannot collect a yes in advance and use it later.

## Level: how sure about the person?

- **L0**: a known agent is enough. Public catalogues, quotes, prices.
- **L1**: a person tapped a passkey. You know it is the same person as last time, not their legal name.
- **L2**: their identity was verified at eIDAS substantial. Use it when you must be able to name someone.
- **L3**: eIDAS high and a hardware passkey. Use it when a stolen cloud account must not be enough.

A route can ask for a qualified electronic signature on top, where law requires one.

## Three mistakes

**Setting everything to L2 to be safe.** The first identity check is the longest step a person meets. Ask for it at the first action that needs a name.

**Using level to mean risk.** Deleting a person's own draft may be irreversible and still need only L1. You need certainty that they want it, not their passport.

**One amount, one class.** A refund of 5 EUR and one of 5 000 EUR are different actions. A route can change class by amount threshold.

## A starting point

| Action | Class | Level |
|---|---|---|
| Search products | read | 0 |
| See my orders | read | 1 |
| Add to basket | write | 1 |
| Change plan | write-hard | 1 |
| Approve an invoice | write-hard | 2 |
| Release a payment | irreversible | 3 |

Those are the demo's own settings. Each service's operator can change a level in its console, and the next request follows it.

Source: https://allowedby.com/blog/choosing-a-level
