AIMAgentic Intent Model

Refunds at the Till

refunds.aim · intent refunds · kind intent

Workflow Refund: 3 steps with decision gates and waits, generated straight from the model. Click any step to jump to its operation or event.
7 facets and 7 edges, drawn from what the file declares. Each box leads to its lines. a declared edge and its verbrefs or holds, from a Schemain another intent✓ a requirement it satisfies

Requirements traceability

2 / 2 satisfied (100%)
---aim: refundskind: intenttags: [process-model]---# Refunds at the Till## SummaryHow a shop refunds a purchase at the till. Each step says in words who does it, for the reader; who performs it is declared by the edges alone (§7.3, §7.4).## Requirements- **WITHIN-30** — A refund is only possible within 30 days of the purchase.- **APPROVED** — Every refund is approved by the store manager before money is paid back.## Persona: Cashier### Role- Works at the till and handles the customer.### Access- Checks receipts and pays refunds — [invokes](aim:#Contract:CheckReceipt), [invokes](aim:#Contract:PayOut)## Persona: StoreManager### Role- Runs the store and approves refunds.### Access- Approves refunds — [invokes](aim:#Contract:ApproveRefund)## Trigger: CustomerAsks### SummaryA customer comes to the till with a receipt and asks for their money back.### Kind- external### Fires- [triggers](aim:#Flow:Refund)## Flow: Refund### SummaryFrom the customer's receipt to the money paid back.### Steps1. The cashier checks the receipt — [invokes](aim:#Contract:CheckReceipt).2. The store manager approves the refund — [invokes](aim:#Contract:ApproveRefund).3. The cashier pays the money back — [invokes](aim:#Contract:PayOut).## Contract: CheckReceipt### SummaryChecks that the receipt belongs to this shop and that the purchase is recent enough.### Ensures- The receipt is checked against the refund window — [satisfies](aim:#Requirements[WITHIN-30])## Contract: ApproveRefund### SummaryThe store manager approves the refund.### Authz- Only `#Persona:StoreManager`.### Ensures- The refund is approved — [satisfies](aim:#Requirements[APPROVED])## Contract: PayOut### SummaryPays the amount back to the customer.### Authz- `#Persona:Cashier`, or `#Persona:StoreManager` when the till is busy.### Ensures- The customer has their money back.