Overview
Curated: · Written: · Reviewed:
Requirements Gathering & User Stories
In one line
Requirements gathering turns a raw request into a testable decision: a user story with a stated outcome, acceptance criteria that prove it done, and named edge cases. Reach for it whenever a stakeholder asks for a feature, because the request is a solution and the need behind it is what you have to find.
Key definitions
- Solution bias: building the requested feature instead of addressing the need behind it.
- Benefit clause: the "so that" part of a story, which states the outcome and lets the team judge alternatives.
- INVEST: the story quality gate (Independent, Negotiable, Valuable, Estimable, Small, Testable).
- Vertical split: slicing a story so each slice delivers end-to-end value, as opposed to a horizontal layer.
- Acceptance criteria: observable outcomes, including negative and boundary cases, that establish a story is done.
- Assumption register: a list of each assumption with its evidence, owner, decision date and expiry.
Formulas and complexity
Quote the expected-cost comparison when ranking assumptions to validate:
Write performance criteria as a percentile with a workload and measurement point, for example p95 under 2 s for up to 500 orders, measured at the API in production.
How it works
The loop has five steps: elicit evidence, analyze to separate needs from solutions, specify stories and criteria, validate comprehension with users, builders and operators, then manage change with rationale preserved. Match the technique to the question: behaviour gets observation, opinion gets interviews, scale gets surveys, comprehension gets prototypes. Triangulate, because analytics show what is happening and interviews show why.
When to use and when not to
| Situation | Apply full requirements work? | What to do instead |
|---|---|---|
| Cost of being wrong is high or the change is hard to reverse | Yes | Full elicitation, criteria, NFRs |
| Throwaway spike or proof of concept | No | Hypothesis and kill criterion |
| Internal tool with fewer than 3 users | No | Direct conversation |
| Change behind a flag that can be switched off instantly | No | Hypothesis, rollout metric, kill switch |
| Requested feature conflicts with observed behaviour | Yes | Test the need before building the request |
Traps interviewers probe
- Building the requested button. Fix: trace the request to the workflow and volume first. A two-hour daily saving claimed for a screen opened 14 times a day at 40 seconds each does not hold up.
- Happy-path-only criteria. Fix: write the negative, boundary, empty, permission, concurrency and retry cases alongside the happy path.
- Criteria that describe a class, not a behaviour. Fix: state the observable result, such as the charged amount and status code. "Handle errors gracefully" with 42 passing unit tests proves nothing about a bad row at line 1,900,000.
- Benchmarks that do not match production. Fix: state the workload, population, percentile, index size and environment, and check that staging matches production on each of them.
- Treating a matrix link as coverage. Fix: check that the test can fail. A test that asserts against a mock that always approves covers nothing.
Interview tips
Open with the decision, not the artifact: "I'd confirm the need and its volume before any story." Then name the evidence you would gather and what would change your mind.
Expect these follow-ups:
- A stakeholder insists on a feature the research contradicts. Separate the request from the need, run a cheap test, and record the decision authority.
- How do you handle vague requirements? Ask for the scenario, workload, percentile and failure behaviour, then rewrite the requirement.
- Walk me through a split. Name the INVEST failure and the vertical axis.
- How do you know it worked? Name outcome metrics and guardrails instrumented before release.
30-second outline: the need, in one sentence, with its evidence. The story with its benefit clause. Two or three criteria covering the happy path, a boundary and a failure. The hidden non-functional requirement and its number. The metric you will check after release.
Feedback on this overview
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.