LESSON 4

Writing Functional Requirements

Turn candidate needs into clear, atomic, verifiable functional requirements with IDs, sources, and priorities.

Introduction

Functional requirements describe what the system does: its behaviors, functions, and responses to inputs. They are the backbone of the SRS, and the place where vague wording does the most damage.

This lesson turns the candidate needs from elicitation into precise statements that can be designed, built, and tested.

Learning Objectives

  • Write functional requirements using a consistent sentence pattern.
  • Use “shall”, “should”, and “may” consistently.
  • Write requirements that are atomic, verifiable, and solution-neutral.
  • Organize requirements into logical groups with unique IDs.
  • Use AI to draft and review requirements from sourced needs.

1. A Reliable Sentence Pattern

A common pattern:

1
[Condition] [Actor / System] shall [action] [object] [qualifier / constraint].

Examples:

  • When a user uploads a CSV file, the system shall create one feedback item for each valid row.
  • The system shall allow a user to assign a feedback item to one or more themes.
  • If a CSV row is missing a required field, the system shall reject that row and report the row number and reason.

Use the system or actor as the subject, an active verb, and a measurable object. Avoid passive constructions that hide who acts (“Items will be processed”).

2. Modal Verbs

Choose a convention and keep it.

Word Meaning
shall Mandatory requirement
should Desirable, but not mandatory
may Optional
will Statement of fact or intention, not a requirement

Do not mix “must”, “should”, “needs to”, and “will” in the same document without defining them. Prioritization (Must/Should/Could/Won’t) belongs in a priority field, not in the verb.

3. Atomic and Verifiable

A requirement should state one thing, so it can be independently tested, changed, or traced.

Not atomic:

The system shall import feedback, deduplicate it, tag it with themes, and notify the team.

Atomic:

  • FR-IMP-001: The system shall import feedback items from a CSV file.
  • FR-IMP-002: The system shall flag a newly imported item as a possible duplicate when its text matches an existing item in the same workspace with at least 90% similarity.
  • FR-THM-001: The system shall allow a user to assign a feedback item to one or more themes.
  • FR-NOT-001: The system shall notify workspace members when a theme receives its first assigned item.

Ask of every requirement: How would I test this? If you cannot answer, it is not yet a requirement.

4. Solution-Neutral Wording

State the need, not the implementation.

Solution-bound Solution-neutral
The system shall store feedback in a PostgreSQL table. The system shall persist feedback items so they remain available after logout and restart.
The system shall use a dropdown to select a theme. The system shall allow a user to select a theme for a feedback item.

Exceptions: when a technology is a genuine constraint (policy, existing platform, contract), record it as a constraint with its reason.

5. Organize and Identify

Group requirements by feature area or capability, and give each a permanent ID.

Area Prefix
Authentication & workspace FR-AUTH
Import FR-IMP
Themes & tagging FR-THM
Evidence & linking FR-EVD
Summaries & reports FR-SUM
Administration FR-ADM

Each requirement entry should include:

Field Example
ID FR-IMP-002
Statement The system shall flag …
Rationale Duplicate items inflate perceived frequency
Source E-005, E-011
Priority Must
Status Draft / Reviewed / Agreed
Owner Product owner

Rationale matters. It records why the requirement exists, which makes it easier to evaluate changes later.

6. Cover the Unhappy Paths

Most defects hide in situations nobody specified. For each function, ask:

  • What if the input is missing, malformed, or too large?
  • What if the user is not authorized?
  • What if two users edit at the same time?
  • What if an external system is unavailable?
  • What if the action is repeated?
  • What can be undone?

Examples:

  • If a CSV file exceeds 20 MB, the system shall reject the file and display the maximum permitted size.
  • The system shall prevent a user without the Editor role from deleting a theme.

7. Using AI to Draft and Review

AI can turn sourced needs into draft requirements quickly. Always give it the sources and ask it to cite them.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Act as a requirements engineer.

Below are candidate needs, each with source IDs, and the glossary.

[Paste needs and glossary.]

Draft functional requirements.

Rules:
- One "shall" statement per requirement; each must be atomic.
- Use the pattern: [Condition] [Actor] shall [action] [object].
- Do not specify implementation technology.
- Each requirement must cite at least one source ID.
- Do not add requirements without a source. List missing areas
  separately as "possible gaps" for human review.
- Provide a rationale for each.

Then run a second pass in a separate prompt:

1
2
3
Review these requirements for ambiguity, non-atomic statements,
missing exception handling, and untestable wording. For each issue,
quote the requirement ID and explain the problem.

Review every output. Reject requirements with no real source, and treat the “possible gaps” list as questions to bring to stakeholders.

8. Practical Exercise

Write at least 25 functional requirements for the SignalDesk MVP, across at least five feature areas.

For each requirement include ID, statement, rationale, source, priority, and status. Include at least five requirements covering error or exception handling, and at least three covering authorization.

Then, for 10 of them, write a one-line description of how you would verify them. Rewrite any you cannot verify.

Verification

You are ready to continue when:

  • Each requirement is atomic and uses consistent modal verbs.
  • Each requirement has a unique ID, rationale, and source.
  • Requirements are solution-neutral unless a constraint is recorded.
  • Exception paths and authorization are covered.
  • No AI-drafted requirement lacks a human-confirmed source.

Key Takeaways

  • Good functional requirements are atomic, verifiable, and solution-neutral.
  • Rationale and source make requirements maintainable.
  • Unhappy paths deserve explicit requirements.
  • AI drafts quickly; humans ensure each requirement is real.

What’s Next?

Functional requirements say what the system does. Next, we specify how well it must do it: performance, security, usability, reliability, and other quality attributes.