Skip to content

Stakeholders, goals, scope, and exclusions

Difficulty: Beginner

Key concepts

  • stakeholder
  • goal
  • scope
  • exclusion
  • non-goal
  • system boundary
  • context diagram
  • scope creep
  • How to find a system’s stakeholders, and what each one cares about.
  • The difference between a goal and a feature, and why goals come first.
  • How to write a scope: what is in, and an explicit list of what is out.
  • How a context diagram shows the system’s boundary, and why that boundary matters for low-level design.
  • How to recognize scope creep and what to do about it.

Scope sounds like project management, not design. But every line in a scope statement removes or adds classes. If visitors can print, the service needs guest accounts. If the service also bills departments, it needs a link to the finance system. If neither is in scope, that code is not written, not tested, and not maintained.

The previous lesson’s question log already decided some scope (Q2: no visitors; Q6: no copying or scanning). This lesson makes the whole scope explicit, and adds the people who decide it.

A stakeholder is anyone who uses the system, is affected by it, pays for it, or can decide something about it. They are not only users. For the print-release service:

Stakeholder Relationship to the system What they care about What they decide
Staff Use it every day Printing quickly, finding their jobs at any printer Nothing directly; their complaints count
Facilities manager Asked for it, pays for paper and toner Less waste, lower cost, fewer complaints Quotas, extra pages, what is in scope
Security officer Responsible for confidential documents Pages never left unattended; jobs not kept longer than needed Expiry time, records, how users prove who they are
IT administrator Runs the service It works with the print server and badge system; it is easy to operate Technical constraints, which systems it may use
Department heads Their teams use it Their team’s work is not slowed down Nothing directly; they request features
Finance Pays the printing bill Cost per department Whether colour counts differently (Q8)
Printer supplier Supplies and maintains printers Support contract What the printers can report (Q16)

Three things this table shows:

  • Stakeholders want different things. Staff want speed and freedom; the security officer wants control. Some requirements will be compromises between them, and the prioritization lesson covers how to resolve them.
  • Users are not the only deciders. Staff use the system every day but decide almost nothing about it. A design that only listens to users misses the security officer’s rules.
  • Each open question has an owner. Q8 (colour pages) is finance’s question, even though facilities passed it on. Q16 (page counts) can only be answered by the printer supplier.

To find stakeholders, ask: who uses it, who runs it, who pays for it, who is affected if it fails, and who can say no? Also ask each stakeholder you find who else you should talk to.

A goal is an outcome someone wants. A feature is something the system does. Features serve goals; goals explain features.

The facilities manager’s request contains three goals and two features:

Goal How you would know it is met
G1. Fewer uncollected printouts Uncollected pages found at printers drop to nearly zero
G2. Confidential pages are not left unattended A page is only printed when its owner is at the printer
G3. Some control over printing cost Each person’s printing stays within a limit that facilities sets

The feature, “jobs wait until the person is at the printer”, serves G1 and G2. Quotas serve G3. Writing the goals down has two benefits:

  • It tests features. Every proposed feature should serve at least one goal. A feature that serves none is a sign of scope creep (see below).
  • It allows other solutions. If G3 is really about cost, then perhaps colour pages matter more than black-and-white ones. That is what Q8 asks.

Goals should be checkable, like requirements. “Better printing” is not a goal anyone can check. “Fewer uncollected printouts” is, if someone counts them before and after.

Suppose the team builds from the request and the question log alone, with no written scope. Each stakeholder fills the gaps with their own picture. Reception assumes visitors will be able to print. A department head assumes there will be a report of each team’s printing for the budget. Someone in IT assumes staff can release from a web page. Nobody says so, because each thinks it is obvious.

These gaps surface late, at a demonstration or after launch, as “but it was supposed to…”. By then, each one is either a disappointed stakeholder or an unplanned change to a design that never considered it. The written scope below does not stop people from wanting these things. It makes the decision about each one visible early, when it is cheap to discuss.

A scope statement has two lists: what is in, and what is out. The second list matters as much as the first.

In scope, for the first version of the print-release service:

  • S1. Holding every job sent through the office print server until it is released.
  • S2. Releasing a user’s held jobs at any printer in the building, after they badge in.
  • S3. Deleting held jobs that are not released within 24 hours.
  • S4. A monthly page quota per person, with refusal when a job does not fit, and a way for facilities to grant extra pages.
  • S5. Handling printers that jam or go offline during a job, so that no unprinted pages are lost.
  • S6. A simple administration function for facilities to set quotas and grant extra pages.

Out of scope (the exclusions):

Exclusion Reason Never, or later?
X1. Visitors and contractors printing Not needed now (Q2); would need guest accounts and a different release method Later, if asked
X2. Copying and scanning Not part of the problem (Q6) Never, in this system
X3. Billing or charging departments Finance has its own process; G3 only asks for limits Later, if asked
X4. Releasing jobs from a phone or a web page Not requested; would add a new way to prove identity Later, if asked
X5. Printer drivers, and sending pages to printers The existing print server already does this Never: it belongs to the print server
X6. Managing staff badges The badge system already does this Never: it belongs to the badge system
X7. Other office buildings One building only for now Later
X8. Priority printing Requested (Q11), not decided; goals G1 to G3 do not need it Undecided: on the open list

Each exclusion has a reason, and says whether it might come back. This helps in two ways. When someone asks “Can it also do X?”, the answer is already written, with the reason. And when a “later” item does come back, the design should not have made it impossible, even though nobody has built it.

An exclusion that is never in this system, such as X5, usually belongs to another system. Writing it down protects the boundary: the print-release service must not start rendering pages, even if it would be convenient.

A non-goal is a related idea: an outcome the system deliberately does not try to achieve. “Reducing the number of printers” is a non-goal here. It might be a good idea, but it is not what this system is for.

The context diagram: what is inside the boundary

Section titled “The context diagram: what is inside the boundary”

A context diagram shows the system as one box, with the people and outside systems it talks to around it, and what passes between them. It answers the question “where does our system stop?”

The print-release service's boundary: the people and existing systems it exchanges information with
Text description of the diagram

Only the print-release service is inside the boundary. Staff send jobs to the existing print server, which tells the service about each new job: its owner, page count, and whether it is in colour. Staff badge in at a printer; the printer sends the badge ID and the printer’s ID to the service. The service asks the badge system which user owns the badge. To print a job, the service tells the print server, which sends the pages to the printer. The printer reports its status to the service: printed, jammed, or offline. The facilities manager sets quotas and grants extra pages through the service.

Diagram source (Mermaid)
flowchart LR
Staff([Staff])
Fac([Facilities manager])
subgraph boundary [Inside the boundary]
  PRS[Print-release service]
end
PS[Existing print server]
BS[Badge system]
PR[Printers with badge readers]
Staff -->|sends jobs| PS
PS -->|new job: owner, pages, colour| PRS
Staff -->|badges in| PR
PR -->|badge ID, printer ID| PRS
PRS -->|who owns this badge?| BS
PRS -->|print this job| PS
PS -->|pages| PR
PR -->|status: printed, jammed, offline| PRS
Fac -->|quotas, extra pages| PRS

Read the diagram as a list of promises at the boundary:

  • Every arrow into the service is information it must accept and check: a job from the print server, a badge ID from a printer, a quota change from facilities.
  • Every arrow out is something it asks of another system, which may fail: the badge system may be down (Q17), or the print server may refuse a job.
  • Everything not on the diagram is not the service’s business. It does not know how pages reach the printer, or how badges are issued.

The printer’s status arrow assumes the printers can report what happened. That is Q16, still open. If the answer is “they cannot”, this arrow changes, and so does the design for jams. A context diagram makes such assumptions visible.

Why the boundary matters for low-level design

Section titled “Why the boundary matters for low-level design”

At the class level, each outside system on the context diagram becomes an interface owned by the service: something like a BadgeDirectory to look up users, and a PrintServer to send jobs. The core release logic depends on these small interfaces, not on the real systems. That has three effects:

  • The core can be tested with fakes, without a real badge system or printer.
  • If IT replaces the print server, only one adapter class changes.
  • The scope stays visible in the code: if a class starts calling the finance system, someone will notice that the boundary has moved.

The architecture and principles sections develop this into dependency inversion and ports and adapters. For now, the point is that the context diagram already tells you where those interfaces go.

Scope creep is the slow growth of a system’s scope through small additions that nobody decided as a whole. Each addition sounds reasonable on its own:

  • “While you’re at it, could it also email people when their job is printed?”
  • “Reception would like to print for visitors.”
  • “It would be nice to see a report of who prints the most.”

None is unreasonable. Together they add notifications, guest accounts, and reporting to a service that was meant to hold and release jobs. The schedule slips, the design grows parts that serve no goal, and the original goals are delivered late.

Signs of scope creep:

  • A feature that serves none of the goals.
  • A feature that crosses the boundary: it needs a new outside system on the context diagram.
  • A feature that undoes an exclusion without anyone mentioning the exclusion.
  • Requests phrased as “small”, “quick”, or “while you’re at it”.

What to do about it is not to refuse everything. It is to make each addition a decision:

  1. Trace it to a goal. Which of G1 to G3 does it serve? If none, is there a new goal, and who owns it?
  2. Check the scope list. Does it undo an exclusion? Then the reason for that exclusion must be reconsidered, not ignored.
  3. Estimate its design effect. Which classes, interfaces, and tests change? Does it add an outside system?
  4. Decide, and write it down. In scope now, later, or never, with the reason. The prioritization lesson covers how to choose.

A written scope costs time, and it needs maintenance: when a “later” item is approved, or an outside system changes, the lists and the context diagram must be updated, or they mislead. A very detailed scope also goes stale faster than a short one. Keep the lists at the level of features and outside systems, not individual screens or messages, and update them when a scope decision is made, not on a schedule.

For a small change inside an existing system, the stakeholders, goals, and boundary are usually already known. A sentence is enough: “This change is for the facilities manager; it does not touch the badge system.” The full treatment is for new systems, systems with several groups of people involved, and any time the question “should it also do X?” keeps coming up.

  • Talking only to users. The security officer’s expiry rule would have been found after launch.
  • No exclusion list. Each stakeholder assumes their wish is included, and discovers otherwise late.
  • Exclusions without reasons. Without the reason, nobody can tell whether an exclusion should still hold when circumstances change.
  • Goals written as features. “Goal: a priority queue” leaves no room for a better solution to the real problem.
  • A boundary that moves silently. A new outside system appears in the code but not on the context diagram, and its failures were never discussed.

Six months after launch, the facilities manager asks: “Can people release jobs from their phone, so the printout is waiting when they get to the printer?”

This undoes exclusion X4. Before designing anything, check it against the goals and the scope:

  • Goals: it does not help G1 or G3. It works against G2: a page printed before its owner is at the printer is exactly what the service was built to prevent.
  • Stakeholders: the security officer must decide, because it changes how users prove who they are and when pages are printed.
  • Boundary: a phone app, or a web page, is a new actor on the context diagram, with a new way to log in.

The likely outcome is a conversation, not a feature: perhaps the real need is “I don’t want to wait at the printer”, which a faster release (NFR-1) might meet. If the feature is approved, the design change is bounded: a second entry point, such as a release by user ID instead of by badge at a printer, that calls the same HeldJobs and QuotaAccount logic. The change stays small because those classes know nothing about badges or printer panels; only ReleaseStation, the coordinator for a release at a printer, does.

Exercise: Write an exclusion list

Take the meeting-room booking request from the previous lesson’s exercise:

“We need a system for booking the office’s meeting rooms.”

Suppose the team lead confirms that the goal is “people can find and reserve a free room without double bookings”, for the 20 rooms in one office, and that staff already use a calendar system for meetings.

Write an exclusion list of at least five items. For each, give a reason and say whether it is “never”, “later”, or “undecided”.

Show the explained answer

Several lists are reasonable. This one keeps the system focused on the stated goal:

Exclusion Reason Never, or later?
Sending meeting invitations to attendees The existing calendar system does this Never: it belongs to the calendar
Booking equipment (projectors, laptops) Not part of the goal; a different kind of resource with different rules Later, if asked
Catering and room setup requests Not part of the goal; handled by facilities today Later, if asked
Charging teams for room use Not part of the goal Undecided
Rooms in other offices One office only (confirmed) Later
Visitors booking rooms themselves Only staff were mentioned; visitors would need accounts Later, if asked
Sensors that detect whether a room is actually in use Hardware, and a new outside system; the goal can be met without it Later

What makes an exclusion list useful:

  • Each item is something someone might reasonably expect. “The system will not make coffee” is true but useless. “It will not send invitations” heads off a real assumption, because people expect booking systems to do that.
  • Each item has a reason linked to the goal or to another system, so it can be reconsidered when circumstances change.
  • Some items protect the boundary. Invitations belong to the calendar system. Writing that down keeps the booking system from slowly growing a second calendar.
  • “Later” items still shape the design a little. If other offices are likely later, avoid a design where “the office” is a global assumption everywhere; a room could know which office it is in, even if there is only one. That is not building the feature, only not making it impossible.

If your list was mostly about the user interface (“no dark mode”), those items are true but rarely change the design. Focus on exclusions that remove concepts, rules, or outside systems.

  • Stakeholders are everyone who uses, runs, pays for, is affected by, or decides about the system. They want different things, and only some of them decide.
  • Goals are checkable outcomes; features serve goals. A feature that serves no goal is a warning.
  • A scope has an “in” list and an “out” list. Each exclusion has a reason and says whether it might return.
  • A context diagram shows the system’s boundary. Each outside system on it becomes a small interface in the design, which keeps the core testable and the boundary visible.
  • Scope creep is not prevented by refusing changes. It is prevented by making each change a decision, checked against the goals, the exclusions, and the boundary.