Desk summary
- 01Traceability answers two questions: is everything that was required implemented and verified, and was everything that was implemented actually required?
- 02DO-178C asks for bidirectional trace between system requirements and HLRs, HLRs and LLRs, LLRs and source code (
§5.5), and between requirements, test cases, test procedures and test results (§6.5). - 03New in DO-178C: trace data (
§11.21) is an explicit life-cycle output. DO-178B implied tracing through verification objectives but never named the artefact. - 04Trace quality matters as much as completeness: wrong links, many-to-many tangles and links added after the fact are common findings.
- 05Auditors sample traces in both directions — a system requirement down to tests, a random function up to its parents — and expect every hop to be quick and convincing.
Intuition
A family tree for every line of code
Imagine each line of code has to prove its ancestry: which LLR it implements, which HLR that came from, which system requirement started it all, and which tests checked it. Trace data is that family tree. Looking down from the ancestors finds children never born (requirements nobody implemented or tested); looking up from the children finds orphans (code or requirements nobody asked for). You need both directions because each finds a different kind of problem.
The trace chain in DO-178C
§5.5 defines the development trace: system requirements allocated to software to HLRs, HLRs to LLRs, and LLRs to source code, each in both directions. §6.5 defines the verification trace: requirements to test cases, test cases to test procedures, and test procedures to test results. Several Annex A objectives cannot be shown without this data.
Which objectives lean on which trace links
| Trace link | Objectives that depend on it | What it lets you show |
|---|---|---|
| System reqs ↔ HLR | Table A-3 obj 1 and 6 | HLRs fully implement the allocated system requirements; untraced HLRs are identified as derived |
| HLR ↔ LLR | Table A-4 obj 1 and 6 | LLRs fully implement HLRs; derived LLRs are identified |
| LLR ↔ source code | Table A-5 obj 1 and 5 | Code implements the LLRs and only the LLRs |
| Requirements ↔ test cases | Table A-7 obj 3 and 4 (test coverage of HLRs and of LLRs) | Every requirement is tested, normal and robustness |
| Test cases ↔ procedures ↔ results | Table A-7 obj 1 and 2 (procedures correct, results correct and discrepancies explained) | The tests claimed were actually run, as written, with recorded outcomes |
Forward and backward: what each direction catches
Bidirectional trace
Forward (top-down)
Backward (bottom-up)
Pitfall
One direction complete, the other assumed
A trace matrix in which every system requirement has children looks complete — until someone checks whether every child has a parent. Tools often report only one direction by default. Review both, at every level, as part of the A-3, A-4 and A-5 reviews rather than in one big exercise at the end.
Trace data as a life-cycle output: DO-178B versus DO-178C
DO-178B required traceability through its verification sections and objectives but did not name an artefact, so projects stored trace in requirement documents, verification reports or spreadsheets, and evidence was sometimes thin. DO-178C made two changes: it added explicit development-process trace activities (§5.5) and verification trace activities (§6.5), and it defined trace data (§11.21) as a life-cycle data item. Trace data now appears as an output of the development objectives in Table A-2 and of the verification processes. It still does not prescribe the format — a database export, a matrix or links embedded in the artefacts are all acceptable — as long as it exists as identifiable, controlled evidence.
DO-178B (1992)
DO-178C (2011)
§5.5) and verification (§6.5).§11.21) is a defined life-cycle output, under configuration control.Note
Implicit tracing still needs evidence
Some projects trace implicitly — by naming conventions, document structure, or one-to-one numbering between LLRs and functions. Authorities have accepted this, but under DO-178C the project must still be able to produce trace data. Write the implicit rules into the standards and plans, apply them consistently, and make sure reviews explicitly confirm them.
Granularity and trace quality
A trace link is a claim: “this child implements (part of) that parent”. Reviewers check that the claim is true, not just that a link exists. Ratios and patterns in the trace data reveal problems with the requirements themselves.
Trace smells and what they usually mean
| Pattern | Likely cause | Response |
|---|---|---|
| Many parents map 1:1 to children with near-identical text | Child level adds no detail; requirements copied down | Rework the lower level, or justify a merged level in the plans |
| One parent with dozens of children | Parent is too broad, such as “the software shall implement the control laws” | Split the parent; trace to specific parents |
| Widespread many-to-many links | Poorly organised requirements or tracing done after the fact | Restructure; keep many-to-many only where genuinely needed, with notes |
| High proportion of derived requirements | Missing parents being hidden | Sample justifications; raise problem reports against the higher level |
| Links to headings or whole documents | Too coarse to verify | Link to individual identified requirements |
| Code traced to LLRs only at file level | Cannot show which function implements what | Trace at function or procedure level as a minimum |
Practitioner tip
Annotate weak links
Some links are debatable — the child is related to the parent without being a straightforward decomposition of it. Keep the link if it helps change impact analysis, but add a one-line note explaining the relationship. The note costs seconds and saves the next reviewer, or maintainer, from guessing.
Pitfall
Tracing after the fact
Trace created at the end by someone who did not write the requirements is the most reliable way to get bad trace data: partial links that look complete, orphans marked derived to make them disappear, and links to vague parents. Trace as you write, and let the author record the reasoning while they still know it.
Tools and keeping trace current
Requirements management tools, model-linking features, code annotations and test management tools all hold pieces of the trace. The job is to keep them connected, under configuration control, and current through change. Tools help with storage, reporting and gap detection; they do not know whether a link is correct.
- —Generate gap reports routinely, not only before audits: requirements with no children, children with no parents, requirements with no tests, tests with no requirements.
- —Use trace for change impact. When a requirement changes, the trace identifies the design, code and tests to revisit. A change impact analysis that does not use the trace is guesswork. See Problem Reporting & Change Impact.
- —Baseline the trace with the artefacts. Trace data must correspond to the versions listed in the Software Configuration Index; a trace report generated from today’s database against last month’s baseline is not evidence.
- —Tool qualification is usually not needed for trace tools, because trace is reviewed by people as part of the A-3, A-4 and A-5 reviews. If you rely on a tool’s automatic report to eliminate that review, qualification may become necessary.
Worked example
A model-generated trace gap report
In the helicopter reference project, each design description ends with a section listing model elements that have no requirement links; for the AHRS voter it reports that 9 of the model’s 17 subsystem and block children carry links. Such a report is not a finding in itself — many unlinked blocks are routing elements such as bus selectors and multiplexers — but each unlinked element needs a reason. The zero-valid default branch of the voter is exactly the kind of element whose missing link should prompt a derived requirement.
How auditors sample traces
A typical trace thread at SOI 2 or SOI 3
Pick a safety-relevant system requirement
Often one tied to a hazardous or catastrophic failure condition, such as sensor voting or actuator monitoring.
Follow it down
To its HLRs, LLRs, source functions, test cases, procedures and results. At each hop the auditor reads both sides and asks whether the child really implements or verifies the parent.
Pick a random code function and go up
Which LLRs does it implement? Which HLRs and system requirements do they serve? Is anything in the function not explained by those requirements?
Sample derived requirements
Read the justification and ask for evidence that the safety team saw and dispositioned it.
Check configuration consistency
Do the trace data, the reviewed artefacts and the test results all refer to the versions in the SCI?
Check the reviews
Do the A-3, A-4 and A-5 review records show that trace was actually reviewed, not just generated?
What the auditor looks for
What makes a trace thread go badly
Long pauses while someone searches for the link; links that exist but connect unrelated requirements; test cases that trace to a requirement yet do not test its stated condition; derived requirements with no safety disposition; and trace reports that do not match the baselined versions. Any one of these usually triggers wider sampling.
Model-based development
Tracing through models
With models, trace links run from textual requirements to model elements (subsystems, blocks, states, transitions), from model elements to generated code, and from requirements to simulation and test cases. DO-331 keeps the same bidirectional expectations, applied to the model. Two practical questions dominate. First, granularity: linking an entire model to an HLR is too coarse, while linking every block is noisy; trace at the level of meaningful functional elements, as the reference project does when it links each HLR to specific blocks of the voter, loop and actuator models. Second, model-to-code trace: generators can annotate code with the originating model element, which makes the LLR-to-code link largely mechanical — but it still has to be reviewed or obtained from a qualified tool. See Traceability Through Models.
Self-check
Every system requirement allocated to software traces down to at least one HLR. What has this established?