# Risk assessment

Risk assessment watches the rates that most often move when money is leaking at the register:
how much a store discounts and how many of its checks close at $0. Every night it compares each
store's last seven days with its own recent history and with other stores. When a store moves
outside its usual range, it raises a flag and says why in plain sentences.

A flag is a prompt to take a look, not an accusation. Most have an ordinary explanation, such as
a local promotion or a comp habit that crept up, and the module is built to record that answer
so the same thing is not flagged again.

## What it watches

| Rate | What it measures |
|------|------------------|
| **Discount rate** | Discount dollars as a share of gross sales (sales before discounts). |
| **$0-check rate** | Checks that closed at $0, as a share of all checks. |
| **Cash share** *(where turned on)* | Payments taken in cash as a share of all payments. A store is flagged when its share stays well below its own norm for weeks, after allowing for the network. Brands that take little cash leave this off. |

## How a store gets flagged

Each night, a store's last seven days are tested two ways:

- **Against its own history.** Is this rate high for this store compared with its past twelve
  weeks?
- **Against other stores.** Is it high compared with similar stores? Depending on how your brand
  is set up, "similar" means the whole network, the store's location category or its district.

The flag carries a name for the pattern behind it:

| Flag | Meaning |
|------|---------|
| **Spike** | The last seven days jumped well above the store's own normal, or above similar stores. |
| **Drift** | The rate has been creeping up for several weeks in a row, even though no single week looks extreme. |
| **Far above similar stores** | The store has sat well above its peers for weeks. This is a standing position, not a sudden change. |
| **Above threshold** | The rate crossed a hard limit your brand set. |

HQ also sees a **tier** on each flag, from **Watch** (one test tripped) through **Elevated**
(tests agree, or one keeps tripping) to **High** (both tests agree, far outside normal, two weeks
running). The board ranks stores worst first.

### What keeps a store from being flagged

A rate is only assessed when it can mean something. A store is not flagged when:

- **It had too few checks** in the week for the rate to be reliable.
- **Its POS data for the week is incomplete**, or the POS did not record $0 checks.
- **The whole network moved together**, for example during a brand-wide promotion. A store that
  moved *further* than the network is still flagged.
- **A promotion window covers the dates.** HQ can enter promotions on a calendar, or turn an
  explanation into a window, and discount flags stay quiet for those stores and dates.

## Reading a flag

Every flag lists the evidence behind it as short factor sentences:

| Factor | The question it answers |
|--------|-------------------------|
| **Own history** | Is this high for this store compared with its usual range? |
| **Peers** | How does it compare with similar stores? |
| **Trend** | Is it a one-week jump or a steady climb? |
| **Other rate** | Is the other rate out of range too? |
| **Network shift** | Did the whole network move at the same time? |
| **Volume** | Were there enough checks for the rate to mean something? |
| **Concentration** | Is one discount a much bigger share of this store's discounts than it is across the network? |

Concentration appears only on discount flags, and it is often the fastest route to the cause: it
names the discount that is driving the change. Below the factors, a store's page breaks its
discounts and its registers down over the last four weeks against the weeks before.

## What happens to a flag

| Status | What it means |
|--------|---------------|
| **Open** | New and not yet looked at. |
| **Acknowledged** | Someone has seen it and is still looking. The flag stays open with their name on it. |
| **Explained** | There is a reason, and it is recorded (for example an approved promotion, a POS configuration change or a data issue). This closes the flag. The same flag stays quiet for several weeks afterwards unless it gets worse. |
| **Cleared** | The flag closed on its own because the store was not flagged again for a week. |

An open or acknowledged flag clears itself once the store stops being flagged. An explained flag
is already closed, so it does not move to Cleared.

Users can choose a daily or weekly email digest of new flags in their notification settings.

## Who sees it

- **HQ** sees the network board: every store, its tier, the reasons, the network rates and the
  promotion calendar. Only HQ can add promotion windows.
- **Franchisees** see flags for their own stores only, and can acknowledge and explain them. Their
  view is worded as "outside your usual range" against "the network". It never shows a tier
  name, a score or another store. HQ can hide the module from franchisees.
- **Connected AI apps** can read flags and their evidence. A franchisee's connection sees only
  their own stores' flags. See [Connect your AI](https://franchisesee.com/docs/ai/overview.md).

## Related

- [AI features](https://franchisesee.com/docs/features/ai.md) — insights and Ask AI can explain a flag in context.
- [Sales analytics](https://franchisesee.com/docs/features/sales-analytics.md) — discount and tender detail behind a store's numbers.
