HandbookVII the BasilicaBusiness rules and edge cases
VIIthe Basilica, Build the right thingBusiness rules and edge cases
In plain words
Business rules are the policies your app must enforce, like refund limits or who can cancel, and edge cases are the unusual situations where those rules get tested.
Where you see it
The café owner says "ten stamps, free coffee". Then you ask whether a large counts as one stamp or two, whether stamps expire, and what happens when someone buys four coffees for friends. Each answer is a rule the agent must code, and each question you skip is a guess it makes for you.
What goes wrong
- Rules the agent made up
When you don't say, the agent picks something that looks reasonable. Stamps that never expire is a business decision, made without you.
- One rule in three places
The refund limit appears in three files and one still says 30 days. Ask for each rule to live in one place, with a name.
- Testing only the normal case
Ten coffees for ten people works. Ten on one card in one visit, a refund, a purchase at midnight: those are where the money leaks.
What to tell your agent
Quick check
Sign in to earn +10 XP for itQuickBite gives 10% off a customer's first order. Which edge case do you need to decide?