Turning Discovery into Requirements

How to turn evidence into requirements written as business outcomes, traced to goals and obligations, each with a test; duplicate-safe postings; and non-functional requirements from capacity to observability.

  • Beginner to intermediate
  • About 26 minutes
  • Includes an exercise and a knowledge check

The concept From findings to requirements

Your evidence register now says what is true, what is not and what is still unknown. This lesson turns the verified entries into requirements: clear statements of what must be true for the business, and how well the solution must work. Requirements come from evidence and business goals, not from the first request or from a solution you already like.

Write the outcome, not the mechanism. Normalize loan identifiers sounds like a requirement, but it is one way to build something. The requirement is the outcome the business needs: a loan number sent with or without the LN- prefix reaches the same loan. Writing the outcome keeps design choices open and gives the tester something to check.

Two kinds of requirements for the fictional lender, written as what must be true rather than as a chosen solution. Functional, what must be true for the business: R1 every bank-file payment is posted, or listed as an exception, by 8 a.m.; R2 loan numbers with or without LN- reach the same loan; R3 analysts see each exception with all three records side by side; R4 operations is alerted when a row is rejected or a file is missing; R5 every manual resolution records who, what, when and why; R6 a payment received twice is posted only once. Non-functional, how well it must work: N1 capacity, the peak day and the morning file done before 6 a.m.; N2 availability, the exception screen up 7 a.m. to 7 p.m. on business days; N3 recovery, a failed run reruns safely within one hour; N4 retention, payment and audit records kept for seven years; N5 privacy, borrower data only for operations and compliance roles; N6 observability, counts for every run and alerts within 15 minutes. Vague requirements turned into testable ones: must be fast becomes process the 100,000-row morning file before 6 a.m.; must be secure becomes only authorized roles can adjust a payment; must be scalable becomes meet the same targets on the peak day, about 160,000 payments.
Functional requirements say what must be true. Non-functional requirements say how well. Both must be testable and traceable.

What it must do Functional requirements

A functional requirement says what must be true for the business. Each one below is traceable, to a business goal or obligation and to the evidence behind it, and testable, with the check a tester would run:

IDRequirement: what must be trueTraces toHow it is tested
R1Every payment in the bank file is posted to the correct loan, or listed as an exception with a reason, by 8 a.m. the next business dayGoal: borrowers' payments count on time. Evidence E5, E7Replay one week of files: every row is posted or listed; none is missing
R2A loan number sent with or without the LN- prefix reaches the same loanEvidence E4: the March format changePost sample rows from the February and March files: both reach the same loans
R3Analysts see each exception with the payment, the bank row and the loan record side by side, and can resolve it thereGoal: less manual investigation. Evidence E3Provisional target, to validate with at least three representative analysts in acceptance testing: a standard exception resolved in under two minutes without another tool
R4Operations is alerted the same morning when any row is rejected or the bank file has not arrived by 2:00 a.m.Detection gap: failures were silent for weeks. Evidence E2Inject one bad row and hold back one file: both alerts arrive within 15 minutes
R5Every manual resolution records who did it, what changed, when and whyObligation: the compliance audit policyResolve three test exceptions: the audit report shows all four fields for each
R6A payment received more than once is posted only onceObligation: accurate financial records. Risk E6, still unknownSend the same file twice and one event three times: each payment is posted once

A requirement that traces to nothing is a wish. If you cannot name the goal, obligation or evidence behind a line, either find it or take the line out. And if you cannot describe the test, the requirement is still too vague.

A requirement that protects money Repeated events must never create duplicate postings

Payment data often arrives more than once. A provider retries after a timeout, the bank resends a file, or someone reruns the import after a failure. Every repeat must be recorded for the audit trail, recognized as already processed, and post nothing the second time. This is called being idempotent: doing it twice has the same effect as doing it once.

The trap is that two genuine payments can look exactly like a duplicate. A borrower who pays two installments on the same day sends the same amount, for the same loan, on the same date. Merging them would lose real money. So a repeat is decided by the source and its transaction ID, never by amount and date alone:

What arrivesWhat should happen
The same bank file, sent twiceRecognized at file level by its file ID and contents; nothing is posted again; operations is told
The same provider event, retried after a timeoutSame source and transaction ID: posted once, and the repeat is logged
Two payments that look alike: same loan, same amount, same dayDifferent transaction IDs suggest two payments but do not prove it. Post both only when the provider references and the settlement show two payments; otherwise hold the second and escalate
One payment seen twice: the provider event and its bank settlement rowTwo records of one payment: matched to each other, not posted twice

How well Non-functional requirements

A non-functional requirement describes how well the system must work. These are the requirements customers forget to say, and the ones that cause failures in production. Cover each quality briefly, with a number where you can, and name who must confirm it:

QualityAt the lender (to confirm)Confirmed by
CapacityThe peak day, about 160,000 payments, and the 100,000-row morning file are processed before 6:00 a.m.Operations manager, IT integration lead
AvailabilityThe exception screen is available 7 a.m. to 7 p.m. Central on business days, at least 99.5% of that timeOperations manager
RecoveryA failed run can be rerun safely with no duplicate postings and finishes within one hour; received files are kept, so no payment is lostIT integration lead
RetentionPayment records and audit history are kept for seven yearsCompliance officer
PrivacyBorrower details are visible only to operations and compliance roles; account numbers are masked in exports; no borrower data in logsCompliance officer
ObservabilityEvery run reports rows received, posted, rejected and unmatched; an alert fires within 15 minutes of a rejected row or a missing fileIT integration lead, operations manager
Security and auditOnly authorized roles can adjust a payment, and every adjustment is traceableCompliance officer

Make it testable Ask for measurable requirements

VagueTestable
The system must be fast.Process the 100,000-row morning file before 6:00 a.m., every business day.
The system must be secure.Only authorized roles can make financial adjustments.
The system must be scalable.Meet the same targets on the peak day, about 160,000 payments.
Keep the history.Retain audit events for the required retention period.

Practice Sort and sharpen

Practical exercise

Functional or non-functional?

The lender's team suggests the requirements below. Sort each one, then rewrite the vague ones so they can be tested.

  1. Show analysts the reason for each unmatched payment.
  2. The reconciliation must be reliable.
  3. Send an alert when the bank file is late.
  4. It must be easy to use.
  5. Borrower data must be safe.
Show a sample answer
  • Show the reason for each unmatched payment: functional, and already testable.
  • Must be reliable: non-functional and vague. Rewrite: the daily run completes for every business day, and a failed run is retried and reported within 15 minutes.
  • Alert when the file is late: functional. Make it testable: alert the operations manager if the bank file has not arrived by 2:00 a.m.
  • Easy to use: non-functional and vague. Rewrite: an analyst can resolve a standard exception in under two minutes without help. Label it provisional until it is tested with at least three representative analysts, including a new one.
  • Borrower data must be safe: non-functional. Rewrite: borrower data is encrypted and only the operations and compliance roles can view it.
  • Trace every rewrite: reliability traces to R1 and the silent failures; the late-file alert traces to R4; ease of use traces to the shadowing evidence E3; data safety traces to the compliance policy.

5 questions

Check your understanding

1. Which is a functional requirement?
2. A customer says the system must be fast. What should you do?
3. Where should requirements come from?
4. Which line is written as a business outcome, not an assumed solution?
5. Two payments arrive for the same loan, for the same amount, on the same day, with different provider transaction IDs. What should happen?
Answer every question to submit.

What you can do now

  • Tell functional and non-functional requirements apart.
  • Write requirements as business outcomes, not assumed solutions.
  • Trace each requirement to a goal, obligation or evidence, and write its test.
  • Require that repeated events never create duplicate postings, without merging genuine payments.
  • Cover capacity, availability, recovery, retention, privacy and observability.
  • Turn vague requirements into measurable, testable ones.
  • Treat example targets as questions for the customer, not commitments.