The cost of a simple yes
Every app answers the same question many times a second: is this person allowed to do this?
The first answer is usually one line of code. If the user is an admin, show the button. It is easy to read, and for a while it is true. Then a second kind of user arrives, then a second company, then someone who should see one building but not the one next door. The check gets copied into every route, and each copy drifts a little.
Roles are the next answer. Give people a name for what they do (viewer, reporter, admin) and check the name instead of the person. That works until the role depends on where. An admin of one building is not an admin of every building. Four roles across forty buildings is a hundred and sixty roles, and someone has to keep every one of them straight.
A policy engine changes where the rule lives. With Cedar, the rules sit in one place, in a small language that reads close to a sentence: permit a person to view an issue when the issue belongs to a building they can see. A forbid always wins over a permit, so “nobody approves their own inspection” stays true when a new role arrives next year. Because the rules are data, you can ask every person about every door at once, and test the answers.
There is a cost. The engine does not look anything up. It decides only from the facts you hand it: who the person is, which roles they hold, which building the record belongs to. Hand it a stale role, or a building ID taken from the request, and it gives you a confident, wrong answer. Moving the rule out of the code does not remove the hard part. It moves it to the place where the facts are gathered.
Try the access lab. Revoke one role and watch which answers change. Then switch off a single forbid rule and see how far it reaches.