TactivergeLite

Lite / Building Machines That Respond / Week 31

Every requirement needs a test and a reason

The gripper build runs 24 checks on your design. Where did those 24 come from, and what if one of your requirements has no check at all?

About 40 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

Traceability is how engineers prove a design is finished: every requirement has evidence, and every design decision exists for a reason. It also tells you exactly what to re-test when something changes.

Predict

The gripper build checks 6 things (reach, clearance, control, hold, no crush, motor torque) for each of 4 objects. How many checks is that?

  1. 10
  2. 24
  3. 6
  4. 4
Guess first, then reveal

24: every requirement is checked against every object, 6 × 4. A test matrix like this is how you make sure no requirement passes on one easy case and fails on another.

Discover

Open the Robotic Gripper build, Level 3. Before changing anything, write the six checks as requirements with numbers (for example, squeeze never above the object's crush limit). Then design a gripper that passes all 24 checks, noting which requirement drove each choice.

What the interactive shows (text version)

Level 3 of the gripper build lets you set two link lengths, the knuckle spacing, the pad material and the squeeze force, then runs six checks (reach, clearance, control, hold, no crush, motor torque) on each of four objects (egg, bolt, tomato, paper cup) and reports which of the 24 checks pass.

You can also open the interactive on the full site when you have a faster connection.

Understand

Four ways to verify

Inspection: look or measure ('the README lists every part'). Analysis: calculate ('motor torque under 0.15 N·m by free-body diagram'). Demonstration: show it works once ('the gripper opens and closes'). Test: measure performance under set conditions, usually repeated ('holds the bolt in 10 of 10 fast lifts'). Choose the cheapest method that gives trustworthy evidence.

The traceability table

Make a table with columns: requirement ID, requirement text, verification method, test or calculation, result, and the design decision it drove. R3 'squeeze ≤ 3 N on the paper cup' might trace to 'test: cup case in the build' and to 'decision: rubber pads, so a low squeeze still holds the bolt'.

Gaps tell you something

A requirement with no test is a promise you can't keep. A design decision with no requirement may be gold-plating, or may reveal a requirement you forgot to write. When a requirement changes, the table shows every test to re-run.

Explain it another way

Intuitive

Traceability is a receipt for every promise: here is what we said, here is how we checked, here is what we found.

Technical

A requirements traceability matrix maps each requirement to its verification method, verification artefact and status, and to the design elements that satisfy it, in both directions.

Applied

Medical device and aircraft makers must show regulators a traceability matrix before selling a product; an untested requirement can stop a launch.

Worked example 1

Pick a verification method: 'The gripper's motors must stay under 0.15 N·m in every grasp.'

Analysis first (torque = force × distance for the worst case), then test in the build, which reports torque for each object. Two methods agreeing is stronger evidence.

Worked example 2

Your design uses rubber pads, but no requirement mentions friction. What should you do?

Find the requirement the pads serve: 'hold the bolt in a 4.9 m/s² lift without crushing the cup'. Add it to the table and trace the pads to it. If no requirement needs them, question the choice.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 2. Best verification method for 'The README must list every part with a quantity'?
Practice 3. Best verification method for 'The gripper must hold the bolt in 10 of 10 lifts at 4.9 m/s²'?
Practice 4. Your traceability table shows a design decision ('add a second sensor') that traces to no requirement. What is the best response?

%

Apply it

Make a traceability table for your capstone machine with at least five requirements. Fill in the verification method for each, and trace at least three design decisions back to them. Mark any gaps.

Reflect

Which of your requirements will be hardest to verify, and why?

Write your answer on paper or in your own notes. Lite never stores what you write.

← From a vague brief to budgets with marginsThe weighted decision matrix →