Specifications and Satisfaction
Requirements Specification: Making Satisfaction Checkable
A request such as “make confirmations quick” gives a development team a direction, but it does not establish a clear agreement about acceptable behaviour. A requirements specification records what a system is required to do, together with the conditions and constraints that determine whether its behaviour is acceptable. You use it to connect a stated expectation to a decision that someone else can check consistently.
State an observable obligation
A useful specification identifies the situation in which an obligation applies and the outcome the system must produce. For example, a confirmation requirement might identify a valid booking request, a maximum supported load, the confirmation displayed, and a time limit measured from receipt of the request.
An identifier such as R1 lets you refer to that statement without rewriting it. The identifier does not make the statement precise by itself: its wording must still establish what counts as meeting it.
Compare these statements about the same confirmation behaviour.
Statement | What can you decide? |
|---|---|
Confirm bookings quickly. | Different readers may assign different meanings to quickly. |
Display confirmation within 2.0 s. | The limit is measurable, but the starting event and operating conditions remain unclear. |
For each valid booking request received while at most 20 users are active, display confirmation no later than 2.0 s after receipt. | The trigger, outcome, timing boundary, and supported load are explicit. |
The last statement is more checkable, but related words still need agreed meanings. For example, “valid booking request” can refer to a definition elsewhere in the same specification. Precision does not require repeating every definition in every sentence.
Connect the statements to satisfaction
Satisfaction means that the system's behaviour meets the applicable specified requirements under the stated conditions. If R1, R2, and R3 all apply, satisfying only two does not satisfy the complete specification.
The governing idea is a logical conjunction:
Here, each Ri represents the truth of an applicable requirement. The symbol ∧ means “and.” Evaluate each requirement using its own rule before combining the results.
Example: A confirmation must appear within 2.0 s and contain a booking reference. A response that arrives after 1.8 s without a reference meets the timing requirement but fails the complete specification. Meeting one condition does not compensate for missing another unless the specification explicitly permits that trade-off.
Quantitative wording matters at the boundary. “At most 2.0 s” means t≤2.0 s, whereas “less than 2.0 s” means t<2.0 s. An observation exactly at the limit has a different outcome under these two statements.
Keep the conclusion within the evidence
A specification might require every supported request to meet a limit, or it might define a decision over one fixed batch. Apply the rule at the scope actually stated. If a fixed batch requires at least 90% timely responses, calculate the proportion using every response in that batch. Do not silently replace the rule with an average response time.
A test case provides evidence about a particular situation. Passing several cases supports agreement with the specification in those cases; it does not by itself prove agreement for every possible supported situation. Conversely, a genuine failure under applicable conditions contradicts an every-case requirement. An observation outside those conditions does not automatically establish a violation.
What to remember
- Specify the trigger, observable outcome, conditions, and decision boundary.
- Check every applicable requirement before deciding overall satisfaction.
- Preserve distinctions such as at most, less than, every, and at least a stated percentage.
- Match the strength and scope of your conclusion to the evidence available.
Example: Checking a Booking Confirmation Batch
Example: A booking service uses an acceptance run, a fixed collection of requests used to make the decision defined in its requirements specification. This run contains 80 valid requests, submitted under the specified supported operating conditions.
The specification gives two requirements for this run:
- R1: At least 95% of the 80 requests must display confirmation within 1.5 s after receipt.
- R2: Every request must produce a confirmation containing a booking code, and no two requests in the run may receive the same code.
The recorded results show that 74 requests display confirmation within 1.5 s. The other six display confirmation after 1.5 s. All 80 eventually display confirmations containing codes, and all 80 codes are distinct. Treat the recorded measurements as exact.
a) What minimum number of timely confirmations does R1 require?
Convert the percentage to a fraction first: 95% is ________. Let k be the number of requests whose confirmations appear within the limit.
Multiply both sides by the positive batch size:
Because 76 is already a whole number, no upward adjustment is needed. R1 requires at least 76 timely confirmations.
b) What percentage of requests meet the time limit, and does R1 hold?
Subtract the timely count from the batch size to check the remaining count: 80−74 gives ________ after the limit. All 80 requests remain in the percentage denominator.
The timely fraction is
This fraction is ________ before conversion to a percentage. Therefore,
Compare the measured result with the required boundary:
The timely percentage is 92.5%, so R1 fails. Eventual confirmation does not make a late response timely.
c) Does this run satisfy the complete specification?
Evaluate R2 separately. Every request receives a confirmation containing a code, and the 80 codes are distinct. Both parts of R2 therefore hold.
Combine the requirement-level decisions using “and”:
Passing the code requirement does not compensate for failing the timing requirement. This run does not satisfy the complete specification. The conclusion concerns the fixed run defined here; it does not claim that every future run will have the same outcome.
A parcel-sorting station uses a scanner, a software controller, and a chute mechanism. Match each requirements-engineering role to the statement that fills that role in the station's satisfaction argument.
Accurate scanning makes a fragile parcel trigger the selection rule, and the obedient mechanism then sends it to the required destination.
Every parcel marked fragile must reach the padded chute.
Whenever the incoming flag indicates fragile, the controller must select the padded chute.
The scanner reports each parcel's fragile marking accurately, and the chute mechanism follows the controller's selection.
Satisfaction argument
Stakeholder requirement
Software specification
Domain assumption
A submission system specifies this decision rule: accept a file exactly when its size is at most 12 MB and its filename extension is .pdf. Extension matching ignores uppercase and lowercase differences. All listed sizes are exact, and no other conditions apply. Enter accept or reject for each file.
| File | Size (MB) | Extension | Decision |
| Report | 12 | ||
| Portfolio | 12.01 | ||
| Sketch | 8 | .png | |
| Summary | 0.5 |