> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowmaps.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Business facts and Issues

> Business facts are short, verified sentences on what a step means for the business, with their own evidence. An Issue claims a defect or security gap.

Steps describe what the code does. **Business facts** say what that means for the business: a rule and its value, how something starts, or where a failure leaves things. Each is a short sentence under a step, labelled **Note** or **Issue**, and each cites its own lines of code. A fact that claims a defect or a security gap is labelled **Issue**.

## What a business fact looks like

On a step "Charge the card through Stripe" in `acme/shop`, the facts might read:

* **Note**: The charge is in the customer's currency, taken from the cart, not the store's default.
* **Note**: An order over \$500 is held for review instead of charged.
* **Issue**: When saving the order fails after the charge, the charge isn't refunded, so the customer pays for an order that doesn't exist.

The values, conditions and consequences are the point: a fact that would be true of almost any endpoint, or that repeats the step's own sentence, isn't kept.

![The step panel's Logic section listing business facts, with one tagged Issue above two notes](https://mintcdn.com/flowmaps/Laxd03p6_qALyN3o/images/business-facts-light.png?fit=max\&auto=format\&n=Laxd03p6_qALyN3o\&q=85\&s=c56ad3585030f2b99706240ee3116253)

A step's business facts in the panel's Logic section, with an Issue first.

## Where you see them

* **On the step's row.** In the Cascade, a step with facts shows "1 issue" in the warning colour and "2 notes" after it. Open the row to read them. Flow map cards show the same counts.
* **In the step panel.** Select the step: its **Logic** section lists the facts, Issues first, each Issue tagged. When a step has facts, the panel leads with them and folds its **Details** away.
* **On a PR's comparison.** A pull request's step-by-step comparison shows facts added, removed or reworded. See [PR previews](https://docs.flowmaps.ai/pull-requests/previews.md).
* **For your agent.** The `get_flow` MCP tool returns each step's `businessFacts` with their evidence, `find_flows` searches their text, and `flows_touching` matches a fact's cited lines. See [MCP tools](https://docs.flowmaps.ai/agents/tools.md).

A step shows at most three facts. Only top-level steps carry them; steps inside a step don't.

## How facts are checked

Each fact is written from the code the step cites and checked separately against the lines the fact itself cites. Only facts the check supports are stored: one it can't confirm is dropped, never shown as a guess. A fact can cite lines outside its step's evidence when the rule lives elsewhere, such as a default in a config file.

The check holds a few lines firmly:

* **A comment isn't evidence.** A fact resting only on a code comment is dropped, because a comment states intent, not behaviour. Reassuring claims such as "safe to retry" are held to this as much as warnings are.
* **The consequence has to follow.** A fact is kept only when what it says happens follows from the code shown.
* **Claims that something is missing** (no check, no retry) are judged against all the code shown, and dropped when another step handles what they say is missing.

Facts stay put between maps: when a step's cited lines haven't changed and its facts still verify, it keeps the same facts in the same words, so they don't churn each time you re-map. When a merge changes a step, its facts are checked again with it.

## Facts are verified, not exhaustive

A step with no facts may still hold something worth knowing. Facts cover what the check could confirm from the code shown; they are not an audit of the step. Read the step's **Details** and its code when the business rule matters.

A flow mapped before Flowmaps wrote business facts says so once above its steps: "Mapped before business facts. They appear on this repo's next Map."

## Issues

An Issue claims a defect or a security gap: a check that can be skipped, a write left half done when a later call fails, a limit that isn't enforced. Issues get the strictest check: one is kept only when the code shown proves its cause, shows nothing handling it, and shows that the consequence it states follows.

Even so, treat an Issue as a lead, not a verdict:

**1. Read the Issue and its evidence**

Open the step, read the Issue, and choose **Show code** on the lines it cites.

**2. Look for handling elsewhere**

The check sees the step's code and the code the Issue cites. Handling that lives somewhere else, such as a retry in a queue's configuration or a guard in a gateway in front of the service, may not be visible to it.

**3. Decide and act**

If it holds, fix it like any other bug. When the fix merges and changes the code the step or the Issue cites, the step is checked again (unless merge updates are paused or out of credits), and the Issue drops away when the code no longer supports it. If the fix lands in code the flow doesn't cite, re-map the flow to check it again.

## Next steps

> [card] [The flow page](https://docs.flowmaps.ai/flows/flow-view.md)
>
> Steps, evidence and verification.

> [card] [Accuracy](https://docs.flowmaps.ai/trust/accuracy.md)
>
> How Flowmaps checks what it writes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.