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

# Choose the scope level

> Three questions to decide whether your change is a fix, a scoped development, a multi-PR feature or a module initiative.

Pick the level **before you create the branch**. The level decides where the branch starts, how
many PRs reach `develop` and how many times the full CI runs.

![Decision tree: a fix? Level 1. Fits in one PR? Level 2. Weeks of work, a new module or a migration? Level 4; otherwise, Level 3.](https://mintcdn.com/bbrands/HbBhTZK1FiD1UtlY/images/bbrands-lab/pr-level-decision-tree.svg?fit=max\&auto=format\&n=HbBhTZK1FiD1UtlY\&q=85\&s=ebd93f51eab1da86e21d38082ed3e0ac)

Level decision tree

## The three questions

**1. Are you fixing a contained defect?**

If the change corrects wrong behavior, touches a single project and is around **200 lines** or
fewer, it is a [Level 1 · Fix](https://docs.bbrands.io/bbrands-lab/pull-requests/level-1-fix.md). If it is a production
incident, it is a hotfix from `master`.

**2. Does it fit in a single PR with a single intent?**

If the feature can be reviewed in one go (about **800 lines** and **40 files** as a reference)
and does not mix goals, it is a
[Level 2 · Scoped development](https://docs.bbrands.io/bbrands-lab/pull-requests/level-2-development.md).

**3. Is it weeks of work, or does it change something users can see?**

If the answer is yes (a new module, schema migrations or a behavior change that must be turned
on in a controlled way), it is a
[Level 4 · Module initiative](https://docs.bbrands.io/bbrands-lab/pull-requests/level-4-module-initiative.md). Otherwise,
it is a [Level 3 · Multi-PR feature](https://docs.bbrands.io/bbrands-lab/pull-requests/level-3-multi-pr.md).

## Quick comparison

| | Level 1 | Level 2 | Level 3 | Level 4 |
| - | - | - | - | - |
| Base branch | `develop` (`master` for a hotfix) | `develop` | integration branch from `develop` | one integration branch per phase |
| Full CI runs | 1 + queue | 1 + queue | 1 + queue (sub-PRs do not run CI) | 1 + queue per phase |
| Feature flag | No | Optional | Optional | Required for anything user-visible |
| Initiative documents | Existing task | Existing or new task | Tasks in the tracker | Full initiative (PRD, tracker, decision log) |
| Review | 1 approval | 1 approval | sub-PRs: human review; final PR: everything | same as Level 3, per phase |

## Signs you picked the wrong level

> [accordion] My Level 2 is already past 800 lines
>
> Turn it into a Level 3: create the integration branch from `develop`, retarget your current PR
> to that branch as the first sub-PR and continue from there. Do not keep adding commits to a PR
> nobody can review in one go.

> [accordion] My fix needs a migration
>
> If the migration is additive and small, it is still a Level 1 or 2. If it changes existing data
> or breaks compatibility, apply the Level 4 expand/contract pattern.

> [accordion] My Level 3 has been running for more than two weeks
>
> It is probably a Level 4. Add a feature flag and merge what is already done into `develop` as a
> first phase.


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