Who may cancel
a customer's booking?

The button exists. Whoever clicks it, cancels. The question isn't whether there is a button, but who it works for, and what happens when someone who shouldn't, clicks.

A case from the field, no names. One row from a decision record: the options, who decides, what each answer leads to, and what proves it holds.

What happened

A system built with AI usually has an agent screen and a manager screen. The difference between them is in what's displayed. The permission itself, who is really allowed to execute, is often checked only on the button, and not on the server.

Meaning: an agent who knows how to send a request directly, or an AI acting on their behalf, cancels. And the log, if there is one, says "cancelled". Not who, not on whose behalf, not why.

The decision. Two answers, two prices.

An agent, with approval

The agent initiates, someone approves, and the system records both.

The price. You need an approval mechanism, a log of who approved and who executed, and a check that the permission holds on the server too, not just on the button.

A manager only

Only the manager role cancels. The agent passes it on.

The price. Fewer mechanisms, more of a bottleneck: every cancellation waits for a manager. You have to decide what happens when they're unavailable, and what the customer sees meanwhile.

There is no right answer. There is an answer someone made, and an answer the system made for them.

What the decision leads to

One decision, four places. This is what changes in each of them, whichever answer is chosen.

  • The permissionsReal roles, enforced on the server. A direct request without permission is rejected, not just hidden.

  • The logWho cancelled, when, on whose behalf, and why. Without it there's no way to know whether it was a mistake or a policy.

  • The moneyA cancellation is also a refund. Full, partial, credit. That's a separate decision this decision leads to.

  • Who is responsible for a mistakeWhen a wrong cancellation happens, and it will, who the customer calls, and who fixes it.

What was proven, and what not yet

This is how you know it holds:

  • A direct cancellation request to the server without the right permission is rejected

  • Every cancellation appears in the log with who, when, on whose behalf

  • What happens to the money after a cancellation, written down and tested

Without the decision, this is what hasn't been proven yet. With the decision, this is the handover verification list.

Who decides

This is the business owner's decision, because it's about trust and responsibility, not code. Whoever builds needs to receive it in writing, then enforce it in the right place: on the server. A screen that hides a button isn't a permission.

A junction like this? Diagnostic call

More cases

What are you building right now?

Write what the system does, and what has already happened in it that wasn't supposed to.

or on WhatsApp, if it's a single question. Nothing is stored on the site.