Sub topic 6
Setting scope, assumptions and constraints
This chapter assumes you can already tell functional requirements from non-functional ones, and that you know how requirements are gathered from stakeholders (the people who care about the system). It covers the three kinds of statement that frame those requirements: scope, assumptions and constraints. Each one limits the design in a different way, and each goes wrong in a different way.
Three kinds of statement
Requirements say what the system must do and how well. Scope, assumptions and constraints say where the requirements apply and what they depend on.
| Kind | What it states | Who controls it | Example |
|---|---|---|---|
| Scope | What the system will and will not do | The team and stakeholders, by agreement | Click analytics is out of scope |
| Assumption | Something believed true but not yet confirmed | Nobody. It is a guess to be checked | Each user makes 20 requests per day |
| Constraint | A fixed limit imposed from outside the design | An outside party, such as the business, law or the existing platform | The service must run on the company's existing cloud account |
If you can negotiate a statement away, it is scope. If you can check it with data, it is an assumption. If you cannot change it at all, it is a constraint.
Scope
Scope is a boundary drawn in two directions. The in-scope list names the capabilities you will build. The out-of-scope list names plausible capabilities you will not build, at least in this version.
The out-of-scope list is the more useful of the two. Readers can usually guess what a URL shortener does, but they cannot guess which extra features you have decided to skip. Each item on the list stops a later argument, and it makes plain that leaving something out was a decision and not an oversight.
Good scope statements share a few traits:
- They name capabilities, not technologies. "Users can delete a short URL" is scope. "Use a relational database" is a design choice.
- They are written as a list, so each item can be accepted, rejected or moved.
- They say when an exclusion ends, if it does. "Out of scope for version 1" is more honest than a bare "out of scope".
- They cover non-functional boundaries too. "Redirect latency is measured in one region only" limits a quality target just as much as a feature list limits behavior.
Assumptions
An assumption is a statement you rely on without proof. Design always needs some, because the numbers you most need (user counts, usage patterns, read-to-write ratios) are unknown before launch. The problem is not that assumptions exist. It is that unstated assumptions go unchecked, and a wrong one can invalidate a whole design.
Write each assumption so that someone can later confirm or refute it:
- State it as a concrete, checkable claim, not a vague one. "Traffic is moderate" cannot be checked. "Peak traffic is three times the daily average" can.
- Name how you will validate it, such as analytics from a similar product, a pilot, or a stakeholder confirmation.
- Record what depends on it, so you know what to revisit if it turns out wrong.
Recording the three together
The requirements document from the topic's earlier chapters can carry all three sections. Here is the URL shortener document extended with assumptions and constraints.
service: url-shortener
out_of_scope:
- Click analytics
- Custom domains
assumptions:
- id: A-1
text: 10 million daily active users.
validate_by: Product forecast, reviewed with the business owner.
affects: [capacity, storage]
- id: A-2
text: Each user triggers about 20 redirects per day.
validate_by: Traffic data from the previous shortener product.
affects: [capacity]
- id: A-3
text: Peak traffic is three times the daily average.
validate_by: Load graphs from a comparable service.
affects: [capacity, cost]
constraints:
- id: C-1
kind: platform
text: Must run on the company's existing cloud account and approved regions.
- id: C-2
kind: legal
text: User data must stay in the EU.
- id: C-3
kind: schedule
text: First release is due in 12 weeks.Every assumption carries an affects list. When A-3 changes, you know that capacity and cost need rework, and nothing else does.
Seeing how much an assumption matters
You can test how sensitive your estimate is to an assumption by varying it. The next snippet reuses the request-rate arithmetic and varies only the peak factor (A-3).
daily_active_users = 10_000_000
requests_per_user_per_day = 20
requests_per_day = daily_active_users * requests_per_user_per_day
average_rps = requests_per_day / 86_400
for peak_factor in (2, 3, 5):
print(peak_factor, round(average_rps * peak_factor))
# 2 4630
# 3 6944
# 5 11574Moving the peak factor from 2 to 5 more than doubles the peak load, from about 4,600 to about 11,600 requests per second. An assumption that moves the answer this much deserves the most validation effort. One that barely changes the result can stay a rough guess.
Constraints
A constraint is a limit the design must live inside. Constraints usually fall into a few families:
- Business: budget, headcount, deadline.
- Technical: required language, existing database, integration with a legacy system.
- Legal and regulatory: data residency, retention rules, privacy law.
- Organizational: approved vendors, on-call coverage, team skills.
Constraints and requirements are easy to confuse. A requirement describes what users or the business need from the system. A constraint restricts how you may satisfy it. "Redirects complete in 100 ms" is a requirement. "Use only the approved cloud provider" is a constraint. In practice a constraint can eliminate designs before any trade-off analysis starts, so list constraints early.
Treat "constraints" with some suspicion, because people often label a preference as one. When someone says "we must use technology X", ask who imposed that and what happens if it is not followed. If the answer is "nothing much", it is a preference, and you should record it as such.
Keeping the three honest
Scope, assumptions and constraints change as you learn more, so give them the same care as requirements:
- Review assumptions on a schedule, and again after launch, when real traffic replaces your forecasts.
- Change scope through a visible decision, not by quietly building something extra.
- Re-check constraints when the context changes. A deadline or a vendor rule may lapse.
Common errors
- Listing only what is in scope, so an exclusion surfaces as a surprise late in the project.
- Writing assumptions as facts ("we have 10 million users") with no source.
- Mixing constraints into the functional requirements, which hides limits that should be visible during design.
- Treating a preference as a constraint and ruling out a better design.
- Never revisiting assumptions after launch.
Exercise
A team writes: "The system will serve about 5 million users. We must use PostgreSQL. Social sharing is not part of version 1." Classify each sentence as scope, assumption or constraint, and say what you would add to make the assumption safe to rely on.
Show answer
"Social sharing is not part of version 1" is scope (an explicit exclusion with a time limit). "We must use PostgreSQL" is a constraint, provided someone outside the design imposes it. Ask who requires it and what happens if it is not followed, because it may only be a preference. "About 5 million users" is an assumption. To make it safe, restate it as a checkable claim (for example, 5 million daily active users at launch), name how it will be validated (such as a forecast from the business owner), and list what depends on it (capacity and storage estimates).