● Blog / NexusRM

What is bidirectional traceability and how do you show it in an audit?

Bidirectional traceability means you can follow every item forward, from system requirement through software requirements, design and code to the tests and results that verify it, and follow every item backward to the requirement that justifies it. You show it to an auditor with the trace data itself, gap reports that find items with no link, and a baseline that proves the trace was complete on the review date. The links alone are not enough. The auditor also wants to know the trace data was under configuration control.

What does bidirectional traceability actually cover?

In DO-178C terms, the chain is system requirements allocated to software, high-level requirements, low-level requirements, source code, test cases, test procedures and test results. NASA's overview of DO-178C lists the pairs that need two-way trace: system and high-level requirements, high-level and low-level requirements, low-level requirements and source code, software requirements and test cases, test cases and procedures, and test procedures and results.

Forward trace answers "is this requirement implemented and verified?" Backward trace answers "why does this code, this test or this low-level requirement exist?" Both directions matter because they catch different defects. A forward gap is an unimplemented or untested requirement. A backward gap is an orphan: code or a test that no requirement asks for. DO-178B wording implied trace only in the decomposition direction, and DO-178C makes both directions explicit, which is how orphan and dead code get found.

Not every program has every layer. At DO-178C software level D, low-level requirements and source code are not part of the objectives, so the chain is shorter.

Where is it required?

I paraphrase the standards below and cite by section. The standards are copyrighted and you should read the clauses yourself. Several of my sources are published summaries, not the standards themselves.

  • DO-178C. Section 5.5 is development process traceability: bidirectional association between system and high-level requirements, between high-level and low-level requirements, and between low-level requirements and source code. Section 6.5 covers verification trace data: the link between requirements, test cases, procedures and results, used for requirements coverage analysis and to show every procedure ran. Annex A turns this into objectives: Table A-3 objective 6 (high-level requirements trace to system requirements), Table A-4 objective 6 (low-level to high-level), Table A-5 objective 5 (source code to low-level requirements) and Table A-7 objectives 3 and 4 (tests cover every high-level and every low-level requirement).
  • ISO 26262-8:2018, Clause 6. The clause is titled "Specification and management of safety requirements". Its subclauses cover specifying safety requirements, their attributes and characteristics, and managing them. Published summaries describe the expectation as requirements that are uniquely identified, carry an ASIL, trace to their source and are verifiable, with trace down to implementation and back up from verification results. Configuration management is Clause 7, which is where the baselines sit.
  • IEC 62304:2015. Clause 5.2.6 expects software requirements to be uniquely identified and traceable to the system requirements or another source. Clause 5.7.1 expects a set of tests covering every software requirement. Clause 5.3.6 expects the architecture to be verified as implementing the system and software requirements. Clause 7.3.3 records the hazard chain, where appropriate, for safety classes B and C.

DO-178C is the strictest on code-level trace, so the rest of this post uses it as the model. The Software Development Plan is where you describe how traceability is maintained.

What do auditors check?

In my experience the questions are the same whichever standard is in play.

  1. Orphans, upward. Does every high-level requirement trace to a system requirement, and every low-level requirement to a high-level one? Derived requirements are the allowed exception, but they have to be identified as derived.
  2. Orphans, downward. Is there code with no low-level requirement, or a test with no requirement? DO-178C's concern is orphan and dead code.
  3. Untraced requirements. Does every high-level and low-level requirement have test cases (Table A-7 objectives 3 and 4)? A matrix that shows 33 of 34 requirements with a test case means the objective is not met, which is how LDRA's own white paper illustrates it.
  4. Derived requirements. A derived requirement is something the software must do to function that is not stated in the performance or safety requirements. It must be flagged, justified, and delivered to the system processes, the system safety assessment among them. An unflagged derived requirement is a classic finding.
  5. Coverage. Requirements-based coverage (every requirement tested) and structural coverage (every part of the code exercised by those tests). The first is a trace question. The second comes from a coverage tool.
  6. Results. Is every linked test run, and is every failure or blocked case explained? A trace to a test that never ran is a link to nothing.
  7. Control. Is the trace data baselined with the rest of the life cycle data, and does the version the auditor holds match the version that was reviewed?

What are the artifacts?

  • Trace matrices, one per link pair: system to high-level, high-level to low-level, requirements to tests, and so on. A matrix should show the gaps, not hide them.
  • Coverage reports: requirements to tests, and structural coverage from the coverage tool.
  • Test results linked to the cases and procedures that produced them.
  • Baselined trace data: a frozen set of requirements and links as of each review milestone, with a way to compare two baselines.
  • Impact analysis records and an audit record of who created, changed or removed a link.

What goes wrong in practice?

  • Spreadsheet matrices drift. LDRA notes that manual processes produce inconsistencies and errors, and that a simple spreadsheet or Word document may do only for a small local team. The Johner Institute makes the same point for medical software: Excel is the usual trace tool, and it reaches its limits quickly once links cross document boundaries. The drift is quiet. A requirement is renumbered, a row is not, and nobody sees it until the audit.
  • Traces are not under configuration control. The matrix is edited after the review it supports. The auditor holds a version whose provenance you cannot show.
  • Links point at moving targets. The test case was re-linked to a newer requirement and the old trace is gone, with no record.
  • Derived requirements are not flagged. They exist in the low-level set, trace to nothing, and never reach the safety assessment.

How do the common approaches compare?

Each row is taken from the vendor's own documentation or the source named. Check current editions yourself.

Approach How links work Baselined trace data What to watch
Spreadsheet or Word matrix Rows and IDs you maintain by hand Whatever your file configuration management gives you Drift between documents; no automatic gap detection (LDRA, Johner)
IBM DOORS (9.x) Standard links within the database give traceability in both directions A baseline set is a snapshot of the data in the modules and the links between them when it is closed IBM documents that links stored only in an external application, such as collaboration links from DOORS Next, are not included in DOORS baselines
LDRA TBmanager Desktop application that keeps a requirements traceability matrix down to source code and test cases, linked with code review, coverage and test tools Not stated in the source I read; ask LDRA Part of a verification tool suite rather than a standalone requirements database
NexusRM Typed, directional links between objects in any module (requirements, test cases), queryable from either end Immutable per-module baselines that capture the module's items and the links touching them Traces to tests and test procedures; no source-code objects (see below)

How does NexusRM produce and baseline trace data?

NexusRM is requirements management for closed networks. This is what it does for the chain above, from the product documentation and requirements.

Links. Each link has a type (Decomposes, Verifies and Impacts by default, and administrators can add project-specific types) and a direction. The Links tab of an object shows parents and children, and the same links can be queried from either end. Duplicate links and self-links are rejected. Links cross module and project boundaries, and creating or removing one is recorded in the audit log. The object graph shows ancestors to the left and descendants to the right, up to five levels each way, so "where did this come from?" and "what depends on this?" are one picture.

Tests in the trace. Keep test cases in their own module and link each one to the requirements it verifies with the Verifies link type. Results and the location of the test procedure are attributes you define on that module, for example a Result choice list (Pass, Fail, Blocked) and a Procedure text field, so they show as columns, filter and export like any other field.

Gap reports. The coverage matrix takes any two scopes: system against software requirements, or test cases against requirements. Rows or columns with nothing linked are highlighted, a summary reports how many are covered, and the whole matrix exports to CSV. It reports gaps in both directions.

Baselines. A baseline is an immutable snapshot of a module, numbered major.minor. Capturing one stores the module's items and the links touching them, so the trace is frozen along with the requirements. Compare any two baselines, or a baseline against the current state, to see what was added, deleted or modified, down to the field and attribute, and which links were added or removed. A change branch is worked aside, needs approval, and merging it creates the next baseline. Baselines are per module, so baseline every module in the chain at the same milestone. A link between two modules is captured on both sides.

Impact analysis. The impact analysis walks the link graph to a depth you choose, shows the link-type path for each affected item, detects cycles, and can run over a whole baseline diff. That is the record that a change was assessed against the trace.

Audit. Every change goes into an append-only audit log in which each entry carries the SHA-256 hash of the previous one. Verification walks the chain and reports altered or removed entries. The log filters by project, user, action and date and exports to CSV.

Derived requirements. The documentation shows no built-in derived-requirement workflow. NexusRM supports typed custom attributes, including boolean and enum, so you can add a Derived flag and a rationale field and show them in a saved view. Treat the delivery to the safety assessment as a process step you record yourself.

What it does not do. The trace stops at the objects you keep in NexusRM: requirements and test cases. There are no source-code objects, so requirement-to-code trace and structural coverage come from your code tools. If your DER expects code-level trace, plan how that data is imported or referenced and baselined with the rest. Pair it with Lucent for the review record: reviews register back into NexusRM and requirements in scope get a Reviewed Status. See also how to migrate requirements out of DOORS and keep traceability and the NexusRM feature catalog.

Frequently asked questions

Is a spreadsheet trace matrix acceptable to an auditor?

DO-178C does not oblige you to use a traceability tool, and LDRA notes a spreadsheet or Word document may suffice for a small local team. The risk is control: drift between documents and no baseline. If you use one, put it under configuration management and run a scripted gap check before each review.

What is a derived requirement and why do auditors ask about it?

It is a requirement the software needs to function that does not come from the system requirements, such as a rate limit or an error-handling behavior. DO-178C expects it to be identified, justified and passed to the system processes, including the safety assessment, because it can affect safety in a way the safety analysis never saw.

Do I need trace to code at every software level?

No. In DO-178C the low-level requirements and source code objectives apply at levels A, B and C, not at level D. Check Table A-4 and Table A-5 and your plans for the level you are working at.

How do I prove the trace was complete on the date of review?

Baseline the requirements and the links at the review milestone, compare it with the next baseline later, and keep the audit log verification result. The baseline shows the state, the diff shows what changed, and the log shows who changed it.

Does NexusRM trace requirements to source code?

No. It traces requirements to test cases kept as objects in a test module; where the test code lives is an attribute you record on the test case. Source-code trace and structural coverage come from your coverage and analysis tools.

Sources